[2025-04-16 00:00:04] Production.INFO: next invoice date [2025-04-16 00:00:04] Production.INFO: 2025-05-16 [2025-04-16 00:00:04] Production.INFO: getdaysdiff [2025-04-16 00:00:04] Production.INFO: +30 [2025-04-16 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (107,16,1,30,30,'RMScheduler',2025-04-16 00:00:04,1,0,,,0) [2025-04-16 00:00:04] Production.INFO: next invoice date [2025-04-16 00:00:04] Production.INFO: 2025-05-16 [2025-04-16 00:00:04] Production.INFO: getdaysdiff [2025-04-16 00:00:04] Production.INFO: +30 [2025-04-16 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (140,16,1,30,30,'RMScheduler',2025-04-16 00:00:04,1,0,,,0) [2025-04-16 00:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:00:05 [end_date_ymd] => 2025-04-16 00:00:05 [RateCDR] => 1 ) [2025-04-16 00: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-04-15 21:00:05' and `end` < '2025-04-16 00: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-04-16 00:00:19] Production.INFO: count ==679 [2025-04-16 00:00:19] Production.ERROR: pbx CDR StartTime 2025-04-15 21:00:05 - End Time 2025-04-16 00:00:05 [2025-04-16 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917101', 'tblTempUsageDetail_20' ) start [2025-04-16 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917101', 'tblTempUsageDetail_20' ) end [2025-04-16 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917101', 'tblTempVendorCDR_20' ) start [2025-04-16 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917101', 'tblTempVendorCDR_20' ) end [2025-04-16 00:00:19] Production.INFO: ProcessCDR(1,14917101,1,1,2) [2025-04-16 00:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917101', 'tblTempUsageDetail_20' ) start [2025-04-16 00:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917101', 'tblTempUsageDetail_20' ) end [2025-04-16 00:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:00:23] Production.INFO: ==22285== Releasing lock... [2025-04-16 00:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:00:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-16 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:01:06 [end_date_ymd] => 2025-04-16 00:01:06 [RateCDR] => 1 ) [2025-04-16 00:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 21:01:06' and `end` < '2025-04-16 00:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 00:01:19] Production.INFO: count ==675 [2025-04-16 00:01:20] Production.ERROR: pbx CDR StartTime 2025-04-15 21:01:06 - End Time 2025-04-16 00:01:06 [2025-04-16 00:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917107', 'tblTempUsageDetail_20' ) start [2025-04-16 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917107', 'tblTempUsageDetail_20' ) end [2025-04-16 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917107', 'tblTempVendorCDR_20' ) start [2025-04-16 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917107', 'tblTempVendorCDR_20' ) end [2025-04-16 00:01:20] Production.INFO: ProcessCDR(1,14917107,1,1,2) [2025-04-16 00:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917107', 'tblTempUsageDetail_20' ) start [2025-04-16 00:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917107', 'tblTempUsageDetail_20' ) end [2025-04-16 00:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:01:26] Production.INFO: ==22386== Releasing lock... [2025-04-16 00:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:01:26] Production.INFO: 33 MB #Memory Used# [2025-04-16 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:02:05 [end_date_ymd] => 2025-04-16 00:02:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:02:05' and `end` < '2025-04-16 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-04-16 00:02:18] Production.INFO: count ==284 [2025-04-16 00:02:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:02:05 - End Time 2025-04-16 00:02:05 [2025-04-16 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917112', 'tblTempUsageDetail_20' ) start [2025-04-16 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917112', 'tblTempUsageDetail_20' ) end [2025-04-16 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917112', 'tblTempVendorCDR_20' ) start [2025-04-16 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917112', 'tblTempVendorCDR_20' ) end [2025-04-16 00:02:18] Production.INFO: ProcessCDR(1,14917112,1,1,2) [2025-04-16 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917112', 'tblTempUsageDetail_20' ) start [2025-04-16 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917112', 'tblTempUsageDetail_20' ) end [2025-04-16 00:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:02:23] Production.INFO: ==22464== Releasing lock... [2025-04-16 00:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:02:23] Production.INFO: 31 MB #Memory Used# [2025-04-16 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:03:05 [end_date_ymd] => 2025-04-16 00:03:05 [RateCDR] => 1 ) [2025-04-16 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 21:03:05' and `end` < '2025-04-16 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 00:03:19] Production.INFO: count ==273 [2025-04-16 00:03:19] Production.ERROR: pbx CDR StartTime 2025-04-15 21:03:05 - End Time 2025-04-16 00:03:05 [2025-04-16 00:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917117', 'tblTempUsageDetail_20' ) start [2025-04-16 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917117', 'tblTempUsageDetail_20' ) end [2025-04-16 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917117', 'tblTempVendorCDR_20' ) start [2025-04-16 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917117', 'tblTempVendorCDR_20' ) end [2025-04-16 00:03:19] Production.INFO: ProcessCDR(1,14917117,1,1,2) [2025-04-16 00:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917117', 'tblTempUsageDetail_20' ) start [2025-04-16 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917117', 'tblTempUsageDetail_20' ) end [2025-04-16 00:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:03:22] Production.INFO: ==22537== Releasing lock... [2025-04-16 00:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:03:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-16 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:04:05 [end_date_ymd] => 2025-04-16 00:04:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:04:05' and `end` < '2025-04-16 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-04-16 00:04:18] Production.INFO: count ==265 [2025-04-16 00:04:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:04:05 - End Time 2025-04-16 00:04:05 [2025-04-16 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917122', 'tblTempUsageDetail_20' ) start [2025-04-16 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917122', 'tblTempUsageDetail_20' ) end [2025-04-16 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917122', 'tblTempVendorCDR_20' ) start [2025-04-16 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917122', 'tblTempVendorCDR_20' ) end [2025-04-16 00:04:18] Production.INFO: ProcessCDR(1,14917122,1,1,2) [2025-04-16 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917122', 'tblTempUsageDetail_20' ) start [2025-04-16 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917122', 'tblTempUsageDetail_20' ) end [2025-04-16 00:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:04:21] Production.INFO: ==22613== Releasing lock... [2025-04-16 00:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:04:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-16 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:05:05 [end_date_ymd] => 2025-04-16 00:05:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:05:05' and `end` < '2025-04-16 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-04-16 00:05:23] Production.INFO: count ==265 [2025-04-16 00:05:24] Production.ERROR: pbx CDR StartTime 2025-04-15 21:05:05 - End Time 2025-04-16 00:05:05 [2025-04-16 00:05:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917127', 'tblTempUsageDetail_20' ) start [2025-04-16 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917127', 'tblTempUsageDetail_20' ) end [2025-04-16 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917127', 'tblTempVendorCDR_20' ) start [2025-04-16 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917127', 'tblTempVendorCDR_20' ) end [2025-04-16 00:05:24] Production.INFO: ProcessCDR(1,14917127,1,1,2) [2025-04-16 00:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917127', 'tblTempUsageDetail_20' ) start [2025-04-16 00:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917127', 'tblTempUsageDetail_20' ) end [2025-04-16 00:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:05:27] Production.INFO: ==22687== Releasing lock... [2025-04-16 00:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:05:27] Production.INFO: 30.75 MB #Memory Used# [2025-04-16 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:06:05 [end_date_ymd] => 2025-04-16 00:06:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:06:05' and `end` < '2025-04-16 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-04-16 00:06:19] Production.INFO: count ==263 [2025-04-16 00:06:19] Production.ERROR: pbx CDR StartTime 2025-04-15 21:06:05 - End Time 2025-04-16 00:06:05 [2025-04-16 00:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917132', 'tblTempUsageDetail_20' ) start [2025-04-16 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917132', 'tblTempUsageDetail_20' ) end [2025-04-16 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917132', 'tblTempVendorCDR_20' ) start [2025-04-16 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917132', 'tblTempVendorCDR_20' ) end [2025-04-16 00:06:19] Production.INFO: ProcessCDR(1,14917132,1,1,2) [2025-04-16 00:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917132', 'tblTempUsageDetail_20' ) start [2025-04-16 00:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917132', 'tblTempUsageDetail_20' ) end [2025-04-16 00:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:06:22] Production.INFO: ==22770== Releasing lock... [2025-04-16 00:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:06:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-16 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:07:05 [end_date_ymd] => 2025-04-16 00:07:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:07:05' and `end` < '2025-04-16 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-04-16 00:07:31] Production.INFO: count ==260 [2025-04-16 00:07:31] Production.ERROR: pbx CDR StartTime 2025-04-15 21:07:05 - End Time 2025-04-16 00:07:05 [2025-04-16 00:07:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917137', 'tblTempUsageDetail_20' ) start [2025-04-16 00:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917137', 'tblTempUsageDetail_20' ) end [2025-04-16 00:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917137', 'tblTempVendorCDR_20' ) start [2025-04-16 00:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917137', 'tblTempVendorCDR_20' ) end [2025-04-16 00:07:31] Production.INFO: ProcessCDR(1,14917137,1,1,2) [2025-04-16 00:07:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:07:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:07:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:07:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917137', 'tblTempUsageDetail_20' ) start [2025-04-16 00:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917137', 'tblTempUsageDetail_20' ) end [2025-04-16 00:07:34] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:07:34] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:07:34] Production.INFO: ==22850== Releasing lock... [2025-04-16 00:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:07:34] Production.INFO: 30.5 MB #Memory Used# [2025-04-16 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:08:05 [end_date_ymd] => 2025-04-16 00:08:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:08:05' and `end` < '2025-04-16 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-04-16 00:08:18] Production.INFO: count ==250 [2025-04-16 00:08:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:08:05 - End Time 2025-04-16 00:08:05 [2025-04-16 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917142', 'tblTempUsageDetail_20' ) start [2025-04-16 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917142', 'tblTempUsageDetail_20' ) end [2025-04-16 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917142', 'tblTempVendorCDR_20' ) start [2025-04-16 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917142', 'tblTempVendorCDR_20' ) end [2025-04-16 00:08:18] Production.INFO: ProcessCDR(1,14917142,1,1,2) [2025-04-16 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917142', 'tblTempUsageDetail_20' ) start [2025-04-16 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917142', 'tblTempUsageDetail_20' ) end [2025-04-16 00:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:08:21] Production.INFO: ==22925== Releasing lock... [2025-04-16 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:08:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-16 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:09:05 [end_date_ymd] => 2025-04-16 00:09:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:09:05' and `end` < '2025-04-16 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-04-16 00:09:32] Production.INFO: count ==251 [2025-04-16 00:09:32] Production.ERROR: pbx CDR StartTime 2025-04-15 21:09:05 - End Time 2025-04-16 00:09:05 [2025-04-16 00:09:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917147', 'tblTempUsageDetail_20' ) start [2025-04-16 00:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917147', 'tblTempUsageDetail_20' ) end [2025-04-16 00:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917147', 'tblTempVendorCDR_20' ) start [2025-04-16 00:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917147', 'tblTempVendorCDR_20' ) end [2025-04-16 00:09:32] Production.INFO: ProcessCDR(1,14917147,1,1,2) [2025-04-16 00:09:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:09:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:09:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:09:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917147', 'tblTempUsageDetail_20' ) start [2025-04-16 00:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917147', 'tblTempUsageDetail_20' ) end [2025-04-16 00:09:36] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:09:36] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:09:36] Production.INFO: ==23001== Releasing lock... [2025-04-16 00:09:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:09:36] Production.INFO: 30.5 MB #Memory Used# [2025-04-16 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:10:06 [end_date_ymd] => 2025-04-16 00:10:06 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:10:06' and `end` < '2025-04-16 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-04-16 00:10:33] Production.INFO: count ==260 [2025-04-16 00:10:33] Production.ERROR: pbx CDR StartTime 2025-04-15 21:10:06 - End Time 2025-04-16 00:10:06 [2025-04-16 00:10:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917153', 'tblTempUsageDetail_20' ) start [2025-04-16 00:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917153', 'tblTempUsageDetail_20' ) end [2025-04-16 00:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917153', 'tblTempVendorCDR_20' ) start [2025-04-16 00:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917153', 'tblTempVendorCDR_20' ) end [2025-04-16 00:10:33] Production.INFO: ProcessCDR(1,14917153,1,1,2) [2025-04-16 00:10:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:10:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:10:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:10:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:10:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917153', 'tblTempUsageDetail_20' ) start [2025-04-16 00:10:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917153', 'tblTempUsageDetail_20' ) end [2025-04-16 00:10:37] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:10:37] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:10:37] Production.INFO: ==23085== Releasing lock... [2025-04-16 00:10:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:10:37] Production.INFO: 30.5 MB #Memory Used# [2025-04-16 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:11:05 [end_date_ymd] => 2025-04-16 00:11:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:11:05' and `end` < '2025-04-16 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-04-16 00:11:30] Production.INFO: count ==266 [2025-04-16 00:11:30] Production.ERROR: pbx CDR StartTime 2025-04-15 21:11:05 - End Time 2025-04-16 00:11:05 [2025-04-16 00:11:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917158', 'tblTempUsageDetail_20' ) start [2025-04-16 00:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917158', 'tblTempUsageDetail_20' ) end [2025-04-16 00:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917158', 'tblTempVendorCDR_20' ) start [2025-04-16 00:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917158', 'tblTempVendorCDR_20' ) end [2025-04-16 00:11:30] Production.INFO: ProcessCDR(1,14917158,1,1,2) [2025-04-16 00:11:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:11:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:11:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:11:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917158', 'tblTempUsageDetail_20' ) start [2025-04-16 00:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917158', 'tblTempUsageDetail_20' ) end [2025-04-16 00:11:34] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:11:34] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:11:34] Production.INFO: ==23164== Releasing lock... [2025-04-16 00:11:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:11:34] Production.INFO: 30.75 MB #Memory Used# [2025-04-16 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:12:05 [end_date_ymd] => 2025-04-16 00:12:05 [RateCDR] => 1 ) [2025-04-16 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 21:12:05' and `end` < '2025-04-16 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 00:12:32] Production.INFO: count ==260 [2025-04-16 00:12:33] Production.ERROR: pbx CDR StartTime 2025-04-15 21:12:05 - End Time 2025-04-16 00:12:05 [2025-04-16 00:12:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917163', 'tblTempUsageDetail_20' ) start [2025-04-16 00:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917163', 'tblTempUsageDetail_20' ) end [2025-04-16 00:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917163', 'tblTempVendorCDR_20' ) start [2025-04-16 00:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917163', 'tblTempVendorCDR_20' ) end [2025-04-16 00:12:33] Production.INFO: ProcessCDR(1,14917163,1,1,2) [2025-04-16 00:12:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:12:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:12:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:12:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:12:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917163', 'tblTempUsageDetail_20' ) start [2025-04-16 00:12:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917163', 'tblTempUsageDetail_20' ) end [2025-04-16 00:12:37] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:12:37] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:12:37] Production.INFO: ==23234== Releasing lock... [2025-04-16 00:12:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:12:37] Production.INFO: 30.5 MB #Memory Used# [2025-04-16 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:13:05 [end_date_ymd] => 2025-04-16 00:13:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:13:05' and `end` < '2025-04-16 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-04-16 00:13:28] Production.INFO: count ==254 [2025-04-16 00:13:28] Production.ERROR: pbx CDR StartTime 2025-04-15 21:13:05 - End Time 2025-04-16 00:13:05 [2025-04-16 00:13:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917168', 'tblTempUsageDetail_20' ) start [2025-04-16 00:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917168', 'tblTempUsageDetail_20' ) end [2025-04-16 00:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917168', 'tblTempVendorCDR_20' ) start [2025-04-16 00:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917168', 'tblTempVendorCDR_20' ) end [2025-04-16 00:13:28] Production.INFO: ProcessCDR(1,14917168,1,1,2) [2025-04-16 00:13:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:13:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:13:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:13:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917168', 'tblTempUsageDetail_20' ) start [2025-04-16 00:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917168', 'tblTempUsageDetail_20' ) end [2025-04-16 00:13:33] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:13:33] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:13:33] Production.INFO: ==23311== Releasing lock... [2025-04-16 00:13:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:13:33] Production.INFO: 31.25 MB #Memory Used# [2025-04-16 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:14:05 [end_date_ymd] => 2025-04-16 00:14:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:14:05' and `end` < '2025-04-16 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-04-16 00:14:33] Production.INFO: count ==246 [2025-04-16 00:14:33] Production.ERROR: pbx CDR StartTime 2025-04-15 21:14:05 - End Time 2025-04-16 00:14:05 [2025-04-16 00:14:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:14:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917173', 'tblTempUsageDetail_20' ) start [2025-04-16 00:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917173', 'tblTempUsageDetail_20' ) end [2025-04-16 00:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917173', 'tblTempVendorCDR_20' ) start [2025-04-16 00:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917173', 'tblTempVendorCDR_20' ) end [2025-04-16 00:14:34] Production.INFO: ProcessCDR(1,14917173,1,1,2) [2025-04-16 00:14:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:14:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:14:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:14:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:14:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917173', 'tblTempUsageDetail_20' ) start [2025-04-16 00:14:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917173', 'tblTempUsageDetail_20' ) end [2025-04-16 00:14:38] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:14:38] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:14:38] Production.INFO: ==23428== Releasing lock... [2025-04-16 00:14:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:14:38] Production.INFO: 30.25 MB #Memory Used# [2025-04-16 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:15:05 [end_date_ymd] => 2025-04-16 00:15:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:15:05' and `end` < '2025-04-16 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-04-16 00:15:29] Production.INFO: count ==241 [2025-04-16 00:15:29] Production.ERROR: pbx CDR StartTime 2025-04-15 21:15:05 - End Time 2025-04-16 00:15:05 [2025-04-16 00:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917178', 'tblTempUsageDetail_20' ) start [2025-04-16 00:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917178', 'tblTempUsageDetail_20' ) end [2025-04-16 00:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917178', 'tblTempVendorCDR_20' ) start [2025-04-16 00:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917178', 'tblTempVendorCDR_20' ) end [2025-04-16 00:15:30] Production.INFO: ProcessCDR(1,14917178,1,1,2) [2025-04-16 00:15:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:15:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917178', 'tblTempUsageDetail_20' ) start [2025-04-16 00:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917178', 'tblTempUsageDetail_20' ) end [2025-04-16 00:15:33] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:15:33] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:15:33] Production.INFO: ==23505== Releasing lock... [2025-04-16 00:15:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:15:33] Production.INFO: 30.75 MB #Memory Used# [2025-04-16 00:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:16:06 [end_date_ymd] => 2025-04-16 00:16:06 [RateCDR] => 1 ) [2025-04-16 00: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-04-15 21:16:06' and `end` < '2025-04-16 00: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-04-16 00:16:28] Production.INFO: count ==241 [2025-04-16 00:16:28] Production.ERROR: pbx CDR StartTime 2025-04-15 21:16:06 - End Time 2025-04-16 00:16:06 [2025-04-16 00:16:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917183', 'tblTempUsageDetail_20' ) start [2025-04-16 00:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917183', 'tblTempUsageDetail_20' ) end [2025-04-16 00:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917183', 'tblTempVendorCDR_20' ) start [2025-04-16 00:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917183', 'tblTempVendorCDR_20' ) end [2025-04-16 00:16:28] Production.INFO: ProcessCDR(1,14917183,1,1,2) [2025-04-16 00:16:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917183', 'tblTempUsageDetail_20' ) start [2025-04-16 00:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917183', 'tblTempUsageDetail_20' ) end [2025-04-16 00:16:31] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:16:31] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:16:31] Production.INFO: ==23583== Releasing lock... [2025-04-16 00:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:16:31] Production.INFO: 30.75 MB #Memory Used# [2025-04-16 00:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:17:04 [end_date_ymd] => 2025-04-16 00:17:04 [RateCDR] => 1 ) [2025-04-16 00:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 21:17:04' and `end` < '2025-04-16 00:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 00:17:29] Production.INFO: count ==233 [2025-04-16 00:17:29] Production.ERROR: pbx CDR StartTime 2025-04-15 21:17:04 - End Time 2025-04-16 00:17:04 [2025-04-16 00:17:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917188', 'tblTempUsageDetail_20' ) start [2025-04-16 00:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917188', 'tblTempUsageDetail_20' ) end [2025-04-16 00:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917188', 'tblTempVendorCDR_20' ) start [2025-04-16 00:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917188', 'tblTempVendorCDR_20' ) end [2025-04-16 00:17:29] Production.INFO: ProcessCDR(1,14917188,1,1,2) [2025-04-16 00:17:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:17:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:17:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:17:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917188', 'tblTempUsageDetail_20' ) start [2025-04-16 00:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917188', 'tblTempUsageDetail_20' ) end [2025-04-16 00:17:34] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:17:34] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:17:34] Production.INFO: ==23659== Releasing lock... [2025-04-16 00:17:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:17:34] Production.INFO: 30.25 MB #Memory Used# [2025-04-16 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:18:05 [end_date_ymd] => 2025-04-16 00:18:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:18:05' and `end` < '2025-04-16 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-04-16 00:18:33] Production.INFO: count ==232 [2025-04-16 00:18:33] Production.ERROR: pbx CDR StartTime 2025-04-15 21:18:05 - End Time 2025-04-16 00:18:05 [2025-04-16 00:18:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:18:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917193', 'tblTempUsageDetail_20' ) start [2025-04-16 00:18:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917193', 'tblTempUsageDetail_20' ) end [2025-04-16 00:18:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917193', 'tblTempVendorCDR_20' ) start [2025-04-16 00:18:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917193', 'tblTempVendorCDR_20' ) end [2025-04-16 00:18:33] Production.INFO: ProcessCDR(1,14917193,1,1,2) [2025-04-16 00:18:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:18:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:18:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:18:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:18:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917193', 'tblTempUsageDetail_20' ) start [2025-04-16 00:18:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917193', 'tblTempUsageDetail_20' ) end [2025-04-16 00:18:37] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:18:37] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:18:37] Production.INFO: ==23739== Releasing lock... [2025-04-16 00:18:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:18:37] Production.INFO: 30.25 MB #Memory Used# [2025-04-16 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:19:05 [end_date_ymd] => 2025-04-16 00:19:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:19:05' and `end` < '2025-04-16 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-04-16 00:19:18] Production.INFO: count ==232 [2025-04-16 00:19:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:19:05 - End Time 2025-04-16 00:19:05 [2025-04-16 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917198', 'tblTempUsageDetail_20' ) start [2025-04-16 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917198', 'tblTempUsageDetail_20' ) end [2025-04-16 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917198', 'tblTempVendorCDR_20' ) start [2025-04-16 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917198', 'tblTempVendorCDR_20' ) end [2025-04-16 00:19:18] Production.INFO: ProcessCDR(1,14917198,1,1,2) [2025-04-16 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917198', 'tblTempUsageDetail_20' ) start [2025-04-16 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917198', 'tblTempUsageDetail_20' ) end [2025-04-16 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:19:21] Production.INFO: ==23817== Releasing lock... [2025-04-16 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:19:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-16 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:20:06 [end_date_ymd] => 2025-04-16 00:20:06 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:20:06' and `end` < '2025-04-16 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-04-16 00:20:19] Production.INFO: count ==230 [2025-04-16 00:20:19] Production.ERROR: pbx CDR StartTime 2025-04-15 21:20:06 - End Time 2025-04-16 00:20:06 [2025-04-16 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917204', 'tblTempUsageDetail_20' ) start [2025-04-16 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917204', 'tblTempUsageDetail_20' ) end [2025-04-16 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917204', 'tblTempVendorCDR_20' ) start [2025-04-16 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917204', 'tblTempVendorCDR_20' ) end [2025-04-16 00:20:19] Production.INFO: ProcessCDR(1,14917204,1,1,2) [2025-04-16 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917204', 'tblTempUsageDetail_20' ) start [2025-04-16 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917204', 'tblTempUsageDetail_20' ) end [2025-04-16 00:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:20:24] Production.INFO: ==23904== Releasing lock... [2025-04-16 00:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:20:24] Production.INFO: 30.5 MB #Memory Used# [2025-04-16 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:21:05 [end_date_ymd] => 2025-04-16 00:21:05 [RateCDR] => 1 ) [2025-04-16 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 21:21:05' and `end` < '2025-04-16 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 00:21:18] Production.INFO: count ==229 [2025-04-16 00:21:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:21:05 - End Time 2025-04-16 00:21:05 [2025-04-16 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917209', 'tblTempUsageDetail_20' ) start [2025-04-16 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917209', 'tblTempUsageDetail_20' ) end [2025-04-16 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917209', 'tblTempVendorCDR_20' ) start [2025-04-16 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917209', 'tblTempVendorCDR_20' ) end [2025-04-16 00:21:18] Production.INFO: ProcessCDR(1,14917209,1,1,2) [2025-04-16 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917209', 'tblTempUsageDetail_20' ) start [2025-04-16 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917209', 'tblTempUsageDetail_20' ) end [2025-04-16 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:21:21] Production.INFO: ==23980== Releasing lock... [2025-04-16 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:21:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-16 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:22:05 [end_date_ymd] => 2025-04-16 00:22:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:22:05' and `end` < '2025-04-16 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-04-16 00:22:18] Production.INFO: count ==215 [2025-04-16 00:22:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:22:05 - End Time 2025-04-16 00:22:05 [2025-04-16 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917214', 'tblTempUsageDetail_20' ) start [2025-04-16 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917214', 'tblTempUsageDetail_20' ) end [2025-04-16 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917214', 'tblTempVendorCDR_20' ) start [2025-04-16 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917214', 'tblTempVendorCDR_20' ) end [2025-04-16 00:22:18] Production.INFO: ProcessCDR(1,14917214,1,1,2) [2025-04-16 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917214', 'tblTempUsageDetail_20' ) start [2025-04-16 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917214', 'tblTempUsageDetail_20' ) end [2025-04-16 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:22:21] Production.INFO: ==24052== Releasing lock... [2025-04-16 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:22:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-16 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:23:05 [end_date_ymd] => 2025-04-16 00:23:05 [RateCDR] => 1 ) [2025-04-16 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 21:23:05' and `end` < '2025-04-16 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 00:23:18] Production.INFO: count ==214 [2025-04-16 00:23:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:23:05 - End Time 2025-04-16 00:23:05 [2025-04-16 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917219', 'tblTempUsageDetail_20' ) start [2025-04-16 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917219', 'tblTempUsageDetail_20' ) end [2025-04-16 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917219', 'tblTempVendorCDR_20' ) start [2025-04-16 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917219', 'tblTempVendorCDR_20' ) end [2025-04-16 00:23:18] Production.INFO: ProcessCDR(1,14917219,1,1,2) [2025-04-16 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917219', 'tblTempUsageDetail_20' ) start [2025-04-16 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917219', 'tblTempUsageDetail_20' ) end [2025-04-16 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:23:21] Production.INFO: ==24127== Releasing lock... [2025-04-16 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:23:21] Production.INFO: 30 MB #Memory Used# [2025-04-16 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:24:05 [end_date_ymd] => 2025-04-16 00:24:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:24:05' and `end` < '2025-04-16 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-04-16 00:24:18] Production.INFO: count ==214 [2025-04-16 00:24:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:24:05 - End Time 2025-04-16 00:24:05 [2025-04-16 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917224', 'tblTempUsageDetail_20' ) start [2025-04-16 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917224', 'tblTempUsageDetail_20' ) end [2025-04-16 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917224', 'tblTempVendorCDR_20' ) start [2025-04-16 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917224', 'tblTempVendorCDR_20' ) end [2025-04-16 00:24:18] Production.INFO: ProcessCDR(1,14917224,1,1,2) [2025-04-16 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917224', 'tblTempUsageDetail_20' ) start [2025-04-16 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917224', 'tblTempUsageDetail_20' ) end [2025-04-16 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:24:21] Production.INFO: ==24201== Releasing lock... [2025-04-16 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:24:21] Production.INFO: 30 MB #Memory Used# [2025-04-16 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:25:06 [end_date_ymd] => 2025-04-16 00:25:06 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:25:06' and `end` < '2025-04-16 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-04-16 00:25:18] Production.INFO: count ==212 [2025-04-16 00:25:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:25:06 - End Time 2025-04-16 00:25:06 [2025-04-16 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917229', 'tblTempUsageDetail_20' ) start [2025-04-16 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917229', 'tblTempUsageDetail_20' ) end [2025-04-16 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917229', 'tblTempVendorCDR_20' ) start [2025-04-16 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917229', 'tblTempVendorCDR_20' ) end [2025-04-16 00:25:18] Production.INFO: ProcessCDR(1,14917229,1,1,2) [2025-04-16 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917229', 'tblTempUsageDetail_20' ) start [2025-04-16 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917229', 'tblTempUsageDetail_20' ) end [2025-04-16 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:25:22] Production.INFO: ==24284== Releasing lock... [2025-04-16 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:25:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-16 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:26:05 [end_date_ymd] => 2025-04-16 00:26:05 [RateCDR] => 1 ) [2025-04-16 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 21:26:05' and `end` < '2025-04-16 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-04-16 00:26:18] Production.INFO: count ==210 [2025-04-16 00:26:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:26:05 - End Time 2025-04-16 00:26:05 [2025-04-16 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917234', 'tblTempUsageDetail_20' ) start [2025-04-16 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917234', 'tblTempUsageDetail_20' ) end [2025-04-16 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917234', 'tblTempVendorCDR_20' ) start [2025-04-16 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917234', 'tblTempVendorCDR_20' ) end [2025-04-16 00:26:18] Production.INFO: ProcessCDR(1,14917234,1,1,2) [2025-04-16 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917234', 'tblTempUsageDetail_20' ) start [2025-04-16 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917234', 'tblTempUsageDetail_20' ) end [2025-04-16 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:26:21] Production.INFO: ==24363== Releasing lock... [2025-04-16 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:26:21] Production.INFO: 30 MB #Memory Used# [2025-04-16 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:27:05 [end_date_ymd] => 2025-04-16 00:27:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:27:05' and `end` < '2025-04-16 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-04-16 00:27:18] Production.INFO: count ==210 [2025-04-16 00:27:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:27:05 - End Time 2025-04-16 00:27:05 [2025-04-16 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917239', 'tblTempUsageDetail_20' ) start [2025-04-16 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917239', 'tblTempUsageDetail_20' ) end [2025-04-16 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917239', 'tblTempVendorCDR_20' ) start [2025-04-16 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917239', 'tblTempVendorCDR_20' ) end [2025-04-16 00:27:18] Production.INFO: ProcessCDR(1,14917239,1,1,2) [2025-04-16 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917239', 'tblTempUsageDetail_20' ) start [2025-04-16 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917239', 'tblTempUsageDetail_20' ) end [2025-04-16 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:27:21] Production.INFO: ==24436== Releasing lock... [2025-04-16 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:27:21] Production.INFO: 30 MB #Memory Used# [2025-04-16 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:28:05 [end_date_ymd] => 2025-04-16 00:28:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:28:05' and `end` < '2025-04-16 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-04-16 00:28:17] Production.INFO: count ==210 [2025-04-16 00:28:17] Production.ERROR: pbx CDR StartTime 2025-04-15 21:28:05 - End Time 2025-04-16 00:28:05 [2025-04-16 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917244', 'tblTempUsageDetail_20' ) start [2025-04-16 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917244', 'tblTempUsageDetail_20' ) end [2025-04-16 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917244', 'tblTempVendorCDR_20' ) start [2025-04-16 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917244', 'tblTempVendorCDR_20' ) end [2025-04-16 00:28:17] Production.INFO: ProcessCDR(1,14917244,1,1,2) [2025-04-16 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917244', 'tblTempUsageDetail_20' ) start [2025-04-16 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917244', 'tblTempUsageDetail_20' ) end [2025-04-16 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:28:22] Production.INFO: ==24513== Releasing lock... [2025-04-16 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:28:22] Production.INFO: 30 MB #Memory Used# [2025-04-16 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:29:05 [end_date_ymd] => 2025-04-16 00:29:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:29:05' and `end` < '2025-04-16 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-04-16 00:29:17] Production.INFO: count ==210 [2025-04-16 00:29:17] Production.ERROR: pbx CDR StartTime 2025-04-15 21:29:05 - End Time 2025-04-16 00:29:05 [2025-04-16 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917249', 'tblTempUsageDetail_20' ) start [2025-04-16 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917249', 'tblTempUsageDetail_20' ) end [2025-04-16 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917249', 'tblTempVendorCDR_20' ) start [2025-04-16 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917249', 'tblTempVendorCDR_20' ) end [2025-04-16 00:29:17] Production.INFO: ProcessCDR(1,14917249,1,1,2) [2025-04-16 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917249', 'tblTempUsageDetail_20' ) start [2025-04-16 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917249', 'tblTempUsageDetail_20' ) end [2025-04-16 00:29:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:29:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:29:20] Production.INFO: ==24631== Releasing lock... [2025-04-16 00:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:29:20] Production.INFO: 30 MB #Memory Used# [2025-04-16 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:30:06 [end_date_ymd] => 2025-04-16 00:30:06 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:30:06' and `end` < '2025-04-16 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-04-16 00:30:19] Production.INFO: count ==220 [2025-04-16 00:30:19] Production.ERROR: pbx CDR StartTime 2025-04-15 21:30:06 - End Time 2025-04-16 00:30:06 [2025-04-16 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917255', 'tblTempUsageDetail_20' ) start [2025-04-16 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917255', 'tblTempUsageDetail_20' ) end [2025-04-16 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917255', 'tblTempVendorCDR_20' ) start [2025-04-16 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917255', 'tblTempVendorCDR_20' ) end [2025-04-16 00:30:19] Production.INFO: ProcessCDR(1,14917255,1,1,2) [2025-04-16 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917255', 'tblTempUsageDetail_20' ) start [2025-04-16 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917255', 'tblTempUsageDetail_20' ) end [2025-04-16 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:30:22] Production.INFO: ==24709== Releasing lock... [2025-04-16 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:30:22] Production.INFO: 30 MB #Memory Used# [2025-04-16 00:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:31:04 [end_date_ymd] => 2025-04-16 00:31:04 [RateCDR] => 1 ) [2025-04-16 00:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 21:31:04' and `end` < '2025-04-16 00:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 00:31:17] Production.INFO: count ==215 [2025-04-16 00:31:17] Production.ERROR: pbx CDR StartTime 2025-04-15 21:31:04 - End Time 2025-04-16 00:31:04 [2025-04-16 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917260', 'tblTempUsageDetail_20' ) start [2025-04-16 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917260', 'tblTempUsageDetail_20' ) end [2025-04-16 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917260', 'tblTempVendorCDR_20' ) start [2025-04-16 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917260', 'tblTempVendorCDR_20' ) end [2025-04-16 00:31:17] Production.INFO: ProcessCDR(1,14917260,1,1,2) [2025-04-16 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917260', 'tblTempUsageDetail_20' ) start [2025-04-16 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917260', 'tblTempUsageDetail_20' ) end [2025-04-16 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:31:21] Production.INFO: ==24783== Releasing lock... [2025-04-16 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:31:21] Production.INFO: 30 MB #Memory Used# [2025-04-16 00:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:32:06 [end_date_ymd] => 2025-04-16 00:32:06 [RateCDR] => 1 ) [2025-04-16 00:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 21:32:06' and `end` < '2025-04-16 00:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 00:32:19] Production.INFO: count ==214 [2025-04-16 00:32:19] Production.ERROR: pbx CDR StartTime 2025-04-15 21:32:06 - End Time 2025-04-16 00:32:06 [2025-04-16 00:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917265', 'tblTempUsageDetail_20' ) start [2025-04-16 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917265', 'tblTempUsageDetail_20' ) end [2025-04-16 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917265', 'tblTempVendorCDR_20' ) start [2025-04-16 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917265', 'tblTempVendorCDR_20' ) end [2025-04-16 00:32:19] Production.INFO: ProcessCDR(1,14917265,1,1,2) [2025-04-16 00:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917265', 'tblTempUsageDetail_20' ) start [2025-04-16 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917265', 'tblTempUsageDetail_20' ) end [2025-04-16 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:32:22] Production.INFO: ==24860== Releasing lock... [2025-04-16 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:32:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-16 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:33:05 [end_date_ymd] => 2025-04-16 00:33:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:33:05' and `end` < '2025-04-16 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-04-16 00:33:17] Production.INFO: count ==214 [2025-04-16 00:33:17] Production.ERROR: pbx CDR StartTime 2025-04-15 21:33:05 - End Time 2025-04-16 00:33:05 [2025-04-16 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917270', 'tblTempUsageDetail_20' ) start [2025-04-16 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917270', 'tblTempUsageDetail_20' ) end [2025-04-16 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917270', 'tblTempVendorCDR_20' ) start [2025-04-16 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917270', 'tblTempVendorCDR_20' ) end [2025-04-16 00:33:17] Production.INFO: ProcessCDR(1,14917270,1,1,2) [2025-04-16 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917270', 'tblTempUsageDetail_20' ) start [2025-04-16 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917270', 'tblTempUsageDetail_20' ) end [2025-04-16 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:33:21] Production.INFO: ==24937== Releasing lock... [2025-04-16 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:33:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-16 00:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:34:06 [end_date_ymd] => 2025-04-16 00:34:06 [RateCDR] => 1 ) [2025-04-16 00: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-04-15 21:34:06' and `end` < '2025-04-16 00: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-04-16 00:34:18] Production.INFO: count ==214 [2025-04-16 00:34:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:34:06 - End Time 2025-04-16 00:34:06 [2025-04-16 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917275', 'tblTempUsageDetail_20' ) start [2025-04-16 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917275', 'tblTempUsageDetail_20' ) end [2025-04-16 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917275', 'tblTempVendorCDR_20' ) start [2025-04-16 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917275', 'tblTempVendorCDR_20' ) end [2025-04-16 00:34:18] Production.INFO: ProcessCDR(1,14917275,1,1,2) [2025-04-16 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917275', 'tblTempUsageDetail_20' ) start [2025-04-16 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917275', 'tblTempUsageDetail_20' ) end [2025-04-16 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:34:22] Production.INFO: ==25020== Releasing lock... [2025-04-16 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:34:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-16 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:35:05 [end_date_ymd] => 2025-04-16 00:35:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:35:05' and `end` < '2025-04-16 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-04-16 00:35:17] Production.INFO: count ==209 [2025-04-16 00:35:17] Production.ERROR: pbx CDR StartTime 2025-04-15 21:35:05 - End Time 2025-04-16 00:35:05 [2025-04-16 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917280', 'tblTempUsageDetail_20' ) start [2025-04-16 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917280', 'tblTempUsageDetail_20' ) end [2025-04-16 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917280', 'tblTempVendorCDR_20' ) start [2025-04-16 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917280', 'tblTempVendorCDR_20' ) end [2025-04-16 00:35:17] Production.INFO: ProcessCDR(1,14917280,1,1,2) [2025-04-16 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917280', 'tblTempUsageDetail_20' ) start [2025-04-16 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917280', 'tblTempUsageDetail_20' ) end [2025-04-16 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:35:22] Production.INFO: ==25095== Releasing lock... [2025-04-16 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:35:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-16 00:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:36:06 [end_date_ymd] => 2025-04-16 00:36:06 [RateCDR] => 1 ) [2025-04-16 00: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-04-15 21:36:06' and `end` < '2025-04-16 00: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-04-16 00:36:18] Production.INFO: count ==198 [2025-04-16 00:36:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:36:06 - End Time 2025-04-16 00:36:06 [2025-04-16 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917285', 'tblTempUsageDetail_20' ) start [2025-04-16 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917285', 'tblTempUsageDetail_20' ) end [2025-04-16 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917285', 'tblTempVendorCDR_20' ) start [2025-04-16 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917285', 'tblTempVendorCDR_20' ) end [2025-04-16 00:36:18] Production.INFO: ProcessCDR(1,14917285,1,1,2) [2025-04-16 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917285', 'tblTempUsageDetail_20' ) start [2025-04-16 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917285', 'tblTempUsageDetail_20' ) end [2025-04-16 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:36:22] Production.INFO: ==25172== Releasing lock... [2025-04-16 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:36:22] Production.INFO: 30 MB #Memory Used# [2025-04-16 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:37:05 [end_date_ymd] => 2025-04-16 00:37:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:37:05' and `end` < '2025-04-16 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-04-16 00:37:17] Production.INFO: count ==190 [2025-04-16 00:37:17] Production.ERROR: pbx CDR StartTime 2025-04-15 21:37:05 - End Time 2025-04-16 00:37:05 [2025-04-16 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917290', 'tblTempUsageDetail_20' ) start [2025-04-16 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917290', 'tblTempUsageDetail_20' ) end [2025-04-16 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917290', 'tblTempVendorCDR_20' ) start [2025-04-16 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917290', 'tblTempVendorCDR_20' ) end [2025-04-16 00:37:17] Production.INFO: ProcessCDR(1,14917290,1,1,2) [2025-04-16 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917290', 'tblTempUsageDetail_20' ) start [2025-04-16 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917290', 'tblTempUsageDetail_20' ) end [2025-04-16 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:37:22] Production.INFO: ==25248== Releasing lock... [2025-04-16 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:37:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-16 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:38:05 [end_date_ymd] => 2025-04-16 00:38:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:38:05' and `end` < '2025-04-16 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-04-16 00:38:18] Production.INFO: count ==180 [2025-04-16 00:38:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:38:05 - End Time 2025-04-16 00:38:05 [2025-04-16 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917295', 'tblTempUsageDetail_20' ) start [2025-04-16 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917295', 'tblTempUsageDetail_20' ) end [2025-04-16 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917295', 'tblTempVendorCDR_20' ) start [2025-04-16 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917295', 'tblTempVendorCDR_20' ) end [2025-04-16 00:38:18] Production.INFO: ProcessCDR(1,14917295,1,1,2) [2025-04-16 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917295', 'tblTempUsageDetail_20' ) start [2025-04-16 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917295', 'tblTempUsageDetail_20' ) end [2025-04-16 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:38:21] Production.INFO: ==25324== Releasing lock... [2025-04-16 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:38:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-16 00:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:39:04 [end_date_ymd] => 2025-04-16 00:39:04 [RateCDR] => 1 ) [2025-04-16 00:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 21:39:04' and `end` < '2025-04-16 00:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 00:39:17] Production.INFO: count ==173 [2025-04-16 00:39:17] Production.ERROR: pbx CDR StartTime 2025-04-15 21:39:04 - End Time 2025-04-16 00:39:04 [2025-04-16 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917300', 'tblTempUsageDetail_20' ) start [2025-04-16 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917300', 'tblTempUsageDetail_20' ) end [2025-04-16 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917300', 'tblTempVendorCDR_20' ) start [2025-04-16 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917300', 'tblTempVendorCDR_20' ) end [2025-04-16 00:39:17] Production.INFO: ProcessCDR(1,14917300,1,1,2) [2025-04-16 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917300', 'tblTempUsageDetail_20' ) start [2025-04-16 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917300', 'tblTempUsageDetail_20' ) end [2025-04-16 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:39:22] Production.INFO: ==25399== Releasing lock... [2025-04-16 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:39:22] Production.INFO: 30 MB #Memory Used# [2025-04-16 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:40:05 [end_date_ymd] => 2025-04-16 00:40:05 [RateCDR] => 1 ) [2025-04-16 00:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 21:40:05' and `end` < '2025-04-16 00:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 00:40:18] Production.INFO: count ==169 [2025-04-16 00:40:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:40:05 - End Time 2025-04-16 00:40:05 [2025-04-16 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917306', 'tblTempUsageDetail_20' ) start [2025-04-16 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917306', 'tblTempUsageDetail_20' ) end [2025-04-16 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917306', 'tblTempVendorCDR_20' ) start [2025-04-16 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917306', 'tblTempVendorCDR_20' ) end [2025-04-16 00:40:18] Production.INFO: ProcessCDR(1,14917306,1,1,2) [2025-04-16 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917306', 'tblTempUsageDetail_20' ) start [2025-04-16 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917306', 'tblTempUsageDetail_20' ) end [2025-04-16 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:40:21] Production.INFO: ==25479== Releasing lock... [2025-04-16 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:40:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-16 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:41:05 [end_date_ymd] => 2025-04-16 00:41:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:41:05' and `end` < '2025-04-16 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-04-16 00:41:18] Production.INFO: count ==159 [2025-04-16 00:41:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:41:05 - End Time 2025-04-16 00:41:05 [2025-04-16 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917311', 'tblTempUsageDetail_20' ) start [2025-04-16 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917311', 'tblTempUsageDetail_20' ) end [2025-04-16 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917311', 'tblTempVendorCDR_20' ) start [2025-04-16 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917311', 'tblTempVendorCDR_20' ) end [2025-04-16 00:41:18] Production.INFO: ProcessCDR(1,14917311,1,1,2) [2025-04-16 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917311', 'tblTempUsageDetail_20' ) start [2025-04-16 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917311', 'tblTempUsageDetail_20' ) end [2025-04-16 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:41:22] Production.INFO: ==25557== Releasing lock... [2025-04-16 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:41:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:42:05 [end_date_ymd] => 2025-04-16 00:42:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:42:05' and `end` < '2025-04-16 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-04-16 00:42:18] Production.INFO: count ==147 [2025-04-16 00:42:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:42:05 - End Time 2025-04-16 00:42:05 [2025-04-16 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917316', 'tblTempUsageDetail_20' ) start [2025-04-16 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917316', 'tblTempUsageDetail_20' ) end [2025-04-16 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917316', 'tblTempVendorCDR_20' ) start [2025-04-16 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917316', 'tblTempVendorCDR_20' ) end [2025-04-16 00:42:18] Production.INFO: ProcessCDR(1,14917316,1,1,2) [2025-04-16 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917316', 'tblTempUsageDetail_20' ) start [2025-04-16 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917316', 'tblTempUsageDetail_20' ) end [2025-04-16 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:42:21] Production.INFO: ==25634== Releasing lock... [2025-04-16 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-16 00:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:43:06 [end_date_ymd] => 2025-04-16 00:43:06 [RateCDR] => 1 ) [2025-04-16 00: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-04-15 21:43:06' and `end` < '2025-04-16 00: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-04-16 00:43:18] Production.INFO: count ==138 [2025-04-16 00:43:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:43:06 - End Time 2025-04-16 00:43:06 [2025-04-16 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917321', 'tblTempUsageDetail_20' ) start [2025-04-16 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917321', 'tblTempUsageDetail_20' ) end [2025-04-16 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917321', 'tblTempVendorCDR_20' ) start [2025-04-16 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917321', 'tblTempVendorCDR_20' ) end [2025-04-16 00:43:18] Production.INFO: ProcessCDR(1,14917321,1,1,2) [2025-04-16 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917321', 'tblTempUsageDetail_20' ) start [2025-04-16 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917321', 'tblTempUsageDetail_20' ) end [2025-04-16 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:43:22] Production.INFO: ==25710== Releasing lock... [2025-04-16 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:43:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:44:05 [end_date_ymd] => 2025-04-16 00:44:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:44:05' and `end` < '2025-04-16 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-04-16 00:44:18] Production.INFO: count ==129 [2025-04-16 00:44:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:44:05 - End Time 2025-04-16 00:44:05 [2025-04-16 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917326', 'tblTempUsageDetail_20' ) start [2025-04-16 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917326', 'tblTempUsageDetail_20' ) end [2025-04-16 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917326', 'tblTempVendorCDR_20' ) start [2025-04-16 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917326', 'tblTempVendorCDR_20' ) end [2025-04-16 00:44:18] Production.INFO: ProcessCDR(1,14917326,1,1,2) [2025-04-16 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917326', 'tblTempUsageDetail_20' ) start [2025-04-16 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917326', 'tblTempUsageDetail_20' ) end [2025-04-16 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:44:21] Production.INFO: ==25790== Releasing lock... [2025-04-16 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:44:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:45:05 [end_date_ymd] => 2025-04-16 00:45:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:45:05' and `end` < '2025-04-16 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-04-16 00:45:18] Production.INFO: count ==121 [2025-04-16 00:45:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:45:05 - End Time 2025-04-16 00:45:05 [2025-04-16 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917331', 'tblTempUsageDetail_20' ) start [2025-04-16 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917331', 'tblTempUsageDetail_20' ) end [2025-04-16 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917331', 'tblTempVendorCDR_20' ) start [2025-04-16 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917331', 'tblTempVendorCDR_20' ) end [2025-04-16 00:45:18] Production.INFO: ProcessCDR(1,14917331,1,1,2) [2025-04-16 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917331', 'tblTempUsageDetail_20' ) start [2025-04-16 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917331', 'tblTempUsageDetail_20' ) end [2025-04-16 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:45:21] Production.INFO: ==25909== Releasing lock... [2025-04-16 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:46:05 [end_date_ymd] => 2025-04-16 00:46:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:46:05' and `end` < '2025-04-16 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-04-16 00:46:17] Production.INFO: count ==121 [2025-04-16 00:46:17] Production.ERROR: pbx CDR StartTime 2025-04-15 21:46:05 - End Time 2025-04-16 00:46:05 [2025-04-16 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917336', 'tblTempUsageDetail_20' ) start [2025-04-16 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917336', 'tblTempUsageDetail_20' ) end [2025-04-16 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917336', 'tblTempVendorCDR_20' ) start [2025-04-16 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917336', 'tblTempVendorCDR_20' ) end [2025-04-16 00:46:17] Production.INFO: ProcessCDR(1,14917336,1,1,2) [2025-04-16 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917336', 'tblTempUsageDetail_20' ) start [2025-04-16 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917336', 'tblTempUsageDetail_20' ) end [2025-04-16 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:46:21] Production.INFO: ==25981== Releasing lock... [2025-04-16 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:47:05 [end_date_ymd] => 2025-04-16 00:47:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:47:05' and `end` < '2025-04-16 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-04-16 00:47:18] Production.INFO: count ==121 [2025-04-16 00:47:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:47:05 - End Time 2025-04-16 00:47:05 [2025-04-16 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917341', 'tblTempUsageDetail_20' ) start [2025-04-16 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917341', 'tblTempUsageDetail_20' ) end [2025-04-16 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917341', 'tblTempVendorCDR_20' ) start [2025-04-16 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917341', 'tblTempVendorCDR_20' ) end [2025-04-16 00:47:18] Production.INFO: ProcessCDR(1,14917341,1,1,2) [2025-04-16 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917341', 'tblTempUsageDetail_20' ) start [2025-04-16 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917341', 'tblTempUsageDetail_20' ) end [2025-04-16 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:47:21] Production.INFO: ==26062== Releasing lock... [2025-04-16 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:47:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:48:05 [end_date_ymd] => 2025-04-16 00:48:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:48:05' and `end` < '2025-04-16 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-04-16 00:48:18] Production.INFO: count ==121 [2025-04-16 00:48:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:48:05 - End Time 2025-04-16 00:48:05 [2025-04-16 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917346', 'tblTempUsageDetail_20' ) start [2025-04-16 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917346', 'tblTempUsageDetail_20' ) end [2025-04-16 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917346', 'tblTempVendorCDR_20' ) start [2025-04-16 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917346', 'tblTempVendorCDR_20' ) end [2025-04-16 00:48:18] Production.INFO: ProcessCDR(1,14917346,1,1,2) [2025-04-16 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917346', 'tblTempUsageDetail_20' ) start [2025-04-16 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917346', 'tblTempUsageDetail_20' ) end [2025-04-16 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:48:21] Production.INFO: ==26137== Releasing lock... [2025-04-16 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:49:05 [end_date_ymd] => 2025-04-16 00:49:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:49:05' and `end` < '2025-04-16 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-04-16 00:49:18] Production.INFO: count ==119 [2025-04-16 00:49:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:49:05 - End Time 2025-04-16 00:49:05 [2025-04-16 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917351', 'tblTempUsageDetail_20' ) start [2025-04-16 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917351', 'tblTempUsageDetail_20' ) end [2025-04-16 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917351', 'tblTempVendorCDR_20' ) start [2025-04-16 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917351', 'tblTempVendorCDR_20' ) end [2025-04-16 00:49:18] Production.INFO: ProcessCDR(1,14917351,1,1,2) [2025-04-16 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917351', 'tblTempUsageDetail_20' ) start [2025-04-16 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917351', 'tblTempUsageDetail_20' ) end [2025-04-16 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:49:21] Production.INFO: ==26214== Releasing lock... [2025-04-16 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:49:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:50:05 [end_date_ymd] => 2025-04-16 00:50:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:50:05' and `end` < '2025-04-16 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-04-16 00:50:18] Production.INFO: count ==127 [2025-04-16 00:50:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:50:05 - End Time 2025-04-16 00:50:05 [2025-04-16 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917357', 'tblTempUsageDetail_20' ) start [2025-04-16 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917357', 'tblTempUsageDetail_20' ) end [2025-04-16 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917357', 'tblTempVendorCDR_20' ) start [2025-04-16 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917357', 'tblTempVendorCDR_20' ) end [2025-04-16 00:50:18] Production.INFO: ProcessCDR(1,14917357,1,1,2) [2025-04-16 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917357', 'tblTempUsageDetail_20' ) start [2025-04-16 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917357', 'tblTempUsageDetail_20' ) end [2025-04-16 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:50:21] Production.INFO: ==26289== Releasing lock... [2025-04-16 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:50:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:51:05 [end_date_ymd] => 2025-04-16 00:51:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:51:05' and `end` < '2025-04-16 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-04-16 00:51:18] Production.INFO: count ==128 [2025-04-16 00:51:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:51:05 - End Time 2025-04-16 00:51:05 [2025-04-16 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917362', 'tblTempUsageDetail_20' ) start [2025-04-16 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917362', 'tblTempUsageDetail_20' ) end [2025-04-16 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917362', 'tblTempVendorCDR_20' ) start [2025-04-16 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917362', 'tblTempVendorCDR_20' ) end [2025-04-16 00:51:18] Production.INFO: ProcessCDR(1,14917362,1,1,2) [2025-04-16 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917362', 'tblTempUsageDetail_20' ) start [2025-04-16 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917362', 'tblTempUsageDetail_20' ) end [2025-04-16 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:51:22] Production.INFO: ==26365== Releasing lock... [2025-04-16 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:51:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 00:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:52:04 [end_date_ymd] => 2025-04-16 00:52:04 [RateCDR] => 1 ) [2025-04-16 00:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 21:52:04' and `end` < '2025-04-16 00:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 00:52:17] Production.INFO: count ==129 [2025-04-16 00:52:17] Production.ERROR: pbx CDR StartTime 2025-04-15 21:52:04 - End Time 2025-04-16 00:52:04 [2025-04-16 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917367', 'tblTempUsageDetail_20' ) start [2025-04-16 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917367', 'tblTempUsageDetail_20' ) end [2025-04-16 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917367', 'tblTempVendorCDR_20' ) start [2025-04-16 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917367', 'tblTempVendorCDR_20' ) end [2025-04-16 00:52:17] Production.INFO: ProcessCDR(1,14917367,1,1,2) [2025-04-16 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917367', 'tblTempUsageDetail_20' ) start [2025-04-16 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917367', 'tblTempUsageDetail_20' ) end [2025-04-16 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:52:22] Production.INFO: ==26446== Releasing lock... [2025-04-16 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:52:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:53:05 [end_date_ymd] => 2025-04-16 00:53:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:53:05' and `end` < '2025-04-16 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-04-16 00:53:18] Production.INFO: count ==129 [2025-04-16 00:53:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:53:05 - End Time 2025-04-16 00:53:05 [2025-04-16 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917372', 'tblTempUsageDetail_20' ) start [2025-04-16 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917372', 'tblTempUsageDetail_20' ) end [2025-04-16 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917372', 'tblTempVendorCDR_20' ) start [2025-04-16 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917372', 'tblTempVendorCDR_20' ) end [2025-04-16 00:53:18] Production.INFO: ProcessCDR(1,14917372,1,1,2) [2025-04-16 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917372', 'tblTempUsageDetail_20' ) start [2025-04-16 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917372', 'tblTempUsageDetail_20' ) end [2025-04-16 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:53:21] Production.INFO: ==26519== Releasing lock... [2025-04-16 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 00:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:54:06 [end_date_ymd] => 2025-04-16 00:54:06 [RateCDR] => 1 ) [2025-04-16 00: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-04-15 21:54:06' and `end` < '2025-04-16 00: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-04-16 00:54:18] Production.INFO: count ==128 [2025-04-16 00:54:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:54:06 - End Time 2025-04-16 00:54:06 [2025-04-16 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917377', 'tblTempUsageDetail_20' ) start [2025-04-16 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917377', 'tblTempUsageDetail_20' ) end [2025-04-16 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917377', 'tblTempVendorCDR_20' ) start [2025-04-16 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917377', 'tblTempVendorCDR_20' ) end [2025-04-16 00:54:18] Production.INFO: ProcessCDR(1,14917377,1,1,2) [2025-04-16 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917377', 'tblTempUsageDetail_20' ) start [2025-04-16 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917377', 'tblTempUsageDetail_20' ) end [2025-04-16 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:54:21] Production.INFO: ==26599== Releasing lock... [2025-04-16 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:55:05 [end_date_ymd] => 2025-04-16 00:55:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:55:05' and `end` < '2025-04-16 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-04-16 00:55:17] Production.INFO: count ==127 [2025-04-16 00:55:17] Production.ERROR: pbx CDR StartTime 2025-04-15 21:55:05 - End Time 2025-04-16 00:55:05 [2025-04-16 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917382', 'tblTempUsageDetail_20' ) start [2025-04-16 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917382', 'tblTempUsageDetail_20' ) end [2025-04-16 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917382', 'tblTempVendorCDR_20' ) start [2025-04-16 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917382', 'tblTempVendorCDR_20' ) end [2025-04-16 00:55:17] Production.INFO: ProcessCDR(1,14917382,1,1,2) [2025-04-16 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917382', 'tblTempUsageDetail_20' ) start [2025-04-16 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917382', 'tblTempUsageDetail_20' ) end [2025-04-16 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:55:21] Production.INFO: ==26674== Releasing lock... [2025-04-16 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 00:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:56:06 [end_date_ymd] => 2025-04-16 00:56:06 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:56:06' and `end` < '2025-04-16 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-04-16 00:56:18] Production.INFO: count ==128 [2025-04-16 00:56:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:56:06 - End Time 2025-04-16 00:56:06 [2025-04-16 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917387', 'tblTempUsageDetail_20' ) start [2025-04-16 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917387', 'tblTempUsageDetail_20' ) end [2025-04-16 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917387', 'tblTempVendorCDR_20' ) start [2025-04-16 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917387', 'tblTempVendorCDR_20' ) end [2025-04-16 00:56:18] Production.INFO: ProcessCDR(1,14917387,1,1,2) [2025-04-16 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917387', 'tblTempUsageDetail_20' ) start [2025-04-16 00:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917387', 'tblTempUsageDetail_20' ) end [2025-04-16 00:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:56:23] Production.INFO: ==26752== Releasing lock... [2025-04-16 00:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:56:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 00:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:57:04 [end_date_ymd] => 2025-04-16 00:57:04 [RateCDR] => 1 ) [2025-04-16 00:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 21:57:04' and `end` < '2025-04-16 00:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 00:57:17] Production.INFO: count ==128 [2025-04-16 00:57:17] Production.ERROR: pbx CDR StartTime 2025-04-15 21:57:04 - End Time 2025-04-16 00:57:04 [2025-04-16 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917392', 'tblTempUsageDetail_20' ) start [2025-04-16 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917392', 'tblTempUsageDetail_20' ) end [2025-04-16 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917392', 'tblTempVendorCDR_20' ) start [2025-04-16 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917392', 'tblTempVendorCDR_20' ) end [2025-04-16 00:57:17] Production.INFO: ProcessCDR(1,14917392,1,1,2) [2025-04-16 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917392', 'tblTempUsageDetail_20' ) start [2025-04-16 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917392', 'tblTempUsageDetail_20' ) end [2025-04-16 00:57:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:57:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:57:20] Production.INFO: ==26821== Releasing lock... [2025-04-16 00:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:57:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:58:05 [end_date_ymd] => 2025-04-16 00:58:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:58:05' and `end` < '2025-04-16 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-04-16 00:58:18] Production.INFO: count ==128 [2025-04-16 00:58:18] Production.ERROR: pbx CDR StartTime 2025-04-15 21:58:05 - End Time 2025-04-16 00:58:05 [2025-04-16 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917397', 'tblTempUsageDetail_20' ) start [2025-04-16 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917397', 'tblTempUsageDetail_20' ) end [2025-04-16 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917397', 'tblTempVendorCDR_20' ) start [2025-04-16 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917397', 'tblTempVendorCDR_20' ) end [2025-04-16 00:58:18] Production.INFO: ProcessCDR(1,14917397,1,1,2) [2025-04-16 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917397', 'tblTempUsageDetail_20' ) start [2025-04-16 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917397', 'tblTempUsageDetail_20' ) end [2025-04-16 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:58:21] Production.INFO: ==26898== Releasing lock... [2025-04-16 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:58:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 21:59:05 [end_date_ymd] => 2025-04-16 00:59:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 21:59:05' and `end` < '2025-04-16 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-04-16 00:59:17] Production.INFO: count ==128 [2025-04-16 00:59:17] Production.ERROR: pbx CDR StartTime 2025-04-15 21:59:05 - End Time 2025-04-16 00:59:05 [2025-04-16 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917402', 'tblTempUsageDetail_20' ) start [2025-04-16 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917402', 'tblTempUsageDetail_20' ) end [2025-04-16 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917402', 'tblTempVendorCDR_20' ) start [2025-04-16 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917402', 'tblTempVendorCDR_20' ) end [2025-04-16 00:59:17] Production.INFO: ProcessCDR(1,14917402,1,1,2) [2025-04-16 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917402', 'tblTempUsageDetail_20' ) start [2025-04-16 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917402', 'tblTempUsageDetail_20' ) end [2025-04-16 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 00:59:21] Production.INFO: ==26973== Releasing lock... [2025-04-16 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 00:59:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:00:06 [end_date_ymd] => 2025-04-16 01:00:06 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:00:06' and `end` < '2025-04-16 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-04-16 01:00:18] Production.INFO: count ==135 [2025-04-16 01:00:19] Production.ERROR: pbx CDR StartTime 2025-04-15 22:00:06 - End Time 2025-04-16 01:00:06 [2025-04-16 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917408', 'tblTempUsageDetail_20' ) start [2025-04-16 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917408', 'tblTempUsageDetail_20' ) end [2025-04-16 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917408', 'tblTempVendorCDR_20' ) start [2025-04-16 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917408', 'tblTempVendorCDR_20' ) end [2025-04-16 01:00:19] Production.INFO: ProcessCDR(1,14917408,1,1,2) [2025-04-16 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917408', 'tblTempUsageDetail_20' ) start [2025-04-16 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917408', 'tblTempUsageDetail_20' ) end [2025-04-16 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:00:22] Production.INFO: ==27090== Releasing lock... [2025-04-16 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:00:22] Production.INFO: 29 MB #Memory Used# [2025-04-16 01:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:01:04 [end_date_ymd] => 2025-04-16 01:01:04 [RateCDR] => 1 ) [2025-04-16 01:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 22:01:04' and `end` < '2025-04-16 01:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 01:01:17] Production.INFO: count ==135 [2025-04-16 01:01:17] Production.ERROR: pbx CDR StartTime 2025-04-15 22:01:04 - End Time 2025-04-16 01:01:04 [2025-04-16 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917413', 'tblTempUsageDetail_20' ) start [2025-04-16 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917413', 'tblTempUsageDetail_20' ) end [2025-04-16 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917413', 'tblTempVendorCDR_20' ) start [2025-04-16 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917413', 'tblTempVendorCDR_20' ) end [2025-04-16 01:01:17] Production.INFO: ProcessCDR(1,14917413,1,1,2) [2025-04-16 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917413', 'tblTempUsageDetail_20' ) start [2025-04-16 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917413', 'tblTempUsageDetail_20' ) end [2025-04-16 01:01:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:01:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:01:20] Production.INFO: ==27183== Releasing lock... [2025-04-16 01:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:01:20] Production.INFO: 29 MB #Memory Used# [2025-04-16 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:02:05 [end_date_ymd] => 2025-04-16 01:02:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:02:05' and `end` < '2025-04-16 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-04-16 01:02:18] Production.INFO: count ==136 [2025-04-16 01:02:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:02:05 - End Time 2025-04-16 01:02:05 [2025-04-16 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917418', 'tblTempUsageDetail_20' ) start [2025-04-16 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917418', 'tblTempUsageDetail_20' ) end [2025-04-16 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917418', 'tblTempVendorCDR_20' ) start [2025-04-16 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917418', 'tblTempVendorCDR_20' ) end [2025-04-16 01:02:18] Production.INFO: ProcessCDR(1,14917418,1,1,2) [2025-04-16 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917418', 'tblTempUsageDetail_20' ) start [2025-04-16 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917418', 'tblTempUsageDetail_20' ) end [2025-04-16 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:02:22] Production.INFO: ==27253== Releasing lock... [2025-04-16 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:02:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:03:05 [end_date_ymd] => 2025-04-16 01:03:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:03:05' and `end` < '2025-04-16 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-04-16 01:03:17] Production.INFO: count ==151 [2025-04-16 01:03:17] Production.ERROR: pbx CDR StartTime 2025-04-15 22:03:05 - End Time 2025-04-16 01:03:05 [2025-04-16 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917423', 'tblTempUsageDetail_20' ) start [2025-04-16 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917423', 'tblTempUsageDetail_20' ) end [2025-04-16 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917423', 'tblTempVendorCDR_20' ) start [2025-04-16 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917423', 'tblTempVendorCDR_20' ) end [2025-04-16 01:03:17] Production.INFO: ProcessCDR(1,14917423,1,1,2) [2025-04-16 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917423', 'tblTempUsageDetail_20' ) start [2025-04-16 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917423', 'tblTempUsageDetail_20' ) end [2025-04-16 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:03:21] Production.INFO: ==27330== Releasing lock... [2025-04-16 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:03:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:04:05 [end_date_ymd] => 2025-04-16 01:04:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:04:05' and `end` < '2025-04-16 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-04-16 01:04:17] Production.INFO: count ==151 [2025-04-16 01:04:17] Production.ERROR: pbx CDR StartTime 2025-04-15 22:04:05 - End Time 2025-04-16 01:04:05 [2025-04-16 01:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917428', 'tblTempUsageDetail_20' ) start [2025-04-16 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917428', 'tblTempUsageDetail_20' ) end [2025-04-16 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917428', 'tblTempVendorCDR_20' ) start [2025-04-16 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917428', 'tblTempVendorCDR_20' ) end [2025-04-16 01:04:18] Production.INFO: ProcessCDR(1,14917428,1,1,2) [2025-04-16 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917428', 'tblTempUsageDetail_20' ) start [2025-04-16 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917428', 'tblTempUsageDetail_20' ) end [2025-04-16 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:04:21] Production.INFO: ==27406== Releasing lock... [2025-04-16 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:04:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:05:06 [end_date_ymd] => 2025-04-16 01:05:06 [RateCDR] => 1 ) [2025-04-16 01: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-04-15 22:05:06' and `end` < '2025-04-16 01: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-04-16 01:05:18] Production.INFO: count ==152 [2025-04-16 01:05:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:05:06 - End Time 2025-04-16 01:05:06 [2025-04-16 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917433', 'tblTempUsageDetail_20' ) start [2025-04-16 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917433', 'tblTempUsageDetail_20' ) end [2025-04-16 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917433', 'tblTempVendorCDR_20' ) start [2025-04-16 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917433', 'tblTempVendorCDR_20' ) end [2025-04-16 01:05:18] Production.INFO: ProcessCDR(1,14917433,1,1,2) [2025-04-16 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917433', 'tblTempUsageDetail_20' ) start [2025-04-16 01:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917433', 'tblTempUsageDetail_20' ) end [2025-04-16 01:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:05:23] Production.INFO: ==27484== Releasing lock... [2025-04-16 01:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:05:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:06:05 [end_date_ymd] => 2025-04-16 01:06:05 [RateCDR] => 1 ) [2025-04-16 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 22:06:05' and `end` < '2025-04-16 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 01:06:18] Production.INFO: count ==152 [2025-04-16 01:06:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:06:05 - End Time 2025-04-16 01:06:05 [2025-04-16 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917438', 'tblTempUsageDetail_20' ) start [2025-04-16 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917438', 'tblTempUsageDetail_20' ) end [2025-04-16 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917438', 'tblTempVendorCDR_20' ) start [2025-04-16 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917438', 'tblTempVendorCDR_20' ) end [2025-04-16 01:06:18] Production.INFO: ProcessCDR(1,14917438,1,1,2) [2025-04-16 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917438', 'tblTempUsageDetail_20' ) start [2025-04-16 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917438', 'tblTempUsageDetail_20' ) end [2025-04-16 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:06:21] Production.INFO: ==27554== Releasing lock... [2025-04-16 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:07:06 [end_date_ymd] => 2025-04-16 01:07:06 [RateCDR] => 1 ) [2025-04-16 01: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-04-15 22:07:06' and `end` < '2025-04-16 01: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-04-16 01:07:18] Production.INFO: count ==152 [2025-04-16 01:07:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:07:06 - End Time 2025-04-16 01:07:06 [2025-04-16 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917443', 'tblTempUsageDetail_20' ) start [2025-04-16 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917443', 'tblTempUsageDetail_20' ) end [2025-04-16 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917443', 'tblTempVendorCDR_20' ) start [2025-04-16 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917443', 'tblTempVendorCDR_20' ) end [2025-04-16 01:07:18] Production.INFO: ProcessCDR(1,14917443,1,1,2) [2025-04-16 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917443', 'tblTempUsageDetail_20' ) start [2025-04-16 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917443', 'tblTempUsageDetail_20' ) end [2025-04-16 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:07:22] Production.INFO: ==27624== Releasing lock... [2025-04-16 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:07:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:08:05 [end_date_ymd] => 2025-04-16 01:08:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:08:05' and `end` < '2025-04-16 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-04-16 01:08:17] Production.INFO: count ==151 [2025-04-16 01:08:17] Production.ERROR: pbx CDR StartTime 2025-04-15 22:08:05 - End Time 2025-04-16 01:08:05 [2025-04-16 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917448', 'tblTempUsageDetail_20' ) start [2025-04-16 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917448', 'tblTempUsageDetail_20' ) end [2025-04-16 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917448', 'tblTempVendorCDR_20' ) start [2025-04-16 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917448', 'tblTempVendorCDR_20' ) end [2025-04-16 01:08:17] Production.INFO: ProcessCDR(1,14917448,1,1,2) [2025-04-16 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917448', 'tblTempUsageDetail_20' ) start [2025-04-16 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917448', 'tblTempUsageDetail_20' ) end [2025-04-16 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:08:21] Production.INFO: ==27693== Releasing lock... [2025-04-16 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:09:05 [end_date_ymd] => 2025-04-16 01:09:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:09:05' and `end` < '2025-04-16 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-04-16 01:09:18] Production.INFO: count ==151 [2025-04-16 01:09:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:09:05 - End Time 2025-04-16 01:09:05 [2025-04-16 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917453', 'tblTempUsageDetail_20' ) start [2025-04-16 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917453', 'tblTempUsageDetail_20' ) end [2025-04-16 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917453', 'tblTempVendorCDR_20' ) start [2025-04-16 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917453', 'tblTempVendorCDR_20' ) end [2025-04-16 01:09:18] Production.INFO: ProcessCDR(1,14917453,1,1,2) [2025-04-16 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917453', 'tblTempUsageDetail_20' ) start [2025-04-16 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917453', 'tblTempUsageDetail_20' ) end [2025-04-16 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:09:21] Production.INFO: ==27772== Releasing lock... [2025-04-16 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:09:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:10:06 [end_date_ymd] => 2025-04-16 01:10:06 [RateCDR] => 1 ) [2025-04-16 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 22:10:06' and `end` < '2025-04-16 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 01:10:18] Production.INFO: count ==158 [2025-04-16 01:10:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:10:06 - End Time 2025-04-16 01:10:06 [2025-04-16 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917459', 'tblTempUsageDetail_20' ) start [2025-04-16 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917459', 'tblTempUsageDetail_20' ) end [2025-04-16 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917459', 'tblTempVendorCDR_20' ) start [2025-04-16 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917459', 'tblTempVendorCDR_20' ) end [2025-04-16 01:10:18] Production.INFO: ProcessCDR(1,14917459,1,1,2) [2025-04-16 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917459', 'tblTempUsageDetail_20' ) start [2025-04-16 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917459', 'tblTempUsageDetail_20' ) end [2025-04-16 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:10:22] Production.INFO: ==27853== Releasing lock... [2025-04-16 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:10:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:11:06 [end_date_ymd] => 2025-04-16 01:11:06 [RateCDR] => 1 ) [2025-04-16 01: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-04-15 22:11:06' and `end` < '2025-04-16 01: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-04-16 01:11:18] Production.INFO: count ==160 [2025-04-16 01:11:19] Production.ERROR: pbx CDR StartTime 2025-04-15 22:11:06 - End Time 2025-04-16 01:11:06 [2025-04-16 01:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917464', 'tblTempUsageDetail_20' ) start [2025-04-16 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917464', 'tblTempUsageDetail_20' ) end [2025-04-16 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917464', 'tblTempVendorCDR_20' ) start [2025-04-16 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917464', 'tblTempVendorCDR_20' ) end [2025-04-16 01:11:19] Production.INFO: ProcessCDR(1,14917464,1,1,2) [2025-04-16 01:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917464', 'tblTempUsageDetail_20' ) start [2025-04-16 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917464', 'tblTempUsageDetail_20' ) end [2025-04-16 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:11:22] Production.INFO: ==27928== Releasing lock... [2025-04-16 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:11:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:12:05 [end_date_ymd] => 2025-04-16 01:12:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:12:05' and `end` < '2025-04-16 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-04-16 01:12:18] Production.INFO: count ==165 [2025-04-16 01:12:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:12:05 - End Time 2025-04-16 01:12:05 [2025-04-16 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917469', 'tblTempUsageDetail_20' ) start [2025-04-16 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917469', 'tblTempUsageDetail_20' ) end [2025-04-16 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917469', 'tblTempVendorCDR_20' ) start [2025-04-16 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917469', 'tblTempVendorCDR_20' ) end [2025-04-16 01:12:18] Production.INFO: ProcessCDR(1,14917469,1,1,2) [2025-04-16 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917469', 'tblTempUsageDetail_20' ) start [2025-04-16 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917469', 'tblTempUsageDetail_20' ) end [2025-04-16 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:12:21] Production.INFO: ==28000== Releasing lock... [2025-04-16 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:12:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:13:05 [end_date_ymd] => 2025-04-16 01:13:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:13:05' and `end` < '2025-04-16 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-04-16 01:13:18] Production.INFO: count ==165 [2025-04-16 01:13:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:13:05 - End Time 2025-04-16 01:13:05 [2025-04-16 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917474', 'tblTempUsageDetail_20' ) start [2025-04-16 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917474', 'tblTempUsageDetail_20' ) end [2025-04-16 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917474', 'tblTempVendorCDR_20' ) start [2025-04-16 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917474', 'tblTempVendorCDR_20' ) end [2025-04-16 01:13:18] Production.INFO: ProcessCDR(1,14917474,1,1,2) [2025-04-16 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917474', 'tblTempUsageDetail_20' ) start [2025-04-16 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917474', 'tblTempUsageDetail_20' ) end [2025-04-16 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:13:21] Production.INFO: ==28074== Releasing lock... [2025-04-16 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:14:05 [end_date_ymd] => 2025-04-16 01:14:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:14:05' and `end` < '2025-04-16 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-04-16 01:14:17] Production.INFO: count ==165 [2025-04-16 01:14:17] Production.ERROR: pbx CDR StartTime 2025-04-15 22:14:05 - End Time 2025-04-16 01:14:05 [2025-04-16 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917479', 'tblTempUsageDetail_20' ) start [2025-04-16 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917479', 'tblTempUsageDetail_20' ) end [2025-04-16 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917479', 'tblTempVendorCDR_20' ) start [2025-04-16 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917479', 'tblTempVendorCDR_20' ) end [2025-04-16 01:14:17] Production.INFO: ProcessCDR(1,14917479,1,1,2) [2025-04-16 01:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917479', 'tblTempUsageDetail_20' ) start [2025-04-16 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917479', 'tblTempUsageDetail_20' ) end [2025-04-16 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:14:21] Production.INFO: ==28148== Releasing lock... [2025-04-16 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:15:06 [end_date_ymd] => 2025-04-16 01:15:06 [RateCDR] => 1 ) [2025-04-16 01: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-04-15 22:15:06' and `end` < '2025-04-16 01: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-04-16 01:15:18] Production.INFO: count ==164 [2025-04-16 01:15:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:15:06 - End Time 2025-04-16 01:15:06 [2025-04-16 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917484', 'tblTempUsageDetail_20' ) start [2025-04-16 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917484', 'tblTempUsageDetail_20' ) end [2025-04-16 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917484', 'tblTempVendorCDR_20' ) start [2025-04-16 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917484', 'tblTempVendorCDR_20' ) end [2025-04-16 01:15:18] Production.INFO: ProcessCDR(1,14917484,1,1,2) [2025-04-16 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917484', 'tblTempUsageDetail_20' ) start [2025-04-16 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917484', 'tblTempUsageDetail_20' ) end [2025-04-16 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:15:22] Production.INFO: ==28230== Releasing lock... [2025-04-16 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:15:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:16:05 [end_date_ymd] => 2025-04-16 01:16:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:16:05' and `end` < '2025-04-16 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-04-16 01:16:18] Production.INFO: count ==163 [2025-04-16 01:16:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:16:05 - End Time 2025-04-16 01:16:05 [2025-04-16 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917489', 'tblTempUsageDetail_20' ) start [2025-04-16 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917489', 'tblTempUsageDetail_20' ) end [2025-04-16 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917489', 'tblTempVendorCDR_20' ) start [2025-04-16 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917489', 'tblTempVendorCDR_20' ) end [2025-04-16 01:16:18] Production.INFO: ProcessCDR(1,14917489,1,1,2) [2025-04-16 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917489', 'tblTempUsageDetail_20' ) start [2025-04-16 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917489', 'tblTempUsageDetail_20' ) end [2025-04-16 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:16:21] Production.INFO: ==28343== Releasing lock... [2025-04-16 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:17:05 [end_date_ymd] => 2025-04-16 01:17:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:17:05' and `end` < '2025-04-16 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-04-16 01:17:17] Production.INFO: count ==163 [2025-04-16 01:17:17] Production.ERROR: pbx CDR StartTime 2025-04-15 22:17:05 - End Time 2025-04-16 01:17:05 [2025-04-16 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917494', 'tblTempUsageDetail_20' ) start [2025-04-16 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917494', 'tblTempUsageDetail_20' ) end [2025-04-16 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917494', 'tblTempVendorCDR_20' ) start [2025-04-16 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917494', 'tblTempVendorCDR_20' ) end [2025-04-16 01:17:17] Production.INFO: ProcessCDR(1,14917494,1,1,2) [2025-04-16 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917494', 'tblTempUsageDetail_20' ) start [2025-04-16 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917494', 'tblTempUsageDetail_20' ) end [2025-04-16 01:17:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:17:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:17:20] Production.INFO: ==28419== Releasing lock... [2025-04-16 01:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:17:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:18:05 [end_date_ymd] => 2025-04-16 01:18:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:18:05' and `end` < '2025-04-16 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-04-16 01:18:17] Production.INFO: count ==163 [2025-04-16 01:18:17] Production.ERROR: pbx CDR StartTime 2025-04-15 22:18:05 - End Time 2025-04-16 01:18:05 [2025-04-16 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917498', 'tblTempUsageDetail_20' ) start [2025-04-16 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917498', 'tblTempUsageDetail_20' ) end [2025-04-16 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917498', 'tblTempVendorCDR_20' ) start [2025-04-16 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917498', 'tblTempVendorCDR_20' ) end [2025-04-16 01:18:17] Production.INFO: ProcessCDR(1,14917498,1,1,2) [2025-04-16 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917498', 'tblTempUsageDetail_20' ) start [2025-04-16 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917498', 'tblTempUsageDetail_20' ) end [2025-04-16 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:18:21] Production.INFO: ==28508== Releasing lock... [2025-04-16 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:19:04 [end_date_ymd] => 2025-04-16 01:19:04 [RateCDR] => 1 ) [2025-04-16 01:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 22:19:04' and `end` < '2025-04-16 01:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 01:19:17] Production.INFO: count ==164 [2025-04-16 01:19:17] Production.ERROR: pbx CDR StartTime 2025-04-15 22:19:04 - End Time 2025-04-16 01:19:04 [2025-04-16 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917504', 'tblTempUsageDetail_20' ) start [2025-04-16 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917504', 'tblTempUsageDetail_20' ) end [2025-04-16 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917504', 'tblTempVendorCDR_20' ) start [2025-04-16 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917504', 'tblTempVendorCDR_20' ) end [2025-04-16 01:19:17] Production.INFO: ProcessCDR(1,14917504,1,1,2) [2025-04-16 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917504', 'tblTempUsageDetail_20' ) start [2025-04-16 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917504', 'tblTempUsageDetail_20' ) end [2025-04-16 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:19:22] Production.INFO: ==28578== Releasing lock... [2025-04-16 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:19:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:20:06 [end_date_ymd] => 2025-04-16 01:20:06 [RateCDR] => 1 ) [2025-04-16 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 22:20:06' and `end` < '2025-04-16 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 01:20:19] Production.INFO: count ==172 [2025-04-16 01:20:19] Production.ERROR: pbx CDR StartTime 2025-04-15 22:20:06 - End Time 2025-04-16 01:20:06 [2025-04-16 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917510', 'tblTempUsageDetail_20' ) start [2025-04-16 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917510', 'tblTempUsageDetail_20' ) end [2025-04-16 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917510', 'tblTempVendorCDR_20' ) start [2025-04-16 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917510', 'tblTempVendorCDR_20' ) end [2025-04-16 01:20:19] Production.INFO: ProcessCDR(1,14917510,1,1,2) [2025-04-16 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917510', 'tblTempUsageDetail_20' ) start [2025-04-16 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917510', 'tblTempUsageDetail_20' ) end [2025-04-16 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:20:22] Production.INFO: ==28654== Releasing lock... [2025-04-16 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:21:04 [end_date_ymd] => 2025-04-16 01:21:04 [RateCDR] => 1 ) [2025-04-16 01:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 22:21:04' and `end` < '2025-04-16 01:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 01:21:17] Production.INFO: count ==172 [2025-04-16 01:21:17] Production.ERROR: pbx CDR StartTime 2025-04-15 22:21:04 - End Time 2025-04-16 01:21:04 [2025-04-16 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917515', 'tblTempUsageDetail_20' ) start [2025-04-16 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917515', 'tblTempUsageDetail_20' ) end [2025-04-16 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917515', 'tblTempVendorCDR_20' ) start [2025-04-16 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917515', 'tblTempVendorCDR_20' ) end [2025-04-16 01:21:17] Production.INFO: ProcessCDR(1,14917515,1,1,2) [2025-04-16 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917515', 'tblTempUsageDetail_20' ) start [2025-04-16 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917515', 'tblTempUsageDetail_20' ) end [2025-04-16 01:21:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:21:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:21:20] Production.INFO: ==28729== Releasing lock... [2025-04-16 01:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:21:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:22:05 [end_date_ymd] => 2025-04-16 01:22:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:22:05' and `end` < '2025-04-16 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-04-16 01:22:18] Production.INFO: count ==171 [2025-04-16 01:22:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:22:05 - End Time 2025-04-16 01:22:05 [2025-04-16 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917520', 'tblTempUsageDetail_20' ) start [2025-04-16 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917520', 'tblTempUsageDetail_20' ) end [2025-04-16 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917520', 'tblTempVendorCDR_20' ) start [2025-04-16 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917520', 'tblTempVendorCDR_20' ) end [2025-04-16 01:22:18] Production.INFO: ProcessCDR(1,14917520,1,1,2) [2025-04-16 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917520', 'tblTempUsageDetail_20' ) start [2025-04-16 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917520', 'tblTempUsageDetail_20' ) end [2025-04-16 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:22:21] Production.INFO: ==28800== Releasing lock... [2025-04-16 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:23:05 [end_date_ymd] => 2025-04-16 01:23:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:23:05' and `end` < '2025-04-16 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-04-16 01:23:18] Production.INFO: count ==172 [2025-04-16 01:23:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:23:05 - End Time 2025-04-16 01:23:05 [2025-04-16 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917525', 'tblTempUsageDetail_20' ) start [2025-04-16 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917525', 'tblTempUsageDetail_20' ) end [2025-04-16 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917525', 'tblTempVendorCDR_20' ) start [2025-04-16 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917525', 'tblTempVendorCDR_20' ) end [2025-04-16 01:23:18] Production.INFO: ProcessCDR(1,14917525,1,1,2) [2025-04-16 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917525', 'tblTempUsageDetail_20' ) start [2025-04-16 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917525', 'tblTempUsageDetail_20' ) end [2025-04-16 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:23:22] Production.INFO: ==28876== Releasing lock... [2025-04-16 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:23:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:24:05 [end_date_ymd] => 2025-04-16 01:24:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:24:05' and `end` < '2025-04-16 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-04-16 01:24:17] Production.INFO: count ==172 [2025-04-16 01:24:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:24:05 - End Time 2025-04-16 01:24:05 [2025-04-16 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917530', 'tblTempUsageDetail_20' ) start [2025-04-16 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917530', 'tblTempUsageDetail_20' ) end [2025-04-16 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917530', 'tblTempVendorCDR_20' ) start [2025-04-16 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917530', 'tblTempVendorCDR_20' ) end [2025-04-16 01:24:18] Production.INFO: ProcessCDR(1,14917530,1,1,2) [2025-04-16 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917530', 'tblTempUsageDetail_20' ) start [2025-04-16 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917530', 'tblTempUsageDetail_20' ) end [2025-04-16 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:24:22] Production.INFO: ==28948== Releasing lock... [2025-04-16 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:24:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:25:05 [end_date_ymd] => 2025-04-16 01:25:05 [RateCDR] => 1 ) [2025-04-16 01: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-04-15 22:25:05' and `end` < '2025-04-16 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-04-16 01:25:18] Production.INFO: count ==172 [2025-04-16 01:25:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:25:05 - End Time 2025-04-16 01:25:05 [2025-04-16 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917535', 'tblTempUsageDetail_20' ) start [2025-04-16 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917535', 'tblTempUsageDetail_20' ) end [2025-04-16 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917535', 'tblTempVendorCDR_20' ) start [2025-04-16 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917535', 'tblTempVendorCDR_20' ) end [2025-04-16 01:25:18] Production.INFO: ProcessCDR(1,14917535,1,1,2) [2025-04-16 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917535', 'tblTempUsageDetail_20' ) start [2025-04-16 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917535', 'tblTempUsageDetail_20' ) end [2025-04-16 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:25:21] Production.INFO: ==29026== Releasing lock... [2025-04-16 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:26:04 [end_date_ymd] => 2025-04-16 01:26:04 [RateCDR] => 1 ) [2025-04-16 01:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 22:26:04' and `end` < '2025-04-16 01:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 01:26:17] Production.INFO: count ==172 [2025-04-16 01:26:17] Production.ERROR: pbx CDR StartTime 2025-04-15 22:26:04 - End Time 2025-04-16 01:26:04 [2025-04-16 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917540', 'tblTempUsageDetail_20' ) start [2025-04-16 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917540', 'tblTempUsageDetail_20' ) end [2025-04-16 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917540', 'tblTempVendorCDR_20' ) start [2025-04-16 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917540', 'tblTempVendorCDR_20' ) end [2025-04-16 01:26:17] Production.INFO: ProcessCDR(1,14917540,1,1,2) [2025-04-16 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917540', 'tblTempUsageDetail_20' ) start [2025-04-16 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917540', 'tblTempUsageDetail_20' ) end [2025-04-16 01:26:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:26:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:26:20] Production.INFO: ==29098== Releasing lock... [2025-04-16 01:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:26:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:27:05 [end_date_ymd] => 2025-04-16 01:27:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:27:05' and `end` < '2025-04-16 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-04-16 01:27:18] Production.INFO: count ==172 [2025-04-16 01:27:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:27:05 - End Time 2025-04-16 01:27:05 [2025-04-16 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917545', 'tblTempUsageDetail_20' ) start [2025-04-16 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917545', 'tblTempUsageDetail_20' ) end [2025-04-16 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917545', 'tblTempVendorCDR_20' ) start [2025-04-16 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917545', 'tblTempVendorCDR_20' ) end [2025-04-16 01:27:18] Production.INFO: ProcessCDR(1,14917545,1,1,2) [2025-04-16 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917545', 'tblTempUsageDetail_20' ) start [2025-04-16 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917545', 'tblTempUsageDetail_20' ) end [2025-04-16 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:27:21] Production.INFO: ==29169== Releasing lock... [2025-04-16 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:28:06 [end_date_ymd] => 2025-04-16 01:28:06 [RateCDR] => 1 ) [2025-04-16 01: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-04-15 22:28:06' and `end` < '2025-04-16 01: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-04-16 01:28:18] Production.INFO: count ==172 [2025-04-16 01:28:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:28:06 - End Time 2025-04-16 01:28:06 [2025-04-16 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917550', 'tblTempUsageDetail_20' ) start [2025-04-16 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917550', 'tblTempUsageDetail_20' ) end [2025-04-16 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917550', 'tblTempVendorCDR_20' ) start [2025-04-16 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917550', 'tblTempVendorCDR_20' ) end [2025-04-16 01:28:18] Production.INFO: ProcessCDR(1,14917550,1,1,2) [2025-04-16 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917550', 'tblTempUsageDetail_20' ) start [2025-04-16 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917550', 'tblTempUsageDetail_20' ) end [2025-04-16 01:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:28:22] Production.INFO: ==29247== Releasing lock... [2025-04-16 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:28:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:29:05 [end_date_ymd] => 2025-04-16 01:29:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:29:05' and `end` < '2025-04-16 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-04-16 01:29:17] Production.INFO: count ==172 [2025-04-16 01:29:17] Production.ERROR: pbx CDR StartTime 2025-04-15 22:29:05 - End Time 2025-04-16 01:29:05 [2025-04-16 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917555', 'tblTempUsageDetail_20' ) start [2025-04-16 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917555', 'tblTempUsageDetail_20' ) end [2025-04-16 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917555', 'tblTempVendorCDR_20' ) start [2025-04-16 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917555', 'tblTempVendorCDR_20' ) end [2025-04-16 01:29:17] Production.INFO: ProcessCDR(1,14917555,1,1,2) [2025-04-16 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917555', 'tblTempUsageDetail_20' ) start [2025-04-16 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917555', 'tblTempUsageDetail_20' ) end [2025-04-16 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:29:21] Production.INFO: ==29316== Releasing lock... [2025-04-16 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:30:06 [end_date_ymd] => 2025-04-16 01:30:06 [RateCDR] => 1 ) [2025-04-16 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 22:30:06' and `end` < '2025-04-16 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 01:30:19] Production.INFO: count ==179 [2025-04-16 01:30:19] Production.ERROR: pbx CDR StartTime 2025-04-15 22:30:06 - End Time 2025-04-16 01:30:06 [2025-04-16 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917560', 'tblTempUsageDetail_20' ) start [2025-04-16 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917560', 'tblTempUsageDetail_20' ) end [2025-04-16 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917560', 'tblTempVendorCDR_20' ) start [2025-04-16 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917560', 'tblTempVendorCDR_20' ) end [2025-04-16 01:30:19] Production.INFO: ProcessCDR(1,14917560,1,1,2) [2025-04-16 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917560', 'tblTempUsageDetail_20' ) start [2025-04-16 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917560', 'tblTempUsageDetail_20' ) end [2025-04-16 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:30:22] Production.INFO: ==29393== Releasing lock... [2025-04-16 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:31:05 [end_date_ymd] => 2025-04-16 01:31:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:31:05' and `end` < '2025-04-16 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-04-16 01:31:18] Production.INFO: count ==178 [2025-04-16 01:31:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:31:05 - End Time 2025-04-16 01:31:05 [2025-04-16 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917566', 'tblTempUsageDetail_20' ) start [2025-04-16 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917566', 'tblTempUsageDetail_20' ) end [2025-04-16 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917566', 'tblTempVendorCDR_20' ) start [2025-04-16 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917566', 'tblTempVendorCDR_20' ) end [2025-04-16 01:31:18] Production.INFO: ProcessCDR(1,14917566,1,1,2) [2025-04-16 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917566', 'tblTempUsageDetail_20' ) start [2025-04-16 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917566', 'tblTempUsageDetail_20' ) end [2025-04-16 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:31:21] Production.INFO: ==29509== Releasing lock... [2025-04-16 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:32:05 [end_date_ymd] => 2025-04-16 01:32:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:32:05' and `end` < '2025-04-16 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-04-16 01:32:18] Production.INFO: count ==177 [2025-04-16 01:32:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:32:05 - End Time 2025-04-16 01:32:05 [2025-04-16 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917571', 'tblTempUsageDetail_20' ) start [2025-04-16 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917571', 'tblTempUsageDetail_20' ) end [2025-04-16 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917571', 'tblTempVendorCDR_20' ) start [2025-04-16 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917571', 'tblTempVendorCDR_20' ) end [2025-04-16 01:32:18] Production.INFO: ProcessCDR(1,14917571,1,1,2) [2025-04-16 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917571', 'tblTempUsageDetail_20' ) start [2025-04-16 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917571', 'tblTempUsageDetail_20' ) end [2025-04-16 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:32:21] Production.INFO: ==29580== Releasing lock... [2025-04-16 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:32:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:33:05 [end_date_ymd] => 2025-04-16 01:33:05 [RateCDR] => 1 ) [2025-04-16 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 22:33:05' and `end` < '2025-04-16 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 01:33:17] Production.INFO: count ==177 [2025-04-16 01:33:17] Production.ERROR: pbx CDR StartTime 2025-04-15 22:33:05 - End Time 2025-04-16 01:33:05 [2025-04-16 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917576', 'tblTempUsageDetail_20' ) start [2025-04-16 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917576', 'tblTempUsageDetail_20' ) end [2025-04-16 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917576', 'tblTempVendorCDR_20' ) start [2025-04-16 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917576', 'tblTempVendorCDR_20' ) end [2025-04-16 01:33:17] Production.INFO: ProcessCDR(1,14917576,1,1,2) [2025-04-16 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917576', 'tblTempUsageDetail_20' ) start [2025-04-16 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917576', 'tblTempUsageDetail_20' ) end [2025-04-16 01:33:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:33:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:33:20] Production.INFO: ==29651== Releasing lock... [2025-04-16 01:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:33:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:34:05 [end_date_ymd] => 2025-04-16 01:34:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:34:05' and `end` < '2025-04-16 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-04-16 01:34:18] Production.INFO: count ==179 [2025-04-16 01:34:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:34:05 - End Time 2025-04-16 01:34:05 [2025-04-16 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917581', 'tblTempUsageDetail_20' ) start [2025-04-16 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917581', 'tblTempUsageDetail_20' ) end [2025-04-16 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917581', 'tblTempVendorCDR_20' ) start [2025-04-16 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917581', 'tblTempVendorCDR_20' ) end [2025-04-16 01:34:18] Production.INFO: ProcessCDR(1,14917581,1,1,2) [2025-04-16 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917581', 'tblTempUsageDetail_20' ) start [2025-04-16 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917581', 'tblTempUsageDetail_20' ) end [2025-04-16 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:34:21] Production.INFO: ==29721== Releasing lock... [2025-04-16 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:34:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:35:04 [end_date_ymd] => 2025-04-16 01:35:04 [RateCDR] => 1 ) [2025-04-16 01:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 22:35:04' and `end` < '2025-04-16 01:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 01:35:17] Production.INFO: count ==180 [2025-04-16 01:35:17] Production.ERROR: pbx CDR StartTime 2025-04-15 22:35:04 - End Time 2025-04-16 01:35:04 [2025-04-16 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917586', 'tblTempUsageDetail_20' ) start [2025-04-16 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917586', 'tblTempUsageDetail_20' ) end [2025-04-16 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917586', 'tblTempVendorCDR_20' ) start [2025-04-16 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917586', 'tblTempVendorCDR_20' ) end [2025-04-16 01:35:17] Production.INFO: ProcessCDR(1,14917586,1,1,2) [2025-04-16 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917586', 'tblTempUsageDetail_20' ) start [2025-04-16 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917586', 'tblTempUsageDetail_20' ) end [2025-04-16 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:35:22] Production.INFO: ==29789== Releasing lock... [2025-04-16 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:35:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:36:05 [end_date_ymd] => 2025-04-16 01:36:05 [RateCDR] => 1 ) [2025-04-16 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 22:36:05' and `end` < '2025-04-16 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 01:36:17] Production.INFO: count ==180 [2025-04-16 01:36:17] Production.ERROR: pbx CDR StartTime 2025-04-15 22:36:05 - End Time 2025-04-16 01:36:05 [2025-04-16 01:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917591', 'tblTempUsageDetail_20' ) start [2025-04-16 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917591', 'tblTempUsageDetail_20' ) end [2025-04-16 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917591', 'tblTempVendorCDR_20' ) start [2025-04-16 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917591', 'tblTempVendorCDR_20' ) end [2025-04-16 01:36:17] Production.INFO: ProcessCDR(1,14917591,1,1,2) [2025-04-16 01:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917591', 'tblTempUsageDetail_20' ) start [2025-04-16 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917591', 'tblTempUsageDetail_20' ) end [2025-04-16 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:36:21] Production.INFO: ==29863== Releasing lock... [2025-04-16 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:36:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:37:06 [end_date_ymd] => 2025-04-16 01:37:06 [RateCDR] => 1 ) [2025-04-16 01: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-04-15 22:37:06' and `end` < '2025-04-16 01: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-04-16 01:37:18] Production.INFO: count ==178 [2025-04-16 01:37:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:37:06 - End Time 2025-04-16 01:37:06 [2025-04-16 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917596', 'tblTempUsageDetail_20' ) start [2025-04-16 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917596', 'tblTempUsageDetail_20' ) end [2025-04-16 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917596', 'tblTempVendorCDR_20' ) start [2025-04-16 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917596', 'tblTempVendorCDR_20' ) end [2025-04-16 01:37:18] Production.INFO: ProcessCDR(1,14917596,1,1,2) [2025-04-16 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917596', 'tblTempUsageDetail_20' ) start [2025-04-16 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917596', 'tblTempUsageDetail_20' ) end [2025-04-16 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:37:22] Production.INFO: ==29942== Releasing lock... [2025-04-16 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:37:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:38:05 [end_date_ymd] => 2025-04-16 01:38:05 [RateCDR] => 1 ) [2025-04-16 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 22:38:05' and `end` < '2025-04-16 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 01:38:17] Production.INFO: count ==178 [2025-04-16 01:38:17] Production.ERROR: pbx CDR StartTime 2025-04-15 22:38:05 - End Time 2025-04-16 01:38:05 [2025-04-16 01:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917601', 'tblTempUsageDetail_20' ) start [2025-04-16 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917601', 'tblTempUsageDetail_20' ) end [2025-04-16 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917601', 'tblTempVendorCDR_20' ) start [2025-04-16 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917601', 'tblTempVendorCDR_20' ) end [2025-04-16 01:38:17] Production.INFO: ProcessCDR(1,14917601,1,1,2) [2025-04-16 01:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917601', 'tblTempUsageDetail_20' ) start [2025-04-16 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917601', 'tblTempUsageDetail_20' ) end [2025-04-16 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:38:21] Production.INFO: ==30019== Releasing lock... [2025-04-16 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:38:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:39:05 [end_date_ymd] => 2025-04-16 01:39:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:39:05' and `end` < '2025-04-16 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-04-16 01:39:18] Production.INFO: count ==178 [2025-04-16 01:39:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:39:05 - End Time 2025-04-16 01:39:05 [2025-04-16 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917606', 'tblTempUsageDetail_20' ) start [2025-04-16 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917606', 'tblTempUsageDetail_20' ) end [2025-04-16 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917606', 'tblTempVendorCDR_20' ) start [2025-04-16 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917606', 'tblTempVendorCDR_20' ) end [2025-04-16 01:39:18] Production.INFO: ProcessCDR(1,14917606,1,1,2) [2025-04-16 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917606', 'tblTempUsageDetail_20' ) start [2025-04-16 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917606', 'tblTempUsageDetail_20' ) end [2025-04-16 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:39:21] Production.INFO: ==30095== Releasing lock... [2025-04-16 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:39:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:40:05 [end_date_ymd] => 2025-04-16 01:40:05 [RateCDR] => 1 ) [2025-04-16 01:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 22:40:05' and `end` < '2025-04-16 01:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 01:40:18] Production.INFO: count ==178 [2025-04-16 01:40:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:40:05 - End Time 2025-04-16 01:40:05 [2025-04-16 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917612', 'tblTempUsageDetail_20' ) start [2025-04-16 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917612', 'tblTempUsageDetail_20' ) end [2025-04-16 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917612', 'tblTempVendorCDR_20' ) start [2025-04-16 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917612', 'tblTempVendorCDR_20' ) end [2025-04-16 01:40:18] Production.INFO: ProcessCDR(1,14917612,1,1,2) [2025-04-16 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917612', 'tblTempUsageDetail_20' ) start [2025-04-16 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917612', 'tblTempUsageDetail_20' ) end [2025-04-16 01:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:40:21] Production.INFO: ==30167== Releasing lock... [2025-04-16 01:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:40:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:41:05 [end_date_ymd] => 2025-04-16 01:41:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:41:05' and `end` < '2025-04-16 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-04-16 01:41:17] Production.INFO: count ==178 [2025-04-16 01:41:17] Production.ERROR: pbx CDR StartTime 2025-04-15 22:41:05 - End Time 2025-04-16 01:41:05 [2025-04-16 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917617', 'tblTempUsageDetail_20' ) start [2025-04-16 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917617', 'tblTempUsageDetail_20' ) end [2025-04-16 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917617', 'tblTempVendorCDR_20' ) start [2025-04-16 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917617', 'tblTempVendorCDR_20' ) end [2025-04-16 01:41:17] Production.INFO: ProcessCDR(1,14917617,1,1,2) [2025-04-16 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917617', 'tblTempUsageDetail_20' ) start [2025-04-16 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917617', 'tblTempUsageDetail_20' ) end [2025-04-16 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:41:21] Production.INFO: ==30242== Releasing lock... [2025-04-16 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:41:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:42:05 [end_date_ymd] => 2025-04-16 01:42:05 [RateCDR] => 1 ) [2025-04-16 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 22:42:05' and `end` < '2025-04-16 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 01:42:17] Production.INFO: count ==178 [2025-04-16 01:42:17] Production.ERROR: pbx CDR StartTime 2025-04-15 22:42:05 - End Time 2025-04-16 01:42:05 [2025-04-16 01:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917622', 'tblTempUsageDetail_20' ) start [2025-04-16 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917622', 'tblTempUsageDetail_20' ) end [2025-04-16 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917622', 'tblTempVendorCDR_20' ) start [2025-04-16 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917622', 'tblTempVendorCDR_20' ) end [2025-04-16 01:42:17] Production.INFO: ProcessCDR(1,14917622,1,1,2) [2025-04-16 01:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917622', 'tblTempUsageDetail_20' ) start [2025-04-16 01:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917622', 'tblTempUsageDetail_20' ) end [2025-04-16 01:42:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:42:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:42:20] Production.INFO: ==30316== Releasing lock... [2025-04-16 01:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:42:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:43:05 [end_date_ymd] => 2025-04-16 01:43:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:43:05' and `end` < '2025-04-16 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-04-16 01:43:18] Production.INFO: count ==177 [2025-04-16 01:43:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:43:05 - End Time 2025-04-16 01:43:05 [2025-04-16 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917627', 'tblTempUsageDetail_20' ) start [2025-04-16 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917627', 'tblTempUsageDetail_20' ) end [2025-04-16 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917627', 'tblTempVendorCDR_20' ) start [2025-04-16 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917627', 'tblTempVendorCDR_20' ) end [2025-04-16 01:43:18] Production.INFO: ProcessCDR(1,14917627,1,1,2) [2025-04-16 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917627', 'tblTempUsageDetail_20' ) start [2025-04-16 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917627', 'tblTempUsageDetail_20' ) end [2025-04-16 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:43:22] Production.INFO: ==30390== Releasing lock... [2025-04-16 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:43:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:44:06 [end_date_ymd] => 2025-04-16 01:44:06 [RateCDR] => 1 ) [2025-04-16 01: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-04-15 22:44:06' and `end` < '2025-04-16 01: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-04-16 01:44:18] Production.INFO: count ==177 [2025-04-16 01:44:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:44:06 - End Time 2025-04-16 01:44:06 [2025-04-16 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917632', 'tblTempUsageDetail_20' ) start [2025-04-16 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917632', 'tblTempUsageDetail_20' ) end [2025-04-16 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917632', 'tblTempVendorCDR_20' ) start [2025-04-16 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917632', 'tblTempVendorCDR_20' ) end [2025-04-16 01:44:18] Production.INFO: ProcessCDR(1,14917632,1,1,2) [2025-04-16 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917632', 'tblTempUsageDetail_20' ) start [2025-04-16 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917632', 'tblTempUsageDetail_20' ) end [2025-04-16 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:44:21] Production.INFO: ==30467== Releasing lock... [2025-04-16 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:45:05 [end_date_ymd] => 2025-04-16 01:45:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:45:05' and `end` < '2025-04-16 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-04-16 01:45:18] Production.INFO: count ==176 [2025-04-16 01:45:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:45:05 - End Time 2025-04-16 01:45:05 [2025-04-16 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917637', 'tblTempUsageDetail_20' ) start [2025-04-16 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917637', 'tblTempUsageDetail_20' ) end [2025-04-16 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917637', 'tblTempVendorCDR_20' ) start [2025-04-16 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917637', 'tblTempVendorCDR_20' ) end [2025-04-16 01:45:18] Production.INFO: ProcessCDR(1,14917637,1,1,2) [2025-04-16 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917637', 'tblTempUsageDetail_20' ) start [2025-04-16 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917637', 'tblTempUsageDetail_20' ) end [2025-04-16 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:45:21] Production.INFO: ==30544== Releasing lock... [2025-04-16 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:45:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:46:05 [end_date_ymd] => 2025-04-16 01:46:05 [RateCDR] => 1 ) [2025-04-16 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 22:46:05' and `end` < '2025-04-16 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 01:46:18] Production.INFO: count ==176 [2025-04-16 01:46:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:46:05 - End Time 2025-04-16 01:46:05 [2025-04-16 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917642', 'tblTempUsageDetail_20' ) start [2025-04-16 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917642', 'tblTempUsageDetail_20' ) end [2025-04-16 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917642', 'tblTempVendorCDR_20' ) start [2025-04-16 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917642', 'tblTempVendorCDR_20' ) end [2025-04-16 01:46:18] Production.INFO: ProcessCDR(1,14917642,1,1,2) [2025-04-16 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917642', 'tblTempUsageDetail_20' ) start [2025-04-16 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917642', 'tblTempUsageDetail_20' ) end [2025-04-16 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:46:21] Production.INFO: ==30619== Releasing lock... [2025-04-16 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:46:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:47:05 [end_date_ymd] => 2025-04-16 01:47:05 [RateCDR] => 1 ) [2025-04-16 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 22:47:05' and `end` < '2025-04-16 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 01:47:18] Production.INFO: count ==176 [2025-04-16 01:47:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:47:05 - End Time 2025-04-16 01:47:05 [2025-04-16 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917647', 'tblTempUsageDetail_20' ) start [2025-04-16 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917647', 'tblTempUsageDetail_20' ) end [2025-04-16 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917647', 'tblTempVendorCDR_20' ) start [2025-04-16 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917647', 'tblTempVendorCDR_20' ) end [2025-04-16 01:47:18] Production.INFO: ProcessCDR(1,14917647,1,1,2) [2025-04-16 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917647', 'tblTempUsageDetail_20' ) start [2025-04-16 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917647', 'tblTempUsageDetail_20' ) end [2025-04-16 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:47:21] Production.INFO: ==30730== Releasing lock... [2025-04-16 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:47:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:48:05 [end_date_ymd] => 2025-04-16 01:48:05 [RateCDR] => 1 ) [2025-04-16 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 22:48:05' and `end` < '2025-04-16 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 01:48:18] Production.INFO: count ==176 [2025-04-16 01:48:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:48:05 - End Time 2025-04-16 01:48:05 [2025-04-16 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917652', 'tblTempUsageDetail_20' ) start [2025-04-16 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917652', 'tblTempUsageDetail_20' ) end [2025-04-16 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917652', 'tblTempVendorCDR_20' ) start [2025-04-16 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917652', 'tblTempVendorCDR_20' ) end [2025-04-16 01:48:18] Production.INFO: ProcessCDR(1,14917652,1,1,2) [2025-04-16 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917652', 'tblTempUsageDetail_20' ) start [2025-04-16 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917652', 'tblTempUsageDetail_20' ) end [2025-04-16 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:48:21] Production.INFO: ==30802== Releasing lock... [2025-04-16 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:49:04 [end_date_ymd] => 2025-04-16 01:49:04 [RateCDR] => 1 ) [2025-04-16 01:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 22:49:04' and `end` < '2025-04-16 01:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 01:49:17] Production.INFO: count ==177 [2025-04-16 01:49:17] Production.ERROR: pbx CDR StartTime 2025-04-15 22:49:04 - End Time 2025-04-16 01:49:04 [2025-04-16 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917657', 'tblTempUsageDetail_20' ) start [2025-04-16 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917657', 'tblTempUsageDetail_20' ) end [2025-04-16 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917657', 'tblTempVendorCDR_20' ) start [2025-04-16 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917657', 'tblTempVendorCDR_20' ) end [2025-04-16 01:49:17] Production.INFO: ProcessCDR(1,14917657,1,1,2) [2025-04-16 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917657', 'tblTempUsageDetail_20' ) start [2025-04-16 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917657', 'tblTempUsageDetail_20' ) end [2025-04-16 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:49:22] Production.INFO: ==30878== Releasing lock... [2025-04-16 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:49:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:50:05 [end_date_ymd] => 2025-04-16 01:50:05 [RateCDR] => 1 ) [2025-04-16 01:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 22:50:05' and `end` < '2025-04-16 01:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 01:50:18] Production.INFO: count ==185 [2025-04-16 01:50:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:50:05 - End Time 2025-04-16 01:50:05 [2025-04-16 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917663', 'tblTempUsageDetail_20' ) start [2025-04-16 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917663', 'tblTempUsageDetail_20' ) end [2025-04-16 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917663', 'tblTempVendorCDR_20' ) start [2025-04-16 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917663', 'tblTempVendorCDR_20' ) end [2025-04-16 01:50:18] Production.INFO: ProcessCDR(1,14917663,1,1,2) [2025-04-16 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917663', 'tblTempUsageDetail_20' ) start [2025-04-16 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917663', 'tblTempUsageDetail_20' ) end [2025-04-16 01:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:50:21] Production.INFO: ==30952== Releasing lock... [2025-04-16 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:50:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:51:04 [end_date_ymd] => 2025-04-16 01:51:04 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:51:04' and `end` < '2025-04-16 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-04-16 01:51:17] Production.INFO: count ==189 [2025-04-16 01:51:17] Production.ERROR: pbx CDR StartTime 2025-04-15 22:51:04 - End Time 2025-04-16 01:51:04 [2025-04-16 01:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917668', 'tblTempUsageDetail_20' ) start [2025-04-16 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917668', 'tblTempUsageDetail_20' ) end [2025-04-16 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917668', 'tblTempVendorCDR_20' ) start [2025-04-16 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917668', 'tblTempVendorCDR_20' ) end [2025-04-16 01:51:17] Production.INFO: ProcessCDR(1,14917668,1,1,2) [2025-04-16 01:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917668', 'tblTempUsageDetail_20' ) start [2025-04-16 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917668', 'tblTempUsageDetail_20' ) end [2025-04-16 01:51:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:51:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:51:20] Production.INFO: ==31029== Releasing lock... [2025-04-16 01:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:51:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:52:05 [end_date_ymd] => 2025-04-16 01:52:05 [RateCDR] => 1 ) [2025-04-16 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 22:52:05' and `end` < '2025-04-16 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 01:52:17] Production.INFO: count ==188 [2025-04-16 01:52:17] Production.ERROR: pbx CDR StartTime 2025-04-15 22:52:05 - End Time 2025-04-16 01:52:05 [2025-04-16 01:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917673', 'tblTempUsageDetail_20' ) start [2025-04-16 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917673', 'tblTempUsageDetail_20' ) end [2025-04-16 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917673', 'tblTempVendorCDR_20' ) start [2025-04-16 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917673', 'tblTempVendorCDR_20' ) end [2025-04-16 01:52:17] Production.INFO: ProcessCDR(1,14917673,1,1,2) [2025-04-16 01:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917673', 'tblTempUsageDetail_20' ) start [2025-04-16 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917673', 'tblTempUsageDetail_20' ) end [2025-04-16 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:52:21] Production.INFO: ==31099== Releasing lock... [2025-04-16 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:52:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:53:05 [end_date_ymd] => 2025-04-16 01:53:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:53:05' and `end` < '2025-04-16 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-04-16 01:53:18] Production.INFO: count ==188 [2025-04-16 01:53:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:53:05 - End Time 2025-04-16 01:53:05 [2025-04-16 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917678', 'tblTempUsageDetail_20' ) start [2025-04-16 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917678', 'tblTempUsageDetail_20' ) end [2025-04-16 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917678', 'tblTempVendorCDR_20' ) start [2025-04-16 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917678', 'tblTempVendorCDR_20' ) end [2025-04-16 01:53:18] Production.INFO: ProcessCDR(1,14917678,1,1,2) [2025-04-16 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917678', 'tblTempUsageDetail_20' ) start [2025-04-16 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917678', 'tblTempUsageDetail_20' ) end [2025-04-16 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:53:21] Production.INFO: ==31173== Releasing lock... [2025-04-16 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:53:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:54:05 [end_date_ymd] => 2025-04-16 01:54:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:54:05' and `end` < '2025-04-16 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-04-16 01:54:17] Production.INFO: count ==188 [2025-04-16 01:54:17] Production.ERROR: pbx CDR StartTime 2025-04-15 22:54:05 - End Time 2025-04-16 01:54:05 [2025-04-16 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917683', 'tblTempUsageDetail_20' ) start [2025-04-16 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917683', 'tblTempUsageDetail_20' ) end [2025-04-16 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917683', 'tblTempVendorCDR_20' ) start [2025-04-16 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917683', 'tblTempVendorCDR_20' ) end [2025-04-16 01:54:17] Production.INFO: ProcessCDR(1,14917683,1,1,2) [2025-04-16 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917683', 'tblTempUsageDetail_20' ) start [2025-04-16 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917683', 'tblTempUsageDetail_20' ) end [2025-04-16 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:54:21] Production.INFO: ==31252== Releasing lock... [2025-04-16 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:54:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:55:05 [end_date_ymd] => 2025-04-16 01:55:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:55:05' and `end` < '2025-04-16 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-04-16 01:55:18] Production.INFO: count ==188 [2025-04-16 01:55:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:55:05 - End Time 2025-04-16 01:55:05 [2025-04-16 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917688', 'tblTempUsageDetail_20' ) start [2025-04-16 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917688', 'tblTempUsageDetail_20' ) end [2025-04-16 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917688', 'tblTempVendorCDR_20' ) start [2025-04-16 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917688', 'tblTempVendorCDR_20' ) end [2025-04-16 01:55:18] Production.INFO: ProcessCDR(1,14917688,1,1,2) [2025-04-16 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917688', 'tblTempUsageDetail_20' ) start [2025-04-16 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917688', 'tblTempUsageDetail_20' ) end [2025-04-16 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:55:21] Production.INFO: ==31329== Releasing lock... [2025-04-16 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:56:05 [end_date_ymd] => 2025-04-16 01:56:05 [RateCDR] => 1 ) [2025-04-16 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 22:56:05' and `end` < '2025-04-16 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 01:56:17] Production.INFO: count ==188 [2025-04-16 01:56:17] Production.ERROR: pbx CDR StartTime 2025-04-15 22:56:05 - End Time 2025-04-16 01:56:05 [2025-04-16 01:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917693', 'tblTempUsageDetail_20' ) start [2025-04-16 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917693', 'tblTempUsageDetail_20' ) end [2025-04-16 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917693', 'tblTempVendorCDR_20' ) start [2025-04-16 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917693', 'tblTempVendorCDR_20' ) end [2025-04-16 01:56:17] Production.INFO: ProcessCDR(1,14917693,1,1,2) [2025-04-16 01:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917693', 'tblTempUsageDetail_20' ) start [2025-04-16 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917693', 'tblTempUsageDetail_20' ) end [2025-04-16 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:56:21] Production.INFO: ==31409== Releasing lock... [2025-04-16 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:56:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:57:05 [end_date_ymd] => 2025-04-16 01:57:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 22:57:05' and `end` < '2025-04-16 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-04-16 01:57:17] Production.INFO: count ==187 [2025-04-16 01:57:17] Production.ERROR: pbx CDR StartTime 2025-04-15 22:57:05 - End Time 2025-04-16 01:57:05 [2025-04-16 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917698', 'tblTempUsageDetail_20' ) start [2025-04-16 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917698', 'tblTempUsageDetail_20' ) end [2025-04-16 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917698', 'tblTempVendorCDR_20' ) start [2025-04-16 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917698', 'tblTempVendorCDR_20' ) end [2025-04-16 01:57:17] Production.INFO: ProcessCDR(1,14917698,1,1,2) [2025-04-16 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917698', 'tblTempUsageDetail_20' ) start [2025-04-16 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917698', 'tblTempUsageDetail_20' ) end [2025-04-16 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:57:21] Production.INFO: ==31481== Releasing lock... [2025-04-16 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:57:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:58:05 [end_date_ymd] => 2025-04-16 01:58:05 [RateCDR] => 1 ) [2025-04-16 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 22:58:05' and `end` < '2025-04-16 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 01:58:18] Production.INFO: count ==189 [2025-04-16 01:58:18] Production.ERROR: pbx CDR StartTime 2025-04-15 22:58:05 - End Time 2025-04-16 01:58:05 [2025-04-16 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917703', 'tblTempUsageDetail_20' ) start [2025-04-16 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917703', 'tblTempUsageDetail_20' ) end [2025-04-16 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917703', 'tblTempVendorCDR_20' ) start [2025-04-16 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917703', 'tblTempVendorCDR_20' ) end [2025-04-16 01:58:18] Production.INFO: ProcessCDR(1,14917703,1,1,2) [2025-04-16 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917703', 'tblTempUsageDetail_20' ) start [2025-04-16 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917703', 'tblTempUsageDetail_20' ) end [2025-04-16 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:58:21] Production.INFO: ==31556== Releasing lock... [2025-04-16 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:58:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 22:59:05 [end_date_ymd] => 2025-04-16 01:59:05 [RateCDR] => 1 ) [2025-04-16 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 22:59:05' and `end` < '2025-04-16 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 01:59:17] Production.INFO: count ==190 [2025-04-16 01:59:17] Production.ERROR: pbx CDR StartTime 2025-04-15 22:59:05 - End Time 2025-04-16 01:59:05 [2025-04-16 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917708', 'tblTempUsageDetail_20' ) start [2025-04-16 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917708', 'tblTempUsageDetail_20' ) end [2025-04-16 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917708', 'tblTempVendorCDR_20' ) start [2025-04-16 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917708', 'tblTempVendorCDR_20' ) end [2025-04-16 01:59:17] Production.INFO: ProcessCDR(1,14917708,1,1,2) [2025-04-16 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 01:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917708', 'tblTempUsageDetail_20' ) start [2025-04-16 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917708', 'tblTempUsageDetail_20' ) end [2025-04-16 01:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 01:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 01:59:22] Production.INFO: ==31628== Releasing lock... [2025-04-16 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 01:59:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:00:06 [end_date_ymd] => 2025-04-16 02:00:06 [RateCDR] => 1 ) [2025-04-16 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 23:00:06' and `end` < '2025-04-16 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 02:00:18] Production.INFO: count ==201 [2025-04-16 02:00:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:00:06 - End Time 2025-04-16 02:00:06 [2025-04-16 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917714', 'tblTempUsageDetail_20' ) start [2025-04-16 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917714', 'tblTempUsageDetail_20' ) end [2025-04-16 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917714', 'tblTempVendorCDR_20' ) start [2025-04-16 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917714', 'tblTempVendorCDR_20' ) end [2025-04-16 02:00:18] Production.INFO: ProcessCDR(1,14917714,1,1,2) [2025-04-16 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917714', 'tblTempUsageDetail_20' ) start [2025-04-16 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917714', 'tblTempUsageDetail_20' ) end [2025-04-16 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:00:22] Production.INFO: ==31706== Releasing lock... [2025-04-16 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:00:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-16 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:01:05 [end_date_ymd] => 2025-04-16 02:01:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:01:05' and `end` < '2025-04-16 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-04-16 02:01:18] Production.INFO: count ==201 [2025-04-16 02:01:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:01:05 - End Time 2025-04-16 02:01:05 [2025-04-16 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917719', 'tblTempUsageDetail_20' ) start [2025-04-16 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917719', 'tblTempUsageDetail_20' ) end [2025-04-16 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917719', 'tblTempVendorCDR_20' ) start [2025-04-16 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917719', 'tblTempVendorCDR_20' ) end [2025-04-16 02:01:18] Production.INFO: ProcessCDR(1,14917719,1,1,2) [2025-04-16 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917719', 'tblTempUsageDetail_20' ) start [2025-04-16 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917719', 'tblTempUsageDetail_20' ) end [2025-04-16 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:01:21] Production.INFO: ==31796== Releasing lock... [2025-04-16 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-16 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:02:05 [end_date_ymd] => 2025-04-16 02:02:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:02:05' and `end` < '2025-04-16 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-04-16 02:02:18] Production.INFO: count ==201 [2025-04-16 02:02:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:02:05 - End Time 2025-04-16 02:02:05 [2025-04-16 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917724', 'tblTempUsageDetail_20' ) start [2025-04-16 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917724', 'tblTempUsageDetail_20' ) end [2025-04-16 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917724', 'tblTempVendorCDR_20' ) start [2025-04-16 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917724', 'tblTempVendorCDR_20' ) end [2025-04-16 02:02:18] Production.INFO: ProcessCDR(1,14917724,1,1,2) [2025-04-16 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917724', 'tblTempUsageDetail_20' ) start [2025-04-16 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917724', 'tblTempUsageDetail_20' ) end [2025-04-16 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:02:21] Production.INFO: ==31993== Releasing lock... [2025-04-16 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-16 02:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:03:04 [end_date_ymd] => 2025-04-16 02:03:04 [RateCDR] => 1 ) [2025-04-16 02:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 23:03:04' and `end` < '2025-04-16 02:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 02:03:17] Production.INFO: count ==199 [2025-04-16 02:03:17] Production.ERROR: pbx CDR StartTime 2025-04-15 23:03:04 - End Time 2025-04-16 02:03:04 [2025-04-16 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917729', 'tblTempUsageDetail_20' ) start [2025-04-16 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917729', 'tblTempUsageDetail_20' ) end [2025-04-16 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917729', 'tblTempVendorCDR_20' ) start [2025-04-16 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917729', 'tblTempVendorCDR_20' ) end [2025-04-16 02:03:17] Production.INFO: ProcessCDR(1,14917729,1,1,2) [2025-04-16 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917729', 'tblTempUsageDetail_20' ) start [2025-04-16 02:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917729', 'tblTempUsageDetail_20' ) end [2025-04-16 02:03:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:03:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:03:20] Production.INFO: ==32070== Releasing lock... [2025-04-16 02:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:03:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:04:05 [end_date_ymd] => 2025-04-16 02:04:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:04:05' and `end` < '2025-04-16 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-04-16 02:04:17] Production.INFO: count ==197 [2025-04-16 02:04:17] Production.ERROR: pbx CDR StartTime 2025-04-15 23:04:05 - End Time 2025-04-16 02:04:05 [2025-04-16 02:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917734', 'tblTempUsageDetail_20' ) start [2025-04-16 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917734', 'tblTempUsageDetail_20' ) end [2025-04-16 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917734', 'tblTempVendorCDR_20' ) start [2025-04-16 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917734', 'tblTempVendorCDR_20' ) end [2025-04-16 02:04:17] Production.INFO: ProcessCDR(1,14917734,1,1,2) [2025-04-16 02:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917734', 'tblTempUsageDetail_20' ) start [2025-04-16 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917734', 'tblTempUsageDetail_20' ) end [2025-04-16 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:04:21] Production.INFO: ==32144== Releasing lock... [2025-04-16 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:04:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:05:05 [end_date_ymd] => 2025-04-16 02:05:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:05:05' and `end` < '2025-04-16 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-04-16 02:05:18] Production.INFO: count ==196 [2025-04-16 02:05:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:05:05 - End Time 2025-04-16 02:05:05 [2025-04-16 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917739', 'tblTempUsageDetail_20' ) start [2025-04-16 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917739', 'tblTempUsageDetail_20' ) end [2025-04-16 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917739', 'tblTempVendorCDR_20' ) start [2025-04-16 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917739', 'tblTempVendorCDR_20' ) end [2025-04-16 02:05:18] Production.INFO: ProcessCDR(1,14917739,1,1,2) [2025-04-16 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917739', 'tblTempUsageDetail_20' ) start [2025-04-16 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917739', 'tblTempUsageDetail_20' ) end [2025-04-16 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:05:21] Production.INFO: ==32214== Releasing lock... [2025-04-16 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:05:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:06:05 [end_date_ymd] => 2025-04-16 02:06:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:06:05' and `end` < '2025-04-16 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-04-16 02:06:18] Production.INFO: count ==195 [2025-04-16 02:06:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:06:05 - End Time 2025-04-16 02:06:05 [2025-04-16 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917744', 'tblTempUsageDetail_20' ) start [2025-04-16 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917744', 'tblTempUsageDetail_20' ) end [2025-04-16 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917744', 'tblTempVendorCDR_20' ) start [2025-04-16 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917744', 'tblTempVendorCDR_20' ) end [2025-04-16 02:06:18] Production.INFO: ProcessCDR(1,14917744,1,1,2) [2025-04-16 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917744', 'tblTempUsageDetail_20' ) start [2025-04-16 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917744', 'tblTempUsageDetail_20' ) end [2025-04-16 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:06:21] Production.INFO: ==32289== Releasing lock... [2025-04-16 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:07:05 [end_date_ymd] => 2025-04-16 02:07:05 [RateCDR] => 1 ) [2025-04-16 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 23:07:05' and `end` < '2025-04-16 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 02:07:17] Production.INFO: count ==195 [2025-04-16 02:07:17] Production.ERROR: pbx CDR StartTime 2025-04-15 23:07:05 - End Time 2025-04-16 02:07:05 [2025-04-16 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917749', 'tblTempUsageDetail_20' ) start [2025-04-16 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917749', 'tblTempUsageDetail_20' ) end [2025-04-16 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917749', 'tblTempVendorCDR_20' ) start [2025-04-16 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917749', 'tblTempVendorCDR_20' ) end [2025-04-16 02:07:17] Production.INFO: ProcessCDR(1,14917749,1,1,2) [2025-04-16 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917749', 'tblTempUsageDetail_20' ) start [2025-04-16 02:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917749', 'tblTempUsageDetail_20' ) end [2025-04-16 02:07:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:07:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:07:20] Production.INFO: ==32363== Releasing lock... [2025-04-16 02:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:07:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:08:05 [end_date_ymd] => 2025-04-16 02:08:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:08:05' and `end` < '2025-04-16 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-04-16 02:08:17] Production.INFO: count ==196 [2025-04-16 02:08:17] Production.ERROR: pbx CDR StartTime 2025-04-15 23:08:05 - End Time 2025-04-16 02:08:05 [2025-04-16 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917754', 'tblTempUsageDetail_20' ) start [2025-04-16 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917754', 'tblTempUsageDetail_20' ) end [2025-04-16 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917754', 'tblTempVendorCDR_20' ) start [2025-04-16 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917754', 'tblTempVendorCDR_20' ) end [2025-04-16 02:08:17] Production.INFO: ProcessCDR(1,14917754,1,1,2) [2025-04-16 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917754', 'tblTempUsageDetail_20' ) start [2025-04-16 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917754', 'tblTempUsageDetail_20' ) end [2025-04-16 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:08:22] Production.INFO: ==32437== Releasing lock... [2025-04-16 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:08:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:09:05 [end_date_ymd] => 2025-04-16 02:09:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:09:05' and `end` < '2025-04-16 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-04-16 02:09:18] Production.INFO: count ==196 [2025-04-16 02:09:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:09:05 - End Time 2025-04-16 02:09:05 [2025-04-16 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917759', 'tblTempUsageDetail_20' ) start [2025-04-16 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917759', 'tblTempUsageDetail_20' ) end [2025-04-16 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917759', 'tblTempVendorCDR_20' ) start [2025-04-16 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917759', 'tblTempVendorCDR_20' ) end [2025-04-16 02:09:18] Production.INFO: ProcessCDR(1,14917759,1,1,2) [2025-04-16 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917759', 'tblTempUsageDetail_20' ) start [2025-04-16 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917759', 'tblTempUsageDetail_20' ) end [2025-04-16 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:09:21] Production.INFO: ==32516== Releasing lock... [2025-04-16 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:09:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:10:05 [end_date_ymd] => 2025-04-16 02:10:05 [RateCDR] => 1 ) [2025-04-16 02:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 23:10:05' and `end` < '2025-04-16 02:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 02:10:18] Production.INFO: count ==196 [2025-04-16 02:10:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:10:05 - End Time 2025-04-16 02:10:05 [2025-04-16 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917764', 'tblTempUsageDetail_20' ) start [2025-04-16 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917764', 'tblTempUsageDetail_20' ) end [2025-04-16 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917764', 'tblTempVendorCDR_20' ) start [2025-04-16 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917764', 'tblTempVendorCDR_20' ) end [2025-04-16 02:10:18] Production.INFO: ProcessCDR(1,14917764,1,1,2) [2025-04-16 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917764', 'tblTempUsageDetail_20' ) start [2025-04-16 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917764', 'tblTempUsageDetail_20' ) end [2025-04-16 02:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:10:21] Production.INFO: ==32596== Releasing lock... [2025-04-16 02:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:10:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:11:05 [end_date_ymd] => 2025-04-16 02:11:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:11:05' and `end` < '2025-04-16 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-04-16 02:11:18] Production.INFO: count ==196 [2025-04-16 02:11:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:11:05 - End Time 2025-04-16 02:11:05 [2025-04-16 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917770', 'tblTempUsageDetail_20' ) start [2025-04-16 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917770', 'tblTempUsageDetail_20' ) end [2025-04-16 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917770', 'tblTempVendorCDR_20' ) start [2025-04-16 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917770', 'tblTempVendorCDR_20' ) end [2025-04-16 02:11:18] Production.INFO: ProcessCDR(1,14917770,1,1,2) [2025-04-16 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917770', 'tblTempUsageDetail_20' ) start [2025-04-16 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917770', 'tblTempUsageDetail_20' ) end [2025-04-16 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:11:21] Production.INFO: ==32669== Releasing lock... [2025-04-16 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:11:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 02:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:12:04 [end_date_ymd] => 2025-04-16 02:12:04 [RateCDR] => 1 ) [2025-04-16 02: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-04-15 23:12:04' and `end` < '2025-04-16 02: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-04-16 02:12:17] Production.INFO: count ==194 [2025-04-16 02:12:17] Production.ERROR: pbx CDR StartTime 2025-04-15 23:12:04 - End Time 2025-04-16 02:12:04 [2025-04-16 02:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917775', 'tblTempUsageDetail_20' ) start [2025-04-16 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917775', 'tblTempUsageDetail_20' ) end [2025-04-16 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917775', 'tblTempVendorCDR_20' ) start [2025-04-16 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917775', 'tblTempVendorCDR_20' ) end [2025-04-16 02:12:17] Production.INFO: ProcessCDR(1,14917775,1,1,2) [2025-04-16 02:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917775', 'tblTempUsageDetail_20' ) start [2025-04-16 02:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917775', 'tblTempUsageDetail_20' ) end [2025-04-16 02:12:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:12:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:12:20] Production.INFO: ==32746== Releasing lock... [2025-04-16 02:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:12:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:13:05 [end_date_ymd] => 2025-04-16 02:13:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:13:05' and `end` < '2025-04-16 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-04-16 02:13:18] Production.INFO: count ==194 [2025-04-16 02:13:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:13:05 - End Time 2025-04-16 02:13:05 [2025-04-16 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917780', 'tblTempUsageDetail_20' ) start [2025-04-16 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917780', 'tblTempUsageDetail_20' ) end [2025-04-16 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917780', 'tblTempVendorCDR_20' ) start [2025-04-16 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917780', 'tblTempVendorCDR_20' ) end [2025-04-16 02:13:18] Production.INFO: ProcessCDR(1,14917780,1,1,2) [2025-04-16 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917780', 'tblTempUsageDetail_20' ) start [2025-04-16 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917780', 'tblTempUsageDetail_20' ) end [2025-04-16 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:13:21] Production.INFO: ==381== Releasing lock... [2025-04-16 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:14:05 [end_date_ymd] => 2025-04-16 02:14:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:14:05' and `end` < '2025-04-16 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-04-16 02:14:18] Production.INFO: count ==194 [2025-04-16 02:14:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:14:05 - End Time 2025-04-16 02:14:05 [2025-04-16 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917785', 'tblTempUsageDetail_20' ) start [2025-04-16 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917785', 'tblTempUsageDetail_20' ) end [2025-04-16 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917785', 'tblTempVendorCDR_20' ) start [2025-04-16 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917785', 'tblTempVendorCDR_20' ) end [2025-04-16 02:14:18] Production.INFO: ProcessCDR(1,14917785,1,1,2) [2025-04-16 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917785', 'tblTempUsageDetail_20' ) start [2025-04-16 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917785', 'tblTempUsageDetail_20' ) end [2025-04-16 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:14:21] Production.INFO: ==458== Releasing lock... [2025-04-16 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:15:05 [end_date_ymd] => 2025-04-16 02:15:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:15:05' and `end` < '2025-04-16 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-04-16 02:15:18] Production.INFO: count ==194 [2025-04-16 02:15:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:15:05 - End Time 2025-04-16 02:15:05 [2025-04-16 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917790', 'tblTempUsageDetail_20' ) start [2025-04-16 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917790', 'tblTempUsageDetail_20' ) end [2025-04-16 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917790', 'tblTempVendorCDR_20' ) start [2025-04-16 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917790', 'tblTempVendorCDR_20' ) end [2025-04-16 02:15:18] Production.INFO: ProcessCDR(1,14917790,1,1,2) [2025-04-16 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917790', 'tblTempUsageDetail_20' ) start [2025-04-16 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917790', 'tblTempUsageDetail_20' ) end [2025-04-16 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:15:21] Production.INFO: ==530== Releasing lock... [2025-04-16 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:16:05 [end_date_ymd] => 2025-04-16 02:16:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:16:05' and `end` < '2025-04-16 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-04-16 02:16:17] Production.INFO: count ==193 [2025-04-16 02:16:17] Production.ERROR: pbx CDR StartTime 2025-04-15 23:16:05 - End Time 2025-04-16 02:16:05 [2025-04-16 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917795', 'tblTempUsageDetail_20' ) start [2025-04-16 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917795', 'tblTempUsageDetail_20' ) end [2025-04-16 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917795', 'tblTempVendorCDR_20' ) start [2025-04-16 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917795', 'tblTempVendorCDR_20' ) end [2025-04-16 02:16:17] Production.INFO: ProcessCDR(1,14917795,1,1,2) [2025-04-16 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917795', 'tblTempUsageDetail_20' ) start [2025-04-16 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917795', 'tblTempUsageDetail_20' ) end [2025-04-16 02:16:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:16:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:16:20] Production.INFO: ==611== Releasing lock... [2025-04-16 02:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:16:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:17:05 [end_date_ymd] => 2025-04-16 02:17:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:17:05' and `end` < '2025-04-16 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-04-16 02:17:17] Production.INFO: count ==192 [2025-04-16 02:17:17] Production.ERROR: pbx CDR StartTime 2025-04-15 23:17:05 - End Time 2025-04-16 02:17:05 [2025-04-16 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917800', 'tblTempUsageDetail_20' ) start [2025-04-16 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917800', 'tblTempUsageDetail_20' ) end [2025-04-16 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917800', 'tblTempVendorCDR_20' ) start [2025-04-16 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917800', 'tblTempVendorCDR_20' ) end [2025-04-16 02:17:17] Production.INFO: ProcessCDR(1,14917800,1,1,2) [2025-04-16 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917800', 'tblTempUsageDetail_20' ) start [2025-04-16 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917800', 'tblTempUsageDetail_20' ) end [2025-04-16 02:17:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:17:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:17:20] Production.INFO: ==714== Releasing lock... [2025-04-16 02:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:17:20] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:18:05 [end_date_ymd] => 2025-04-16 02:18:05 [RateCDR] => 1 ) [2025-04-16 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 23:18:05' and `end` < '2025-04-16 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 02:18:18] Production.INFO: count ==192 [2025-04-16 02:18:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:18:05 - End Time 2025-04-16 02:18:05 [2025-04-16 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917805', 'tblTempUsageDetail_20' ) start [2025-04-16 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917805', 'tblTempUsageDetail_20' ) end [2025-04-16 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917805', 'tblTempVendorCDR_20' ) start [2025-04-16 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917805', 'tblTempVendorCDR_20' ) end [2025-04-16 02:18:18] Production.INFO: ProcessCDR(1,14917805,1,1,2) [2025-04-16 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917805', 'tblTempUsageDetail_20' ) start [2025-04-16 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917805', 'tblTempUsageDetail_20' ) end [2025-04-16 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:18:21] Production.INFO: ==839== Releasing lock... [2025-04-16 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:18:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:19:05 [end_date_ymd] => 2025-04-16 02:19:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:19:05' and `end` < '2025-04-16 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-04-16 02:19:17] Production.INFO: count ==191 [2025-04-16 02:19:17] Production.ERROR: pbx CDR StartTime 2025-04-15 23:19:05 - End Time 2025-04-16 02:19:05 [2025-04-16 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917810', 'tblTempUsageDetail_20' ) start [2025-04-16 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917810', 'tblTempUsageDetail_20' ) end [2025-04-16 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917810', 'tblTempVendorCDR_20' ) start [2025-04-16 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917810', 'tblTempVendorCDR_20' ) end [2025-04-16 02:19:17] Production.INFO: ProcessCDR(1,14917810,1,1,2) [2025-04-16 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917810', 'tblTempUsageDetail_20' ) start [2025-04-16 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917810', 'tblTempUsageDetail_20' ) end [2025-04-16 02:19:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:19:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:19:20] Production.INFO: ==915== Releasing lock... [2025-04-16 02:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:19:20] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:20:06 [end_date_ymd] => 2025-04-16 02:20:06 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:20:06' and `end` < '2025-04-16 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-04-16 02:20:18] Production.INFO: count ==191 [2025-04-16 02:20:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:20:06 - End Time 2025-04-16 02:20:06 [2025-04-16 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917816', 'tblTempUsageDetail_20' ) start [2025-04-16 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917816', 'tblTempUsageDetail_20' ) end [2025-04-16 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917816', 'tblTempVendorCDR_20' ) start [2025-04-16 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917816', 'tblTempVendorCDR_20' ) end [2025-04-16 02:20:18] Production.INFO: ProcessCDR(1,14917816,1,1,2) [2025-04-16 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917816', 'tblTempUsageDetail_20' ) start [2025-04-16 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917816', 'tblTempUsageDetail_20' ) end [2025-04-16 02:20:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:20:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:20:21] Production.INFO: ==992== Releasing lock... [2025-04-16 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:20:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:21:05 [end_date_ymd] => 2025-04-16 02:21:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:21:05' and `end` < '2025-04-16 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-04-16 02:21:18] Production.INFO: count ==191 [2025-04-16 02:21:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:21:05 - End Time 2025-04-16 02:21:05 [2025-04-16 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917821', 'tblTempUsageDetail_20' ) start [2025-04-16 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917821', 'tblTempUsageDetail_20' ) end [2025-04-16 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917821', 'tblTempVendorCDR_20' ) start [2025-04-16 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917821', 'tblTempVendorCDR_20' ) end [2025-04-16 02:21:18] Production.INFO: ProcessCDR(1,14917821,1,1,2) [2025-04-16 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917821', 'tblTempUsageDetail_20' ) start [2025-04-16 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917821', 'tblTempUsageDetail_20' ) end [2025-04-16 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:21:21] Production.INFO: ==1071== Releasing lock... [2025-04-16 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:21:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:22:05 [end_date_ymd] => 2025-04-16 02:22:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:22:05' and `end` < '2025-04-16 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-04-16 02:22:17] Production.INFO: count ==191 [2025-04-16 02:22:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:22:05 - End Time 2025-04-16 02:22:05 [2025-04-16 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917826', 'tblTempUsageDetail_20' ) start [2025-04-16 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917826', 'tblTempUsageDetail_20' ) end [2025-04-16 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917826', 'tblTempVendorCDR_20' ) start [2025-04-16 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917826', 'tblTempVendorCDR_20' ) end [2025-04-16 02:22:18] Production.INFO: ProcessCDR(1,14917826,1,1,2) [2025-04-16 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917826', 'tblTempUsageDetail_20' ) start [2025-04-16 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917826', 'tblTempUsageDetail_20' ) end [2025-04-16 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:22:21] Production.INFO: ==1153== Releasing lock... [2025-04-16 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:22:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:23:05 [end_date_ymd] => 2025-04-16 02:23:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:23:05' and `end` < '2025-04-16 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-04-16 02:23:18] Production.INFO: count ==191 [2025-04-16 02:23:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:23:05 - End Time 2025-04-16 02:23:05 [2025-04-16 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917831', 'tblTempUsageDetail_20' ) start [2025-04-16 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917831', 'tblTempUsageDetail_20' ) end [2025-04-16 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917831', 'tblTempVendorCDR_20' ) start [2025-04-16 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917831', 'tblTempVendorCDR_20' ) end [2025-04-16 02:23:18] Production.INFO: ProcessCDR(1,14917831,1,1,2) [2025-04-16 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917831', 'tblTempUsageDetail_20' ) start [2025-04-16 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917831', 'tblTempUsageDetail_20' ) end [2025-04-16 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:23:21] Production.INFO: ==1255== Releasing lock... [2025-04-16 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:23:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:24:05 [end_date_ymd] => 2025-04-16 02:24:05 [RateCDR] => 1 ) [2025-04-16 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 23:24:05' and `end` < '2025-04-16 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 02:24:18] Production.INFO: count ==190 [2025-04-16 02:24:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:24:05 - End Time 2025-04-16 02:24:05 [2025-04-16 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917836', 'tblTempUsageDetail_20' ) start [2025-04-16 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917836', 'tblTempUsageDetail_20' ) end [2025-04-16 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917836', 'tblTempVendorCDR_20' ) start [2025-04-16 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917836', 'tblTempVendorCDR_20' ) end [2025-04-16 02:24:18] Production.INFO: ProcessCDR(1,14917836,1,1,2) [2025-04-16 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917836', 'tblTempUsageDetail_20' ) start [2025-04-16 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917836', 'tblTempUsageDetail_20' ) end [2025-04-16 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:24:21] Production.INFO: ==1335== Releasing lock... [2025-04-16 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:24:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:25:05 [end_date_ymd] => 2025-04-16 02:25:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:25:05' and `end` < '2025-04-16 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-04-16 02:25:18] Production.INFO: count ==189 [2025-04-16 02:25:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:25:05 - End Time 2025-04-16 02:25:05 [2025-04-16 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917841', 'tblTempUsageDetail_20' ) start [2025-04-16 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917841', 'tblTempUsageDetail_20' ) end [2025-04-16 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917841', 'tblTempVendorCDR_20' ) start [2025-04-16 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917841', 'tblTempVendorCDR_20' ) end [2025-04-16 02:25:18] Production.INFO: ProcessCDR(1,14917841,1,1,2) [2025-04-16 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917841', 'tblTempUsageDetail_20' ) start [2025-04-16 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917841', 'tblTempUsageDetail_20' ) end [2025-04-16 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:25:22] Production.INFO: ==1436== Releasing lock... [2025-04-16 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:25:22] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:26:05 [end_date_ymd] => 2025-04-16 02:26:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:26:05' and `end` < '2025-04-16 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-04-16 02:26:17] Production.INFO: count ==189 [2025-04-16 02:26:17] Production.ERROR: pbx CDR StartTime 2025-04-15 23:26:05 - End Time 2025-04-16 02:26:05 [2025-04-16 02:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917846', 'tblTempUsageDetail_20' ) start [2025-04-16 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917846', 'tblTempUsageDetail_20' ) end [2025-04-16 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917846', 'tblTempVendorCDR_20' ) start [2025-04-16 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917846', 'tblTempVendorCDR_20' ) end [2025-04-16 02:26:17] Production.INFO: ProcessCDR(1,14917846,1,1,2) [2025-04-16 02:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917846', 'tblTempUsageDetail_20' ) start [2025-04-16 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917846', 'tblTempUsageDetail_20' ) end [2025-04-16 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:26:21] Production.INFO: ==1543== Releasing lock... [2025-04-16 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:26:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:27:05 [end_date_ymd] => 2025-04-16 02:27:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:27:05' and `end` < '2025-04-16 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-04-16 02:27:17] Production.INFO: count ==188 [2025-04-16 02:27:17] Production.ERROR: pbx CDR StartTime 2025-04-15 23:27:05 - End Time 2025-04-16 02:27:05 [2025-04-16 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917851', 'tblTempUsageDetail_20' ) start [2025-04-16 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917851', 'tblTempUsageDetail_20' ) end [2025-04-16 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917851', 'tblTempVendorCDR_20' ) start [2025-04-16 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917851', 'tblTempVendorCDR_20' ) end [2025-04-16 02:27:17] Production.INFO: ProcessCDR(1,14917851,1,1,2) [2025-04-16 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917851', 'tblTempUsageDetail_20' ) start [2025-04-16 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917851', 'tblTempUsageDetail_20' ) end [2025-04-16 02:27:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:27:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:27:20] Production.INFO: ==1627== Releasing lock... [2025-04-16 02:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:27:20] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:28:06 [end_date_ymd] => 2025-04-16 02:28:06 [RateCDR] => 1 ) [2025-04-16 02: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-04-15 23:28:06' and `end` < '2025-04-16 02: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-04-16 02:28:18] Production.INFO: count ==188 [2025-04-16 02:28:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:28:06 - End Time 2025-04-16 02:28:06 [2025-04-16 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917856', 'tblTempUsageDetail_20' ) start [2025-04-16 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917856', 'tblTempUsageDetail_20' ) end [2025-04-16 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917856', 'tblTempVendorCDR_20' ) start [2025-04-16 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917856', 'tblTempVendorCDR_20' ) end [2025-04-16 02:28:18] Production.INFO: ProcessCDR(1,14917856,1,1,2) [2025-04-16 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917856', 'tblTempUsageDetail_20' ) start [2025-04-16 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917856', 'tblTempUsageDetail_20' ) end [2025-04-16 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:28:21] Production.INFO: ==1708== Releasing lock... [2025-04-16 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:28:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:29:05 [end_date_ymd] => 2025-04-16 02:29:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:29:05' and `end` < '2025-04-16 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-04-16 02:29:18] Production.INFO: count ==186 [2025-04-16 02:29:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:29:05 - End Time 2025-04-16 02:29:05 [2025-04-16 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917861', 'tblTempUsageDetail_20' ) start [2025-04-16 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917861', 'tblTempUsageDetail_20' ) end [2025-04-16 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917861', 'tblTempVendorCDR_20' ) start [2025-04-16 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917861', 'tblTempVendorCDR_20' ) end [2025-04-16 02:29:18] Production.INFO: ProcessCDR(1,14917861,1,1,2) [2025-04-16 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917861', 'tblTempUsageDetail_20' ) start [2025-04-16 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917861', 'tblTempUsageDetail_20' ) end [2025-04-16 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:29:21] Production.INFO: ==1789== Releasing lock... [2025-04-16 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:29:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:30:06 [end_date_ymd] => 2025-04-16 02:30:06 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:30:06' and `end` < '2025-04-16 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-04-16 02:30:18] Production.INFO: count ==188 [2025-04-16 02:30:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:30:06 - End Time 2025-04-16 02:30:06 [2025-04-16 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917867', 'tblTempUsageDetail_20' ) start [2025-04-16 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917867', 'tblTempUsageDetail_20' ) end [2025-04-16 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917867', 'tblTempVendorCDR_20' ) start [2025-04-16 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917867', 'tblTempVendorCDR_20' ) end [2025-04-16 02:30:19] Production.INFO: ProcessCDR(1,14917867,1,1,2) [2025-04-16 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917867', 'tblTempUsageDetail_20' ) start [2025-04-16 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917867', 'tblTempUsageDetail_20' ) end [2025-04-16 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:30:22] Production.INFO: ==1869== Releasing lock... [2025-04-16 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:30:22] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:31:05 [end_date_ymd] => 2025-04-16 02:31:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:31:05' and `end` < '2025-04-16 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-04-16 02:31:17] Production.INFO: count ==188 [2025-04-16 02:31:17] Production.ERROR: pbx CDR StartTime 2025-04-15 23:31:05 - End Time 2025-04-16 02:31:05 [2025-04-16 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917872', 'tblTempUsageDetail_20' ) start [2025-04-16 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917872', 'tblTempUsageDetail_20' ) end [2025-04-16 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917872', 'tblTempVendorCDR_20' ) start [2025-04-16 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917872', 'tblTempVendorCDR_20' ) end [2025-04-16 02:31:17] Production.INFO: ProcessCDR(1,14917872,1,1,2) [2025-04-16 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917872', 'tblTempUsageDetail_20' ) start [2025-04-16 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917872', 'tblTempUsageDetail_20' ) end [2025-04-16 02:31:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:31:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:31:20] Production.INFO: ==1948== Releasing lock... [2025-04-16 02:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:31:20] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:32:06 [end_date_ymd] => 2025-04-16 02:32:06 [RateCDR] => 1 ) [2025-04-16 02: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-04-15 23:32:06' and `end` < '2025-04-16 02: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-04-16 02:32:18] Production.INFO: count ==188 [2025-04-16 02:32:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:32:06 - End Time 2025-04-16 02:32:06 [2025-04-16 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917877', 'tblTempUsageDetail_20' ) start [2025-04-16 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917877', 'tblTempUsageDetail_20' ) end [2025-04-16 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917877', 'tblTempVendorCDR_20' ) start [2025-04-16 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917877', 'tblTempVendorCDR_20' ) end [2025-04-16 02:32:18] Production.INFO: ProcessCDR(1,14917877,1,1,2) [2025-04-16 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917877', 'tblTempUsageDetail_20' ) start [2025-04-16 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917877', 'tblTempUsageDetail_20' ) end [2025-04-16 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:32:22] Production.INFO: ==2027== Releasing lock... [2025-04-16 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:32:22] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:33:05 [end_date_ymd] => 2025-04-16 02:33:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:33:05' and `end` < '2025-04-16 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-04-16 02:33:17] Production.INFO: count ==188 [2025-04-16 02:33:17] Production.ERROR: pbx CDR StartTime 2025-04-15 23:33:05 - End Time 2025-04-16 02:33:05 [2025-04-16 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917882', 'tblTempUsageDetail_20' ) start [2025-04-16 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917882', 'tblTempUsageDetail_20' ) end [2025-04-16 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917882', 'tblTempVendorCDR_20' ) start [2025-04-16 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917882', 'tblTempVendorCDR_20' ) end [2025-04-16 02:33:17] Production.INFO: ProcessCDR(1,14917882,1,1,2) [2025-04-16 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917882', 'tblTempUsageDetail_20' ) start [2025-04-16 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917882', 'tblTempUsageDetail_20' ) end [2025-04-16 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:33:21] Production.INFO: ==2143== Releasing lock... [2025-04-16 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:33:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:34:05 [end_date_ymd] => 2025-04-16 02:34:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:34:05' and `end` < '2025-04-16 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-04-16 02:34:18] Production.INFO: count ==188 [2025-04-16 02:34:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:34:05 - End Time 2025-04-16 02:34:05 [2025-04-16 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917887', 'tblTempUsageDetail_20' ) start [2025-04-16 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917887', 'tblTempUsageDetail_20' ) end [2025-04-16 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917887', 'tblTempVendorCDR_20' ) start [2025-04-16 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917887', 'tblTempVendorCDR_20' ) end [2025-04-16 02:34:18] Production.INFO: ProcessCDR(1,14917887,1,1,2) [2025-04-16 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917887', 'tblTempUsageDetail_20' ) start [2025-04-16 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917887', 'tblTempUsageDetail_20' ) end [2025-04-16 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:34:21] Production.INFO: ==2221== Releasing lock... [2025-04-16 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:34:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:35:05 [end_date_ymd] => 2025-04-16 02:35:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:35:05' and `end` < '2025-04-16 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-04-16 02:35:18] Production.INFO: count ==188 [2025-04-16 02:35:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:35:05 - End Time 2025-04-16 02:35:05 [2025-04-16 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917892', 'tblTempUsageDetail_20' ) start [2025-04-16 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917892', 'tblTempUsageDetail_20' ) end [2025-04-16 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917892', 'tblTempVendorCDR_20' ) start [2025-04-16 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917892', 'tblTempVendorCDR_20' ) end [2025-04-16 02:35:18] Production.INFO: ProcessCDR(1,14917892,1,1,2) [2025-04-16 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917892', 'tblTempUsageDetail_20' ) start [2025-04-16 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917892', 'tblTempUsageDetail_20' ) end [2025-04-16 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:35:21] Production.INFO: ==2295== Releasing lock... [2025-04-16 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:35:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:36:05 [end_date_ymd] => 2025-04-16 02:36:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:36:05' and `end` < '2025-04-16 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-04-16 02:36:17] Production.INFO: count ==188 [2025-04-16 02:36:17] Production.ERROR: pbx CDR StartTime 2025-04-15 23:36:05 - End Time 2025-04-16 02:36:05 [2025-04-16 02:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917897', 'tblTempUsageDetail_20' ) start [2025-04-16 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917897', 'tblTempUsageDetail_20' ) end [2025-04-16 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917897', 'tblTempVendorCDR_20' ) start [2025-04-16 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917897', 'tblTempVendorCDR_20' ) end [2025-04-16 02:36:17] Production.INFO: ProcessCDR(1,14917897,1,1,2) [2025-04-16 02:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917897', 'tblTempUsageDetail_20' ) start [2025-04-16 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917897', 'tblTempUsageDetail_20' ) end [2025-04-16 02:36:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:36:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:36:20] Production.INFO: ==2380== Releasing lock... [2025-04-16 02:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:36:20] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:37:05 [end_date_ymd] => 2025-04-16 02:37:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:37:05' and `end` < '2025-04-16 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-04-16 02:37:17] Production.INFO: count ==188 [2025-04-16 02:37:17] Production.ERROR: pbx CDR StartTime 2025-04-15 23:37:05 - End Time 2025-04-16 02:37:05 [2025-04-16 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917902', 'tblTempUsageDetail_20' ) start [2025-04-16 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917902', 'tblTempUsageDetail_20' ) end [2025-04-16 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917902', 'tblTempVendorCDR_20' ) start [2025-04-16 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917902', 'tblTempVendorCDR_20' ) end [2025-04-16 02:37:17] Production.INFO: ProcessCDR(1,14917902,1,1,2) [2025-04-16 02:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917902', 'tblTempUsageDetail_20' ) start [2025-04-16 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917902', 'tblTempUsageDetail_20' ) end [2025-04-16 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:37:21] Production.INFO: ==2457== Releasing lock... [2025-04-16 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:37:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:38:04 [end_date_ymd] => 2025-04-16 02:38:04 [RateCDR] => 1 ) [2025-04-16 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 23:38:04' and `end` < '2025-04-16 02: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-04-16 02:38:17] Production.INFO: count ==188 [2025-04-16 02:38:17] Production.ERROR: pbx CDR StartTime 2025-04-15 23:38:04 - End Time 2025-04-16 02:38:04 [2025-04-16 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917907', 'tblTempUsageDetail_20' ) start [2025-04-16 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917907', 'tblTempUsageDetail_20' ) end [2025-04-16 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917907', 'tblTempVendorCDR_20' ) start [2025-04-16 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917907', 'tblTempVendorCDR_20' ) end [2025-04-16 02:38:17] Production.INFO: ProcessCDR(1,14917907,1,1,2) [2025-04-16 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917907', 'tblTempUsageDetail_20' ) start [2025-04-16 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917907', 'tblTempUsageDetail_20' ) end [2025-04-16 02:38:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:38:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:38:20] Production.INFO: ==2535== Releasing lock... [2025-04-16 02:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:38:20] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:39:05 [end_date_ymd] => 2025-04-16 02:39:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:39:05' and `end` < '2025-04-16 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-04-16 02:39:17] Production.INFO: count ==188 [2025-04-16 02:39:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:39:05 - End Time 2025-04-16 02:39:05 [2025-04-16 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917912', 'tblTempUsageDetail_20' ) start [2025-04-16 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917912', 'tblTempUsageDetail_20' ) end [2025-04-16 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917912', 'tblTempVendorCDR_20' ) start [2025-04-16 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917912', 'tblTempVendorCDR_20' ) end [2025-04-16 02:39:18] Production.INFO: ProcessCDR(1,14917912,1,1,2) [2025-04-16 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917912', 'tblTempUsageDetail_20' ) start [2025-04-16 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917912', 'tblTempUsageDetail_20' ) end [2025-04-16 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:39:21] Production.INFO: ==2611== Releasing lock... [2025-04-16 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:39:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:40:06 [end_date_ymd] => 2025-04-16 02:40:06 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:40:06' and `end` < '2025-04-16 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-04-16 02:40:19] Production.INFO: count ==190 [2025-04-16 02:40:19] Production.ERROR: pbx CDR StartTime 2025-04-15 23:40:06 - End Time 2025-04-16 02:40:06 [2025-04-16 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917918', 'tblTempUsageDetail_20' ) start [2025-04-16 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917918', 'tblTempUsageDetail_20' ) end [2025-04-16 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917918', 'tblTempVendorCDR_20' ) start [2025-04-16 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917918', 'tblTempVendorCDR_20' ) end [2025-04-16 02:40:19] Production.INFO: ProcessCDR(1,14917918,1,1,2) [2025-04-16 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917918', 'tblTempUsageDetail_20' ) start [2025-04-16 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917918', 'tblTempUsageDetail_20' ) end [2025-04-16 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:40:22] Production.INFO: ==2692== Releasing lock... [2025-04-16 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:40:22] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:41:05 [end_date_ymd] => 2025-04-16 02:41:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:41:05' and `end` < '2025-04-16 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-04-16 02:41:18] Production.INFO: count ==190 [2025-04-16 02:41:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:41:05 - End Time 2025-04-16 02:41:05 [2025-04-16 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917923', 'tblTempUsageDetail_20' ) start [2025-04-16 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917923', 'tblTempUsageDetail_20' ) end [2025-04-16 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917923', 'tblTempVendorCDR_20' ) start [2025-04-16 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917923', 'tblTempVendorCDR_20' ) end [2025-04-16 02:41:18] Production.INFO: ProcessCDR(1,14917923,1,1,2) [2025-04-16 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917923', 'tblTempUsageDetail_20' ) start [2025-04-16 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917923', 'tblTempUsageDetail_20' ) end [2025-04-16 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:41:21] Production.INFO: ==2769== Releasing lock... [2025-04-16 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:41:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:42:05 [end_date_ymd] => 2025-04-16 02:42:05 [RateCDR] => 1 ) [2025-04-16 02: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-04-15 23:42:05' and `end` < '2025-04-16 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-04-16 02:42:18] Production.INFO: count ==190 [2025-04-16 02:42:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:42:05 - End Time 2025-04-16 02:42:05 [2025-04-16 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917928', 'tblTempUsageDetail_20' ) start [2025-04-16 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917928', 'tblTempUsageDetail_20' ) end [2025-04-16 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917928', 'tblTempVendorCDR_20' ) start [2025-04-16 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917928', 'tblTempVendorCDR_20' ) end [2025-04-16 02:42:18] Production.INFO: ProcessCDR(1,14917928,1,1,2) [2025-04-16 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917928', 'tblTempUsageDetail_20' ) start [2025-04-16 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917928', 'tblTempUsageDetail_20' ) end [2025-04-16 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:42:21] Production.INFO: ==2851== Releasing lock... [2025-04-16 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:42:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:43:05 [end_date_ymd] => 2025-04-16 02:43:05 [RateCDR] => 1 ) [2025-04-16 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 23:43:05' and `end` < '2025-04-16 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 02:43:17] Production.INFO: count ==189 [2025-04-16 02:43:17] Production.ERROR: pbx CDR StartTime 2025-04-15 23:43:05 - End Time 2025-04-16 02:43:05 [2025-04-16 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917933', 'tblTempUsageDetail_20' ) start [2025-04-16 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917933', 'tblTempUsageDetail_20' ) end [2025-04-16 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917933', 'tblTempVendorCDR_20' ) start [2025-04-16 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917933', 'tblTempVendorCDR_20' ) end [2025-04-16 02:43:17] Production.INFO: ProcessCDR(1,14917933,1,1,2) [2025-04-16 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917933', 'tblTempUsageDetail_20' ) start [2025-04-16 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917933', 'tblTempUsageDetail_20' ) end [2025-04-16 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:43:21] Production.INFO: ==2927== Releasing lock... [2025-04-16 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:43:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:44:05 [end_date_ymd] => 2025-04-16 02:44:05 [RateCDR] => 1 ) [2025-04-16 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 23:44:05' and `end` < '2025-04-16 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 02:44:18] Production.INFO: count ==189 [2025-04-16 02:44:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:44:05 - End Time 2025-04-16 02:44:05 [2025-04-16 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917938', 'tblTempUsageDetail_20' ) start [2025-04-16 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917938', 'tblTempUsageDetail_20' ) end [2025-04-16 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917938', 'tblTempVendorCDR_20' ) start [2025-04-16 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917938', 'tblTempVendorCDR_20' ) end [2025-04-16 02:44:18] Production.INFO: ProcessCDR(1,14917938,1,1,2) [2025-04-16 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917938', 'tblTempUsageDetail_20' ) start [2025-04-16 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917938', 'tblTempUsageDetail_20' ) end [2025-04-16 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:44:21] Production.INFO: ==3015== Releasing lock... [2025-04-16 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:44:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:45:05 [end_date_ymd] => 2025-04-16 02:45:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:45:05' and `end` < '2025-04-16 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-04-16 02:45:17] Production.INFO: count ==189 [2025-04-16 02:45:17] Production.ERROR: pbx CDR StartTime 2025-04-15 23:45:05 - End Time 2025-04-16 02:45:05 [2025-04-16 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917943', 'tblTempUsageDetail_20' ) start [2025-04-16 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917943', 'tblTempUsageDetail_20' ) end [2025-04-16 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917943', 'tblTempVendorCDR_20' ) start [2025-04-16 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917943', 'tblTempVendorCDR_20' ) end [2025-04-16 02:45:17] Production.INFO: ProcessCDR(1,14917943,1,1,2) [2025-04-16 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917943', 'tblTempUsageDetail_20' ) start [2025-04-16 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917943', 'tblTempUsageDetail_20' ) end [2025-04-16 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:45:21] Production.INFO: ==3115== Releasing lock... [2025-04-16 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:45:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:46:05 [end_date_ymd] => 2025-04-16 02:46:05 [RateCDR] => 1 ) [2025-04-16 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 23:46:05' and `end` < '2025-04-16 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 02:46:18] Production.INFO: count ==189 [2025-04-16 02:46:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:46:05 - End Time 2025-04-16 02:46:05 [2025-04-16 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917948', 'tblTempUsageDetail_20' ) start [2025-04-16 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917948', 'tblTempUsageDetail_20' ) end [2025-04-16 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917948', 'tblTempVendorCDR_20' ) start [2025-04-16 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917948', 'tblTempVendorCDR_20' ) end [2025-04-16 02:46:18] Production.INFO: ProcessCDR(1,14917948,1,1,2) [2025-04-16 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917948', 'tblTempUsageDetail_20' ) start [2025-04-16 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917948', 'tblTempUsageDetail_20' ) end [2025-04-16 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:46:21] Production.INFO: ==3218== Releasing lock... [2025-04-16 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:46:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:47:05 [end_date_ymd] => 2025-04-16 02:47:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:47:05' and `end` < '2025-04-16 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-04-16 02:47:18] Production.INFO: count ==189 [2025-04-16 02:47:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:47:05 - End Time 2025-04-16 02:47:05 [2025-04-16 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917953', 'tblTempUsageDetail_20' ) start [2025-04-16 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917953', 'tblTempUsageDetail_20' ) end [2025-04-16 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917953', 'tblTempVendorCDR_20' ) start [2025-04-16 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917953', 'tblTempVendorCDR_20' ) end [2025-04-16 02:47:18] Production.INFO: ProcessCDR(1,14917953,1,1,2) [2025-04-16 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917953', 'tblTempUsageDetail_20' ) start [2025-04-16 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917953', 'tblTempUsageDetail_20' ) end [2025-04-16 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:47:21] Production.INFO: ==3317== Releasing lock... [2025-04-16 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:47:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:48:05 [end_date_ymd] => 2025-04-16 02:48:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:48:05' and `end` < '2025-04-16 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-04-16 02:48:18] Production.INFO: count ==189 [2025-04-16 02:48:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:48:05 - End Time 2025-04-16 02:48:05 [2025-04-16 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917958', 'tblTempUsageDetail_20' ) start [2025-04-16 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917958', 'tblTempUsageDetail_20' ) end [2025-04-16 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917958', 'tblTempVendorCDR_20' ) start [2025-04-16 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917958', 'tblTempVendorCDR_20' ) end [2025-04-16 02:48:18] Production.INFO: ProcessCDR(1,14917958,1,1,2) [2025-04-16 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917958', 'tblTempUsageDetail_20' ) start [2025-04-16 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917958', 'tblTempUsageDetail_20' ) end [2025-04-16 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:48:21] Production.INFO: ==3456== Releasing lock... [2025-04-16 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:48:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:49:06 [end_date_ymd] => 2025-04-16 02:49:06 [RateCDR] => 1 ) [2025-04-16 02:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 23:49:06' and `end` < '2025-04-16 02:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 02:49:18] Production.INFO: count ==188 [2025-04-16 02:49:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:49:06 - End Time 2025-04-16 02:49:06 [2025-04-16 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917963', 'tblTempUsageDetail_20' ) start [2025-04-16 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917963', 'tblTempUsageDetail_20' ) end [2025-04-16 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917963', 'tblTempVendorCDR_20' ) start [2025-04-16 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917963', 'tblTempVendorCDR_20' ) end [2025-04-16 02:49:18] Production.INFO: ProcessCDR(1,14917963,1,1,2) [2025-04-16 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917963', 'tblTempUsageDetail_20' ) start [2025-04-16 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917963', 'tblTempUsageDetail_20' ) end [2025-04-16 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:49:22] Production.INFO: ==3558== Releasing lock... [2025-04-16 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:49:22] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:50:05 [end_date_ymd] => 2025-04-16 02:50:05 [RateCDR] => 1 ) [2025-04-16 02:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 23:50:05' and `end` < '2025-04-16 02:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 02:50:18] Production.INFO: count ==188 [2025-04-16 02:50:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:50:05 - End Time 2025-04-16 02:50:05 [2025-04-16 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917969', 'tblTempUsageDetail_20' ) start [2025-04-16 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917969', 'tblTempUsageDetail_20' ) end [2025-04-16 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917969', 'tblTempVendorCDR_20' ) start [2025-04-16 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917969', 'tblTempVendorCDR_20' ) end [2025-04-16 02:50:18] Production.INFO: ProcessCDR(1,14917969,1,1,2) [2025-04-16 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917969', 'tblTempUsageDetail_20' ) start [2025-04-16 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917969', 'tblTempUsageDetail_20' ) end [2025-04-16 02:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:50:21] Production.INFO: ==3665== Releasing lock... [2025-04-16 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:50:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:51:05 [end_date_ymd] => 2025-04-16 02:51:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:51:05' and `end` < '2025-04-16 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-04-16 02:51:18] Production.INFO: count ==187 [2025-04-16 02:51:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:51:05 - End Time 2025-04-16 02:51:05 [2025-04-16 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917974', 'tblTempUsageDetail_20' ) start [2025-04-16 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917974', 'tblTempUsageDetail_20' ) end [2025-04-16 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917974', 'tblTempVendorCDR_20' ) start [2025-04-16 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917974', 'tblTempVendorCDR_20' ) end [2025-04-16 02:51:18] Production.INFO: ProcessCDR(1,14917974,1,1,2) [2025-04-16 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917974', 'tblTempUsageDetail_20' ) start [2025-04-16 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917974', 'tblTempUsageDetail_20' ) end [2025-04-16 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:51:22] Production.INFO: ==3767== Releasing lock... [2025-04-16 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:51:22] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:52:05 [end_date_ymd] => 2025-04-16 02:52:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:52:05' and `end` < '2025-04-16 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-04-16 02:52:18] Production.INFO: count ==186 [2025-04-16 02:52:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:52:05 - End Time 2025-04-16 02:52:05 [2025-04-16 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917979', 'tblTempUsageDetail_20' ) start [2025-04-16 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917979', 'tblTempUsageDetail_20' ) end [2025-04-16 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917979', 'tblTempVendorCDR_20' ) start [2025-04-16 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917979', 'tblTempVendorCDR_20' ) end [2025-04-16 02:52:18] Production.INFO: ProcessCDR(1,14917979,1,1,2) [2025-04-16 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917979', 'tblTempUsageDetail_20' ) start [2025-04-16 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917979', 'tblTempUsageDetail_20' ) end [2025-04-16 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:52:21] Production.INFO: ==3867== Releasing lock... [2025-04-16 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:52:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:53:05 [end_date_ymd] => 2025-04-16 02:53:05 [RateCDR] => 1 ) [2025-04-16 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-15 23:53:05' and `end` < '2025-04-16 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 02:53:17] Production.INFO: count ==186 [2025-04-16 02:53:17] Production.ERROR: pbx CDR StartTime 2025-04-15 23:53:05 - End Time 2025-04-16 02:53:05 [2025-04-16 02:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917984', 'tblTempUsageDetail_20' ) start [2025-04-16 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917984', 'tblTempUsageDetail_20' ) end [2025-04-16 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917984', 'tblTempVendorCDR_20' ) start [2025-04-16 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917984', 'tblTempVendorCDR_20' ) end [2025-04-16 02:53:17] Production.INFO: ProcessCDR(1,14917984,1,1,2) [2025-04-16 02:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917984', 'tblTempUsageDetail_20' ) start [2025-04-16 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917984', 'tblTempUsageDetail_20' ) end [2025-04-16 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:53:21] Production.INFO: ==3966== Releasing lock... [2025-04-16 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:53:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:54:05 [end_date_ymd] => 2025-04-16 02:54:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:54:05' and `end` < '2025-04-16 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-04-16 02:54:18] Production.INFO: count ==186 [2025-04-16 02:54:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:54:05 - End Time 2025-04-16 02:54:05 [2025-04-16 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917989', 'tblTempUsageDetail_20' ) start [2025-04-16 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917989', 'tblTempUsageDetail_20' ) end [2025-04-16 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917989', 'tblTempVendorCDR_20' ) start [2025-04-16 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917989', 'tblTempVendorCDR_20' ) end [2025-04-16 02:54:18] Production.INFO: ProcessCDR(1,14917989,1,1,2) [2025-04-16 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917989', 'tblTempUsageDetail_20' ) start [2025-04-16 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917989', 'tblTempUsageDetail_20' ) end [2025-04-16 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:54:21] Production.INFO: ==4072== Releasing lock... [2025-04-16 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:54:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:55:05 [end_date_ymd] => 2025-04-16 02:55:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:55:05' and `end` < '2025-04-16 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-04-16 02:55:18] Production.INFO: count ==185 [2025-04-16 02:55:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:55:05 - End Time 2025-04-16 02:55:05 [2025-04-16 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917994', 'tblTempUsageDetail_20' ) start [2025-04-16 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917994', 'tblTempUsageDetail_20' ) end [2025-04-16 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917994', 'tblTempVendorCDR_20' ) start [2025-04-16 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917994', 'tblTempVendorCDR_20' ) end [2025-04-16 02:55:18] Production.INFO: ProcessCDR(1,14917994,1,1,2) [2025-04-16 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917994', 'tblTempUsageDetail_20' ) start [2025-04-16 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917994', 'tblTempUsageDetail_20' ) end [2025-04-16 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:55:21] Production.INFO: ==4174== Releasing lock... [2025-04-16 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:55:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:56:05 [end_date_ymd] => 2025-04-16 02:56:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:56:05' and `end` < '2025-04-16 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-04-16 02:56:18] Production.INFO: count ==184 [2025-04-16 02:56:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:56:05 - End Time 2025-04-16 02:56:05 [2025-04-16 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917999', 'tblTempUsageDetail_20' ) start [2025-04-16 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14917999', 'tblTempUsageDetail_20' ) end [2025-04-16 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917999', 'tblTempVendorCDR_20' ) start [2025-04-16 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14917999', 'tblTempVendorCDR_20' ) end [2025-04-16 02:56:18] Production.INFO: ProcessCDR(1,14917999,1,1,2) [2025-04-16 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14917999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14917999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14917999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14917999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917999', 'tblTempUsageDetail_20' ) start [2025-04-16 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14917999', 'tblTempUsageDetail_20' ) end [2025-04-16 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:56:21] Production.INFO: ==4278== Releasing lock... [2025-04-16 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:56:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:57:05 [end_date_ymd] => 2025-04-16 02:57:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:57:05' and `end` < '2025-04-16 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-04-16 02:57:18] Production.INFO: count ==184 [2025-04-16 02:57:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:57:05 - End Time 2025-04-16 02:57:05 [2025-04-16 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918004', 'tblTempUsageDetail_20' ) start [2025-04-16 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918004', 'tblTempUsageDetail_20' ) end [2025-04-16 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918004', 'tblTempVendorCDR_20' ) start [2025-04-16 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918004', 'tblTempVendorCDR_20' ) end [2025-04-16 02:57:18] Production.INFO: ProcessCDR(1,14918004,1,1,2) [2025-04-16 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918004', 'tblTempUsageDetail_20' ) start [2025-04-16 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918004', 'tblTempUsageDetail_20' ) end [2025-04-16 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:57:21] Production.INFO: ==4377== Releasing lock... [2025-04-16 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:57:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:58:05 [end_date_ymd] => 2025-04-16 02:58:05 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:58:05' and `end` < '2025-04-16 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-04-16 02:58:18] Production.INFO: count ==184 [2025-04-16 02:58:18] Production.ERROR: pbx CDR StartTime 2025-04-15 23:58:05 - End Time 2025-04-16 02:58:05 [2025-04-16 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918009', 'tblTempUsageDetail_20' ) start [2025-04-16 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918009', 'tblTempUsageDetail_20' ) end [2025-04-16 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918009', 'tblTempVendorCDR_20' ) start [2025-04-16 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918009', 'tblTempVendorCDR_20' ) end [2025-04-16 02:58:18] Production.INFO: ProcessCDR(1,14918009,1,1,2) [2025-04-16 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918009', 'tblTempUsageDetail_20' ) start [2025-04-16 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918009', 'tblTempUsageDetail_20' ) end [2025-04-16 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:58:21] Production.INFO: ==4473== Releasing lock... [2025-04-16 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:58:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 02:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-15 23:59:04 [end_date_ymd] => 2025-04-16 02:59:04 [RateCDR] => 1 ) [2025-04-16 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-04-15 23:59:04' and `end` < '2025-04-16 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-04-16 02:59:17] Production.INFO: count ==184 [2025-04-16 02:59:17] Production.ERROR: pbx CDR StartTime 2025-04-15 23:59:04 - End Time 2025-04-16 02:59:04 [2025-04-16 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918014', 'tblTempUsageDetail_20' ) start [2025-04-16 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918014', 'tblTempUsageDetail_20' ) end [2025-04-16 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918014', 'tblTempVendorCDR_20' ) start [2025-04-16 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918014', 'tblTempVendorCDR_20' ) end [2025-04-16 02:59:17] Production.INFO: ProcessCDR(1,14918014,1,1,2) [2025-04-16 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 02:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918014', 'tblTempUsageDetail_20' ) start [2025-04-16 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918014', 'tblTempUsageDetail_20' ) end [2025-04-16 02:59:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 02:59:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 02:59:20] Production.INFO: ==4578== Releasing lock... [2025-04-16 02:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 02:59:20] Production.INFO: 29 MB #Memory Used# [2025-04-16 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:00:06 [end_date_ymd] => 2025-04-16 03:00:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:00:06' and `end` < '2025-04-16 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-04-16 03:00:18] Production.INFO: count ==192 [2025-04-16 03:00:19] Production.ERROR: pbx CDR StartTime 2025-04-16 00:00:06 - End Time 2025-04-16 03:00:06 [2025-04-16 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918020', 'tblTempUsageDetail_20' ) start [2025-04-16 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918020', 'tblTempUsageDetail_20' ) end [2025-04-16 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918020', 'tblTempVendorCDR_20' ) start [2025-04-16 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918020', 'tblTempVendorCDR_20' ) end [2025-04-16 03:00:19] Production.INFO: ProcessCDR(1,14918020,1,1,2) [2025-04-16 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918020', 'tblTempUsageDetail_20' ) start [2025-04-16 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918020', 'tblTempUsageDetail_20' ) end [2025-04-16 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:00:22] Production.INFO: ==4683== Releasing lock... [2025-04-16 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:00:22] Production.INFO: 29 MB #Memory Used# [2025-04-16 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:01:05 [end_date_ymd] => 2025-04-16 03:01:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:01:05' and `end` < '2025-04-16 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-04-16 03:01:17] Production.INFO: count ==194 [2025-04-16 03:01:17] Production.ERROR: pbx CDR StartTime 2025-04-16 00:01:05 - End Time 2025-04-16 03:01:05 [2025-04-16 03:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918025', 'tblTempUsageDetail_20' ) start [2025-04-16 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918025', 'tblTempUsageDetail_20' ) end [2025-04-16 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918025', 'tblTempVendorCDR_20' ) start [2025-04-16 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918025', 'tblTempVendorCDR_20' ) end [2025-04-16 03:01:17] Production.INFO: ProcessCDR(1,14918025,1,1,2) [2025-04-16 03:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918025', 'tblTempUsageDetail_20' ) start [2025-04-16 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918025', 'tblTempUsageDetail_20' ) end [2025-04-16 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:01:21] Production.INFO: ==4798== Releasing lock... [2025-04-16 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:01:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:02:05 [end_date_ymd] => 2025-04-16 03:02:05 [RateCDR] => 1 ) [2025-04-16 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 00:02:05' and `end` < '2025-04-16 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 03:02:18] Production.INFO: count ==191 [2025-04-16 03:02:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:02:05 - End Time 2025-04-16 03:02:05 [2025-04-16 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918030', 'tblTempUsageDetail_20' ) start [2025-04-16 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918030', 'tblTempUsageDetail_20' ) end [2025-04-16 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918030', 'tblTempVendorCDR_20' ) start [2025-04-16 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918030', 'tblTempVendorCDR_20' ) end [2025-04-16 03:02:18] Production.INFO: ProcessCDR(1,14918030,1,1,2) [2025-04-16 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918030', 'tblTempUsageDetail_20' ) start [2025-04-16 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918030', 'tblTempUsageDetail_20' ) end [2025-04-16 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:02:21] Production.INFO: ==4979== Releasing lock... [2025-04-16 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:02:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 03:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:03:04 [end_date_ymd] => 2025-04-16 03:03:04 [RateCDR] => 1 ) [2025-04-16 03:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 00:03:04' and `end` < '2025-04-16 03:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 03:03:17] Production.INFO: count ==191 [2025-04-16 03:03:17] Production.ERROR: pbx CDR StartTime 2025-04-16 00:03:04 - End Time 2025-04-16 03:03:04 [2025-04-16 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918035', 'tblTempUsageDetail_20' ) start [2025-04-16 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918035', 'tblTempUsageDetail_20' ) end [2025-04-16 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918035', 'tblTempVendorCDR_20' ) start [2025-04-16 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918035', 'tblTempVendorCDR_20' ) end [2025-04-16 03:03:17] Production.INFO: ProcessCDR(1,14918035,1,1,2) [2025-04-16 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918035', 'tblTempUsageDetail_20' ) start [2025-04-16 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918035', 'tblTempUsageDetail_20' ) end [2025-04-16 03:03:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:03:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:03:20] Production.INFO: ==5074== Releasing lock... [2025-04-16 03:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:03:20] Production.INFO: 29 MB #Memory Used# [2025-04-16 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:04:05 [end_date_ymd] => 2025-04-16 03:04:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:04:05' and `end` < '2025-04-16 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-04-16 03:04:18] Production.INFO: count ==191 [2025-04-16 03:04:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:04:05 - End Time 2025-04-16 03:04:05 [2025-04-16 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918040', 'tblTempUsageDetail_20' ) start [2025-04-16 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918040', 'tblTempUsageDetail_20' ) end [2025-04-16 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918040', 'tblTempVendorCDR_20' ) start [2025-04-16 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918040', 'tblTempVendorCDR_20' ) end [2025-04-16 03:04:18] Production.INFO: ProcessCDR(1,14918040,1,1,2) [2025-04-16 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918040', 'tblTempUsageDetail_20' ) start [2025-04-16 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918040', 'tblTempUsageDetail_20' ) end [2025-04-16 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:04:21] Production.INFO: ==5216== Releasing lock... [2025-04-16 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:04:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:05:06 [end_date_ymd] => 2025-04-16 03:05:06 [RateCDR] => 1 ) [2025-04-16 03: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-04-16 00:05:06' and `end` < '2025-04-16 03: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-04-16 03:05:18] Production.INFO: count ==191 [2025-04-16 03:05:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:05:06 - End Time 2025-04-16 03:05:06 [2025-04-16 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918045', 'tblTempUsageDetail_20' ) start [2025-04-16 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918045', 'tblTempUsageDetail_20' ) end [2025-04-16 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918045', 'tblTempVendorCDR_20' ) start [2025-04-16 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918045', 'tblTempVendorCDR_20' ) end [2025-04-16 03:05:18] Production.INFO: ProcessCDR(1,14918045,1,1,2) [2025-04-16 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918045', 'tblTempUsageDetail_20' ) start [2025-04-16 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918045', 'tblTempUsageDetail_20' ) end [2025-04-16 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:05:21] Production.INFO: ==5314== Releasing lock... [2025-04-16 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:05:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:06:05 [end_date_ymd] => 2025-04-16 03:06:05 [RateCDR] => 1 ) [2025-04-16 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 00:06:05' and `end` < '2025-04-16 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 03:06:18] Production.INFO: count ==191 [2025-04-16 03:06:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:06:05 - End Time 2025-04-16 03:06:05 [2025-04-16 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918050', 'tblTempUsageDetail_20' ) start [2025-04-16 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918050', 'tblTempUsageDetail_20' ) end [2025-04-16 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918050', 'tblTempVendorCDR_20' ) start [2025-04-16 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918050', 'tblTempVendorCDR_20' ) end [2025-04-16 03:06:18] Production.INFO: ProcessCDR(1,14918050,1,1,2) [2025-04-16 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918050', 'tblTempUsageDetail_20' ) start [2025-04-16 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918050', 'tblTempUsageDetail_20' ) end [2025-04-16 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:06:21] Production.INFO: ==5466== Releasing lock... [2025-04-16 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:06:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:07:05 [end_date_ymd] => 2025-04-16 03:07:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:07:05' and `end` < '2025-04-16 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-04-16 03:07:18] Production.INFO: count ==190 [2025-04-16 03:07:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:07:05 - End Time 2025-04-16 03:07:05 [2025-04-16 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918055', 'tblTempUsageDetail_20' ) start [2025-04-16 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918055', 'tblTempUsageDetail_20' ) end [2025-04-16 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918055', 'tblTempVendorCDR_20' ) start [2025-04-16 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918055', 'tblTempVendorCDR_20' ) end [2025-04-16 03:07:18] Production.INFO: ProcessCDR(1,14918055,1,1,2) [2025-04-16 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918055', 'tblTempUsageDetail_20' ) start [2025-04-16 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918055', 'tblTempUsageDetail_20' ) end [2025-04-16 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:07:21] Production.INFO: ==5535== Releasing lock... [2025-04-16 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:07:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 03:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:08:04 [end_date_ymd] => 2025-04-16 03:08:04 [RateCDR] => 1 ) [2025-04-16 03:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 00:08:04' and `end` < '2025-04-16 03:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 03:08:17] Production.INFO: count ==190 [2025-04-16 03:08:17] Production.ERROR: pbx CDR StartTime 2025-04-16 00:08:04 - End Time 2025-04-16 03:08:04 [2025-04-16 03:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918060', 'tblTempUsageDetail_20' ) start [2025-04-16 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918060', 'tblTempUsageDetail_20' ) end [2025-04-16 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918060', 'tblTempVendorCDR_20' ) start [2025-04-16 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918060', 'tblTempVendorCDR_20' ) end [2025-04-16 03:08:17] Production.INFO: ProcessCDR(1,14918060,1,1,2) [2025-04-16 03:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918060', 'tblTempUsageDetail_20' ) start [2025-04-16 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918060', 'tblTempUsageDetail_20' ) end [2025-04-16 03:08:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:08:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:08:20] Production.INFO: ==5606== Releasing lock... [2025-04-16 03:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:08:20] Production.INFO: 29 MB #Memory Used# [2025-04-16 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:09:05 [end_date_ymd] => 2025-04-16 03:09:05 [RateCDR] => 1 ) [2025-04-16 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 00:09:05' and `end` < '2025-04-16 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 03:09:18] Production.INFO: count ==190 [2025-04-16 03:09:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:09:05 - End Time 2025-04-16 03:09:05 [2025-04-16 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918065', 'tblTempUsageDetail_20' ) start [2025-04-16 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918065', 'tblTempUsageDetail_20' ) end [2025-04-16 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918065', 'tblTempVendorCDR_20' ) start [2025-04-16 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918065', 'tblTempVendorCDR_20' ) end [2025-04-16 03:09:18] Production.INFO: ProcessCDR(1,14918065,1,1,2) [2025-04-16 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918065', 'tblTempUsageDetail_20' ) start [2025-04-16 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918065', 'tblTempUsageDetail_20' ) end [2025-04-16 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:09:21] Production.INFO: ==5763== Releasing lock... [2025-04-16 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:09:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 03:10:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:10:04 [end_date_ymd] => 2025-04-16 03:10:04 [RateCDR] => 1 ) [2025-04-16 03: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-04-16 00:10:04' and `end` < '2025-04-16 03: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-04-16 03:10:17] Production.INFO: count ==184 [2025-04-16 03:10:17] Production.ERROR: pbx CDR StartTime 2025-04-16 00:10:04 - End Time 2025-04-16 03:10:04 [2025-04-16 03:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918070', 'tblTempUsageDetail_20' ) start [2025-04-16 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918070', 'tblTempUsageDetail_20' ) end [2025-04-16 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918070', 'tblTempVendorCDR_20' ) start [2025-04-16 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918070', 'tblTempVendorCDR_20' ) end [2025-04-16 03:10:17] Production.INFO: ProcessCDR(1,14918070,1,1,2) [2025-04-16 03:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918070', 'tblTempUsageDetail_20' ) start [2025-04-16 03:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918070', 'tblTempUsageDetail_20' ) end [2025-04-16 03:10:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:10:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:10:20] Production.INFO: ==5846== Releasing lock... [2025-04-16 03:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:10:20] Production.INFO: 29 MB #Memory Used# [2025-04-16 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:11:05 [end_date_ymd] => 2025-04-16 03:11:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:11:05' and `end` < '2025-04-16 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-04-16 03:11:18] Production.INFO: count ==174 [2025-04-16 03:11:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:11:05 - End Time 2025-04-16 03:11:05 [2025-04-16 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918076', 'tblTempUsageDetail_20' ) start [2025-04-16 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918076', 'tblTempUsageDetail_20' ) end [2025-04-16 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918076', 'tblTempVendorCDR_20' ) start [2025-04-16 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918076', 'tblTempVendorCDR_20' ) end [2025-04-16 03:11:18] Production.INFO: ProcessCDR(1,14918076,1,1,2) [2025-04-16 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918076', 'tblTempUsageDetail_20' ) start [2025-04-16 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918076', 'tblTempUsageDetail_20' ) end [2025-04-16 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:11:21] Production.INFO: ==5923== Releasing lock... [2025-04-16 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:11:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:12:06 [end_date_ymd] => 2025-04-16 03:12:06 [RateCDR] => 1 ) [2025-04-16 03:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 00:12:06' and `end` < '2025-04-16 03:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 03:12:18] Production.INFO: count ==173 [2025-04-16 03:12:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:12:06 - End Time 2025-04-16 03:12:06 [2025-04-16 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918081', 'tblTempUsageDetail_20' ) start [2025-04-16 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918081', 'tblTempUsageDetail_20' ) end [2025-04-16 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918081', 'tblTempVendorCDR_20' ) start [2025-04-16 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918081', 'tblTempVendorCDR_20' ) end [2025-04-16 03:12:18] Production.INFO: ProcessCDR(1,14918081,1,1,2) [2025-04-16 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918081', 'tblTempUsageDetail_20' ) start [2025-04-16 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918081', 'tblTempUsageDetail_20' ) end [2025-04-16 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:12:21] Production.INFO: ==5993== Releasing lock... [2025-04-16 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:12:21] Production.INFO: 29 MB #Memory Used# [2025-04-16 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:13:05 [end_date_ymd] => 2025-04-16 03:13:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:13:05' and `end` < '2025-04-16 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-04-16 03:13:17] Production.INFO: count ==172 [2025-04-16 03:13:17] Production.ERROR: pbx CDR StartTime 2025-04-16 00:13:05 - End Time 2025-04-16 03:13:05 [2025-04-16 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918086', 'tblTempUsageDetail_20' ) start [2025-04-16 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918086', 'tblTempUsageDetail_20' ) end [2025-04-16 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918086', 'tblTempVendorCDR_20' ) start [2025-04-16 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918086', 'tblTempVendorCDR_20' ) end [2025-04-16 03:13:17] Production.INFO: ProcessCDR(1,14918086,1,1,2) [2025-04-16 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918086', 'tblTempUsageDetail_20' ) start [2025-04-16 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918086', 'tblTempUsageDetail_20' ) end [2025-04-16 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:13:21] Production.INFO: ==6144== Releasing lock... [2025-04-16 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:14:05 [end_date_ymd] => 2025-04-16 03:14:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:14:05' and `end` < '2025-04-16 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-04-16 03:14:18] Production.INFO: count ==171 [2025-04-16 03:14:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:14:05 - End Time 2025-04-16 03:14:05 [2025-04-16 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918091', 'tblTempUsageDetail_20' ) start [2025-04-16 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918091', 'tblTempUsageDetail_20' ) end [2025-04-16 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918091', 'tblTempVendorCDR_20' ) start [2025-04-16 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918091', 'tblTempVendorCDR_20' ) end [2025-04-16 03:14:18] Production.INFO: ProcessCDR(1,14918091,1,1,2) [2025-04-16 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918091', 'tblTempUsageDetail_20' ) start [2025-04-16 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918091', 'tblTempUsageDetail_20' ) end [2025-04-16 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:14:21] Production.INFO: ==6215== Releasing lock... [2025-04-16 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:15:05 [end_date_ymd] => 2025-04-16 03:15:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:15:05' and `end` < '2025-04-16 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-04-16 03:15:17] Production.INFO: count ==171 [2025-04-16 03:15:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:15:05 - End Time 2025-04-16 03:15:05 [2025-04-16 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918096', 'tblTempUsageDetail_20' ) start [2025-04-16 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918096', 'tblTempUsageDetail_20' ) end [2025-04-16 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918096', 'tblTempVendorCDR_20' ) start [2025-04-16 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918096', 'tblTempVendorCDR_20' ) end [2025-04-16 03:15:18] Production.INFO: ProcessCDR(1,14918096,1,1,2) [2025-04-16 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918096', 'tblTempUsageDetail_20' ) start [2025-04-16 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918096', 'tblTempUsageDetail_20' ) end [2025-04-16 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:15:21] Production.INFO: ==6289== Releasing lock... [2025-04-16 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:16:05 [end_date_ymd] => 2025-04-16 03:16:05 [RateCDR] => 1 ) [2025-04-16 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 00:16:05' and `end` < '2025-04-16 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 03:16:18] Production.INFO: count ==171 [2025-04-16 03:16:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:16:05 - End Time 2025-04-16 03:16:05 [2025-04-16 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918101', 'tblTempUsageDetail_20' ) start [2025-04-16 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918101', 'tblTempUsageDetail_20' ) end [2025-04-16 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918101', 'tblTempVendorCDR_20' ) start [2025-04-16 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918101', 'tblTempVendorCDR_20' ) end [2025-04-16 03:16:18] Production.INFO: ProcessCDR(1,14918101,1,1,2) [2025-04-16 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918101', 'tblTempUsageDetail_20' ) start [2025-04-16 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918101', 'tblTempUsageDetail_20' ) end [2025-04-16 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:16:22] Production.INFO: ==6363== Releasing lock... [2025-04-16 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:16:22] Production.INFO: 29 MB #Memory Used# [2025-04-16 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:17:05 [end_date_ymd] => 2025-04-16 03:17:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:17:05' and `end` < '2025-04-16 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-04-16 03:17:17] Production.INFO: count ==170 [2025-04-16 03:17:17] Production.ERROR: pbx CDR StartTime 2025-04-16 00:17:05 - End Time 2025-04-16 03:17:05 [2025-04-16 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918106', 'tblTempUsageDetail_20' ) start [2025-04-16 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918106', 'tblTempUsageDetail_20' ) end [2025-04-16 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918106', 'tblTempVendorCDR_20' ) start [2025-04-16 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918106', 'tblTempVendorCDR_20' ) end [2025-04-16 03:17:17] Production.INFO: ProcessCDR(1,14918106,1,1,2) [2025-04-16 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918106', 'tblTempUsageDetail_20' ) start [2025-04-16 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918106', 'tblTempUsageDetail_20' ) end [2025-04-16 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:17:21] Production.INFO: ==6516== Releasing lock... [2025-04-16 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:18:05 [end_date_ymd] => 2025-04-16 03:18:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:18:05' and `end` < '2025-04-16 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-04-16 03:18:18] Production.INFO: count ==170 [2025-04-16 03:18:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:18:05 - End Time 2025-04-16 03:18:05 [2025-04-16 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918111', 'tblTempUsageDetail_20' ) start [2025-04-16 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918111', 'tblTempUsageDetail_20' ) end [2025-04-16 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918111', 'tblTempVendorCDR_20' ) start [2025-04-16 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918111', 'tblTempVendorCDR_20' ) end [2025-04-16 03:18:18] Production.INFO: ProcessCDR(1,14918111,1,1,2) [2025-04-16 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918111', 'tblTempUsageDetail_20' ) start [2025-04-16 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918111', 'tblTempUsageDetail_20' ) end [2025-04-16 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:18:22] Production.INFO: ==6586== Releasing lock... [2025-04-16 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:18:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:19:04 [end_date_ymd] => 2025-04-16 03:19:04 [RateCDR] => 1 ) [2025-04-16 03:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 00:19:04' and `end` < '2025-04-16 03:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 03:19:17] Production.INFO: count ==170 [2025-04-16 03:19:17] Production.ERROR: pbx CDR StartTime 2025-04-16 00:19:04 - End Time 2025-04-16 03:19:04 [2025-04-16 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918116', 'tblTempUsageDetail_20' ) start [2025-04-16 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918116', 'tblTempUsageDetail_20' ) end [2025-04-16 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918116', 'tblTempVendorCDR_20' ) start [2025-04-16 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918116', 'tblTempVendorCDR_20' ) end [2025-04-16 03:19:17] Production.INFO: ProcessCDR(1,14918116,1,1,2) [2025-04-16 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918116', 'tblTempUsageDetail_20' ) start [2025-04-16 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918116', 'tblTempUsageDetail_20' ) end [2025-04-16 03:19:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:19:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:19:20] Production.INFO: ==6662== Releasing lock... [2025-04-16 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:19:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:20:06 [end_date_ymd] => 2025-04-16 03:20:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:20:06' and `end` < '2025-04-16 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-04-16 03:20:19] Production.INFO: count ==164 [2025-04-16 03:20:19] Production.ERROR: pbx CDR StartTime 2025-04-16 00:20:06 - End Time 2025-04-16 03:20:06 [2025-04-16 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918122', 'tblTempUsageDetail_20' ) start [2025-04-16 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918122', 'tblTempUsageDetail_20' ) end [2025-04-16 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918122', 'tblTempVendorCDR_20' ) start [2025-04-16 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918122', 'tblTempVendorCDR_20' ) end [2025-04-16 03:20:19] Production.INFO: ProcessCDR(1,14918122,1,1,2) [2025-04-16 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918122', 'tblTempUsageDetail_20' ) start [2025-04-16 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918122', 'tblTempUsageDetail_20' ) end [2025-04-16 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:20:22] Production.INFO: ==6739== Releasing lock... [2025-04-16 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:21:05 [end_date_ymd] => 2025-04-16 03:21:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:21:05' and `end` < '2025-04-16 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-04-16 03:21:17] Production.INFO: count ==156 [2025-04-16 03:21:17] Production.ERROR: pbx CDR StartTime 2025-04-16 00:21:05 - End Time 2025-04-16 03:21:05 [2025-04-16 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918127', 'tblTempUsageDetail_20' ) start [2025-04-16 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918127', 'tblTempUsageDetail_20' ) end [2025-04-16 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918127', 'tblTempVendorCDR_20' ) start [2025-04-16 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918127', 'tblTempVendorCDR_20' ) end [2025-04-16 03:21:17] Production.INFO: ProcessCDR(1,14918127,1,1,2) [2025-04-16 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918127', 'tblTempUsageDetail_20' ) start [2025-04-16 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918127', 'tblTempUsageDetail_20' ) end [2025-04-16 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:21:21] Production.INFO: ==6856== Releasing lock... [2025-04-16 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:22:04 [end_date_ymd] => 2025-04-16 03:22:04 [RateCDR] => 1 ) [2025-04-16 03:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 00:22:04' and `end` < '2025-04-16 03: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-04-16 03:22:17] Production.INFO: count ==156 [2025-04-16 03:22:17] Production.ERROR: pbx CDR StartTime 2025-04-16 00:22:04 - End Time 2025-04-16 03:22:04 [2025-04-16 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918132', 'tblTempUsageDetail_20' ) start [2025-04-16 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918132', 'tblTempUsageDetail_20' ) end [2025-04-16 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918132', 'tblTempVendorCDR_20' ) start [2025-04-16 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918132', 'tblTempVendorCDR_20' ) end [2025-04-16 03:22:17] Production.INFO: ProcessCDR(1,14918132,1,1,2) [2025-04-16 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918132', 'tblTempUsageDetail_20' ) start [2025-04-16 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918132', 'tblTempUsageDetail_20' ) end [2025-04-16 03:22:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:22:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:22:20] Production.INFO: ==6926== Releasing lock... [2025-04-16 03:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:22:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:23:05 [end_date_ymd] => 2025-04-16 03:23:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:23:05' and `end` < '2025-04-16 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-04-16 03:23:18] Production.INFO: count ==156 [2025-04-16 03:23:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:23:05 - End Time 2025-04-16 03:23:05 [2025-04-16 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918137', 'tblTempUsageDetail_20' ) start [2025-04-16 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918137', 'tblTempUsageDetail_20' ) end [2025-04-16 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918137', 'tblTempVendorCDR_20' ) start [2025-04-16 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918137', 'tblTempVendorCDR_20' ) end [2025-04-16 03:23:18] Production.INFO: ProcessCDR(1,14918137,1,1,2) [2025-04-16 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918137', 'tblTempUsageDetail_20' ) start [2025-04-16 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918137', 'tblTempUsageDetail_20' ) end [2025-04-16 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:23:21] Production.INFO: ==6997== Releasing lock... [2025-04-16 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:24:05 [end_date_ymd] => 2025-04-16 03:24:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:24:05' and `end` < '2025-04-16 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-04-16 03:24:18] Production.INFO: count ==156 [2025-04-16 03:24:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:24:05 - End Time 2025-04-16 03:24:05 [2025-04-16 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918142', 'tblTempUsageDetail_20' ) start [2025-04-16 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918142', 'tblTempUsageDetail_20' ) end [2025-04-16 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918142', 'tblTempVendorCDR_20' ) start [2025-04-16 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918142', 'tblTempVendorCDR_20' ) end [2025-04-16 03:24:18] Production.INFO: ProcessCDR(1,14918142,1,1,2) [2025-04-16 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918142', 'tblTempUsageDetail_20' ) start [2025-04-16 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918142', 'tblTempUsageDetail_20' ) end [2025-04-16 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:24:21] Production.INFO: ==7070== Releasing lock... [2025-04-16 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:25:05 [end_date_ymd] => 2025-04-16 03:25:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:25:05' and `end` < '2025-04-16 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-04-16 03:25:18] Production.INFO: count ==156 [2025-04-16 03:25:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:25:05 - End Time 2025-04-16 03:25:05 [2025-04-16 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918147', 'tblTempUsageDetail_20' ) start [2025-04-16 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918147', 'tblTempUsageDetail_20' ) end [2025-04-16 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918147', 'tblTempVendorCDR_20' ) start [2025-04-16 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918147', 'tblTempVendorCDR_20' ) end [2025-04-16 03:25:18] Production.INFO: ProcessCDR(1,14918147,1,1,2) [2025-04-16 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918147', 'tblTempUsageDetail_20' ) start [2025-04-16 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918147', 'tblTempUsageDetail_20' ) end [2025-04-16 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:25:21] Production.INFO: ==7148== Releasing lock... [2025-04-16 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:26:04 [end_date_ymd] => 2025-04-16 03:26:04 [RateCDR] => 1 ) [2025-04-16 03:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 00:26:04' and `end` < '2025-04-16 03:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 03:26:17] Production.INFO: count ==156 [2025-04-16 03:26:17] Production.ERROR: pbx CDR StartTime 2025-04-16 00:26:04 - End Time 2025-04-16 03:26:04 [2025-04-16 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918152', 'tblTempUsageDetail_20' ) start [2025-04-16 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918152', 'tblTempUsageDetail_20' ) end [2025-04-16 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918152', 'tblTempVendorCDR_20' ) start [2025-04-16 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918152', 'tblTempVendorCDR_20' ) end [2025-04-16 03:26:17] Production.INFO: ProcessCDR(1,14918152,1,1,2) [2025-04-16 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918152', 'tblTempUsageDetail_20' ) start [2025-04-16 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918152', 'tblTempUsageDetail_20' ) end [2025-04-16 03:26:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:26:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:26:20] Production.INFO: ==7224== Releasing lock... [2025-04-16 03:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:26:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:27:05 [end_date_ymd] => 2025-04-16 03:27:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:27:05' and `end` < '2025-04-16 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-04-16 03:27:18] Production.INFO: count ==156 [2025-04-16 03:27:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:27:05 - End Time 2025-04-16 03:27:05 [2025-04-16 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918157', 'tblTempUsageDetail_20' ) start [2025-04-16 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918157', 'tblTempUsageDetail_20' ) end [2025-04-16 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918157', 'tblTempVendorCDR_20' ) start [2025-04-16 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918157', 'tblTempVendorCDR_20' ) end [2025-04-16 03:27:18] Production.INFO: ProcessCDR(1,14918157,1,1,2) [2025-04-16 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918157', 'tblTempUsageDetail_20' ) start [2025-04-16 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918157', 'tblTempUsageDetail_20' ) end [2025-04-16 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:27:21] Production.INFO: ==7297== Releasing lock... [2025-04-16 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:28:04 [end_date_ymd] => 2025-04-16 03:28:04 [RateCDR] => 1 ) [2025-04-16 03:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 00:28:04' and `end` < '2025-04-16 03:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 03:28:17] Production.INFO: count ==159 [2025-04-16 03:28:17] Production.ERROR: pbx CDR StartTime 2025-04-16 00:28:04 - End Time 2025-04-16 03:28:04 [2025-04-16 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918162', 'tblTempUsageDetail_20' ) start [2025-04-16 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918162', 'tblTempUsageDetail_20' ) end [2025-04-16 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918162', 'tblTempVendorCDR_20' ) start [2025-04-16 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918162', 'tblTempVendorCDR_20' ) end [2025-04-16 03:28:17] Production.INFO: ProcessCDR(1,14918162,1,1,2) [2025-04-16 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918162', 'tblTempUsageDetail_20' ) start [2025-04-16 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918162', 'tblTempUsageDetail_20' ) end [2025-04-16 03:28:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:28:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:28:20] Production.INFO: ==7373== Releasing lock... [2025-04-16 03:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:28:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:29:05 [end_date_ymd] => 2025-04-16 03:29:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:29:05' and `end` < '2025-04-16 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-04-16 03:29:17] Production.INFO: count ==159 [2025-04-16 03:29:17] Production.ERROR: pbx CDR StartTime 2025-04-16 00:29:05 - End Time 2025-04-16 03:29:05 [2025-04-16 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918167', 'tblTempUsageDetail_20' ) start [2025-04-16 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918167', 'tblTempUsageDetail_20' ) end [2025-04-16 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918167', 'tblTempVendorCDR_20' ) start [2025-04-16 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918167', 'tblTempVendorCDR_20' ) end [2025-04-16 03:29:17] Production.INFO: ProcessCDR(1,14918167,1,1,2) [2025-04-16 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918167', 'tblTempUsageDetail_20' ) start [2025-04-16 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918167', 'tblTempUsageDetail_20' ) end [2025-04-16 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:29:21] Production.INFO: ==7447== Releasing lock... [2025-04-16 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:29:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:30:06 [end_date_ymd] => 2025-04-16 03:30:06 [RateCDR] => 1 ) [2025-04-16 03: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-04-16 00:30:06' and `end` < '2025-04-16 03: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-04-16 03:30:19] Production.INFO: count ==149 [2025-04-16 03:30:19] Production.ERROR: pbx CDR StartTime 2025-04-16 00:30:06 - End Time 2025-04-16 03:30:06 [2025-04-16 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918173', 'tblTempUsageDetail_20' ) start [2025-04-16 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918173', 'tblTempUsageDetail_20' ) end [2025-04-16 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918173', 'tblTempVendorCDR_20' ) start [2025-04-16 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918173', 'tblTempVendorCDR_20' ) end [2025-04-16 03:30:19] Production.INFO: ProcessCDR(1,14918173,1,1,2) [2025-04-16 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918173', 'tblTempUsageDetail_20' ) start [2025-04-16 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918173', 'tblTempUsageDetail_20' ) end [2025-04-16 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:30:22] Production.INFO: ==7523== Releasing lock... [2025-04-16 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:30:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:31:05 [end_date_ymd] => 2025-04-16 03:31:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:31:05' and `end` < '2025-04-16 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-04-16 03:31:17] Production.INFO: count ==147 [2025-04-16 03:31:17] Production.ERROR: pbx CDR StartTime 2025-04-16 00:31:05 - End Time 2025-04-16 03:31:05 [2025-04-16 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918178', 'tblTempUsageDetail_20' ) start [2025-04-16 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918178', 'tblTempUsageDetail_20' ) end [2025-04-16 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918178', 'tblTempVendorCDR_20' ) start [2025-04-16 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918178', 'tblTempVendorCDR_20' ) end [2025-04-16 03:31:17] Production.INFO: ProcessCDR(1,14918178,1,1,2) [2025-04-16 03:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918178', 'tblTempUsageDetail_20' ) start [2025-04-16 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918178', 'tblTempUsageDetail_20' ) end [2025-04-16 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:31:21] Production.INFO: ==7601== Releasing lock... [2025-04-16 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:31:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:32:06 [end_date_ymd] => 2025-04-16 03:32:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:32:06' and `end` < '2025-04-16 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-04-16 03:32:18] Production.INFO: count ==147 [2025-04-16 03:32:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:32:06 - End Time 2025-04-16 03:32:06 [2025-04-16 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918183', 'tblTempUsageDetail_20' ) start [2025-04-16 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918183', 'tblTempUsageDetail_20' ) end [2025-04-16 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918183', 'tblTempVendorCDR_20' ) start [2025-04-16 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918183', 'tblTempVendorCDR_20' ) end [2025-04-16 03:32:18] Production.INFO: ProcessCDR(1,14918183,1,1,2) [2025-04-16 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918183', 'tblTempUsageDetail_20' ) start [2025-04-16 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918183', 'tblTempUsageDetail_20' ) end [2025-04-16 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:32:21] Production.INFO: ==7670== Releasing lock... [2025-04-16 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:32:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:33:05 [end_date_ymd] => 2025-04-16 03:33:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:33:05' and `end` < '2025-04-16 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-04-16 03:33:18] Production.INFO: count ==147 [2025-04-16 03:33:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:33:05 - End Time 2025-04-16 03:33:05 [2025-04-16 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918188', 'tblTempUsageDetail_20' ) start [2025-04-16 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918188', 'tblTempUsageDetail_20' ) end [2025-04-16 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918188', 'tblTempVendorCDR_20' ) start [2025-04-16 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918188', 'tblTempVendorCDR_20' ) end [2025-04-16 03:33:18] Production.INFO: ProcessCDR(1,14918188,1,1,2) [2025-04-16 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918188', 'tblTempUsageDetail_20' ) start [2025-04-16 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918188', 'tblTempUsageDetail_20' ) end [2025-04-16 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:33:21] Production.INFO: ==7745== Releasing lock... [2025-04-16 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:34:05 [end_date_ymd] => 2025-04-16 03:34:05 [RateCDR] => 1 ) [2025-04-16 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 00:34:05' and `end` < '2025-04-16 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 03:34:18] Production.INFO: count ==147 [2025-04-16 03:34:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:34:05 - End Time 2025-04-16 03:34:05 [2025-04-16 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918193', 'tblTempUsageDetail_20' ) start [2025-04-16 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918193', 'tblTempUsageDetail_20' ) end [2025-04-16 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918193', 'tblTempVendorCDR_20' ) start [2025-04-16 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918193', 'tblTempVendorCDR_20' ) end [2025-04-16 03:34:18] Production.INFO: ProcessCDR(1,14918193,1,1,2) [2025-04-16 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918193', 'tblTempUsageDetail_20' ) start [2025-04-16 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918193', 'tblTempUsageDetail_20' ) end [2025-04-16 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:34:21] Production.INFO: ==7817== Releasing lock... [2025-04-16 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:35:05 [end_date_ymd] => 2025-04-16 03:35:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:35:05' and `end` < '2025-04-16 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-04-16 03:35:17] Production.INFO: count ==146 [2025-04-16 03:35:17] Production.ERROR: pbx CDR StartTime 2025-04-16 00:35:05 - End Time 2025-04-16 03:35:05 [2025-04-16 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918198', 'tblTempUsageDetail_20' ) start [2025-04-16 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918198', 'tblTempUsageDetail_20' ) end [2025-04-16 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918198', 'tblTempVendorCDR_20' ) start [2025-04-16 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918198', 'tblTempVendorCDR_20' ) end [2025-04-16 03:35:17] Production.INFO: ProcessCDR(1,14918198,1,1,2) [2025-04-16 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918198', 'tblTempUsageDetail_20' ) start [2025-04-16 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918198', 'tblTempUsageDetail_20' ) end [2025-04-16 03:35:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:35:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:35:20] Production.INFO: ==7899== Releasing lock... [2025-04-16 03:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:35:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:36:05 [end_date_ymd] => 2025-04-16 03:36:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:36:05' and `end` < '2025-04-16 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-04-16 03:36:18] Production.INFO: count ==146 [2025-04-16 03:36:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:36:05 - End Time 2025-04-16 03:36:05 [2025-04-16 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918202', 'tblTempUsageDetail_20' ) start [2025-04-16 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918202', 'tblTempUsageDetail_20' ) end [2025-04-16 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918202', 'tblTempVendorCDR_20' ) start [2025-04-16 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918202', 'tblTempVendorCDR_20' ) end [2025-04-16 03:36:18] Production.INFO: ProcessCDR(1,14918202,1,1,2) [2025-04-16 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918202', 'tblTempUsageDetail_20' ) start [2025-04-16 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918202', 'tblTempUsageDetail_20' ) end [2025-04-16 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:36:21] Production.INFO: ==8010== Releasing lock... [2025-04-16 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:37:05 [end_date_ymd] => 2025-04-16 03:37:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:37:05' and `end` < '2025-04-16 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-04-16 03:37:17] Production.INFO: count ==144 [2025-04-16 03:37:17] Production.ERROR: pbx CDR StartTime 2025-04-16 00:37:05 - End Time 2025-04-16 03:37:05 [2025-04-16 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918208', 'tblTempUsageDetail_20' ) start [2025-04-16 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918208', 'tblTempUsageDetail_20' ) end [2025-04-16 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918208', 'tblTempVendorCDR_20' ) start [2025-04-16 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918208', 'tblTempVendorCDR_20' ) end [2025-04-16 03:37:17] Production.INFO: ProcessCDR(1,14918208,1,1,2) [2025-04-16 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918208', 'tblTempUsageDetail_20' ) start [2025-04-16 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918208', 'tblTempUsageDetail_20' ) end [2025-04-16 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:37:21] Production.INFO: ==8078== Releasing lock... [2025-04-16 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:38:05 [end_date_ymd] => 2025-04-16 03:38:05 [RateCDR] => 1 ) [2025-04-16 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 00:38:05' and `end` < '2025-04-16 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 03:38:17] Production.INFO: count ==144 [2025-04-16 03:38:17] Production.ERROR: pbx CDR StartTime 2025-04-16 00:38:05 - End Time 2025-04-16 03:38:05 [2025-04-16 03:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918213', 'tblTempUsageDetail_20' ) start [2025-04-16 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918213', 'tblTempUsageDetail_20' ) end [2025-04-16 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918213', 'tblTempVendorCDR_20' ) start [2025-04-16 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918213', 'tblTempVendorCDR_20' ) end [2025-04-16 03:38:17] Production.INFO: ProcessCDR(1,14918213,1,1,2) [2025-04-16 03:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918213', 'tblTempUsageDetail_20' ) start [2025-04-16 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918213', 'tblTempUsageDetail_20' ) end [2025-04-16 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:38:21] Production.INFO: ==8185== Releasing lock... [2025-04-16 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:39:05 [end_date_ymd] => 2025-04-16 03:39:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:39:05' and `end` < '2025-04-16 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-04-16 03:39:18] Production.INFO: count ==145 [2025-04-16 03:39:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:39:05 - End Time 2025-04-16 03:39:05 [2025-04-16 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918217', 'tblTempUsageDetail_20' ) start [2025-04-16 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918217', 'tblTempUsageDetail_20' ) end [2025-04-16 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918217', 'tblTempVendorCDR_20' ) start [2025-04-16 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918217', 'tblTempVendorCDR_20' ) end [2025-04-16 03:39:18] Production.INFO: ProcessCDR(1,14918217,1,1,2) [2025-04-16 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918217', 'tblTempUsageDetail_20' ) start [2025-04-16 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918217', 'tblTempUsageDetail_20' ) end [2025-04-16 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:39:21] Production.INFO: ==8266== Releasing lock... [2025-04-16 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:40:05 [end_date_ymd] => 2025-04-16 03:40:05 [RateCDR] => 1 ) [2025-04-16 03:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 00:40:05' and `end` < '2025-04-16 03:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 03:40:18] Production.INFO: count ==137 [2025-04-16 03:40:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:40:05 - End Time 2025-04-16 03:40:05 [2025-04-16 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918223', 'tblTempUsageDetail_20' ) start [2025-04-16 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918223', 'tblTempUsageDetail_20' ) end [2025-04-16 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918223', 'tblTempVendorCDR_20' ) start [2025-04-16 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918223', 'tblTempVendorCDR_20' ) end [2025-04-16 03:40:18] Production.INFO: ProcessCDR(1,14918223,1,1,2) [2025-04-16 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918223', 'tblTempUsageDetail_20' ) start [2025-04-16 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918223', 'tblTempUsageDetail_20' ) end [2025-04-16 03:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:40:21] Production.INFO: ==8345== Releasing lock... [2025-04-16 03:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:40:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:41:05 [end_date_ymd] => 2025-04-16 03:41:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:41:05' and `end` < '2025-04-16 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-04-16 03:41:18] Production.INFO: count ==136 [2025-04-16 03:41:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:41:05 - End Time 2025-04-16 03:41:05 [2025-04-16 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918227', 'tblTempUsageDetail_20' ) start [2025-04-16 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918227', 'tblTempUsageDetail_20' ) end [2025-04-16 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918227', 'tblTempVendorCDR_20' ) start [2025-04-16 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918227', 'tblTempVendorCDR_20' ) end [2025-04-16 03:41:18] Production.INFO: ProcessCDR(1,14918227,1,1,2) [2025-04-16 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918227', 'tblTempUsageDetail_20' ) start [2025-04-16 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918227', 'tblTempUsageDetail_20' ) end [2025-04-16 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:41:21] Production.INFO: ==8425== Releasing lock... [2025-04-16 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:42:05 [end_date_ymd] => 2025-04-16 03:42:05 [RateCDR] => 1 ) [2025-04-16 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 00:42:05' and `end` < '2025-04-16 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 03:42:18] Production.INFO: count ==136 [2025-04-16 03:42:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:42:05 - End Time 2025-04-16 03:42:05 [2025-04-16 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918234', 'tblTempUsageDetail_20' ) start [2025-04-16 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918234', 'tblTempUsageDetail_20' ) end [2025-04-16 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918234', 'tblTempVendorCDR_20' ) start [2025-04-16 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918234', 'tblTempVendorCDR_20' ) end [2025-04-16 03:42:18] Production.INFO: ProcessCDR(1,14918234,1,1,2) [2025-04-16 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918234', 'tblTempUsageDetail_20' ) start [2025-04-16 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918234', 'tblTempUsageDetail_20' ) end [2025-04-16 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:42:21] Production.INFO: ==8495== Releasing lock... [2025-04-16 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:43:05 [end_date_ymd] => 2025-04-16 03:43:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:43:05' and `end` < '2025-04-16 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-04-16 03:43:18] Production.INFO: count ==138 [2025-04-16 03:43:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:43:05 - End Time 2025-04-16 03:43:05 [2025-04-16 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918239', 'tblTempUsageDetail_20' ) start [2025-04-16 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918239', 'tblTempUsageDetail_20' ) end [2025-04-16 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918239', 'tblTempVendorCDR_20' ) start [2025-04-16 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918239', 'tblTempVendorCDR_20' ) end [2025-04-16 03:43:18] Production.INFO: ProcessCDR(1,14918239,1,1,2) [2025-04-16 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918239', 'tblTempUsageDetail_20' ) start [2025-04-16 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918239', 'tblTempUsageDetail_20' ) end [2025-04-16 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:43:21] Production.INFO: ==8571== Releasing lock... [2025-04-16 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:44:05 [end_date_ymd] => 2025-04-16 03:44:05 [RateCDR] => 1 ) [2025-04-16 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 00:44:05' and `end` < '2025-04-16 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 03:44:17] Production.INFO: count ==138 [2025-04-16 03:44:17] Production.ERROR: pbx CDR StartTime 2025-04-16 00:44:05 - End Time 2025-04-16 03:44:05 [2025-04-16 03:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918244', 'tblTempUsageDetail_20' ) start [2025-04-16 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918244', 'tblTempUsageDetail_20' ) end [2025-04-16 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918244', 'tblTempVendorCDR_20' ) start [2025-04-16 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918244', 'tblTempVendorCDR_20' ) end [2025-04-16 03:44:17] Production.INFO: ProcessCDR(1,14918244,1,1,2) [2025-04-16 03:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918244', 'tblTempUsageDetail_20' ) start [2025-04-16 03:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918244', 'tblTempUsageDetail_20' ) end [2025-04-16 03:44:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:44:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:44:20] Production.INFO: ==8674== Releasing lock... [2025-04-16 03:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:44:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:45:05 [end_date_ymd] => 2025-04-16 03:45:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:45:05' and `end` < '2025-04-16 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-04-16 03:45:18] Production.INFO: count ==138 [2025-04-16 03:45:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:45:05 - End Time 2025-04-16 03:45:05 [2025-04-16 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918249', 'tblTempUsageDetail_20' ) start [2025-04-16 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918249', 'tblTempUsageDetail_20' ) end [2025-04-16 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918249', 'tblTempVendorCDR_20' ) start [2025-04-16 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918249', 'tblTempVendorCDR_20' ) end [2025-04-16 03:45:18] Production.INFO: ProcessCDR(1,14918249,1,1,2) [2025-04-16 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918249', 'tblTempUsageDetail_20' ) start [2025-04-16 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918249', 'tblTempUsageDetail_20' ) end [2025-04-16 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:45:21] Production.INFO: ==8784== Releasing lock... [2025-04-16 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:46:06 [end_date_ymd] => 2025-04-16 03:46:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:46:06' and `end` < '2025-04-16 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-04-16 03:46:18] Production.INFO: count ==138 [2025-04-16 03:46:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:46:06 - End Time 2025-04-16 03:46:06 [2025-04-16 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918254', 'tblTempUsageDetail_20' ) start [2025-04-16 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918254', 'tblTempUsageDetail_20' ) end [2025-04-16 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918254', 'tblTempVendorCDR_20' ) start [2025-04-16 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918254', 'tblTempVendorCDR_20' ) end [2025-04-16 03:46:18] Production.INFO: ProcessCDR(1,14918254,1,1,2) [2025-04-16 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918254', 'tblTempUsageDetail_20' ) start [2025-04-16 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918254', 'tblTempUsageDetail_20' ) end [2025-04-16 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:46:21] Production.INFO: ==8887== Releasing lock... [2025-04-16 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:47:05 [end_date_ymd] => 2025-04-16 03:47:05 [RateCDR] => 1 ) [2025-04-16 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 00:47:05' and `end` < '2025-04-16 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 03:47:17] Production.INFO: count ==138 [2025-04-16 03:47:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:47:05 - End Time 2025-04-16 03:47:05 [2025-04-16 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918259', 'tblTempUsageDetail_20' ) start [2025-04-16 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918259', 'tblTempUsageDetail_20' ) end [2025-04-16 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918259', 'tblTempVendorCDR_20' ) start [2025-04-16 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918259', 'tblTempVendorCDR_20' ) end [2025-04-16 03:47:18] Production.INFO: ProcessCDR(1,14918259,1,1,2) [2025-04-16 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918259', 'tblTempUsageDetail_20' ) start [2025-04-16 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918259', 'tblTempUsageDetail_20' ) end [2025-04-16 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:47:21] Production.INFO: ==8990== Releasing lock... [2025-04-16 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:47:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:48:05 [end_date_ymd] => 2025-04-16 03:48:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:48:05' and `end` < '2025-04-16 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-04-16 03:48:18] Production.INFO: count ==138 [2025-04-16 03:48:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:48:05 - End Time 2025-04-16 03:48:05 [2025-04-16 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918264', 'tblTempUsageDetail_20' ) start [2025-04-16 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918264', 'tblTempUsageDetail_20' ) end [2025-04-16 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918264', 'tblTempVendorCDR_20' ) start [2025-04-16 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918264', 'tblTempVendorCDR_20' ) end [2025-04-16 03:48:18] Production.INFO: ProcessCDR(1,14918264,1,1,2) [2025-04-16 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918264', 'tblTempUsageDetail_20' ) start [2025-04-16 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918264', 'tblTempUsageDetail_20' ) end [2025-04-16 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:48:21] Production.INFO: ==9072== Releasing lock... [2025-04-16 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:49:05 [end_date_ymd] => 2025-04-16 03:49:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:49:05' and `end` < '2025-04-16 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-04-16 03:49:17] Production.INFO: count ==138 [2025-04-16 03:49:17] Production.ERROR: pbx CDR StartTime 2025-04-16 00:49:05 - End Time 2025-04-16 03:49:05 [2025-04-16 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918269', 'tblTempUsageDetail_20' ) start [2025-04-16 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918269', 'tblTempUsageDetail_20' ) end [2025-04-16 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918269', 'tblTempVendorCDR_20' ) start [2025-04-16 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918269', 'tblTempVendorCDR_20' ) end [2025-04-16 03:49:17] Production.INFO: ProcessCDR(1,14918269,1,1,2) [2025-04-16 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918269', 'tblTempUsageDetail_20' ) start [2025-04-16 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918269', 'tblTempUsageDetail_20' ) end [2025-04-16 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:49:21] Production.INFO: ==9147== Releasing lock... [2025-04-16 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:49:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:50:05 [end_date_ymd] => 2025-04-16 03:50:05 [RateCDR] => 1 ) [2025-04-16 03:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 00:50:05' and `end` < '2025-04-16 03:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 03:50:18] Production.INFO: count ==130 [2025-04-16 03:50:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:50:05 - End Time 2025-04-16 03:50:05 [2025-04-16 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918275', 'tblTempUsageDetail_20' ) start [2025-04-16 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918275', 'tblTempUsageDetail_20' ) end [2025-04-16 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918275', 'tblTempVendorCDR_20' ) start [2025-04-16 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918275', 'tblTempVendorCDR_20' ) end [2025-04-16 03:50:18] Production.INFO: ProcessCDR(1,14918275,1,1,2) [2025-04-16 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918275', 'tblTempUsageDetail_20' ) start [2025-04-16 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918275', 'tblTempUsageDetail_20' ) end [2025-04-16 03:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:50:21] Production.INFO: ==9226== Releasing lock... [2025-04-16 03:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:50:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:51:04 [end_date_ymd] => 2025-04-16 03:51:04 [RateCDR] => 1 ) [2025-04-16 03:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 00:51:04' and `end` < '2025-04-16 03:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 03:51:17] Production.INFO: count ==129 [2025-04-16 03:51:17] Production.ERROR: pbx CDR StartTime 2025-04-16 00:51:04 - End Time 2025-04-16 03:51:04 [2025-04-16 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918280', 'tblTempUsageDetail_20' ) start [2025-04-16 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918280', 'tblTempUsageDetail_20' ) end [2025-04-16 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918280', 'tblTempVendorCDR_20' ) start [2025-04-16 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918280', 'tblTempVendorCDR_20' ) end [2025-04-16 03:51:17] Production.INFO: ProcessCDR(1,14918280,1,1,2) [2025-04-16 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918280', 'tblTempUsageDetail_20' ) start [2025-04-16 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918280', 'tblTempUsageDetail_20' ) end [2025-04-16 03:51:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:51:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:51:20] Production.INFO: ==9299== Releasing lock... [2025-04-16 03:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:51:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:52:05 [end_date_ymd] => 2025-04-16 03:52:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:52:05' and `end` < '2025-04-16 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-04-16 03:52:18] Production.INFO: count ==128 [2025-04-16 03:52:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:52:05 - End Time 2025-04-16 03:52:05 [2025-04-16 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918285', 'tblTempUsageDetail_20' ) start [2025-04-16 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918285', 'tblTempUsageDetail_20' ) end [2025-04-16 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918285', 'tblTempVendorCDR_20' ) start [2025-04-16 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918285', 'tblTempVendorCDR_20' ) end [2025-04-16 03:52:18] Production.INFO: ProcessCDR(1,14918285,1,1,2) [2025-04-16 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918285', 'tblTempUsageDetail_20' ) start [2025-04-16 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918285', 'tblTempUsageDetail_20' ) end [2025-04-16 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:52:21] Production.INFO: ==9419== Releasing lock... [2025-04-16 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:52:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:53:05 [end_date_ymd] => 2025-04-16 03:53:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:53:05' and `end` < '2025-04-16 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-04-16 03:53:18] Production.INFO: count ==128 [2025-04-16 03:53:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:53:05 - End Time 2025-04-16 03:53:05 [2025-04-16 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918290', 'tblTempUsageDetail_20' ) start [2025-04-16 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918290', 'tblTempUsageDetail_20' ) end [2025-04-16 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918290', 'tblTempVendorCDR_20' ) start [2025-04-16 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918290', 'tblTempVendorCDR_20' ) end [2025-04-16 03:53:18] Production.INFO: ProcessCDR(1,14918290,1,1,2) [2025-04-16 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918290', 'tblTempUsageDetail_20' ) start [2025-04-16 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918290', 'tblTempUsageDetail_20' ) end [2025-04-16 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:53:21] Production.INFO: ==9495== Releasing lock... [2025-04-16 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:54:05 [end_date_ymd] => 2025-04-16 03:54:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:54:05' and `end` < '2025-04-16 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-04-16 03:54:18] Production.INFO: count ==128 [2025-04-16 03:54:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:54:05 - End Time 2025-04-16 03:54:05 [2025-04-16 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918295', 'tblTempUsageDetail_20' ) start [2025-04-16 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918295', 'tblTempUsageDetail_20' ) end [2025-04-16 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918295', 'tblTempVendorCDR_20' ) start [2025-04-16 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918295', 'tblTempVendorCDR_20' ) end [2025-04-16 03:54:18] Production.INFO: ProcessCDR(1,14918295,1,1,2) [2025-04-16 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918295', 'tblTempUsageDetail_20' ) start [2025-04-16 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918295', 'tblTempUsageDetail_20' ) end [2025-04-16 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:54:21] Production.INFO: ==9569== Releasing lock... [2025-04-16 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:55:06 [end_date_ymd] => 2025-04-16 03:55:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:55:06' and `end` < '2025-04-16 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-04-16 03:55:18] Production.INFO: count ==128 [2025-04-16 03:55:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:55:06 - End Time 2025-04-16 03:55:06 [2025-04-16 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918300', 'tblTempUsageDetail_20' ) start [2025-04-16 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918300', 'tblTempUsageDetail_20' ) end [2025-04-16 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918300', 'tblTempVendorCDR_20' ) start [2025-04-16 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918300', 'tblTempVendorCDR_20' ) end [2025-04-16 03:55:18] Production.INFO: ProcessCDR(1,14918300,1,1,2) [2025-04-16 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918300', 'tblTempUsageDetail_20' ) start [2025-04-16 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918300', 'tblTempUsageDetail_20' ) end [2025-04-16 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:55:21] Production.INFO: ==9646== Releasing lock... [2025-04-16 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:56:05 [end_date_ymd] => 2025-04-16 03:56:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:56:05' and `end` < '2025-04-16 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-04-16 03:56:17] Production.INFO: count ==127 [2025-04-16 03:56:17] Production.ERROR: pbx CDR StartTime 2025-04-16 00:56:05 - End Time 2025-04-16 03:56:05 [2025-04-16 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918305', 'tblTempUsageDetail_20' ) start [2025-04-16 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918305', 'tblTempUsageDetail_20' ) end [2025-04-16 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918305', 'tblTempVendorCDR_20' ) start [2025-04-16 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918305', 'tblTempVendorCDR_20' ) end [2025-04-16 03:56:17] Production.INFO: ProcessCDR(1,14918305,1,1,2) [2025-04-16 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918305', 'tblTempUsageDetail_20' ) start [2025-04-16 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918305', 'tblTempUsageDetail_20' ) end [2025-04-16 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:56:21] Production.INFO: ==9724== Releasing lock... [2025-04-16 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:57:05 [end_date_ymd] => 2025-04-16 03:57:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:57:05' and `end` < '2025-04-16 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-04-16 03:57:18] Production.INFO: count ==127 [2025-04-16 03:57:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:57:05 - End Time 2025-04-16 03:57:05 [2025-04-16 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918310', 'tblTempUsageDetail_20' ) start [2025-04-16 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918310', 'tblTempUsageDetail_20' ) end [2025-04-16 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918310', 'tblTempVendorCDR_20' ) start [2025-04-16 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918310', 'tblTempVendorCDR_20' ) end [2025-04-16 03:57:18] Production.INFO: ProcessCDR(1,14918310,1,1,2) [2025-04-16 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918310', 'tblTempUsageDetail_20' ) start [2025-04-16 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918310', 'tblTempUsageDetail_20' ) end [2025-04-16 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:57:21] Production.INFO: ==9795== Releasing lock... [2025-04-16 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:58:05 [end_date_ymd] => 2025-04-16 03:58:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 00:58:05' and `end` < '2025-04-16 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-04-16 03:58:17] Production.INFO: count ==127 [2025-04-16 03:58:17] Production.ERROR: pbx CDR StartTime 2025-04-16 00:58:05 - End Time 2025-04-16 03:58:05 [2025-04-16 03:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918314', 'tblTempUsageDetail_20' ) start [2025-04-16 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918314', 'tblTempUsageDetail_20' ) end [2025-04-16 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918314', 'tblTempVendorCDR_20' ) start [2025-04-16 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918314', 'tblTempVendorCDR_20' ) end [2025-04-16 03:58:17] Production.INFO: ProcessCDR(1,14918314,1,1,2) [2025-04-16 03:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918314', 'tblTempUsageDetail_20' ) start [2025-04-16 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918314', 'tblTempUsageDetail_20' ) end [2025-04-16 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:58:21] Production.INFO: ==9883== Releasing lock... [2025-04-16 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:58:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 00:59:05 [end_date_ymd] => 2025-04-16 03:59:05 [RateCDR] => 1 ) [2025-04-16 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 00:59:05' and `end` < '2025-04-16 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 03:59:18] Production.INFO: count ==127 [2025-04-16 03:59:18] Production.ERROR: pbx CDR StartTime 2025-04-16 00:59:05 - End Time 2025-04-16 03:59:05 [2025-04-16 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918320', 'tblTempUsageDetail_20' ) start [2025-04-16 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918320', 'tblTempUsageDetail_20' ) end [2025-04-16 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918320', 'tblTempVendorCDR_20' ) start [2025-04-16 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918320', 'tblTempVendorCDR_20' ) end [2025-04-16 03:59:18] Production.INFO: ProcessCDR(1,14918320,1,1,2) [2025-04-16 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918320', 'tblTempUsageDetail_20' ) start [2025-04-16 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918320', 'tblTempUsageDetail_20' ) end [2025-04-16 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 03:59:21] Production.INFO: ==9954== Releasing lock... [2025-04-16 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 03:59:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:00:06 [end_date_ymd] => 2025-04-16 04:00:06 [RateCDR] => 1 ) [2025-04-16 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 01:00:06' and `end` < '2025-04-16 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 04:00:18] Production.INFO: count ==119 [2025-04-16 04:00:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:00:06 - End Time 2025-04-16 04:00:06 [2025-04-16 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918326', 'tblTempUsageDetail_20' ) start [2025-04-16 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918326', 'tblTempUsageDetail_20' ) end [2025-04-16 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918326', 'tblTempVendorCDR_20' ) start [2025-04-16 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918326', 'tblTempVendorCDR_20' ) end [2025-04-16 04:00:18] Production.INFO: ProcessCDR(1,14918326,1,1,2) [2025-04-16 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918326', 'tblTempUsageDetail_20' ) start [2025-04-16 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918326', 'tblTempUsageDetail_20' ) end [2025-04-16 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:00:22] Production.INFO: ==10031== Releasing lock... [2025-04-16 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-16 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:01:05 [end_date_ymd] => 2025-04-16 04:01:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:01:05' and `end` < '2025-04-16 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-04-16 04:01:17] Production.INFO: count ==117 [2025-04-16 04:01:17] Production.ERROR: pbx CDR StartTime 2025-04-16 01:01:05 - End Time 2025-04-16 04:01:05 [2025-04-16 04:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918332', 'tblTempUsageDetail_20' ) start [2025-04-16 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918332', 'tblTempUsageDetail_20' ) end [2025-04-16 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918332', 'tblTempVendorCDR_20' ) start [2025-04-16 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918332', 'tblTempVendorCDR_20' ) end [2025-04-16 04:01:17] Production.INFO: ProcessCDR(1,14918332,1,1,2) [2025-04-16 04:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918332', 'tblTempUsageDetail_20' ) start [2025-04-16 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918332', 'tblTempUsageDetail_20' ) end [2025-04-16 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:01:21] Production.INFO: ==10118== Releasing lock... [2025-04-16 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-16 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:02:06 [end_date_ymd] => 2025-04-16 04:02:06 [RateCDR] => 1 ) [2025-04-16 04:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 01:02:06' and `end` < '2025-04-16 04:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 04:02:18] Production.INFO: count ==110 [2025-04-16 04:02:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:02:06 - End Time 2025-04-16 04:02:06 [2025-04-16 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918337', 'tblTempUsageDetail_20' ) start [2025-04-16 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918337', 'tblTempUsageDetail_20' ) end [2025-04-16 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918337', 'tblTempVendorCDR_20' ) start [2025-04-16 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918337', 'tblTempVendorCDR_20' ) end [2025-04-16 04:02:18] Production.INFO: ProcessCDR(1,14918337,1,1,2) [2025-04-16 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918337', 'tblTempUsageDetail_20' ) start [2025-04-16 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918337', 'tblTempUsageDetail_20' ) end [2025-04-16 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:02:22] Production.INFO: ==10195== Releasing lock... [2025-04-16 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:02:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-16 04:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:03:04 [end_date_ymd] => 2025-04-16 04:03:04 [RateCDR] => 1 ) [2025-04-16 04:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 01:03:04' and `end` < '2025-04-16 04:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 04:03:17] Production.INFO: count ==103 [2025-04-16 04:03:17] Production.ERROR: pbx CDR StartTime 2025-04-16 01:03:04 - End Time 2025-04-16 04:03:04 [2025-04-16 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918342', 'tblTempUsageDetail_20' ) start [2025-04-16 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918342', 'tblTempUsageDetail_20' ) end [2025-04-16 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918342', 'tblTempVendorCDR_20' ) start [2025-04-16 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918342', 'tblTempVendorCDR_20' ) end [2025-04-16 04:03:17] Production.INFO: ProcessCDR(1,14918342,1,1,2) [2025-04-16 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918342', 'tblTempUsageDetail_20' ) start [2025-04-16 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918342', 'tblTempUsageDetail_20' ) end [2025-04-16 04:03:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:03:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:03:20] Production.INFO: ==10272== Releasing lock... [2025-04-16 04:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:03:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:04:06 [end_date_ymd] => 2025-04-16 04:04:06 [RateCDR] => 1 ) [2025-04-16 04:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 01:04:06' and `end` < '2025-04-16 04:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 04:04:18] Production.INFO: count ==103 [2025-04-16 04:04:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:04:06 - End Time 2025-04-16 04:04:06 [2025-04-16 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918347', 'tblTempUsageDetail_20' ) start [2025-04-16 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918347', 'tblTempUsageDetail_20' ) end [2025-04-16 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918347', 'tblTempVendorCDR_20' ) start [2025-04-16 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918347', 'tblTempVendorCDR_20' ) end [2025-04-16 04:04:18] Production.INFO: ProcessCDR(1,14918347,1,1,2) [2025-04-16 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918347', 'tblTempUsageDetail_20' ) start [2025-04-16 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918347', 'tblTempUsageDetail_20' ) end [2025-04-16 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:04:21] Production.INFO: ==10344== Releasing lock... [2025-04-16 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:04:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:05:06 [end_date_ymd] => 2025-04-16 04:05:06 [RateCDR] => 1 ) [2025-04-16 04: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-04-16 01:05:06' and `end` < '2025-04-16 04: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-04-16 04:05:18] Production.INFO: count ==102 [2025-04-16 04:05:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:05:06 - End Time 2025-04-16 04:05:06 [2025-04-16 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918352', 'tblTempUsageDetail_20' ) start [2025-04-16 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918352', 'tblTempUsageDetail_20' ) end [2025-04-16 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918352', 'tblTempVendorCDR_20' ) start [2025-04-16 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918352', 'tblTempVendorCDR_20' ) end [2025-04-16 04:05:18] Production.INFO: ProcessCDR(1,14918352,1,1,2) [2025-04-16 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918352', 'tblTempUsageDetail_20' ) start [2025-04-16 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918352', 'tblTempUsageDetail_20' ) end [2025-04-16 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:05:22] Production.INFO: ==10418== Releasing lock... [2025-04-16 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:05:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:06:05 [end_date_ymd] => 2025-04-16 04:06:05 [RateCDR] => 1 ) [2025-04-16 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 01:06:05' and `end` < '2025-04-16 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 04:06:17] Production.INFO: count ==102 [2025-04-16 04:06:17] Production.ERROR: pbx CDR StartTime 2025-04-16 01:06:05 - End Time 2025-04-16 04:06:05 [2025-04-16 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918357', 'tblTempUsageDetail_20' ) start [2025-04-16 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918357', 'tblTempUsageDetail_20' ) end [2025-04-16 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918357', 'tblTempVendorCDR_20' ) start [2025-04-16 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918357', 'tblTempVendorCDR_20' ) end [2025-04-16 04:06:17] Production.INFO: ProcessCDR(1,14918357,1,1,2) [2025-04-16 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918357', 'tblTempUsageDetail_20' ) start [2025-04-16 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918357', 'tblTempUsageDetail_20' ) end [2025-04-16 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:06:21] Production.INFO: ==10496== Releasing lock... [2025-04-16 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:06:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:07:05 [end_date_ymd] => 2025-04-16 04:07:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:07:05' and `end` < '2025-04-16 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-04-16 04:07:18] Production.INFO: count ==102 [2025-04-16 04:07:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:07:05 - End Time 2025-04-16 04:07:05 [2025-04-16 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918362', 'tblTempUsageDetail_20' ) start [2025-04-16 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918362', 'tblTempUsageDetail_20' ) end [2025-04-16 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918362', 'tblTempVendorCDR_20' ) start [2025-04-16 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918362', 'tblTempVendorCDR_20' ) end [2025-04-16 04:07:18] Production.INFO: ProcessCDR(1,14918362,1,1,2) [2025-04-16 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918362', 'tblTempUsageDetail_20' ) start [2025-04-16 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918362', 'tblTempUsageDetail_20' ) end [2025-04-16 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:07:21] Production.INFO: ==10619== Releasing lock... [2025-04-16 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:07:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:08:05 [end_date_ymd] => 2025-04-16 04:08:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:08:05' and `end` < '2025-04-16 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-04-16 04:08:17] Production.INFO: count ==102 [2025-04-16 04:08:17] Production.ERROR: pbx CDR StartTime 2025-04-16 01:08:05 - End Time 2025-04-16 04:08:05 [2025-04-16 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918367', 'tblTempUsageDetail_20' ) start [2025-04-16 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918367', 'tblTempUsageDetail_20' ) end [2025-04-16 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918367', 'tblTempVendorCDR_20' ) start [2025-04-16 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918367', 'tblTempVendorCDR_20' ) end [2025-04-16 04:08:17] Production.INFO: ProcessCDR(1,14918367,1,1,2) [2025-04-16 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918367', 'tblTempUsageDetail_20' ) start [2025-04-16 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918367', 'tblTempUsageDetail_20' ) end [2025-04-16 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:08:21] Production.INFO: ==10691== Releasing lock... [2025-04-16 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:08:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:09:05 [end_date_ymd] => 2025-04-16 04:09:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:09:05' and `end` < '2025-04-16 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-04-16 04:09:18] Production.INFO: count ==102 [2025-04-16 04:09:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:09:05 - End Time 2025-04-16 04:09:05 [2025-04-16 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918372', 'tblTempUsageDetail_20' ) start [2025-04-16 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918372', 'tblTempUsageDetail_20' ) end [2025-04-16 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918372', 'tblTempVendorCDR_20' ) start [2025-04-16 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918372', 'tblTempVendorCDR_20' ) end [2025-04-16 04:09:18] Production.INFO: ProcessCDR(1,14918372,1,1,2) [2025-04-16 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918372', 'tblTempUsageDetail_20' ) start [2025-04-16 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918372', 'tblTempUsageDetail_20' ) end [2025-04-16 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:09:21] Production.INFO: ==10767== Releasing lock... [2025-04-16 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:09:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:10:05 [end_date_ymd] => 2025-04-16 04:10:05 [RateCDR] => 1 ) [2025-04-16 04:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 01:10:05' and `end` < '2025-04-16 04:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 04:10:18] Production.INFO: count ==101 [2025-04-16 04:10:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:10:05 - End Time 2025-04-16 04:10:05 [2025-04-16 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918378', 'tblTempUsageDetail_20' ) start [2025-04-16 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918378', 'tblTempUsageDetail_20' ) end [2025-04-16 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918378', 'tblTempVendorCDR_20' ) start [2025-04-16 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918378', 'tblTempVendorCDR_20' ) end [2025-04-16 04:10:18] Production.INFO: ProcessCDR(1,14918378,1,1,2) [2025-04-16 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918378', 'tblTempUsageDetail_20' ) start [2025-04-16 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918378', 'tblTempUsageDetail_20' ) end [2025-04-16 04:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:10:21] Production.INFO: ==10839== Releasing lock... [2025-04-16 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:10:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:11:05 [end_date_ymd] => 2025-04-16 04:11:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:11:05' and `end` < '2025-04-16 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-04-16 04:11:18] Production.INFO: count ==97 [2025-04-16 04:11:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:11:05 - End Time 2025-04-16 04:11:05 [2025-04-16 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918383', 'tblTempUsageDetail_20' ) start [2025-04-16 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918383', 'tblTempUsageDetail_20' ) end [2025-04-16 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918383', 'tblTempVendorCDR_20' ) start [2025-04-16 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918383', 'tblTempVendorCDR_20' ) end [2025-04-16 04:11:18] Production.INFO: ProcessCDR(1,14918383,1,1,2) [2025-04-16 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918383', 'tblTempUsageDetail_20' ) start [2025-04-16 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918383', 'tblTempUsageDetail_20' ) end [2025-04-16 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:11:21] Production.INFO: ==10922== Releasing lock... [2025-04-16 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:11:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:12:05 [end_date_ymd] => 2025-04-16 04:12:05 [RateCDR] => 1 ) [2025-04-16 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 01:12:05' and `end` < '2025-04-16 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-04-16 04:12:17] Production.INFO: count ==94 [2025-04-16 04:12:17] Production.ERROR: pbx CDR StartTime 2025-04-16 01:12:05 - End Time 2025-04-16 04:12:05 [2025-04-16 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918388', 'tblTempUsageDetail_20' ) start [2025-04-16 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918388', 'tblTempUsageDetail_20' ) end [2025-04-16 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918388', 'tblTempVendorCDR_20' ) start [2025-04-16 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918388', 'tblTempVendorCDR_20' ) end [2025-04-16 04:12:17] Production.INFO: ProcessCDR(1,14918388,1,1,2) [2025-04-16 04:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918388', 'tblTempUsageDetail_20' ) start [2025-04-16 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918388', 'tblTempUsageDetail_20' ) end [2025-04-16 04:12:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:12:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:12:20] Production.INFO: ==11003== Releasing lock... [2025-04-16 04:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:12:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:13:05 [end_date_ymd] => 2025-04-16 04:13:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:13:05' and `end` < '2025-04-16 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-04-16 04:13:17] Production.INFO: count ==94 [2025-04-16 04:13:17] Production.ERROR: pbx CDR StartTime 2025-04-16 01:13:05 - End Time 2025-04-16 04:13:05 [2025-04-16 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918393', 'tblTempUsageDetail_20' ) start [2025-04-16 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918393', 'tblTempUsageDetail_20' ) end [2025-04-16 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918393', 'tblTempVendorCDR_20' ) start [2025-04-16 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918393', 'tblTempVendorCDR_20' ) end [2025-04-16 04:13:17] Production.INFO: ProcessCDR(1,14918393,1,1,2) [2025-04-16 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918393', 'tblTempUsageDetail_20' ) start [2025-04-16 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918393', 'tblTempUsageDetail_20' ) end [2025-04-16 04:13:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:13:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:13:20] Production.INFO: ==11074== Releasing lock... [2025-04-16 04:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:13:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:14:05 [end_date_ymd] => 2025-04-16 04:14:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:14:05' and `end` < '2025-04-16 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-04-16 04:14:17] Production.INFO: count ==94 [2025-04-16 04:14:17] Production.ERROR: pbx CDR StartTime 2025-04-16 01:14:05 - End Time 2025-04-16 04:14:05 [2025-04-16 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918398', 'tblTempUsageDetail_20' ) start [2025-04-16 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918398', 'tblTempUsageDetail_20' ) end [2025-04-16 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918398', 'tblTempVendorCDR_20' ) start [2025-04-16 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918398', 'tblTempVendorCDR_20' ) end [2025-04-16 04:14:17] Production.INFO: ProcessCDR(1,14918398,1,1,2) [2025-04-16 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918398', 'tblTempUsageDetail_20' ) start [2025-04-16 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918398', 'tblTempUsageDetail_20' ) end [2025-04-16 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:14:21] Production.INFO: ==11148== Releasing lock... [2025-04-16 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:14:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:15:04 [end_date_ymd] => 2025-04-16 04:15:04 [RateCDR] => 1 ) [2025-04-16 04: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-04-16 01:15:04' and `end` < '2025-04-16 04: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-04-16 04:15:17] Production.INFO: count ==94 [2025-04-16 04:15:17] Production.ERROR: pbx CDR StartTime 2025-04-16 01:15:04 - End Time 2025-04-16 04:15:04 [2025-04-16 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918403', 'tblTempUsageDetail_20' ) start [2025-04-16 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918403', 'tblTempUsageDetail_20' ) end [2025-04-16 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918403', 'tblTempVendorCDR_20' ) start [2025-04-16 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918403', 'tblTempVendorCDR_20' ) end [2025-04-16 04:15:17] Production.INFO: ProcessCDR(1,14918403,1,1,2) [2025-04-16 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918403', 'tblTempUsageDetail_20' ) start [2025-04-16 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918403', 'tblTempUsageDetail_20' ) end [2025-04-16 04:15:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:15:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:15:20] Production.INFO: ==11223== Releasing lock... [2025-04-16 04:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:15:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:16:05 [end_date_ymd] => 2025-04-16 04:16:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:16:05' and `end` < '2025-04-16 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-04-16 04:16:17] Production.INFO: count ==94 [2025-04-16 04:16:17] Production.ERROR: pbx CDR StartTime 2025-04-16 01:16:05 - End Time 2025-04-16 04:16:05 [2025-04-16 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918408', 'tblTempUsageDetail_20' ) start [2025-04-16 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918408', 'tblTempUsageDetail_20' ) end [2025-04-16 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918408', 'tblTempVendorCDR_20' ) start [2025-04-16 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918408', 'tblTempVendorCDR_20' ) end [2025-04-16 04:16:17] Production.INFO: ProcessCDR(1,14918408,1,1,2) [2025-04-16 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918408', 'tblTempUsageDetail_20' ) start [2025-04-16 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918408', 'tblTempUsageDetail_20' ) end [2025-04-16 04:16:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:16:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:16:20] Production.INFO: ==11296== Releasing lock... [2025-04-16 04:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:16:20] Production.INFO: 28.5 MB #Memory Used# [2025-04-16 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:17:05 [end_date_ymd] => 2025-04-16 04:17:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:17:05' and `end` < '2025-04-16 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-04-16 04:17:17] Production.INFO: count ==94 [2025-04-16 04:17:17] Production.ERROR: pbx CDR StartTime 2025-04-16 01:17:05 - End Time 2025-04-16 04:17:05 [2025-04-16 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918413', 'tblTempUsageDetail_20' ) start [2025-04-16 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918413', 'tblTempUsageDetail_20' ) end [2025-04-16 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918413', 'tblTempVendorCDR_20' ) start [2025-04-16 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918413', 'tblTempVendorCDR_20' ) end [2025-04-16 04:17:17] Production.INFO: ProcessCDR(1,14918413,1,1,2) [2025-04-16 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918413', 'tblTempUsageDetail_20' ) start [2025-04-16 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918413', 'tblTempUsageDetail_20' ) end [2025-04-16 04:17:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:17:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:17:20] Production.INFO: ==11373== Releasing lock... [2025-04-16 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:17:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:18:05 [end_date_ymd] => 2025-04-16 04:18:05 [RateCDR] => 1 ) [2025-04-16 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 01:18:05' and `end` < '2025-04-16 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 04:18:18] Production.INFO: count ==94 [2025-04-16 04:18:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:18:05 - End Time 2025-04-16 04:18:05 [2025-04-16 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918418', 'tblTempUsageDetail_20' ) start [2025-04-16 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918418', 'tblTempUsageDetail_20' ) end [2025-04-16 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918418', 'tblTempVendorCDR_20' ) start [2025-04-16 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918418', 'tblTempVendorCDR_20' ) end [2025-04-16 04:18:18] Production.INFO: ProcessCDR(1,14918418,1,1,2) [2025-04-16 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918418', 'tblTempUsageDetail_20' ) start [2025-04-16 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918418', 'tblTempUsageDetail_20' ) end [2025-04-16 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:18:21] Production.INFO: ==11445== Releasing lock... [2025-04-16 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:19:05 [end_date_ymd] => 2025-04-16 04:19:05 [RateCDR] => 1 ) [2025-04-16 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 01:19:05' and `end` < '2025-04-16 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 04:19:18] Production.INFO: count ==93 [2025-04-16 04:19:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:19:05 - End Time 2025-04-16 04:19:05 [2025-04-16 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918423', 'tblTempUsageDetail_20' ) start [2025-04-16 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918423', 'tblTempUsageDetail_20' ) end [2025-04-16 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918423', 'tblTempVendorCDR_20' ) start [2025-04-16 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918423', 'tblTempVendorCDR_20' ) end [2025-04-16 04:19:18] Production.INFO: ProcessCDR(1,14918423,1,1,2) [2025-04-16 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918423', 'tblTempUsageDetail_20' ) start [2025-04-16 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918423', 'tblTempUsageDetail_20' ) end [2025-04-16 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:19:22] Production.INFO: ==11518== Releasing lock... [2025-04-16 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:19:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:20:06 [end_date_ymd] => 2025-04-16 04:20:06 [RateCDR] => 1 ) [2025-04-16 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 01:20:06' and `end` < '2025-04-16 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 04:20:19] Production.INFO: count ==93 [2025-04-16 04:20:19] Production.ERROR: pbx CDR StartTime 2025-04-16 01:20:06 - End Time 2025-04-16 04:20:06 [2025-04-16 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918429', 'tblTempUsageDetail_20' ) start [2025-04-16 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918429', 'tblTempUsageDetail_20' ) end [2025-04-16 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918429', 'tblTempVendorCDR_20' ) start [2025-04-16 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918429', 'tblTempVendorCDR_20' ) end [2025-04-16 04:20:19] Production.INFO: ProcessCDR(1,14918429,1,1,2) [2025-04-16 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918429', 'tblTempUsageDetail_20' ) start [2025-04-16 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918429', 'tblTempUsageDetail_20' ) end [2025-04-16 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:20:22] Production.INFO: ==11595== Releasing lock... [2025-04-16 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:20:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:21:05 [end_date_ymd] => 2025-04-16 04:21:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:21:05' and `end` < '2025-04-16 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-04-16 04:21:18] Production.INFO: count ==95 [2025-04-16 04:21:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:21:05 - End Time 2025-04-16 04:21:05 [2025-04-16 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918434', 'tblTempUsageDetail_20' ) start [2025-04-16 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918434', 'tblTempUsageDetail_20' ) end [2025-04-16 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918434', 'tblTempVendorCDR_20' ) start [2025-04-16 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918434', 'tblTempVendorCDR_20' ) end [2025-04-16 04:21:18] Production.INFO: ProcessCDR(1,14918434,1,1,2) [2025-04-16 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918434', 'tblTempUsageDetail_20' ) start [2025-04-16 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918434', 'tblTempUsageDetail_20' ) end [2025-04-16 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:21:21] Production.INFO: ==11674== Releasing lock... [2025-04-16 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:21:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:22:05 [end_date_ymd] => 2025-04-16 04:22:05 [RateCDR] => 1 ) [2025-04-16 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 01:22:05' and `end` < '2025-04-16 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 04:22:18] Production.INFO: count ==96 [2025-04-16 04:22:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:22:05 - End Time 2025-04-16 04:22:05 [2025-04-16 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918439', 'tblTempUsageDetail_20' ) start [2025-04-16 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918439', 'tblTempUsageDetail_20' ) end [2025-04-16 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918439', 'tblTempVendorCDR_20' ) start [2025-04-16 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918439', 'tblTempVendorCDR_20' ) end [2025-04-16 04:22:18] Production.INFO: ProcessCDR(1,14918439,1,1,2) [2025-04-16 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918439', 'tblTempUsageDetail_20' ) start [2025-04-16 04:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918439', 'tblTempUsageDetail_20' ) end [2025-04-16 04:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:22:23] Production.INFO: ==11786== Releasing lock... [2025-04-16 04:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:22:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:23:05 [end_date_ymd] => 2025-04-16 04:23:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:23:05' and `end` < '2025-04-16 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-04-16 04:23:17] Production.INFO: count ==96 [2025-04-16 04:23:17] Production.ERROR: pbx CDR StartTime 2025-04-16 01:23:05 - End Time 2025-04-16 04:23:05 [2025-04-16 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918444', 'tblTempUsageDetail_20' ) start [2025-04-16 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918444', 'tblTempUsageDetail_20' ) end [2025-04-16 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918444', 'tblTempVendorCDR_20' ) start [2025-04-16 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918444', 'tblTempVendorCDR_20' ) end [2025-04-16 04:23:17] Production.INFO: ProcessCDR(1,14918444,1,1,2) [2025-04-16 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918444', 'tblTempUsageDetail_20' ) start [2025-04-16 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918444', 'tblTempUsageDetail_20' ) end [2025-04-16 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:23:22] Production.INFO: ==11858== Releasing lock... [2025-04-16 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:23:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:24:05 [end_date_ymd] => 2025-04-16 04:24:05 [RateCDR] => 1 ) [2025-04-16 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 01:24:05' and `end` < '2025-04-16 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 04:24:18] Production.INFO: count ==95 [2025-04-16 04:24:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:24:05 - End Time 2025-04-16 04:24:05 [2025-04-16 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918449', 'tblTempUsageDetail_20' ) start [2025-04-16 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918449', 'tblTempUsageDetail_20' ) end [2025-04-16 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918449', 'tblTempVendorCDR_20' ) start [2025-04-16 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918449', 'tblTempVendorCDR_20' ) end [2025-04-16 04:24:18] Production.INFO: ProcessCDR(1,14918449,1,1,2) [2025-04-16 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918449', 'tblTempUsageDetail_20' ) start [2025-04-16 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918449', 'tblTempUsageDetail_20' ) end [2025-04-16 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:24:21] Production.INFO: ==11932== Releasing lock... [2025-04-16 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:25:05 [end_date_ymd] => 2025-04-16 04:25:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:25:05' and `end` < '2025-04-16 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-04-16 04:25:17] Production.INFO: count ==95 [2025-04-16 04:25:17] Production.ERROR: pbx CDR StartTime 2025-04-16 01:25:05 - End Time 2025-04-16 04:25:05 [2025-04-16 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918454', 'tblTempUsageDetail_20' ) start [2025-04-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918454', 'tblTempUsageDetail_20' ) end [2025-04-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918454', 'tblTempVendorCDR_20' ) start [2025-04-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918454', 'tblTempVendorCDR_20' ) end [2025-04-16 04:25:17] Production.INFO: ProcessCDR(1,14918454,1,1,2) [2025-04-16 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918454', 'tblTempUsageDetail_20' ) start [2025-04-16 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918454', 'tblTempUsageDetail_20' ) end [2025-04-16 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:25:21] Production.INFO: ==12017== Releasing lock... [2025-04-16 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:26:05 [end_date_ymd] => 2025-04-16 04:26:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:26:05' and `end` < '2025-04-16 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-04-16 04:26:18] Production.INFO: count ==95 [2025-04-16 04:26:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:26:05 - End Time 2025-04-16 04:26:05 [2025-04-16 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918459', 'tblTempUsageDetail_20' ) start [2025-04-16 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918459', 'tblTempUsageDetail_20' ) end [2025-04-16 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918459', 'tblTempVendorCDR_20' ) start [2025-04-16 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918459', 'tblTempVendorCDR_20' ) end [2025-04-16 04:26:18] Production.INFO: ProcessCDR(1,14918459,1,1,2) [2025-04-16 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918459', 'tblTempUsageDetail_20' ) start [2025-04-16 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918459', 'tblTempUsageDetail_20' ) end [2025-04-16 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:26:21] Production.INFO: ==12094== Releasing lock... [2025-04-16 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:27:05 [end_date_ymd] => 2025-04-16 04:27:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:27:05' and `end` < '2025-04-16 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-04-16 04:27:17] Production.INFO: count ==97 [2025-04-16 04:27:17] Production.ERROR: pbx CDR StartTime 2025-04-16 01:27:05 - End Time 2025-04-16 04:27:05 [2025-04-16 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918464', 'tblTempUsageDetail_20' ) start [2025-04-16 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918464', 'tblTempUsageDetail_20' ) end [2025-04-16 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918464', 'tblTempVendorCDR_20' ) start [2025-04-16 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918464', 'tblTempVendorCDR_20' ) end [2025-04-16 04:27:17] Production.INFO: ProcessCDR(1,14918464,1,1,2) [2025-04-16 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918464', 'tblTempUsageDetail_20' ) start [2025-04-16 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918464', 'tblTempUsageDetail_20' ) end [2025-04-16 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:27:21] Production.INFO: ==12169== Releasing lock... [2025-04-16 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:28:05 [end_date_ymd] => 2025-04-16 04:28:05 [RateCDR] => 1 ) [2025-04-16 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 01:28:05' and `end` < '2025-04-16 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 04:28:17] Production.INFO: count ==99 [2025-04-16 04:28:17] Production.ERROR: pbx CDR StartTime 2025-04-16 01:28:05 - End Time 2025-04-16 04:28:05 [2025-04-16 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918469', 'tblTempUsageDetail_20' ) start [2025-04-16 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918469', 'tblTempUsageDetail_20' ) end [2025-04-16 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918469', 'tblTempVendorCDR_20' ) start [2025-04-16 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918469', 'tblTempVendorCDR_20' ) end [2025-04-16 04:28:17] Production.INFO: ProcessCDR(1,14918469,1,1,2) [2025-04-16 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918469', 'tblTempUsageDetail_20' ) start [2025-04-16 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918469', 'tblTempUsageDetail_20' ) end [2025-04-16 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:28:21] Production.INFO: ==12242== Releasing lock... [2025-04-16 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:29:05 [end_date_ymd] => 2025-04-16 04:29:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:29:05' and `end` < '2025-04-16 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-04-16 04:29:18] Production.INFO: count ==99 [2025-04-16 04:29:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:29:05 - End Time 2025-04-16 04:29:05 [2025-04-16 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918474', 'tblTempUsageDetail_20' ) start [2025-04-16 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918474', 'tblTempUsageDetail_20' ) end [2025-04-16 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918474', 'tblTempVendorCDR_20' ) start [2025-04-16 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918474', 'tblTempVendorCDR_20' ) end [2025-04-16 04:29:18] Production.INFO: ProcessCDR(1,14918474,1,1,2) [2025-04-16 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918474', 'tblTempUsageDetail_20' ) start [2025-04-16 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918474', 'tblTempUsageDetail_20' ) end [2025-04-16 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:29:21] Production.INFO: ==12316== Releasing lock... [2025-04-16 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:30:06 [end_date_ymd] => 2025-04-16 04:30:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:30:06' and `end` < '2025-04-16 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-04-16 04:30:18] Production.INFO: count ==93 [2025-04-16 04:30:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:30:06 - End Time 2025-04-16 04:30:06 [2025-04-16 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918481', 'tblTempUsageDetail_20' ) start [2025-04-16 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918481', 'tblTempUsageDetail_20' ) end [2025-04-16 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918481', 'tblTempVendorCDR_20' ) start [2025-04-16 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918481', 'tblTempVendorCDR_20' ) end [2025-04-16 04:30:19] Production.INFO: ProcessCDR(1,14918481,1,1,2) [2025-04-16 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918481', 'tblTempUsageDetail_20' ) start [2025-04-16 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918481', 'tblTempUsageDetail_20' ) end [2025-04-16 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:30:23] Production.INFO: ==12395== Releasing lock... [2025-04-16 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:30:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:31:06 [end_date_ymd] => 2025-04-16 04:31:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:31:06' and `end` < '2025-04-16 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-04-16 04:31:18] Production.INFO: count ==93 [2025-04-16 04:31:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:31:06 - End Time 2025-04-16 04:31:06 [2025-04-16 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918486', 'tblTempUsageDetail_20' ) start [2025-04-16 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918486', 'tblTempUsageDetail_20' ) end [2025-04-16 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918486', 'tblTempVendorCDR_20' ) start [2025-04-16 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918486', 'tblTempVendorCDR_20' ) end [2025-04-16 04:31:18] Production.INFO: ProcessCDR(1,14918486,1,1,2) [2025-04-16 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918486', 'tblTempUsageDetail_20' ) start [2025-04-16 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918486', 'tblTempUsageDetail_20' ) end [2025-04-16 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:31:22] Production.INFO: ==12572== Releasing lock... [2025-04-16 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:31:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:32:05 [end_date_ymd] => 2025-04-16 04:32:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:32:05' and `end` < '2025-04-16 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-04-16 04:32:17] Production.INFO: count ==93 [2025-04-16 04:32:17] Production.ERROR: pbx CDR StartTime 2025-04-16 01:32:05 - End Time 2025-04-16 04:32:05 [2025-04-16 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918491', 'tblTempUsageDetail_20' ) start [2025-04-16 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918491', 'tblTempUsageDetail_20' ) end [2025-04-16 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918491', 'tblTempVendorCDR_20' ) start [2025-04-16 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918491', 'tblTempVendorCDR_20' ) end [2025-04-16 04:32:17] Production.INFO: ProcessCDR(1,14918491,1,1,2) [2025-04-16 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918491', 'tblTempUsageDetail_20' ) start [2025-04-16 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918491', 'tblTempUsageDetail_20' ) end [2025-04-16 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:32:21] Production.INFO: ==12647== Releasing lock... [2025-04-16 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:33:05 [end_date_ymd] => 2025-04-16 04:33:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:33:05' and `end` < '2025-04-16 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-04-16 04:33:18] Production.INFO: count ==92 [2025-04-16 04:33:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:33:05 - End Time 2025-04-16 04:33:05 [2025-04-16 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918496', 'tblTempUsageDetail_20' ) start [2025-04-16 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918496', 'tblTempUsageDetail_20' ) end [2025-04-16 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918496', 'tblTempVendorCDR_20' ) start [2025-04-16 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918496', 'tblTempVendorCDR_20' ) end [2025-04-16 04:33:18] Production.INFO: ProcessCDR(1,14918496,1,1,2) [2025-04-16 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918496', 'tblTempUsageDetail_20' ) start [2025-04-16 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918496', 'tblTempUsageDetail_20' ) end [2025-04-16 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:33:21] Production.INFO: ==12719== Releasing lock... [2025-04-16 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:34:05 [end_date_ymd] => 2025-04-16 04:34:05 [RateCDR] => 1 ) [2025-04-16 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 01:34:05' and `end` < '2025-04-16 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 04:34:17] Production.INFO: count ==91 [2025-04-16 04:34:17] Production.ERROR: pbx CDR StartTime 2025-04-16 01:34:05 - End Time 2025-04-16 04:34:05 [2025-04-16 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918501', 'tblTempUsageDetail_20' ) start [2025-04-16 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918501', 'tblTempUsageDetail_20' ) end [2025-04-16 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918501', 'tblTempVendorCDR_20' ) start [2025-04-16 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918501', 'tblTempVendorCDR_20' ) end [2025-04-16 04:34:17] Production.INFO: ProcessCDR(1,14918501,1,1,2) [2025-04-16 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918501', 'tblTempUsageDetail_20' ) start [2025-04-16 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918501', 'tblTempUsageDetail_20' ) end [2025-04-16 04:34:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:34:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:34:20] Production.INFO: ==12794== Releasing lock... [2025-04-16 04:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:34:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:35:05 [end_date_ymd] => 2025-04-16 04:35:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:35:05' and `end` < '2025-04-16 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-04-16 04:35:18] Production.INFO: count ==90 [2025-04-16 04:35:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:35:05 - End Time 2025-04-16 04:35:05 [2025-04-16 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918506', 'tblTempUsageDetail_20' ) start [2025-04-16 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918506', 'tblTempUsageDetail_20' ) end [2025-04-16 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918506', 'tblTempVendorCDR_20' ) start [2025-04-16 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918506', 'tblTempVendorCDR_20' ) end [2025-04-16 04:35:18] Production.INFO: ProcessCDR(1,14918506,1,1,2) [2025-04-16 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918506', 'tblTempUsageDetail_20' ) start [2025-04-16 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918506', 'tblTempUsageDetail_20' ) end [2025-04-16 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:35:21] Production.INFO: ==12872== Releasing lock... [2025-04-16 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:36:05 [end_date_ymd] => 2025-04-16 04:36:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:36:05' and `end` < '2025-04-16 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-04-16 04:36:17] Production.INFO: count ==90 [2025-04-16 04:36:17] Production.ERROR: pbx CDR StartTime 2025-04-16 01:36:05 - End Time 2025-04-16 04:36:05 [2025-04-16 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918511', 'tblTempUsageDetail_20' ) start [2025-04-16 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918511', 'tblTempUsageDetail_20' ) end [2025-04-16 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918511', 'tblTempVendorCDR_20' ) start [2025-04-16 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918511', 'tblTempVendorCDR_20' ) end [2025-04-16 04:36:17] Production.INFO: ProcessCDR(1,14918511,1,1,2) [2025-04-16 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918511', 'tblTempUsageDetail_20' ) start [2025-04-16 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918511', 'tblTempUsageDetail_20' ) end [2025-04-16 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:36:21] Production.INFO: ==12955== Releasing lock... [2025-04-16 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:37:05 [end_date_ymd] => 2025-04-16 04:37:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:37:05' and `end` < '2025-04-16 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-04-16 04:37:18] Production.INFO: count ==90 [2025-04-16 04:37:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:37:05 - End Time 2025-04-16 04:37:05 [2025-04-16 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918516', 'tblTempUsageDetail_20' ) start [2025-04-16 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918516', 'tblTempUsageDetail_20' ) end [2025-04-16 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918516', 'tblTempVendorCDR_20' ) start [2025-04-16 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918516', 'tblTempVendorCDR_20' ) end [2025-04-16 04:37:18] Production.INFO: ProcessCDR(1,14918516,1,1,2) [2025-04-16 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918516', 'tblTempUsageDetail_20' ) start [2025-04-16 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918516', 'tblTempUsageDetail_20' ) end [2025-04-16 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:37:21] Production.INFO: ==13028== Releasing lock... [2025-04-16 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:38:06 [end_date_ymd] => 2025-04-16 04:38:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:38:06' and `end` < '2025-04-16 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-04-16 04:38:18] Production.INFO: count ==90 [2025-04-16 04:38:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:38:06 - End Time 2025-04-16 04:38:06 [2025-04-16 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918521', 'tblTempUsageDetail_20' ) start [2025-04-16 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918521', 'tblTempUsageDetail_20' ) end [2025-04-16 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918521', 'tblTempVendorCDR_20' ) start [2025-04-16 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918521', 'tblTempVendorCDR_20' ) end [2025-04-16 04:38:18] Production.INFO: ProcessCDR(1,14918521,1,1,2) [2025-04-16 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918521', 'tblTempUsageDetail_20' ) start [2025-04-16 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918521', 'tblTempUsageDetail_20' ) end [2025-04-16 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:38:22] Production.INFO: ==13138== Releasing lock... [2025-04-16 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:38:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:39:05 [end_date_ymd] => 2025-04-16 04:39:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:39:05' and `end` < '2025-04-16 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-04-16 04:39:18] Production.INFO: count ==90 [2025-04-16 04:39:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:39:05 - End Time 2025-04-16 04:39:05 [2025-04-16 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918526', 'tblTempUsageDetail_20' ) start [2025-04-16 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918526', 'tblTempUsageDetail_20' ) end [2025-04-16 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918526', 'tblTempVendorCDR_20' ) start [2025-04-16 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918526', 'tblTempVendorCDR_20' ) end [2025-04-16 04:39:18] Production.INFO: ProcessCDR(1,14918526,1,1,2) [2025-04-16 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918526', 'tblTempUsageDetail_20' ) start [2025-04-16 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918526', 'tblTempUsageDetail_20' ) end [2025-04-16 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:39:21] Production.INFO: ==13218== Releasing lock... [2025-04-16 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:40:06 [end_date_ymd] => 2025-04-16 04:40:06 [RateCDR] => 1 ) [2025-04-16 04: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-04-16 01:40:06' and `end` < '2025-04-16 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 04:40:19] Production.INFO: count ==90 [2025-04-16 04:40:19] Production.ERROR: pbx CDR StartTime 2025-04-16 01:40:06 - End Time 2025-04-16 04:40:06 [2025-04-16 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918532', 'tblTempUsageDetail_20' ) start [2025-04-16 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918532', 'tblTempUsageDetail_20' ) end [2025-04-16 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918532', 'tblTempVendorCDR_20' ) start [2025-04-16 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918532', 'tblTempVendorCDR_20' ) end [2025-04-16 04:40:19] Production.INFO: ProcessCDR(1,14918532,1,1,2) [2025-04-16 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918532', 'tblTempUsageDetail_20' ) start [2025-04-16 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918532', 'tblTempUsageDetail_20' ) end [2025-04-16 04:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:40:23] Production.INFO: ==13294== Releasing lock... [2025-04-16 04:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:40:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:41:05 [end_date_ymd] => 2025-04-16 04:41:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:41:05' and `end` < '2025-04-16 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-04-16 04:41:18] Production.INFO: count ==91 [2025-04-16 04:41:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:41:05 - End Time 2025-04-16 04:41:05 [2025-04-16 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918537', 'tblTempUsageDetail_20' ) start [2025-04-16 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918537', 'tblTempUsageDetail_20' ) end [2025-04-16 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918537', 'tblTempVendorCDR_20' ) start [2025-04-16 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918537', 'tblTempVendorCDR_20' ) end [2025-04-16 04:41:18] Production.INFO: ProcessCDR(1,14918537,1,1,2) [2025-04-16 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918537', 'tblTempUsageDetail_20' ) start [2025-04-16 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918537', 'tblTempUsageDetail_20' ) end [2025-04-16 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:41:21] Production.INFO: ==13378== Releasing lock... [2025-04-16 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:42:05 [end_date_ymd] => 2025-04-16 04:42:05 [RateCDR] => 1 ) [2025-04-16 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 01:42:05' and `end` < '2025-04-16 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 04:42:18] Production.INFO: count ==91 [2025-04-16 04:42:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:42:05 - End Time 2025-04-16 04:42:05 [2025-04-16 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918542', 'tblTempUsageDetail_20' ) start [2025-04-16 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918542', 'tblTempUsageDetail_20' ) end [2025-04-16 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918542', 'tblTempVendorCDR_20' ) start [2025-04-16 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918542', 'tblTempVendorCDR_20' ) end [2025-04-16 04:42:18] Production.INFO: ProcessCDR(1,14918542,1,1,2) [2025-04-16 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918542', 'tblTempUsageDetail_20' ) start [2025-04-16 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918542', 'tblTempUsageDetail_20' ) end [2025-04-16 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:42:22] Production.INFO: ==13463== Releasing lock... [2025-04-16 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:42:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:43:05 [end_date_ymd] => 2025-04-16 04:43:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:43:05' and `end` < '2025-04-16 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-04-16 04:43:18] Production.INFO: count ==91 [2025-04-16 04:43:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:43:05 - End Time 2025-04-16 04:43:05 [2025-04-16 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918547', 'tblTempUsageDetail_20' ) start [2025-04-16 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918547', 'tblTempUsageDetail_20' ) end [2025-04-16 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918547', 'tblTempVendorCDR_20' ) start [2025-04-16 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918547', 'tblTempVendorCDR_20' ) end [2025-04-16 04:43:18] Production.INFO: ProcessCDR(1,14918547,1,1,2) [2025-04-16 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918547', 'tblTempUsageDetail_20' ) start [2025-04-16 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918547', 'tblTempUsageDetail_20' ) end [2025-04-16 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:43:21] Production.INFO: ==13537== Releasing lock... [2025-04-16 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:44:05 [end_date_ymd] => 2025-04-16 04:44:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:44:05' and `end` < '2025-04-16 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-04-16 04:44:17] Production.INFO: count ==91 [2025-04-16 04:44:17] Production.ERROR: pbx CDR StartTime 2025-04-16 01:44:05 - End Time 2025-04-16 04:44:05 [2025-04-16 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918552', 'tblTempUsageDetail_20' ) start [2025-04-16 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918552', 'tblTempUsageDetail_20' ) end [2025-04-16 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918552', 'tblTempVendorCDR_20' ) start [2025-04-16 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918552', 'tblTempVendorCDR_20' ) end [2025-04-16 04:44:17] Production.INFO: ProcessCDR(1,14918552,1,1,2) [2025-04-16 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918552', 'tblTempUsageDetail_20' ) start [2025-04-16 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918552', 'tblTempUsageDetail_20' ) end [2025-04-16 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:44:21] Production.INFO: ==13616== Releasing lock... [2025-04-16 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:45:05 [end_date_ymd] => 2025-04-16 04:45:05 [RateCDR] => 1 ) [2025-04-16 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 01:45:05' and `end` < '2025-04-16 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 04:45:17] Production.INFO: count ==91 [2025-04-16 04:45:17] Production.ERROR: pbx CDR StartTime 2025-04-16 01:45:05 - End Time 2025-04-16 04:45:05 [2025-04-16 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918557', 'tblTempUsageDetail_20' ) start [2025-04-16 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918557', 'tblTempUsageDetail_20' ) end [2025-04-16 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918557', 'tblTempVendorCDR_20' ) start [2025-04-16 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918557', 'tblTempVendorCDR_20' ) end [2025-04-16 04:45:17] Production.INFO: ProcessCDR(1,14918557,1,1,2) [2025-04-16 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918557', 'tblTempUsageDetail_20' ) start [2025-04-16 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918557', 'tblTempUsageDetail_20' ) end [2025-04-16 04:45:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:45:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:45:21] Production.INFO: ==13688== Releasing lock... [2025-04-16 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:46:06 [end_date_ymd] => 2025-04-16 04:46:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:46:06' and `end` < '2025-04-16 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-04-16 04:46:18] Production.INFO: count ==91 [2025-04-16 04:46:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:46:06 - End Time 2025-04-16 04:46:06 [2025-04-16 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918562', 'tblTempUsageDetail_20' ) start [2025-04-16 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918562', 'tblTempUsageDetail_20' ) end [2025-04-16 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918562', 'tblTempVendorCDR_20' ) start [2025-04-16 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918562', 'tblTempVendorCDR_20' ) end [2025-04-16 04:46:18] Production.INFO: ProcessCDR(1,14918562,1,1,2) [2025-04-16 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918562', 'tblTempUsageDetail_20' ) start [2025-04-16 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918562', 'tblTempUsageDetail_20' ) end [2025-04-16 04:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:46:22] Production.INFO: ==13763== Releasing lock... [2025-04-16 04:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:46:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:47:05 [end_date_ymd] => 2025-04-16 04:47:05 [RateCDR] => 1 ) [2025-04-16 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 01:47:05' and `end` < '2025-04-16 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 04:47:18] Production.INFO: count ==91 [2025-04-16 04:47:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:47:05 - End Time 2025-04-16 04:47:05 [2025-04-16 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918567', 'tblTempUsageDetail_20' ) start [2025-04-16 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918567', 'tblTempUsageDetail_20' ) end [2025-04-16 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918567', 'tblTempVendorCDR_20' ) start [2025-04-16 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918567', 'tblTempVendorCDR_20' ) end [2025-04-16 04:47:18] Production.INFO: ProcessCDR(1,14918567,1,1,2) [2025-04-16 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918567', 'tblTempUsageDetail_20' ) start [2025-04-16 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918567', 'tblTempUsageDetail_20' ) end [2025-04-16 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:47:22] Production.INFO: ==13837== Releasing lock... [2025-04-16 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:47:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:48:05 [end_date_ymd] => 2025-04-16 04:48:05 [RateCDR] => 1 ) [2025-04-16 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 01:48:05' and `end` < '2025-04-16 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 04:48:19] Production.INFO: count ==91 [2025-04-16 04:48:19] Production.ERROR: pbx CDR StartTime 2025-04-16 01:48:05 - End Time 2025-04-16 04:48:05 [2025-04-16 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918572', 'tblTempUsageDetail_20' ) start [2025-04-16 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918572', 'tblTempUsageDetail_20' ) end [2025-04-16 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918572', 'tblTempVendorCDR_20' ) start [2025-04-16 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918572', 'tblTempVendorCDR_20' ) end [2025-04-16 04:48:19] Production.INFO: ProcessCDR(1,14918572,1,1,2) [2025-04-16 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918572', 'tblTempUsageDetail_20' ) start [2025-04-16 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918572', 'tblTempUsageDetail_20' ) end [2025-04-16 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:48:22] Production.INFO: ==13910== Releasing lock... [2025-04-16 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:48:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:49:05 [end_date_ymd] => 2025-04-16 04:49:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:49:05' and `end` < '2025-04-16 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-04-16 04:49:18] Production.INFO: count ==90 [2025-04-16 04:49:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:49:05 - End Time 2025-04-16 04:49:05 [2025-04-16 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918577', 'tblTempUsageDetail_20' ) start [2025-04-16 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918577', 'tblTempUsageDetail_20' ) end [2025-04-16 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918577', 'tblTempVendorCDR_20' ) start [2025-04-16 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918577', 'tblTempVendorCDR_20' ) end [2025-04-16 04:49:18] Production.INFO: ProcessCDR(1,14918577,1,1,2) [2025-04-16 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918577', 'tblTempUsageDetail_20' ) start [2025-04-16 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918577', 'tblTempUsageDetail_20' ) end [2025-04-16 04:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:49:21] Production.INFO: ==13989== Releasing lock... [2025-04-16 04:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:49:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:50:06 [end_date_ymd] => 2025-04-16 04:50:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:50:06' and `end` < '2025-04-16 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-04-16 04:50:19] Production.INFO: count ==80 [2025-04-16 04:50:19] Production.ERROR: pbx CDR StartTime 2025-04-16 01:50:06 - End Time 2025-04-16 04:50:06 [2025-04-16 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918582', 'tblTempUsageDetail_20' ) start [2025-04-16 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918582', 'tblTempUsageDetail_20' ) end [2025-04-16 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918582', 'tblTempVendorCDR_20' ) start [2025-04-16 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918582', 'tblTempVendorCDR_20' ) end [2025-04-16 04:50:19] Production.INFO: ProcessCDR(1,14918582,1,1,2) [2025-04-16 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918582', 'tblTempUsageDetail_20' ) start [2025-04-16 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918582', 'tblTempUsageDetail_20' ) end [2025-04-16 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:50:23] Production.INFO: ==14068== Releasing lock... [2025-04-16 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:50:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:51:05 [end_date_ymd] => 2025-04-16 04:51:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:51:05' and `end` < '2025-04-16 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-04-16 04:51:19] Production.INFO: count ==76 [2025-04-16 04:51:19] Production.ERROR: pbx CDR StartTime 2025-04-16 01:51:05 - End Time 2025-04-16 04:51:05 [2025-04-16 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918588', 'tblTempUsageDetail_20' ) start [2025-04-16 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918588', 'tblTempUsageDetail_20' ) end [2025-04-16 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918588', 'tblTempVendorCDR_20' ) start [2025-04-16 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918588', 'tblTempVendorCDR_20' ) end [2025-04-16 04:51:19] Production.INFO: ProcessCDR(1,14918588,1,1,2) [2025-04-16 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918588', 'tblTempUsageDetail_20' ) start [2025-04-16 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918588', 'tblTempUsageDetail_20' ) end [2025-04-16 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:51:22] Production.INFO: ==14144== Releasing lock... [2025-04-16 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:51:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:52:05 [end_date_ymd] => 2025-04-16 04:52:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:52:05' and `end` < '2025-04-16 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-04-16 04:52:19] Production.INFO: count ==76 [2025-04-16 04:52:19] Production.ERROR: pbx CDR StartTime 2025-04-16 01:52:05 - End Time 2025-04-16 04:52:05 [2025-04-16 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918593', 'tblTempUsageDetail_20' ) start [2025-04-16 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918593', 'tblTempUsageDetail_20' ) end [2025-04-16 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918593', 'tblTempVendorCDR_20' ) start [2025-04-16 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918593', 'tblTempVendorCDR_20' ) end [2025-04-16 04:52:19] Production.INFO: ProcessCDR(1,14918593,1,1,2) [2025-04-16 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918593', 'tblTempUsageDetail_20' ) start [2025-04-16 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918593', 'tblTempUsageDetail_20' ) end [2025-04-16 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:52:22] Production.INFO: ==14214== Releasing lock... [2025-04-16 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:52:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:53:06 [end_date_ymd] => 2025-04-16 04:53:06 [RateCDR] => 1 ) [2025-04-16 04: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-04-16 01:53:06' and `end` < '2025-04-16 04: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-04-16 04:53:19] Production.INFO: count ==76 [2025-04-16 04:53:19] Production.ERROR: pbx CDR StartTime 2025-04-16 01:53:06 - End Time 2025-04-16 04:53:06 [2025-04-16 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918598', 'tblTempUsageDetail_20' ) start [2025-04-16 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918598', 'tblTempUsageDetail_20' ) end [2025-04-16 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918598', 'tblTempVendorCDR_20' ) start [2025-04-16 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918598', 'tblTempVendorCDR_20' ) end [2025-04-16 04:53:19] Production.INFO: ProcessCDR(1,14918598,1,1,2) [2025-04-16 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918598', 'tblTempUsageDetail_20' ) start [2025-04-16 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918598', 'tblTempUsageDetail_20' ) end [2025-04-16 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:53:22] Production.INFO: ==14335== Releasing lock... [2025-04-16 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:53:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:54:05 [end_date_ymd] => 2025-04-16 04:54:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:54:05' and `end` < '2025-04-16 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-04-16 04:54:18] Production.INFO: count ==76 [2025-04-16 04:54:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:54:05 - End Time 2025-04-16 04:54:05 [2025-04-16 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918603', 'tblTempUsageDetail_20' ) start [2025-04-16 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918603', 'tblTempUsageDetail_20' ) end [2025-04-16 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918603', 'tblTempVendorCDR_20' ) start [2025-04-16 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918603', 'tblTempVendorCDR_20' ) end [2025-04-16 04:54:18] Production.INFO: ProcessCDR(1,14918603,1,1,2) [2025-04-16 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918603', 'tblTempUsageDetail_20' ) start [2025-04-16 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918603', 'tblTempUsageDetail_20' ) end [2025-04-16 04:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:54:21] Production.INFO: ==14409== Releasing lock... [2025-04-16 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:54:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:55:05 [end_date_ymd] => 2025-04-16 04:55:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:55:05' and `end` < '2025-04-16 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-04-16 04:55:18] Production.INFO: count ==76 [2025-04-16 04:55:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:55:05 - End Time 2025-04-16 04:55:05 [2025-04-16 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918608', 'tblTempUsageDetail_20' ) start [2025-04-16 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918608', 'tblTempUsageDetail_20' ) end [2025-04-16 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918608', 'tblTempVendorCDR_20' ) start [2025-04-16 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918608', 'tblTempVendorCDR_20' ) end [2025-04-16 04:55:18] Production.INFO: ProcessCDR(1,14918608,1,1,2) [2025-04-16 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918608', 'tblTempUsageDetail_20' ) start [2025-04-16 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918608', 'tblTempUsageDetail_20' ) end [2025-04-16 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:55:22] Production.INFO: ==14496== Releasing lock... [2025-04-16 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:55:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:56:06 [end_date_ymd] => 2025-04-16 04:56:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:56:06' and `end` < '2025-04-16 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-04-16 04:56:20] Production.INFO: count ==76 [2025-04-16 04:56:20] Production.ERROR: pbx CDR StartTime 2025-04-16 01:56:06 - End Time 2025-04-16 04:56:06 [2025-04-16 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918613', 'tblTempUsageDetail_20' ) start [2025-04-16 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918613', 'tblTempUsageDetail_20' ) end [2025-04-16 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918613', 'tblTempVendorCDR_20' ) start [2025-04-16 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918613', 'tblTempVendorCDR_20' ) end [2025-04-16 04:56:20] Production.INFO: ProcessCDR(1,14918613,1,1,2) [2025-04-16 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918613', 'tblTempUsageDetail_20' ) start [2025-04-16 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918613', 'tblTempUsageDetail_20' ) end [2025-04-16 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:56:23] Production.INFO: ==14577== Releasing lock... [2025-04-16 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:56:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:57:05 [end_date_ymd] => 2025-04-16 04:57:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 01:57:05' and `end` < '2025-04-16 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-04-16 04:57:18] Production.INFO: count ==75 [2025-04-16 04:57:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:57:05 - End Time 2025-04-16 04:57:05 [2025-04-16 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918618', 'tblTempUsageDetail_20' ) start [2025-04-16 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918618', 'tblTempUsageDetail_20' ) end [2025-04-16 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918618', 'tblTempVendorCDR_20' ) start [2025-04-16 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918618', 'tblTempVendorCDR_20' ) end [2025-04-16 04:57:18] Production.INFO: ProcessCDR(1,14918618,1,1,2) [2025-04-16 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918618', 'tblTempUsageDetail_20' ) start [2025-04-16 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918618', 'tblTempUsageDetail_20' ) end [2025-04-16 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:57:21] Production.INFO: ==14651== Releasing lock... [2025-04-16 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:57:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:58:06 [end_date_ymd] => 2025-04-16 04:58:06 [RateCDR] => 1 ) [2025-04-16 04: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-04-16 01:58:06' and `end` < '2025-04-16 04: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-04-16 04:58:20] Production.INFO: count ==74 [2025-04-16 04:58:20] Production.ERROR: pbx CDR StartTime 2025-04-16 01:58:06 - End Time 2025-04-16 04:58:06 [2025-04-16 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918623', 'tblTempUsageDetail_20' ) start [2025-04-16 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918623', 'tblTempUsageDetail_20' ) end [2025-04-16 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918623', 'tblTempVendorCDR_20' ) start [2025-04-16 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918623', 'tblTempVendorCDR_20' ) end [2025-04-16 04:58:20] Production.INFO: ProcessCDR(1,14918623,1,1,2) [2025-04-16 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918623', 'tblTempUsageDetail_20' ) start [2025-04-16 04:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918623', 'tblTempUsageDetail_20' ) end [2025-04-16 04:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:58:24] Production.INFO: ==14728== Releasing lock... [2025-04-16 04:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:58:24] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 04:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 01:59:04 [end_date_ymd] => 2025-04-16 04:59:04 [RateCDR] => 1 ) [2025-04-16 04:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 01:59:04' and `end` < '2025-04-16 04:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 04:59:18] Production.INFO: count ==75 [2025-04-16 04:59:18] Production.ERROR: pbx CDR StartTime 2025-04-16 01:59:04 - End Time 2025-04-16 04:59:04 [2025-04-16 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918625', 'tblTempUsageDetail_20' ) start [2025-04-16 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918625', 'tblTempUsageDetail_20' ) end [2025-04-16 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918625', 'tblTempVendorCDR_20' ) start [2025-04-16 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918625', 'tblTempVendorCDR_20' ) end [2025-04-16 04:59:18] Production.INFO: ProcessCDR(1,14918625,1,1,2) [2025-04-16 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918625', 'tblTempUsageDetail_20' ) start [2025-04-16 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918625', 'tblTempUsageDetail_20' ) end [2025-04-16 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 04:59:21] Production.INFO: ==14801== Releasing lock... [2025-04-16 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 04:59:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:00:06 [end_date_ymd] => 2025-04-16 05:00:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:00:06' and `end` < '2025-04-16 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-04-16 05:00:19] Production.INFO: count ==64 [2025-04-16 05:00:19] Production.ERROR: pbx CDR StartTime 2025-04-16 02:00:06 - End Time 2025-04-16 05:00:06 [2025-04-16 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918633', 'tblTempUsageDetail_20' ) start [2025-04-16 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918633', 'tblTempUsageDetail_20' ) end [2025-04-16 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918633', 'tblTempVendorCDR_20' ) start [2025-04-16 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918633', 'tblTempVendorCDR_20' ) end [2025-04-16 05:00:19] Production.INFO: ProcessCDR(1,14918633,1,1,2) [2025-04-16 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918633', 'tblTempUsageDetail_20' ) start [2025-04-16 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918633', 'tblTempUsageDetail_20' ) end [2025-04-16 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:00:22] Production.INFO: ==14885== Releasing lock... [2025-04-16 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:00:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:01:05 [end_date_ymd] => 2025-04-16 05:01:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:01:05' and `end` < '2025-04-16 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-04-16 05:01:19] Production.INFO: count ==60 [2025-04-16 05:01:19] Production.ERROR: pbx CDR StartTime 2025-04-16 02:01:05 - End Time 2025-04-16 05:01:05 [2025-04-16 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918639', 'tblTempUsageDetail_20' ) start [2025-04-16 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918639', 'tblTempUsageDetail_20' ) end [2025-04-16 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918639', 'tblTempVendorCDR_20' ) start [2025-04-16 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918639', 'tblTempVendorCDR_20' ) end [2025-04-16 05:01:19] Production.INFO: ProcessCDR(1,14918639,1,1,2) [2025-04-16 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918639', 'tblTempUsageDetail_20' ) start [2025-04-16 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918639', 'tblTempUsageDetail_20' ) end [2025-04-16 05:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:01:22] Production.INFO: ==14973== Releasing lock... [2025-04-16 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:01:22] Production.INFO: 28 MB #Memory Used# [2025-04-16 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:02:05 [end_date_ymd] => 2025-04-16 05:02:05 [RateCDR] => 1 ) [2025-04-16 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 02:02:05' and `end` < '2025-04-16 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 05:02:18] Production.INFO: count ==62 [2025-04-16 05:02:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:02:05 - End Time 2025-04-16 05:02:05 [2025-04-16 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918644', 'tblTempUsageDetail_20' ) start [2025-04-16 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918644', 'tblTempUsageDetail_20' ) end [2025-04-16 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918644', 'tblTempVendorCDR_20' ) start [2025-04-16 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918644', 'tblTempVendorCDR_20' ) end [2025-04-16 05:02:18] Production.INFO: ProcessCDR(1,14918644,1,1,2) [2025-04-16 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918644', 'tblTempUsageDetail_20' ) start [2025-04-16 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918644', 'tblTempUsageDetail_20' ) end [2025-04-16 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:02:21] Production.INFO: ==15048== Releasing lock... [2025-04-16 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:02:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:03:05 [end_date_ymd] => 2025-04-16 05:03:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:03:05' and `end` < '2025-04-16 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-04-16 05:03:18] Production.INFO: count ==62 [2025-04-16 05:03:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:03:05 - End Time 2025-04-16 05:03:05 [2025-04-16 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918649', 'tblTempUsageDetail_20' ) start [2025-04-16 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918649', 'tblTempUsageDetail_20' ) end [2025-04-16 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918649', 'tblTempVendorCDR_20' ) start [2025-04-16 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918649', 'tblTempVendorCDR_20' ) end [2025-04-16 05:03:18] Production.INFO: ProcessCDR(1,14918649,1,1,2) [2025-04-16 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918649', 'tblTempUsageDetail_20' ) start [2025-04-16 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918649', 'tblTempUsageDetail_20' ) end [2025-04-16 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:03:21] Production.INFO: ==15122== Releasing lock... [2025-04-16 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:03:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:04:05 [end_date_ymd] => 2025-04-16 05:04:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:04:05' and `end` < '2025-04-16 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-04-16 05:04:18] Production.INFO: count ==62 [2025-04-16 05:04:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:04:05 - End Time 2025-04-16 05:04:05 [2025-04-16 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918654', 'tblTempUsageDetail_20' ) start [2025-04-16 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918654', 'tblTempUsageDetail_20' ) end [2025-04-16 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918654', 'tblTempVendorCDR_20' ) start [2025-04-16 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918654', 'tblTempVendorCDR_20' ) end [2025-04-16 05:04:18] Production.INFO: ProcessCDR(1,14918654,1,1,2) [2025-04-16 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918654', 'tblTempUsageDetail_20' ) start [2025-04-16 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918654', 'tblTempUsageDetail_20' ) end [2025-04-16 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:04:22] Production.INFO: ==15202== Releasing lock... [2025-04-16 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:04:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:05:05 [end_date_ymd] => 2025-04-16 05:05:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:05:05' and `end` < '2025-04-16 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-04-16 05:05:17] Production.INFO: count ==62 [2025-04-16 05:05:17] Production.ERROR: pbx CDR StartTime 2025-04-16 02:05:05 - End Time 2025-04-16 05:05:05 [2025-04-16 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918659', 'tblTempUsageDetail_20' ) start [2025-04-16 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918659', 'tblTempUsageDetail_20' ) end [2025-04-16 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918659', 'tblTempVendorCDR_20' ) start [2025-04-16 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918659', 'tblTempVendorCDR_20' ) end [2025-04-16 05:05:17] Production.INFO: ProcessCDR(1,14918659,1,1,2) [2025-04-16 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918659', 'tblTempUsageDetail_20' ) start [2025-04-16 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918659', 'tblTempUsageDetail_20' ) end [2025-04-16 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:05:21] Production.INFO: ==15274== Releasing lock... [2025-04-16 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:05:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:06:05 [end_date_ymd] => 2025-04-16 05:06:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:06:05' and `end` < '2025-04-16 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-04-16 05:06:18] Production.INFO: count ==62 [2025-04-16 05:06:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:06:05 - End Time 2025-04-16 05:06:05 [2025-04-16 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918664', 'tblTempUsageDetail_20' ) start [2025-04-16 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918664', 'tblTempUsageDetail_20' ) end [2025-04-16 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918664', 'tblTempVendorCDR_20' ) start [2025-04-16 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918664', 'tblTempVendorCDR_20' ) end [2025-04-16 05:06:18] Production.INFO: ProcessCDR(1,14918664,1,1,2) [2025-04-16 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918664', 'tblTempUsageDetail_20' ) start [2025-04-16 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918664', 'tblTempUsageDetail_20' ) end [2025-04-16 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:06:21] Production.INFO: ==15356== Releasing lock... [2025-04-16 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:06:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:07:04 [end_date_ymd] => 2025-04-16 05:07:04 [RateCDR] => 1 ) [2025-04-16 05:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 02:07:04' and `end` < '2025-04-16 05:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 05:07:17] Production.INFO: count ==62 [2025-04-16 05:07:17] Production.ERROR: pbx CDR StartTime 2025-04-16 02:07:04 - End Time 2025-04-16 05:07:04 [2025-04-16 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918669', 'tblTempUsageDetail_20' ) start [2025-04-16 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918669', 'tblTempUsageDetail_20' ) end [2025-04-16 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918669', 'tblTempVendorCDR_20' ) start [2025-04-16 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918669', 'tblTempVendorCDR_20' ) end [2025-04-16 05:07:17] Production.INFO: ProcessCDR(1,14918669,1,1,2) [2025-04-16 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918669', 'tblTempUsageDetail_20' ) start [2025-04-16 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918669', 'tblTempUsageDetail_20' ) end [2025-04-16 05:07:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:07:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:07:20] Production.INFO: ==15431== Releasing lock... [2025-04-16 05:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:07:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:08:05 [end_date_ymd] => 2025-04-16 05:08:05 [RateCDR] => 1 ) [2025-04-16 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 02:08:05' and `end` < '2025-04-16 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 05:08:18] Production.INFO: count ==61 [2025-04-16 05:08:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:08:05 - End Time 2025-04-16 05:08:05 [2025-04-16 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918674', 'tblTempUsageDetail_20' ) start [2025-04-16 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918674', 'tblTempUsageDetail_20' ) end [2025-04-16 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918674', 'tblTempVendorCDR_20' ) start [2025-04-16 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918674', 'tblTempVendorCDR_20' ) end [2025-04-16 05:08:18] Production.INFO: ProcessCDR(1,14918674,1,1,2) [2025-04-16 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918674', 'tblTempUsageDetail_20' ) start [2025-04-16 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918674', 'tblTempUsageDetail_20' ) end [2025-04-16 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:08:21] Production.INFO: ==15509== Releasing lock... [2025-04-16 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:08:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:09:05 [end_date_ymd] => 2025-04-16 05:09:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:09:05' and `end` < '2025-04-16 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-04-16 05:09:18] Production.INFO: count ==61 [2025-04-16 05:09:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:09:05 - End Time 2025-04-16 05:09:05 [2025-04-16 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918679', 'tblTempUsageDetail_20' ) start [2025-04-16 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918679', 'tblTempUsageDetail_20' ) end [2025-04-16 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918679', 'tblTempVendorCDR_20' ) start [2025-04-16 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918679', 'tblTempVendorCDR_20' ) end [2025-04-16 05:09:18] Production.INFO: ProcessCDR(1,14918679,1,1,2) [2025-04-16 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918679', 'tblTempUsageDetail_20' ) start [2025-04-16 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918679', 'tblTempUsageDetail_20' ) end [2025-04-16 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:09:21] Production.INFO: ==15627== Releasing lock... [2025-04-16 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:09:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 05:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:10:07 [end_date_ymd] => 2025-04-16 05:10:07 [RateCDR] => 1 ) [2025-04-16 05: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-04-16 02:10:07' and `end` < '2025-04-16 05: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-04-16 05:10:19] Production.INFO: count ==61 [2025-04-16 05:10:19] Production.ERROR: pbx CDR StartTime 2025-04-16 02:10:07 - End Time 2025-04-16 05:10:07 [2025-04-16 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918685', 'tblTempUsageDetail_20' ) start [2025-04-16 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918685', 'tblTempUsageDetail_20' ) end [2025-04-16 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918685', 'tblTempVendorCDR_20' ) start [2025-04-16 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918685', 'tblTempVendorCDR_20' ) end [2025-04-16 05:10:19] Production.INFO: ProcessCDR(1,14918685,1,1,2) [2025-04-16 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918685', 'tblTempUsageDetail_20' ) start [2025-04-16 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918685', 'tblTempUsageDetail_20' ) end [2025-04-16 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:10:22] Production.INFO: ==15702== Releasing lock... [2025-04-16 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:10:22] Production.INFO: 28 MB #Memory Used# [2025-04-16 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:11:05 [end_date_ymd] => 2025-04-16 05:11:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:11:05' and `end` < '2025-04-16 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-04-16 05:11:18] Production.INFO: count ==61 [2025-04-16 05:11:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:11:05 - End Time 2025-04-16 05:11:05 [2025-04-16 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918690', 'tblTempUsageDetail_20' ) start [2025-04-16 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918690', 'tblTempUsageDetail_20' ) end [2025-04-16 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918690', 'tblTempVendorCDR_20' ) start [2025-04-16 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918690', 'tblTempVendorCDR_20' ) end [2025-04-16 05:11:18] Production.INFO: ProcessCDR(1,14918690,1,1,2) [2025-04-16 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918690', 'tblTempUsageDetail_20' ) start [2025-04-16 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918690', 'tblTempUsageDetail_20' ) end [2025-04-16 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:11:21] Production.INFO: ==15778== Releasing lock... [2025-04-16 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:11:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:12:05 [end_date_ymd] => 2025-04-16 05:12:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:12:05' and `end` < '2025-04-16 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-04-16 05:12:18] Production.INFO: count ==61 [2025-04-16 05:12:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:12:05 - End Time 2025-04-16 05:12:05 [2025-04-16 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918695', 'tblTempUsageDetail_20' ) start [2025-04-16 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918695', 'tblTempUsageDetail_20' ) end [2025-04-16 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918695', 'tblTempVendorCDR_20' ) start [2025-04-16 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918695', 'tblTempVendorCDR_20' ) end [2025-04-16 05:12:18] Production.INFO: ProcessCDR(1,14918695,1,1,2) [2025-04-16 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918695', 'tblTempUsageDetail_20' ) start [2025-04-16 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918695', 'tblTempUsageDetail_20' ) end [2025-04-16 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:12:21] Production.INFO: ==15852== Releasing lock... [2025-04-16 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:12:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:13:05 [end_date_ymd] => 2025-04-16 05:13:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:13:05' and `end` < '2025-04-16 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-04-16 05:13:18] Production.INFO: count ==61 [2025-04-16 05:13:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:13:05 - End Time 2025-04-16 05:13:05 [2025-04-16 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918700', 'tblTempUsageDetail_20' ) start [2025-04-16 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918700', 'tblTempUsageDetail_20' ) end [2025-04-16 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918700', 'tblTempVendorCDR_20' ) start [2025-04-16 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918700', 'tblTempVendorCDR_20' ) end [2025-04-16 05:13:18] Production.INFO: ProcessCDR(1,14918700,1,1,2) [2025-04-16 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918700', 'tblTempUsageDetail_20' ) start [2025-04-16 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918700', 'tblTempUsageDetail_20' ) end [2025-04-16 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:13:21] Production.INFO: ==15929== Releasing lock... [2025-04-16 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:13:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:14:05 [end_date_ymd] => 2025-04-16 05:14:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:14:05' and `end` < '2025-04-16 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-04-16 05:14:18] Production.INFO: count ==61 [2025-04-16 05:14:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:14:05 - End Time 2025-04-16 05:14:05 [2025-04-16 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918705', 'tblTempUsageDetail_20' ) start [2025-04-16 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918705', 'tblTempUsageDetail_20' ) end [2025-04-16 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918705', 'tblTempVendorCDR_20' ) start [2025-04-16 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918705', 'tblTempVendorCDR_20' ) end [2025-04-16 05:14:18] Production.INFO: ProcessCDR(1,14918705,1,1,2) [2025-04-16 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918705', 'tblTempUsageDetail_20' ) start [2025-04-16 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918705', 'tblTempUsageDetail_20' ) end [2025-04-16 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:14:21] Production.INFO: ==16006== Releasing lock... [2025-04-16 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:14:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 05:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:15:06 [end_date_ymd] => 2025-04-16 05:15:06 [RateCDR] => 1 ) [2025-04-16 05: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-04-16 02:15:06' and `end` < '2025-04-16 05: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-04-16 05:15:18] Production.INFO: count ==62 [2025-04-16 05:15:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:15:06 - End Time 2025-04-16 05:15:06 [2025-04-16 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918710', 'tblTempUsageDetail_20' ) start [2025-04-16 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918710', 'tblTempUsageDetail_20' ) end [2025-04-16 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918710', 'tblTempVendorCDR_20' ) start [2025-04-16 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918710', 'tblTempVendorCDR_20' ) end [2025-04-16 05:15:18] Production.INFO: ProcessCDR(1,14918710,1,1,2) [2025-04-16 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918710', 'tblTempUsageDetail_20' ) start [2025-04-16 05:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918710', 'tblTempUsageDetail_20' ) end [2025-04-16 05:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:15:23] Production.INFO: ==16085== Releasing lock... [2025-04-16 05:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:15:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:16:05 [end_date_ymd] => 2025-04-16 05:16:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:16:05' and `end` < '2025-04-16 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-04-16 05:16:17] Production.INFO: count ==62 [2025-04-16 05:16:17] Production.ERROR: pbx CDR StartTime 2025-04-16 02:16:05 - End Time 2025-04-16 05:16:05 [2025-04-16 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918715', 'tblTempUsageDetail_20' ) start [2025-04-16 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918715', 'tblTempUsageDetail_20' ) end [2025-04-16 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918715', 'tblTempVendorCDR_20' ) start [2025-04-16 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918715', 'tblTempVendorCDR_20' ) end [2025-04-16 05:16:17] Production.INFO: ProcessCDR(1,14918715,1,1,2) [2025-04-16 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918715', 'tblTempUsageDetail_20' ) start [2025-04-16 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918715', 'tblTempUsageDetail_20' ) end [2025-04-16 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:16:21] Production.INFO: ==16157== Releasing lock... [2025-04-16 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:16:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:17:05 [end_date_ymd] => 2025-04-16 05:17:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:17:05' and `end` < '2025-04-16 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-04-16 05:17:18] Production.INFO: count ==62 [2025-04-16 05:17:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:17:05 - End Time 2025-04-16 05:17:05 [2025-04-16 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918720', 'tblTempUsageDetail_20' ) start [2025-04-16 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918720', 'tblTempUsageDetail_20' ) end [2025-04-16 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918720', 'tblTempVendorCDR_20' ) start [2025-04-16 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918720', 'tblTempVendorCDR_20' ) end [2025-04-16 05:17:18] Production.INFO: ProcessCDR(1,14918720,1,1,2) [2025-04-16 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918720', 'tblTempUsageDetail_20' ) start [2025-04-16 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918720', 'tblTempUsageDetail_20' ) end [2025-04-16 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:17:21] Production.INFO: ==16229== Releasing lock... [2025-04-16 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:17:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:18:05 [end_date_ymd] => 2025-04-16 05:18:05 [RateCDR] => 1 ) [2025-04-16 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 02:18:05' and `end` < '2025-04-16 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 05:18:18] Production.INFO: count ==62 [2025-04-16 05:18:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:18:05 - End Time 2025-04-16 05:18:05 [2025-04-16 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918725', 'tblTempUsageDetail_20' ) start [2025-04-16 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918725', 'tblTempUsageDetail_20' ) end [2025-04-16 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918725', 'tblTempVendorCDR_20' ) start [2025-04-16 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918725', 'tblTempVendorCDR_20' ) end [2025-04-16 05:18:18] Production.INFO: ProcessCDR(1,14918725,1,1,2) [2025-04-16 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918725', 'tblTempUsageDetail_20' ) start [2025-04-16 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918725', 'tblTempUsageDetail_20' ) end [2025-04-16 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:18:21] Production.INFO: ==16322== Releasing lock... [2025-04-16 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:19:05 [end_date_ymd] => 2025-04-16 05:19:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:19:05' and `end` < '2025-04-16 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-04-16 05:19:17] Production.INFO: count ==62 [2025-04-16 05:19:17] Production.ERROR: pbx CDR StartTime 2025-04-16 02:19:05 - End Time 2025-04-16 05:19:05 [2025-04-16 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918730', 'tblTempUsageDetail_20' ) start [2025-04-16 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918730', 'tblTempUsageDetail_20' ) end [2025-04-16 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918730', 'tblTempVendorCDR_20' ) start [2025-04-16 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918730', 'tblTempVendorCDR_20' ) end [2025-04-16 05:19:17] Production.INFO: ProcessCDR(1,14918730,1,1,2) [2025-04-16 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918730', 'tblTempUsageDetail_20' ) start [2025-04-16 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918730', 'tblTempUsageDetail_20' ) end [2025-04-16 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:19:20] Production.INFO: ==16397== Releasing lock... [2025-04-16 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:19:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:20:05 [end_date_ymd] => 2025-04-16 05:20:05 [RateCDR] => 1 ) [2025-04-16 05:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 02:20:05' and `end` < '2025-04-16 05:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 05:20:18] Production.INFO: count ==62 [2025-04-16 05:20:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:20:05 - End Time 2025-04-16 05:20:05 [2025-04-16 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918736', 'tblTempUsageDetail_20' ) start [2025-04-16 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918736', 'tblTempUsageDetail_20' ) end [2025-04-16 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918736', 'tblTempVendorCDR_20' ) start [2025-04-16 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918736', 'tblTempVendorCDR_20' ) end [2025-04-16 05:20:18] Production.INFO: ProcessCDR(1,14918736,1,1,2) [2025-04-16 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918736', 'tblTempUsageDetail_20' ) start [2025-04-16 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918736', 'tblTempUsageDetail_20' ) end [2025-04-16 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:20:21] Production.INFO: ==16484== Releasing lock... [2025-04-16 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:20:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:21:05 [end_date_ymd] => 2025-04-16 05:21:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:21:05' and `end` < '2025-04-16 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-04-16 05:21:17] Production.INFO: count ==62 [2025-04-16 05:21:17] Production.ERROR: pbx CDR StartTime 2025-04-16 02:21:05 - End Time 2025-04-16 05:21:05 [2025-04-16 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918741', 'tblTempUsageDetail_20' ) start [2025-04-16 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918741', 'tblTempUsageDetail_20' ) end [2025-04-16 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918741', 'tblTempVendorCDR_20' ) start [2025-04-16 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918741', 'tblTempVendorCDR_20' ) end [2025-04-16 05:21:17] Production.INFO: ProcessCDR(1,14918741,1,1,2) [2025-04-16 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918741', 'tblTempUsageDetail_20' ) start [2025-04-16 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918741', 'tblTempUsageDetail_20' ) end [2025-04-16 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:21:21] Production.INFO: ==16560== Releasing lock... [2025-04-16 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:21:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:22:05 [end_date_ymd] => 2025-04-16 05:22:05 [RateCDR] => 1 ) [2025-04-16 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 02:22:05' and `end` < '2025-04-16 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 05:22:18] Production.INFO: count ==62 [2025-04-16 05:22:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:22:05 - End Time 2025-04-16 05:22:05 [2025-04-16 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918746', 'tblTempUsageDetail_20' ) start [2025-04-16 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918746', 'tblTempUsageDetail_20' ) end [2025-04-16 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918746', 'tblTempVendorCDR_20' ) start [2025-04-16 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918746', 'tblTempVendorCDR_20' ) end [2025-04-16 05:22:18] Production.INFO: ProcessCDR(1,14918746,1,1,2) [2025-04-16 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918746', 'tblTempUsageDetail_20' ) start [2025-04-16 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918746', 'tblTempUsageDetail_20' ) end [2025-04-16 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:22:21] Production.INFO: ==16635== Releasing lock... [2025-04-16 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:23:04 [end_date_ymd] => 2025-04-16 05:23:04 [RateCDR] => 1 ) [2025-04-16 05: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-04-16 02:23:04' and `end` < '2025-04-16 05: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-04-16 05:23:17] Production.INFO: count ==62 [2025-04-16 05:23:17] Production.ERROR: pbx CDR StartTime 2025-04-16 02:23:04 - End Time 2025-04-16 05:23:04 [2025-04-16 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918751', 'tblTempUsageDetail_20' ) start [2025-04-16 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918751', 'tblTempUsageDetail_20' ) end [2025-04-16 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918751', 'tblTempVendorCDR_20' ) start [2025-04-16 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918751', 'tblTempVendorCDR_20' ) end [2025-04-16 05:23:17] Production.INFO: ProcessCDR(1,14918751,1,1,2) [2025-04-16 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918751', 'tblTempUsageDetail_20' ) start [2025-04-16 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918751', 'tblTempUsageDetail_20' ) end [2025-04-16 05:23:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:23:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:23:20] Production.INFO: ==16712== Releasing lock... [2025-04-16 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:23:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:24:06 [end_date_ymd] => 2025-04-16 05:24:06 [RateCDR] => 1 ) [2025-04-16 05: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-04-16 02:24:06' and `end` < '2025-04-16 05: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-04-16 05:24:18] Production.INFO: count ==62 [2025-04-16 05:24:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:24:06 - End Time 2025-04-16 05:24:06 [2025-04-16 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918756', 'tblTempUsageDetail_20' ) start [2025-04-16 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918756', 'tblTempUsageDetail_20' ) end [2025-04-16 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918756', 'tblTempVendorCDR_20' ) start [2025-04-16 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918756', 'tblTempVendorCDR_20' ) end [2025-04-16 05:24:18] Production.INFO: ProcessCDR(1,14918756,1,1,2) [2025-04-16 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918756', 'tblTempUsageDetail_20' ) start [2025-04-16 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918756', 'tblTempUsageDetail_20' ) end [2025-04-16 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:24:21] Production.INFO: ==16822== Releasing lock... [2025-04-16 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:25:05 [end_date_ymd] => 2025-04-16 05:25:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:25:05' and `end` < '2025-04-16 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-04-16 05:25:17] Production.INFO: count ==62 [2025-04-16 05:25:17] Production.ERROR: pbx CDR StartTime 2025-04-16 02:25:05 - End Time 2025-04-16 05:25:05 [2025-04-16 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918761', 'tblTempUsageDetail_20' ) start [2025-04-16 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918761', 'tblTempUsageDetail_20' ) end [2025-04-16 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918761', 'tblTempVendorCDR_20' ) start [2025-04-16 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918761', 'tblTempVendorCDR_20' ) end [2025-04-16 05:25:17] Production.INFO: ProcessCDR(1,14918761,1,1,2) [2025-04-16 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918761', 'tblTempUsageDetail_20' ) start [2025-04-16 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918761', 'tblTempUsageDetail_20' ) end [2025-04-16 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:25:20] Production.INFO: ==16902== Releasing lock... [2025-04-16 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:25:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:26:05 [end_date_ymd] => 2025-04-16 05:26:05 [RateCDR] => 1 ) [2025-04-16 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 02:26:05' and `end` < '2025-04-16 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 05:26:18] Production.INFO: count ==62 [2025-04-16 05:26:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:26:05 - End Time 2025-04-16 05:26:05 [2025-04-16 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918766', 'tblTempUsageDetail_20' ) start [2025-04-16 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918766', 'tblTempUsageDetail_20' ) end [2025-04-16 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918766', 'tblTempVendorCDR_20' ) start [2025-04-16 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918766', 'tblTempVendorCDR_20' ) end [2025-04-16 05:26:18] Production.INFO: ProcessCDR(1,14918766,1,1,2) [2025-04-16 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918766', 'tblTempUsageDetail_20' ) start [2025-04-16 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918766', 'tblTempUsageDetail_20' ) end [2025-04-16 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:26:21] Production.INFO: ==16981== Releasing lock... [2025-04-16 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:27:04 [end_date_ymd] => 2025-04-16 05:27:04 [RateCDR] => 1 ) [2025-04-16 05:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 02:27:04' and `end` < '2025-04-16 05:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 05:27:17] Production.INFO: count ==62 [2025-04-16 05:27:17] Production.ERROR: pbx CDR StartTime 2025-04-16 02:27:04 - End Time 2025-04-16 05:27:04 [2025-04-16 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918771', 'tblTempUsageDetail_20' ) start [2025-04-16 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918771', 'tblTempUsageDetail_20' ) end [2025-04-16 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918771', 'tblTempVendorCDR_20' ) start [2025-04-16 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918771', 'tblTempVendorCDR_20' ) end [2025-04-16 05:27:17] Production.INFO: ProcessCDR(1,14918771,1,1,2) [2025-04-16 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918771', 'tblTempUsageDetail_20' ) start [2025-04-16 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918771', 'tblTempUsageDetail_20' ) end [2025-04-16 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:27:20] Production.INFO: ==17057== Releasing lock... [2025-04-16 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:27:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:28:05 [end_date_ymd] => 2025-04-16 05:28:05 [RateCDR] => 1 ) [2025-04-16 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 02:28:05' and `end` < '2025-04-16 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 05:28:18] Production.INFO: count ==64 [2025-04-16 05:28:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:28:05 - End Time 2025-04-16 05:28:05 [2025-04-16 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918776', 'tblTempUsageDetail_20' ) start [2025-04-16 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918776', 'tblTempUsageDetail_20' ) end [2025-04-16 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918776', 'tblTempVendorCDR_20' ) start [2025-04-16 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918776', 'tblTempVendorCDR_20' ) end [2025-04-16 05:28:18] Production.INFO: ProcessCDR(1,14918776,1,1,2) [2025-04-16 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918776', 'tblTempUsageDetail_20' ) start [2025-04-16 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918776', 'tblTempUsageDetail_20' ) end [2025-04-16 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:28:21] Production.INFO: ==17132== Releasing lock... [2025-04-16 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:29:05 [end_date_ymd] => 2025-04-16 05:29:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:29:05' and `end` < '2025-04-16 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-04-16 05:29:18] Production.INFO: count ==64 [2025-04-16 05:29:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:29:05 - End Time 2025-04-16 05:29:05 [2025-04-16 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918781', 'tblTempUsageDetail_20' ) start [2025-04-16 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918781', 'tblTempUsageDetail_20' ) end [2025-04-16 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918781', 'tblTempVendorCDR_20' ) start [2025-04-16 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918781', 'tblTempVendorCDR_20' ) end [2025-04-16 05:29:18] Production.INFO: ProcessCDR(1,14918781,1,1,2) [2025-04-16 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918781', 'tblTempUsageDetail_20' ) start [2025-04-16 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918781', 'tblTempUsageDetail_20' ) end [2025-04-16 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:29:21] Production.INFO: ==17208== Releasing lock... [2025-04-16 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:30:05 [end_date_ymd] => 2025-04-16 05:30:05 [RateCDR] => 1 ) [2025-04-16 05:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 02:30:05' and `end` < '2025-04-16 05:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 05:30:18] Production.INFO: count ==62 [2025-04-16 05:30:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:30:05 - End Time 2025-04-16 05:30:05 [2025-04-16 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918786', 'tblTempUsageDetail_20' ) start [2025-04-16 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918786', 'tblTempUsageDetail_20' ) end [2025-04-16 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918786', 'tblTempVendorCDR_20' ) start [2025-04-16 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918786', 'tblTempVendorCDR_20' ) end [2025-04-16 05:30:18] Production.INFO: ProcessCDR(1,14918786,1,1,2) [2025-04-16 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918786', 'tblTempUsageDetail_20' ) start [2025-04-16 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918786', 'tblTempUsageDetail_20' ) end [2025-04-16 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:30:21] Production.INFO: ==17292== Releasing lock... [2025-04-16 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:30:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:31:05 [end_date_ymd] => 2025-04-16 05:31:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:31:05' and `end` < '2025-04-16 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-04-16 05:31:17] Production.INFO: count ==62 [2025-04-16 05:31:17] Production.ERROR: pbx CDR StartTime 2025-04-16 02:31:05 - End Time 2025-04-16 05:31:05 [2025-04-16 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918792', 'tblTempUsageDetail_20' ) start [2025-04-16 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918792', 'tblTempUsageDetail_20' ) end [2025-04-16 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918792', 'tblTempVendorCDR_20' ) start [2025-04-16 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918792', 'tblTempVendorCDR_20' ) end [2025-04-16 05:31:17] Production.INFO: ProcessCDR(1,14918792,1,1,2) [2025-04-16 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918792', 'tblTempUsageDetail_20' ) start [2025-04-16 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918792', 'tblTempUsageDetail_20' ) end [2025-04-16 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:31:21] Production.INFO: ==17369== Releasing lock... [2025-04-16 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:32:04 [end_date_ymd] => 2025-04-16 05:32:04 [RateCDR] => 1 ) [2025-04-16 05:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 02:32:04' and `end` < '2025-04-16 05:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 05:32:17] Production.INFO: count ==62 [2025-04-16 05:32:17] Production.ERROR: pbx CDR StartTime 2025-04-16 02:32:04 - End Time 2025-04-16 05:32:04 [2025-04-16 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918797', 'tblTempUsageDetail_20' ) start [2025-04-16 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918797', 'tblTempUsageDetail_20' ) end [2025-04-16 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918797', 'tblTempVendorCDR_20' ) start [2025-04-16 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918797', 'tblTempVendorCDR_20' ) end [2025-04-16 05:32:17] Production.INFO: ProcessCDR(1,14918797,1,1,2) [2025-04-16 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918797', 'tblTempUsageDetail_20' ) start [2025-04-16 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918797', 'tblTempUsageDetail_20' ) end [2025-04-16 05:32:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:32:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:32:20] Production.INFO: ==17443== Releasing lock... [2025-04-16 05:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:32:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:33:05 [end_date_ymd] => 2025-04-16 05:33:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:33:05' and `end` < '2025-04-16 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-04-16 05:33:17] Production.INFO: count ==62 [2025-04-16 05:33:17] Production.ERROR: pbx CDR StartTime 2025-04-16 02:33:05 - End Time 2025-04-16 05:33:05 [2025-04-16 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918802', 'tblTempUsageDetail_20' ) start [2025-04-16 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918802', 'tblTempUsageDetail_20' ) end [2025-04-16 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918802', 'tblTempVendorCDR_20' ) start [2025-04-16 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918802', 'tblTempVendorCDR_20' ) end [2025-04-16 05:33:17] Production.INFO: ProcessCDR(1,14918802,1,1,2) [2025-04-16 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918802', 'tblTempUsageDetail_20' ) start [2025-04-16 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918802', 'tblTempUsageDetail_20' ) end [2025-04-16 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:33:21] Production.INFO: ==17524== Releasing lock... [2025-04-16 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:34:05 [end_date_ymd] => 2025-04-16 05:34:05 [RateCDR] => 1 ) [2025-04-16 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 02:34:05' and `end` < '2025-04-16 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 05:34:18] Production.INFO: count ==62 [2025-04-16 05:34:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:34:05 - End Time 2025-04-16 05:34:05 [2025-04-16 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918807', 'tblTempUsageDetail_20' ) start [2025-04-16 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918807', 'tblTempUsageDetail_20' ) end [2025-04-16 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918807', 'tblTempVendorCDR_20' ) start [2025-04-16 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918807', 'tblTempVendorCDR_20' ) end [2025-04-16 05:34:18] Production.INFO: ProcessCDR(1,14918807,1,1,2) [2025-04-16 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918807', 'tblTempUsageDetail_20' ) start [2025-04-16 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918807', 'tblTempUsageDetail_20' ) end [2025-04-16 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:34:21] Production.INFO: ==17597== Releasing lock... [2025-04-16 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:35:05 [end_date_ymd] => 2025-04-16 05:35:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:35:05' and `end` < '2025-04-16 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-04-16 05:35:18] Production.INFO: count ==62 [2025-04-16 05:35:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:35:05 - End Time 2025-04-16 05:35:05 [2025-04-16 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918812', 'tblTempUsageDetail_20' ) start [2025-04-16 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918812', 'tblTempUsageDetail_20' ) end [2025-04-16 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918812', 'tblTempVendorCDR_20' ) start [2025-04-16 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918812', 'tblTempVendorCDR_20' ) end [2025-04-16 05:35:18] Production.INFO: ProcessCDR(1,14918812,1,1,2) [2025-04-16 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918812', 'tblTempUsageDetail_20' ) start [2025-04-16 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918812', 'tblTempUsageDetail_20' ) end [2025-04-16 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:35:21] Production.INFO: ==17676== Releasing lock... [2025-04-16 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:36:05 [end_date_ymd] => 2025-04-16 05:36:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:36:05' and `end` < '2025-04-16 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-04-16 05:36:18] Production.INFO: count ==62 [2025-04-16 05:36:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:36:05 - End Time 2025-04-16 05:36:05 [2025-04-16 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918817', 'tblTempUsageDetail_20' ) start [2025-04-16 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918817', 'tblTempUsageDetail_20' ) end [2025-04-16 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918817', 'tblTempVendorCDR_20' ) start [2025-04-16 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918817', 'tblTempVendorCDR_20' ) end [2025-04-16 05:36:18] Production.INFO: ProcessCDR(1,14918817,1,1,2) [2025-04-16 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918817', 'tblTempUsageDetail_20' ) start [2025-04-16 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918817', 'tblTempUsageDetail_20' ) end [2025-04-16 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:36:21] Production.INFO: ==17750== Releasing lock... [2025-04-16 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:37:05 [end_date_ymd] => 2025-04-16 05:37:05 [RateCDR] => 1 ) [2025-04-16 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 02:37:05' and `end` < '2025-04-16 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 05:37:17] Production.INFO: count ==62 [2025-04-16 05:37:17] Production.ERROR: pbx CDR StartTime 2025-04-16 02:37:05 - End Time 2025-04-16 05:37:05 [2025-04-16 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918822', 'tblTempUsageDetail_20' ) start [2025-04-16 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918822', 'tblTempUsageDetail_20' ) end [2025-04-16 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918822', 'tblTempVendorCDR_20' ) start [2025-04-16 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918822', 'tblTempVendorCDR_20' ) end [2025-04-16 05:37:17] Production.INFO: ProcessCDR(1,14918822,1,1,2) [2025-04-16 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918822', 'tblTempUsageDetail_20' ) start [2025-04-16 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918822', 'tblTempUsageDetail_20' ) end [2025-04-16 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:37:21] Production.INFO: ==17830== Releasing lock... [2025-04-16 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:38:06 [end_date_ymd] => 2025-04-16 05:38:06 [RateCDR] => 1 ) [2025-04-16 05: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-04-16 02:38:06' and `end` < '2025-04-16 05: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-04-16 05:38:19] Production.INFO: count ==62 [2025-04-16 05:38:19] Production.ERROR: pbx CDR StartTime 2025-04-16 02:38:06 - End Time 2025-04-16 05:38:06 [2025-04-16 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918827', 'tblTempUsageDetail_20' ) start [2025-04-16 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918827', 'tblTempUsageDetail_20' ) end [2025-04-16 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918827', 'tblTempVendorCDR_20' ) start [2025-04-16 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918827', 'tblTempVendorCDR_20' ) end [2025-04-16 05:38:19] Production.INFO: ProcessCDR(1,14918827,1,1,2) [2025-04-16 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918827', 'tblTempUsageDetail_20' ) start [2025-04-16 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918827', 'tblTempUsageDetail_20' ) end [2025-04-16 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:38:22] Production.INFO: ==17903== Releasing lock... [2025-04-16 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:38:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:39:05 [end_date_ymd] => 2025-04-16 05:39:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:39:05' and `end` < '2025-04-16 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-04-16 05:39:17] Production.INFO: count ==62 [2025-04-16 05:39:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:39:05 - End Time 2025-04-16 05:39:05 [2025-04-16 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918832', 'tblTempUsageDetail_20' ) start [2025-04-16 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918832', 'tblTempUsageDetail_20' ) end [2025-04-16 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918832', 'tblTempVendorCDR_20' ) start [2025-04-16 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918832', 'tblTempVendorCDR_20' ) end [2025-04-16 05:39:18] Production.INFO: ProcessCDR(1,14918832,1,1,2) [2025-04-16 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918832', 'tblTempUsageDetail_20' ) start [2025-04-16 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918832', 'tblTempUsageDetail_20' ) end [2025-04-16 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:39:21] Production.INFO: ==17981== Releasing lock... [2025-04-16 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:40:06 [end_date_ymd] => 2025-04-16 05:40:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:40:06' and `end` < '2025-04-16 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-04-16 05:40:18] Production.INFO: count ==60 [2025-04-16 05:40:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:40:06 - End Time 2025-04-16 05:40:06 [2025-04-16 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918837', 'tblTempUsageDetail_20' ) start [2025-04-16 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918837', 'tblTempUsageDetail_20' ) end [2025-04-16 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918837', 'tblTempVendorCDR_20' ) start [2025-04-16 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918837', 'tblTempVendorCDR_20' ) end [2025-04-16 05:40:18] Production.INFO: ProcessCDR(1,14918837,1,1,2) [2025-04-16 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918837', 'tblTempUsageDetail_20' ) start [2025-04-16 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918837', 'tblTempUsageDetail_20' ) end [2025-04-16 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:40:22] Production.INFO: ==18094== Releasing lock... [2025-04-16 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:41:04 [end_date_ymd] => 2025-04-16 05:41:04 [RateCDR] => 1 ) [2025-04-16 05: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-04-16 02:41:04' and `end` < '2025-04-16 05: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-04-16 05:41:17] Production.INFO: count ==60 [2025-04-16 05:41:17] Production.ERROR: pbx CDR StartTime 2025-04-16 02:41:04 - End Time 2025-04-16 05:41:04 [2025-04-16 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918843', 'tblTempUsageDetail_20' ) start [2025-04-16 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918843', 'tblTempUsageDetail_20' ) end [2025-04-16 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918843', 'tblTempVendorCDR_20' ) start [2025-04-16 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918843', 'tblTempVendorCDR_20' ) end [2025-04-16 05:41:17] Production.INFO: ProcessCDR(1,14918843,1,1,2) [2025-04-16 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918843', 'tblTempUsageDetail_20' ) start [2025-04-16 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918843', 'tblTempUsageDetail_20' ) end [2025-04-16 05:41:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:41:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:41:20] Production.INFO: ==18172== Releasing lock... [2025-04-16 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:41:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:42:05 [end_date_ymd] => 2025-04-16 05:42:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:42:05' and `end` < '2025-04-16 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-04-16 05:42:18] Production.INFO: count ==60 [2025-04-16 05:42:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:42:05 - End Time 2025-04-16 05:42:05 [2025-04-16 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918848', 'tblTempUsageDetail_20' ) start [2025-04-16 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918848', 'tblTempUsageDetail_20' ) end [2025-04-16 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918848', 'tblTempVendorCDR_20' ) start [2025-04-16 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918848', 'tblTempVendorCDR_20' ) end [2025-04-16 05:42:18] Production.INFO: ProcessCDR(1,14918848,1,1,2) [2025-04-16 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918848', 'tblTempUsageDetail_20' ) start [2025-04-16 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918848', 'tblTempUsageDetail_20' ) end [2025-04-16 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:42:21] Production.INFO: ==18252== Releasing lock... [2025-04-16 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:43:06 [end_date_ymd] => 2025-04-16 05:43:06 [RateCDR] => 1 ) [2025-04-16 05: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-04-16 02:43:06' and `end` < '2025-04-16 05: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-04-16 05:43:18] Production.INFO: count ==60 [2025-04-16 05:43:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:43:06 - End Time 2025-04-16 05:43:06 [2025-04-16 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918853', 'tblTempUsageDetail_20' ) start [2025-04-16 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918853', 'tblTempUsageDetail_20' ) end [2025-04-16 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918853', 'tblTempVendorCDR_20' ) start [2025-04-16 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918853', 'tblTempVendorCDR_20' ) end [2025-04-16 05:43:18] Production.INFO: ProcessCDR(1,14918853,1,1,2) [2025-04-16 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918853', 'tblTempUsageDetail_20' ) start [2025-04-16 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918853', 'tblTempUsageDetail_20' ) end [2025-04-16 05:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:43:22] Production.INFO: ==18324== Releasing lock... [2025-04-16 05:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:43:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:44:05 [end_date_ymd] => 2025-04-16 05:44:05 [RateCDR] => 1 ) [2025-04-16 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 02:44:05' and `end` < '2025-04-16 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 05:44:18] Production.INFO: count ==60 [2025-04-16 05:44:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:44:05 - End Time 2025-04-16 05:44:05 [2025-04-16 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918858', 'tblTempUsageDetail_20' ) start [2025-04-16 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918858', 'tblTempUsageDetail_20' ) end [2025-04-16 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918858', 'tblTempVendorCDR_20' ) start [2025-04-16 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918858', 'tblTempVendorCDR_20' ) end [2025-04-16 05:44:18] Production.INFO: ProcessCDR(1,14918858,1,1,2) [2025-04-16 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918858', 'tblTempUsageDetail_20' ) start [2025-04-16 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918858', 'tblTempUsageDetail_20' ) end [2025-04-16 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:44:21] Production.INFO: ==18405== Releasing lock... [2025-04-16 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:45:06 [end_date_ymd] => 2025-04-16 05:45:06 [RateCDR] => 1 ) [2025-04-16 05: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-04-16 02:45:06' and `end` < '2025-04-16 05: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-04-16 05:45:18] Production.INFO: count ==60 [2025-04-16 05:45:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:45:06 - End Time 2025-04-16 05:45:06 [2025-04-16 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918863', 'tblTempUsageDetail_20' ) start [2025-04-16 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918863', 'tblTempUsageDetail_20' ) end [2025-04-16 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918863', 'tblTempVendorCDR_20' ) start [2025-04-16 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918863', 'tblTempVendorCDR_20' ) end [2025-04-16 05:45:18] Production.INFO: ProcessCDR(1,14918863,1,1,2) [2025-04-16 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918863', 'tblTempUsageDetail_20' ) start [2025-04-16 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918863', 'tblTempUsageDetail_20' ) end [2025-04-16 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:45:21] Production.INFO: ==18480== Releasing lock... [2025-04-16 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:46:05 [end_date_ymd] => 2025-04-16 05:46:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:46:05' and `end` < '2025-04-16 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-04-16 05:46:17] Production.INFO: count ==60 [2025-04-16 05:46:17] Production.ERROR: pbx CDR StartTime 2025-04-16 02:46:05 - End Time 2025-04-16 05:46:05 [2025-04-16 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918868', 'tblTempUsageDetail_20' ) start [2025-04-16 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918868', 'tblTempUsageDetail_20' ) end [2025-04-16 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918868', 'tblTempVendorCDR_20' ) start [2025-04-16 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918868', 'tblTempVendorCDR_20' ) end [2025-04-16 05:46:17] Production.INFO: ProcessCDR(1,14918868,1,1,2) [2025-04-16 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918868', 'tblTempUsageDetail_20' ) start [2025-04-16 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918868', 'tblTempUsageDetail_20' ) end [2025-04-16 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:46:21] Production.INFO: ==18556== Releasing lock... [2025-04-16 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:47:05 [end_date_ymd] => 2025-04-16 05:47:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:47:05' and `end` < '2025-04-16 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-04-16 05:47:18] Production.INFO: count ==60 [2025-04-16 05:47:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:47:05 - End Time 2025-04-16 05:47:05 [2025-04-16 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918873', 'tblTempUsageDetail_20' ) start [2025-04-16 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918873', 'tblTempUsageDetail_20' ) end [2025-04-16 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918873', 'tblTempVendorCDR_20' ) start [2025-04-16 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918873', 'tblTempVendorCDR_20' ) end [2025-04-16 05:47:18] Production.INFO: ProcessCDR(1,14918873,1,1,2) [2025-04-16 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918873', 'tblTempUsageDetail_20' ) start [2025-04-16 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918873', 'tblTempUsageDetail_20' ) end [2025-04-16 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:47:21] Production.INFO: ==18634== Releasing lock... [2025-04-16 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:47:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:48:05 [end_date_ymd] => 2025-04-16 05:48:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:48:05' and `end` < '2025-04-16 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-04-16 05:48:17] Production.INFO: count ==60 [2025-04-16 05:48:17] Production.ERROR: pbx CDR StartTime 2025-04-16 02:48:05 - End Time 2025-04-16 05:48:05 [2025-04-16 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918878', 'tblTempUsageDetail_20' ) start [2025-04-16 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918878', 'tblTempUsageDetail_20' ) end [2025-04-16 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918878', 'tblTempVendorCDR_20' ) start [2025-04-16 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918878', 'tblTempVendorCDR_20' ) end [2025-04-16 05:48:17] Production.INFO: ProcessCDR(1,14918878,1,1,2) [2025-04-16 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918878', 'tblTempUsageDetail_20' ) start [2025-04-16 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918878', 'tblTempUsageDetail_20' ) end [2025-04-16 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:48:21] Production.INFO: ==18712== Releasing lock... [2025-04-16 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:48:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:49:05 [end_date_ymd] => 2025-04-16 05:49:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:49:05' and `end` < '2025-04-16 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-04-16 05:49:17] Production.INFO: count ==60 [2025-04-16 05:49:17] Production.ERROR: pbx CDR StartTime 2025-04-16 02:49:05 - End Time 2025-04-16 05:49:05 [2025-04-16 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918883', 'tblTempUsageDetail_20' ) start [2025-04-16 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918883', 'tblTempUsageDetail_20' ) end [2025-04-16 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918883', 'tblTempVendorCDR_20' ) start [2025-04-16 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918883', 'tblTempVendorCDR_20' ) end [2025-04-16 05:49:17] Production.INFO: ProcessCDR(1,14918883,1,1,2) [2025-04-16 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918883', 'tblTempUsageDetail_20' ) start [2025-04-16 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918883', 'tblTempUsageDetail_20' ) end [2025-04-16 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:49:21] Production.INFO: ==18788== Releasing lock... [2025-04-16 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:49:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:50:06 [end_date_ymd] => 2025-04-16 05:50:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:50:06' and `end` < '2025-04-16 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-04-16 05:50:19] Production.INFO: count ==60 [2025-04-16 05:50:19] Production.ERROR: pbx CDR StartTime 2025-04-16 02:50:06 - End Time 2025-04-16 05:50:06 [2025-04-16 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918889', 'tblTempUsageDetail_20' ) start [2025-04-16 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918889', 'tblTempUsageDetail_20' ) end [2025-04-16 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918889', 'tblTempVendorCDR_20' ) start [2025-04-16 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918889', 'tblTempVendorCDR_20' ) end [2025-04-16 05:50:19] Production.INFO: ProcessCDR(1,14918889,1,1,2) [2025-04-16 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918889', 'tblTempUsageDetail_20' ) start [2025-04-16 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918889', 'tblTempUsageDetail_20' ) end [2025-04-16 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:50:22] Production.INFO: ==18863== Releasing lock... [2025-04-16 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:50:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:51:05 [end_date_ymd] => 2025-04-16 05:51:05 [RateCDR] => 1 ) [2025-04-16 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 02:51:05' and `end` < '2025-04-16 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 05:51:17] Production.INFO: count ==60 [2025-04-16 05:51:17] Production.ERROR: pbx CDR StartTime 2025-04-16 02:51:05 - End Time 2025-04-16 05:51:05 [2025-04-16 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918894', 'tblTempUsageDetail_20' ) start [2025-04-16 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918894', 'tblTempUsageDetail_20' ) end [2025-04-16 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918894', 'tblTempVendorCDR_20' ) start [2025-04-16 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918894', 'tblTempVendorCDR_20' ) end [2025-04-16 05:51:17] Production.INFO: ProcessCDR(1,14918894,1,1,2) [2025-04-16 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918894', 'tblTempUsageDetail_20' ) start [2025-04-16 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918894', 'tblTempUsageDetail_20' ) end [2025-04-16 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:51:21] Production.INFO: ==18943== Releasing lock... [2025-04-16 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:51:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:52:05 [end_date_ymd] => 2025-04-16 05:52:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:52:05' and `end` < '2025-04-16 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-04-16 05:52:18] Production.INFO: count ==60 [2025-04-16 05:52:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:52:05 - End Time 2025-04-16 05:52:05 [2025-04-16 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918899', 'tblTempUsageDetail_20' ) start [2025-04-16 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918899', 'tblTempUsageDetail_20' ) end [2025-04-16 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918899', 'tblTempVendorCDR_20' ) start [2025-04-16 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918899', 'tblTempVendorCDR_20' ) end [2025-04-16 05:52:18] Production.INFO: ProcessCDR(1,14918899,1,1,2) [2025-04-16 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918899', 'tblTempUsageDetail_20' ) start [2025-04-16 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918899', 'tblTempUsageDetail_20' ) end [2025-04-16 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:52:21] Production.INFO: ==19018== Releasing lock... [2025-04-16 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:52:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:53:05 [end_date_ymd] => 2025-04-16 05:53:05 [RateCDR] => 1 ) [2025-04-16 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 02:53:05' and `end` < '2025-04-16 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 05:53:17] Production.INFO: count ==60 [2025-04-16 05:53:17] Production.ERROR: pbx CDR StartTime 2025-04-16 02:53:05 - End Time 2025-04-16 05:53:05 [2025-04-16 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918904', 'tblTempUsageDetail_20' ) start [2025-04-16 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918904', 'tblTempUsageDetail_20' ) end [2025-04-16 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918904', 'tblTempVendorCDR_20' ) start [2025-04-16 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918904', 'tblTempVendorCDR_20' ) end [2025-04-16 05:53:17] Production.INFO: ProcessCDR(1,14918904,1,1,2) [2025-04-16 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918904', 'tblTempUsageDetail_20' ) start [2025-04-16 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918904', 'tblTempUsageDetail_20' ) end [2025-04-16 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:53:21] Production.INFO: ==19095== Releasing lock... [2025-04-16 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:53:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:54:05 [end_date_ymd] => 2025-04-16 05:54:05 [RateCDR] => 1 ) [2025-04-16 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 02:54:05' and `end` < '2025-04-16 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 05:54:18] Production.INFO: count ==60 [2025-04-16 05:54:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:54:05 - End Time 2025-04-16 05:54:05 [2025-04-16 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918909', 'tblTempUsageDetail_20' ) start [2025-04-16 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918909', 'tblTempUsageDetail_20' ) end [2025-04-16 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918909', 'tblTempVendorCDR_20' ) start [2025-04-16 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918909', 'tblTempVendorCDR_20' ) end [2025-04-16 05:54:18] Production.INFO: ProcessCDR(1,14918909,1,1,2) [2025-04-16 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918909', 'tblTempUsageDetail_20' ) start [2025-04-16 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918909', 'tblTempUsageDetail_20' ) end [2025-04-16 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:54:21] Production.INFO: ==19172== Releasing lock... [2025-04-16 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:54:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:55:05 [end_date_ymd] => 2025-04-16 05:55:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:55:05' and `end` < '2025-04-16 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-04-16 05:55:17] Production.INFO: count ==60 [2025-04-16 05:55:17] Production.ERROR: pbx CDR StartTime 2025-04-16 02:55:05 - End Time 2025-04-16 05:55:05 [2025-04-16 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918914', 'tblTempUsageDetail_20' ) start [2025-04-16 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918914', 'tblTempUsageDetail_20' ) end [2025-04-16 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918914', 'tblTempVendorCDR_20' ) start [2025-04-16 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918914', 'tblTempVendorCDR_20' ) end [2025-04-16 05:55:17] Production.INFO: ProcessCDR(1,14918914,1,1,2) [2025-04-16 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918914', 'tblTempUsageDetail_20' ) start [2025-04-16 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918914', 'tblTempUsageDetail_20' ) end [2025-04-16 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:55:21] Production.INFO: ==19282== Releasing lock... [2025-04-16 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:55:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:56:05 [end_date_ymd] => 2025-04-16 05:56:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:56:05' and `end` < '2025-04-16 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-04-16 05:56:18] Production.INFO: count ==60 [2025-04-16 05:56:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:56:05 - End Time 2025-04-16 05:56:05 [2025-04-16 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918919', 'tblTempUsageDetail_20' ) start [2025-04-16 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918919', 'tblTempUsageDetail_20' ) end [2025-04-16 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918919', 'tblTempVendorCDR_20' ) start [2025-04-16 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918919', 'tblTempVendorCDR_20' ) end [2025-04-16 05:56:18] Production.INFO: ProcessCDR(1,14918919,1,1,2) [2025-04-16 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918919', 'tblTempUsageDetail_20' ) start [2025-04-16 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918919', 'tblTempUsageDetail_20' ) end [2025-04-16 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:56:21] Production.INFO: ==19357== Releasing lock... [2025-04-16 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:56:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:57:05 [end_date_ymd] => 2025-04-16 05:57:05 [RateCDR] => 1 ) [2025-04-16 05:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 02:57:05' and `end` < '2025-04-16 05:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 05:57:17] Production.INFO: count ==61 [2025-04-16 05:57:17] Production.ERROR: pbx CDR StartTime 2025-04-16 02:57:05 - End Time 2025-04-16 05:57:05 [2025-04-16 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918924', 'tblTempUsageDetail_20' ) start [2025-04-16 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918924', 'tblTempUsageDetail_20' ) end [2025-04-16 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918924', 'tblTempVendorCDR_20' ) start [2025-04-16 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918924', 'tblTempVendorCDR_20' ) end [2025-04-16 05:57:17] Production.INFO: ProcessCDR(1,14918924,1,1,2) [2025-04-16 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918924', 'tblTempUsageDetail_20' ) start [2025-04-16 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918924', 'tblTempUsageDetail_20' ) end [2025-04-16 05:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:57:22] Production.INFO: ==19435== Releasing lock... [2025-04-16 05:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:57:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:58:05 [end_date_ymd] => 2025-04-16 05:58:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 02:58:05' and `end` < '2025-04-16 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-04-16 05:58:17] Production.INFO: count ==61 [2025-04-16 05:58:17] Production.ERROR: pbx CDR StartTime 2025-04-16 02:58:05 - End Time 2025-04-16 05:58:05 [2025-04-16 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918929', 'tblTempUsageDetail_20' ) start [2025-04-16 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918929', 'tblTempUsageDetail_20' ) end [2025-04-16 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918929', 'tblTempVendorCDR_20' ) start [2025-04-16 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918929', 'tblTempVendorCDR_20' ) end [2025-04-16 05:58:17] Production.INFO: ProcessCDR(1,14918929,1,1,2) [2025-04-16 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918929', 'tblTempUsageDetail_20' ) start [2025-04-16 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918929', 'tblTempUsageDetail_20' ) end [2025-04-16 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:58:21] Production.INFO: ==19514== Releasing lock... [2025-04-16 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:58:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 02:59:05 [end_date_ymd] => 2025-04-16 05:59:05 [RateCDR] => 1 ) [2025-04-16 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 02:59:05' and `end` < '2025-04-16 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 05:59:18] Production.INFO: count ==61 [2025-04-16 05:59:18] Production.ERROR: pbx CDR StartTime 2025-04-16 02:59:05 - End Time 2025-04-16 05:59:05 [2025-04-16 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918934', 'tblTempUsageDetail_20' ) start [2025-04-16 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918934', 'tblTempUsageDetail_20' ) end [2025-04-16 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918934', 'tblTempVendorCDR_20' ) start [2025-04-16 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918934', 'tblTempVendorCDR_20' ) end [2025-04-16 05:59:18] Production.INFO: ProcessCDR(1,14918934,1,1,2) [2025-04-16 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918934', 'tblTempUsageDetail_20' ) start [2025-04-16 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918934', 'tblTempUsageDetail_20' ) end [2025-04-16 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 05:59:21] Production.INFO: ==19593== Releasing lock... [2025-04-16 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 05:59:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:00:06 [end_date_ymd] => 2025-04-16 06:00:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:00:06' and `end` < '2025-04-16 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-04-16 06:00:18] Production.INFO: count ==52 [2025-04-16 06:00:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:00:06 - End Time 2025-04-16 06:00:06 [2025-04-16 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918940', 'tblTempUsageDetail_20' ) start [2025-04-16 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918940', 'tblTempUsageDetail_20' ) end [2025-04-16 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918940', 'tblTempVendorCDR_20' ) start [2025-04-16 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918940', 'tblTempVendorCDR_20' ) end [2025-04-16 06:00:18] Production.INFO: ProcessCDR(1,14918940,1,1,2) [2025-04-16 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918940', 'tblTempUsageDetail_20' ) start [2025-04-16 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918940', 'tblTempUsageDetail_20' ) end [2025-04-16 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:00:22] Production.INFO: ==19672== Releasing lock... [2025-04-16 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:00:22] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:01:05 [end_date_ymd] => 2025-04-16 06:01:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:01:05' and `end` < '2025-04-16 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-04-16 06:01:18] Production.INFO: count ==52 [2025-04-16 06:01:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:01:05 - End Time 2025-04-16 06:01:05 [2025-04-16 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918945', 'tblTempUsageDetail_20' ) start [2025-04-16 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918945', 'tblTempUsageDetail_20' ) end [2025-04-16 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918945', 'tblTempVendorCDR_20' ) start [2025-04-16 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918945', 'tblTempVendorCDR_20' ) end [2025-04-16 06:01:18] Production.INFO: ProcessCDR(1,14918945,1,1,2) [2025-04-16 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918945', 'tblTempUsageDetail_20' ) start [2025-04-16 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918945', 'tblTempUsageDetail_20' ) end [2025-04-16 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:01:21] Production.INFO: ==19768== Releasing lock... [2025-04-16 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:01:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:02:05 [end_date_ymd] => 2025-04-16 06:02:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:02:05' and `end` < '2025-04-16 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-04-16 06:02:18] Production.INFO: count ==52 [2025-04-16 06:02:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:02:05 - End Time 2025-04-16 06:02:05 [2025-04-16 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918950', 'tblTempUsageDetail_20' ) start [2025-04-16 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918950', 'tblTempUsageDetail_20' ) end [2025-04-16 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918950', 'tblTempVendorCDR_20' ) start [2025-04-16 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918950', 'tblTempVendorCDR_20' ) end [2025-04-16 06:02:18] Production.INFO: ProcessCDR(1,14918950,1,1,2) [2025-04-16 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918950', 'tblTempUsageDetail_20' ) start [2025-04-16 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918950', 'tblTempUsageDetail_20' ) end [2025-04-16 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:02:21] Production.INFO: ==19841== Releasing lock... [2025-04-16 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:02:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:03:05 [end_date_ymd] => 2025-04-16 06:03:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:03:05' and `end` < '2025-04-16 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-04-16 06:03:18] Production.INFO: count ==52 [2025-04-16 06:03:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:03:05 - End Time 2025-04-16 06:03:05 [2025-04-16 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918955', 'tblTempUsageDetail_20' ) start [2025-04-16 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918955', 'tblTempUsageDetail_20' ) end [2025-04-16 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918955', 'tblTempVendorCDR_20' ) start [2025-04-16 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918955', 'tblTempVendorCDR_20' ) end [2025-04-16 06:03:18] Production.INFO: ProcessCDR(1,14918955,1,1,2) [2025-04-16 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918955', 'tblTempUsageDetail_20' ) start [2025-04-16 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918955', 'tblTempUsageDetail_20' ) end [2025-04-16 06:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:03:22] Production.INFO: ==19921== Releasing lock... [2025-04-16 06:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:03:22] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:04:05 [end_date_ymd] => 2025-04-16 06:04:05 [RateCDR] => 1 ) [2025-04-16 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 03:04:05' and `end` < '2025-04-16 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 06:04:18] Production.INFO: count ==52 [2025-04-16 06:04:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:04:05 - End Time 2025-04-16 06:04:05 [2025-04-16 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918960', 'tblTempUsageDetail_20' ) start [2025-04-16 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918960', 'tblTempUsageDetail_20' ) end [2025-04-16 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918960', 'tblTempVendorCDR_20' ) start [2025-04-16 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918960', 'tblTempVendorCDR_20' ) end [2025-04-16 06:04:18] Production.INFO: ProcessCDR(1,14918960,1,1,2) [2025-04-16 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918960', 'tblTempUsageDetail_20' ) start [2025-04-16 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918960', 'tblTempUsageDetail_20' ) end [2025-04-16 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:04:21] Production.INFO: ==19996== Releasing lock... [2025-04-16 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:04:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:05:05 [end_date_ymd] => 2025-04-16 06:05:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:05:05' and `end` < '2025-04-16 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-04-16 06:05:18] Production.INFO: count ==52 [2025-04-16 06:05:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:05:05 - End Time 2025-04-16 06:05:05 [2025-04-16 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918965', 'tblTempUsageDetail_20' ) start [2025-04-16 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918965', 'tblTempUsageDetail_20' ) end [2025-04-16 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918965', 'tblTempVendorCDR_20' ) start [2025-04-16 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918965', 'tblTempVendorCDR_20' ) end [2025-04-16 06:05:18] Production.INFO: ProcessCDR(1,14918965,1,1,2) [2025-04-16 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918965', 'tblTempUsageDetail_20' ) start [2025-04-16 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918965', 'tblTempUsageDetail_20' ) end [2025-04-16 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:05:21] Production.INFO: ==20076== Releasing lock... [2025-04-16 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:05:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:06:05 [end_date_ymd] => 2025-04-16 06:06:05 [RateCDR] => 1 ) [2025-04-16 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 03:06:05' and `end` < '2025-04-16 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 06:06:17] Production.INFO: count ==52 [2025-04-16 06:06:17] Production.ERROR: pbx CDR StartTime 2025-04-16 03:06:05 - End Time 2025-04-16 06:06:05 [2025-04-16 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918970', 'tblTempUsageDetail_20' ) start [2025-04-16 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918970', 'tblTempUsageDetail_20' ) end [2025-04-16 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918970', 'tblTempVendorCDR_20' ) start [2025-04-16 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918970', 'tblTempVendorCDR_20' ) end [2025-04-16 06:06:17] Production.INFO: ProcessCDR(1,14918970,1,1,2) [2025-04-16 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918970', 'tblTempUsageDetail_20' ) start [2025-04-16 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918970', 'tblTempUsageDetail_20' ) end [2025-04-16 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:06:21] Production.INFO: ==20153== Releasing lock... [2025-04-16 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:06:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:07:05 [end_date_ymd] => 2025-04-16 06:07:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:07:05' and `end` < '2025-04-16 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-04-16 06:07:18] Production.INFO: count ==52 [2025-04-16 06:07:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:07:05 - End Time 2025-04-16 06:07:05 [2025-04-16 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918975', 'tblTempUsageDetail_20' ) start [2025-04-16 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918975', 'tblTempUsageDetail_20' ) end [2025-04-16 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918975', 'tblTempVendorCDR_20' ) start [2025-04-16 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918975', 'tblTempVendorCDR_20' ) end [2025-04-16 06:07:18] Production.INFO: ProcessCDR(1,14918975,1,1,2) [2025-04-16 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918975', 'tblTempUsageDetail_20' ) start [2025-04-16 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918975', 'tblTempUsageDetail_20' ) end [2025-04-16 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:07:21] Production.INFO: ==20234== Releasing lock... [2025-04-16 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:07:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:08:06 [end_date_ymd] => 2025-04-16 06:08:06 [RateCDR] => 1 ) [2025-04-16 06: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-04-16 03:08:06' and `end` < '2025-04-16 06: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-04-16 06:08:19] Production.INFO: count ==52 [2025-04-16 06:08:19] Production.ERROR: pbx CDR StartTime 2025-04-16 03:08:06 - End Time 2025-04-16 06:08:06 [2025-04-16 06:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918980', 'tblTempUsageDetail_20' ) start [2025-04-16 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918980', 'tblTempUsageDetail_20' ) end [2025-04-16 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918980', 'tblTempVendorCDR_20' ) start [2025-04-16 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918980', 'tblTempVendorCDR_20' ) end [2025-04-16 06:08:19] Production.INFO: ProcessCDR(1,14918980,1,1,2) [2025-04-16 06:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918980', 'tblTempUsageDetail_20' ) start [2025-04-16 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918980', 'tblTempUsageDetail_20' ) end [2025-04-16 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:08:22] Production.INFO: ==20307== Releasing lock... [2025-04-16 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:08:22] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:09:05 [end_date_ymd] => 2025-04-16 06:09:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:09:05' and `end` < '2025-04-16 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-04-16 06:09:17] Production.INFO: count ==52 [2025-04-16 06:09:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:09:05 - End Time 2025-04-16 06:09:05 [2025-04-16 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918985', 'tblTempUsageDetail_20' ) start [2025-04-16 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918985', 'tblTempUsageDetail_20' ) end [2025-04-16 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918985', 'tblTempVendorCDR_20' ) start [2025-04-16 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918985', 'tblTempVendorCDR_20' ) end [2025-04-16 06:09:18] Production.INFO: ProcessCDR(1,14918985,1,1,2) [2025-04-16 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918985', 'tblTempUsageDetail_20' ) start [2025-04-16 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918985', 'tblTempUsageDetail_20' ) end [2025-04-16 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:09:21] Production.INFO: ==20385== Releasing lock... [2025-04-16 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:09:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:10:06 [end_date_ymd] => 2025-04-16 06:10:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:10:06' and `end` < '2025-04-16 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-04-16 06:10:18] Production.INFO: count ==52 [2025-04-16 06:10:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:10:06 - End Time 2025-04-16 06:10:06 [2025-04-16 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918990', 'tblTempUsageDetail_20' ) start [2025-04-16 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918990', 'tblTempUsageDetail_20' ) end [2025-04-16 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918990', 'tblTempVendorCDR_20' ) start [2025-04-16 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918990', 'tblTempVendorCDR_20' ) end [2025-04-16 06:10:18] Production.INFO: ProcessCDR(1,14918990,1,1,2) [2025-04-16 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918990', 'tblTempUsageDetail_20' ) start [2025-04-16 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918990', 'tblTempUsageDetail_20' ) end [2025-04-16 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:10:22] Production.INFO: ==20503== Releasing lock... [2025-04-16 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:10:22] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:11:05 [end_date_ymd] => 2025-04-16 06:11:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:11:05' and `end` < '2025-04-16 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-04-16 06:11:17] Production.INFO: count ==52 [2025-04-16 06:11:17] Production.ERROR: pbx CDR StartTime 2025-04-16 03:11:05 - End Time 2025-04-16 06:11:05 [2025-04-16 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918996', 'tblTempUsageDetail_20' ) start [2025-04-16 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14918996', 'tblTempUsageDetail_20' ) end [2025-04-16 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918996', 'tblTempVendorCDR_20' ) start [2025-04-16 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14918996', 'tblTempVendorCDR_20' ) end [2025-04-16 06:11:17] Production.INFO: ProcessCDR(1,14918996,1,1,2) [2025-04-16 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14918996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14918996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14918996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14918996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918996', 'tblTempUsageDetail_20' ) start [2025-04-16 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14918996', 'tblTempUsageDetail_20' ) end [2025-04-16 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:11:21] Production.INFO: ==20581== Releasing lock... [2025-04-16 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:11:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:12:05 [end_date_ymd] => 2025-04-16 06:12:05 [RateCDR] => 1 ) [2025-04-16 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 03:12:05' and `end` < '2025-04-16 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 06:12:18] Production.INFO: count ==52 [2025-04-16 06:12:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:12:05 - End Time 2025-04-16 06:12:05 [2025-04-16 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919001', 'tblTempUsageDetail_20' ) start [2025-04-16 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919001', 'tblTempUsageDetail_20' ) end [2025-04-16 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919001', 'tblTempVendorCDR_20' ) start [2025-04-16 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919001', 'tblTempVendorCDR_20' ) end [2025-04-16 06:12:18] Production.INFO: ProcessCDR(1,14919001,1,1,2) [2025-04-16 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919001', 'tblTempUsageDetail_20' ) start [2025-04-16 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919001', 'tblTempUsageDetail_20' ) end [2025-04-16 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:12:21] Production.INFO: ==20659== Releasing lock... [2025-04-16 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:12:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:13:05 [end_date_ymd] => 2025-04-16 06:13:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:13:05' and `end` < '2025-04-16 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-04-16 06:13:17] Production.INFO: count ==52 [2025-04-16 06:13:17] Production.ERROR: pbx CDR StartTime 2025-04-16 03:13:05 - End Time 2025-04-16 06:13:05 [2025-04-16 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919006', 'tblTempUsageDetail_20' ) start [2025-04-16 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919006', 'tblTempUsageDetail_20' ) end [2025-04-16 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919006', 'tblTempVendorCDR_20' ) start [2025-04-16 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919006', 'tblTempVendorCDR_20' ) end [2025-04-16 06:13:17] Production.INFO: ProcessCDR(1,14919006,1,1,2) [2025-04-16 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919006', 'tblTempUsageDetail_20' ) start [2025-04-16 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919006', 'tblTempUsageDetail_20' ) end [2025-04-16 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:13:21] Production.INFO: ==20734== Releasing lock... [2025-04-16 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:13:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:14:05 [end_date_ymd] => 2025-04-16 06:14:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:14:05' and `end` < '2025-04-16 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-04-16 06:14:18] Production.INFO: count ==53 [2025-04-16 06:14:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:14:05 - End Time 2025-04-16 06:14:05 [2025-04-16 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919011', 'tblTempUsageDetail_20' ) start [2025-04-16 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919011', 'tblTempUsageDetail_20' ) end [2025-04-16 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919011', 'tblTempVendorCDR_20' ) start [2025-04-16 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919011', 'tblTempVendorCDR_20' ) end [2025-04-16 06:14:18] Production.INFO: ProcessCDR(1,14919011,1,1,2) [2025-04-16 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919011', 'tblTempUsageDetail_20' ) start [2025-04-16 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919011', 'tblTempUsageDetail_20' ) end [2025-04-16 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:14:22] Production.INFO: ==20815== Releasing lock... [2025-04-16 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:14:22] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:15:05 [end_date_ymd] => 2025-04-16 06:15:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:15:05' and `end` < '2025-04-16 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-04-16 06:15:17] Production.INFO: count ==53 [2025-04-16 06:15:17] Production.ERROR: pbx CDR StartTime 2025-04-16 03:15:05 - End Time 2025-04-16 06:15:05 [2025-04-16 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919016', 'tblTempUsageDetail_20' ) start [2025-04-16 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919016', 'tblTempUsageDetail_20' ) end [2025-04-16 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919016', 'tblTempVendorCDR_20' ) start [2025-04-16 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919016', 'tblTempVendorCDR_20' ) end [2025-04-16 06:15:18] Production.INFO: ProcessCDR(1,14919016,1,1,2) [2025-04-16 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919016', 'tblTempUsageDetail_20' ) start [2025-04-16 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919016', 'tblTempUsageDetail_20' ) end [2025-04-16 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:15:21] Production.INFO: ==20893== Releasing lock... [2025-04-16 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:15:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:16:06 [end_date_ymd] => 2025-04-16 06:16:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:16:06' and `end` < '2025-04-16 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-04-16 06:16:18] Production.INFO: count ==54 [2025-04-16 06:16:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:16:06 - End Time 2025-04-16 06:16:06 [2025-04-16 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919021', 'tblTempUsageDetail_20' ) start [2025-04-16 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919021', 'tblTempUsageDetail_20' ) end [2025-04-16 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919021', 'tblTempVendorCDR_20' ) start [2025-04-16 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919021', 'tblTempVendorCDR_20' ) end [2025-04-16 06:16:18] Production.INFO: ProcessCDR(1,14919021,1,1,2) [2025-04-16 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919021', 'tblTempUsageDetail_20' ) start [2025-04-16 06:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919021', 'tblTempUsageDetail_20' ) end [2025-04-16 06:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:16:23] Production.INFO: ==20967== Releasing lock... [2025-04-16 06:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:16:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:17:05 [end_date_ymd] => 2025-04-16 06:17:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:17:05' and `end` < '2025-04-16 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-04-16 06:17:18] Production.INFO: count ==54 [2025-04-16 06:17:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:17:05 - End Time 2025-04-16 06:17:05 [2025-04-16 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919026', 'tblTempUsageDetail_20' ) start [2025-04-16 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919026', 'tblTempUsageDetail_20' ) end [2025-04-16 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919026', 'tblTempVendorCDR_20' ) start [2025-04-16 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919026', 'tblTempVendorCDR_20' ) end [2025-04-16 06:17:18] Production.INFO: ProcessCDR(1,14919026,1,1,2) [2025-04-16 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919026', 'tblTempUsageDetail_20' ) start [2025-04-16 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919026', 'tblTempUsageDetail_20' ) end [2025-04-16 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:17:21] Production.INFO: ==21048== Releasing lock... [2025-04-16 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:17:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:18:05 [end_date_ymd] => 2025-04-16 06:18:05 [RateCDR] => 1 ) [2025-04-16 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 03:18:05' and `end` < '2025-04-16 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 06:18:18] Production.INFO: count ==54 [2025-04-16 06:18:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:18:05 - End Time 2025-04-16 06:18:05 [2025-04-16 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919031', 'tblTempUsageDetail_20' ) start [2025-04-16 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919031', 'tblTempUsageDetail_20' ) end [2025-04-16 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919031', 'tblTempVendorCDR_20' ) start [2025-04-16 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919031', 'tblTempVendorCDR_20' ) end [2025-04-16 06:18:18] Production.INFO: ProcessCDR(1,14919031,1,1,2) [2025-04-16 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919031', 'tblTempUsageDetail_20' ) start [2025-04-16 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919031', 'tblTempUsageDetail_20' ) end [2025-04-16 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:18:21] Production.INFO: ==21122== Releasing lock... [2025-04-16 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:18:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:19:04 [end_date_ymd] => 2025-04-16 06:19:04 [RateCDR] => 1 ) [2025-04-16 06:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 03:19:04' and `end` < '2025-04-16 06:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 06:19:17] Production.INFO: count ==53 [2025-04-16 06:19:17] Production.ERROR: pbx CDR StartTime 2025-04-16 03:19:04 - End Time 2025-04-16 06:19:04 [2025-04-16 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919036', 'tblTempUsageDetail_20' ) start [2025-04-16 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919036', 'tblTempUsageDetail_20' ) end [2025-04-16 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919036', 'tblTempVendorCDR_20' ) start [2025-04-16 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919036', 'tblTempVendorCDR_20' ) end [2025-04-16 06:19:17] Production.INFO: ProcessCDR(1,14919036,1,1,2) [2025-04-16 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919036', 'tblTempUsageDetail_20' ) start [2025-04-16 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919036', 'tblTempUsageDetail_20' ) end [2025-04-16 06:19:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:19:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:19:20] Production.INFO: ==21198== Releasing lock... [2025-04-16 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:19:20] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:20:06 [end_date_ymd] => 2025-04-16 06:20:06 [RateCDR] => 1 ) [2025-04-16 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 03:20:06' and `end` < '2025-04-16 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 06:20:19] Production.INFO: count ==51 [2025-04-16 06:20:19] Production.ERROR: pbx CDR StartTime 2025-04-16 03:20:06 - End Time 2025-04-16 06:20:06 [2025-04-16 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919042', 'tblTempUsageDetail_20' ) start [2025-04-16 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919042', 'tblTempUsageDetail_20' ) end [2025-04-16 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919042', 'tblTempVendorCDR_20' ) start [2025-04-16 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919042', 'tblTempVendorCDR_20' ) end [2025-04-16 06:20:19] Production.INFO: ProcessCDR(1,14919042,1,1,2) [2025-04-16 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919042', 'tblTempUsageDetail_20' ) start [2025-04-16 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919042', 'tblTempUsageDetail_20' ) end [2025-04-16 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:20:22] Production.INFO: ==21274== Releasing lock... [2025-04-16 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:20:22] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:21:05 [end_date_ymd] => 2025-04-16 06:21:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:21:05' and `end` < '2025-04-16 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-04-16 06:21:18] Production.INFO: count ==51 [2025-04-16 06:21:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:21:05 - End Time 2025-04-16 06:21:05 [2025-04-16 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919047', 'tblTempUsageDetail_20' ) start [2025-04-16 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919047', 'tblTempUsageDetail_20' ) end [2025-04-16 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919047', 'tblTempVendorCDR_20' ) start [2025-04-16 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919047', 'tblTempVendorCDR_20' ) end [2025-04-16 06:21:18] Production.INFO: ProcessCDR(1,14919047,1,1,2) [2025-04-16 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919047', 'tblTempUsageDetail_20' ) start [2025-04-16 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919047', 'tblTempUsageDetail_20' ) end [2025-04-16 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:21:21] Production.INFO: ==21350== Releasing lock... [2025-04-16 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:21:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:22:05 [end_date_ymd] => 2025-04-16 06:22:05 [RateCDR] => 1 ) [2025-04-16 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 03:22:05' and `end` < '2025-04-16 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 06:22:17] Production.INFO: count ==51 [2025-04-16 06:22:17] Production.ERROR: pbx CDR StartTime 2025-04-16 03:22:05 - End Time 2025-04-16 06:22:05 [2025-04-16 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919052', 'tblTempUsageDetail_20' ) start [2025-04-16 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919052', 'tblTempUsageDetail_20' ) end [2025-04-16 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919052', 'tblTempVendorCDR_20' ) start [2025-04-16 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919052', 'tblTempVendorCDR_20' ) end [2025-04-16 06:22:17] Production.INFO: ProcessCDR(1,14919052,1,1,2) [2025-04-16 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919052', 'tblTempUsageDetail_20' ) start [2025-04-16 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919052', 'tblTempUsageDetail_20' ) end [2025-04-16 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:22:21] Production.INFO: ==21432== Releasing lock... [2025-04-16 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:22:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:23:05 [end_date_ymd] => 2025-04-16 06:23:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:23:05' and `end` < '2025-04-16 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-04-16 06:23:18] Production.INFO: count ==51 [2025-04-16 06:23:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:23:05 - End Time 2025-04-16 06:23:05 [2025-04-16 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919057', 'tblTempUsageDetail_20' ) start [2025-04-16 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919057', 'tblTempUsageDetail_20' ) end [2025-04-16 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919057', 'tblTempVendorCDR_20' ) start [2025-04-16 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919057', 'tblTempVendorCDR_20' ) end [2025-04-16 06:23:18] Production.INFO: ProcessCDR(1,14919057,1,1,2) [2025-04-16 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919057', 'tblTempUsageDetail_20' ) start [2025-04-16 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919057', 'tblTempUsageDetail_20' ) end [2025-04-16 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:23:21] Production.INFO: ==21512== Releasing lock... [2025-04-16 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:23:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:24:05 [end_date_ymd] => 2025-04-16 06:24:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:24:05' and `end` < '2025-04-16 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-04-16 06:24:18] Production.INFO: count ==51 [2025-04-16 06:24:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:24:05 - End Time 2025-04-16 06:24:05 [2025-04-16 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919062', 'tblTempUsageDetail_20' ) start [2025-04-16 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919062', 'tblTempUsageDetail_20' ) end [2025-04-16 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919062', 'tblTempVendorCDR_20' ) start [2025-04-16 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919062', 'tblTempVendorCDR_20' ) end [2025-04-16 06:24:18] Production.INFO: ProcessCDR(1,14919062,1,1,2) [2025-04-16 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919062', 'tblTempUsageDetail_20' ) start [2025-04-16 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919062', 'tblTempUsageDetail_20' ) end [2025-04-16 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:24:21] Production.INFO: ==21583== Releasing lock... [2025-04-16 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:24:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:25:05 [end_date_ymd] => 2025-04-16 06:25:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:25:05' and `end` < '2025-04-16 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-04-16 06:25:18] Production.INFO: count ==51 [2025-04-16 06:25:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:25:05 - End Time 2025-04-16 06:25:05 [2025-04-16 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919067', 'tblTempUsageDetail_20' ) start [2025-04-16 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919067', 'tblTempUsageDetail_20' ) end [2025-04-16 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919067', 'tblTempVendorCDR_20' ) start [2025-04-16 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919067', 'tblTempVendorCDR_20' ) end [2025-04-16 06:25:18] Production.INFO: ProcessCDR(1,14919067,1,1,2) [2025-04-16 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919067', 'tblTempUsageDetail_20' ) start [2025-04-16 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919067', 'tblTempUsageDetail_20' ) end [2025-04-16 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:25:21] Production.INFO: ==21663== Releasing lock... [2025-04-16 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:25:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:26:05 [end_date_ymd] => 2025-04-16 06:26:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:26:05' and `end` < '2025-04-16 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-04-16 06:26:17] Production.INFO: count ==51 [2025-04-16 06:26:17] Production.ERROR: pbx CDR StartTime 2025-04-16 03:26:05 - End Time 2025-04-16 06:26:05 [2025-04-16 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919072', 'tblTempUsageDetail_20' ) start [2025-04-16 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919072', 'tblTempUsageDetail_20' ) end [2025-04-16 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919072', 'tblTempVendorCDR_20' ) start [2025-04-16 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919072', 'tblTempVendorCDR_20' ) end [2025-04-16 06:26:17] Production.INFO: ProcessCDR(1,14919072,1,1,2) [2025-04-16 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919072', 'tblTempUsageDetail_20' ) start [2025-04-16 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919072', 'tblTempUsageDetail_20' ) end [2025-04-16 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:26:21] Production.INFO: ==21778== Releasing lock... [2025-04-16 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:26:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:27:05 [end_date_ymd] => 2025-04-16 06:27:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:27:05' and `end` < '2025-04-16 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-04-16 06:27:17] Production.INFO: count ==51 [2025-04-16 06:27:17] Production.ERROR: pbx CDR StartTime 2025-04-16 03:27:05 - End Time 2025-04-16 06:27:05 [2025-04-16 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919077', 'tblTempUsageDetail_20' ) start [2025-04-16 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919077', 'tblTempUsageDetail_20' ) end [2025-04-16 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919077', 'tblTempVendorCDR_20' ) start [2025-04-16 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919077', 'tblTempVendorCDR_20' ) end [2025-04-16 06:27:17] Production.INFO: ProcessCDR(1,14919077,1,1,2) [2025-04-16 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919077', 'tblTempUsageDetail_20' ) start [2025-04-16 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919077', 'tblTempUsageDetail_20' ) end [2025-04-16 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:27:21] Production.INFO: ==21859== Releasing lock... [2025-04-16 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:27:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:28:06 [end_date_ymd] => 2025-04-16 06:28:06 [RateCDR] => 1 ) [2025-04-16 06:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 03:28:06' and `end` < '2025-04-16 06:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 06:28:18] Production.INFO: count ==47 [2025-04-16 06:28:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:28:06 - End Time 2025-04-16 06:28:06 [2025-04-16 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919082', 'tblTempUsageDetail_20' ) start [2025-04-16 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919082', 'tblTempUsageDetail_20' ) end [2025-04-16 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919082', 'tblTempVendorCDR_20' ) start [2025-04-16 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919082', 'tblTempVendorCDR_20' ) end [2025-04-16 06:28:18] Production.INFO: ProcessCDR(1,14919082,1,1,2) [2025-04-16 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919082', 'tblTempUsageDetail_20' ) start [2025-04-16 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919082', 'tblTempUsageDetail_20' ) end [2025-04-16 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:28:21] Production.INFO: ==21946== Releasing lock... [2025-04-16 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:28:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:29:05 [end_date_ymd] => 2025-04-16 06:29:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:29:05' and `end` < '2025-04-16 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-04-16 06:29:17] Production.INFO: count ==47 [2025-04-16 06:29:17] Production.ERROR: pbx CDR StartTime 2025-04-16 03:29:05 - End Time 2025-04-16 06:29:05 [2025-04-16 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919087', 'tblTempUsageDetail_20' ) start [2025-04-16 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919087', 'tblTempUsageDetail_20' ) end [2025-04-16 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919087', 'tblTempVendorCDR_20' ) start [2025-04-16 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919087', 'tblTempVendorCDR_20' ) end [2025-04-16 06:29:17] Production.INFO: ProcessCDR(1,14919087,1,1,2) [2025-04-16 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919087', 'tblTempUsageDetail_20' ) start [2025-04-16 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919087', 'tblTempUsageDetail_20' ) end [2025-04-16 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:29:21] Production.INFO: ==22023== Releasing lock... [2025-04-16 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:29:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:30:07 [end_date_ymd] => 2025-04-16 06:30:07 [RateCDR] => 1 ) [2025-04-16 06: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-04-16 03:30:07' and `end` < '2025-04-16 06: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-04-16 06:30:19] Production.INFO: count ==49 [2025-04-16 06:30:19] Production.ERROR: pbx CDR StartTime 2025-04-16 03:30:07 - End Time 2025-04-16 06:30:07 [2025-04-16 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919093', 'tblTempUsageDetail_20' ) start [2025-04-16 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919093', 'tblTempUsageDetail_20' ) end [2025-04-16 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919093', 'tblTempVendorCDR_20' ) start [2025-04-16 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919093', 'tblTempVendorCDR_20' ) end [2025-04-16 06:30:19] Production.INFO: ProcessCDR(1,14919093,1,1,2) [2025-04-16 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919093', 'tblTempUsageDetail_20' ) start [2025-04-16 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919093', 'tblTempUsageDetail_20' ) end [2025-04-16 06:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:30:23] Production.INFO: ==22100== Releasing lock... [2025-04-16 06:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:30:23] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:31:05 [end_date_ymd] => 2025-04-16 06:31:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:31:05' and `end` < '2025-04-16 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-04-16 06:31:17] Production.INFO: count ==47 [2025-04-16 06:31:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:31:05 - End Time 2025-04-16 06:31:05 [2025-04-16 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919098', 'tblTempUsageDetail_20' ) start [2025-04-16 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919098', 'tblTempUsageDetail_20' ) end [2025-04-16 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919098', 'tblTempVendorCDR_20' ) start [2025-04-16 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919098', 'tblTempVendorCDR_20' ) end [2025-04-16 06:31:18] Production.INFO: ProcessCDR(1,14919098,1,1,2) [2025-04-16 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919098', 'tblTempUsageDetail_20' ) start [2025-04-16 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919098', 'tblTempUsageDetail_20' ) end [2025-04-16 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:31:21] Production.INFO: ==22178== Releasing lock... [2025-04-16 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:31:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:32:06 [end_date_ymd] => 2025-04-16 06:32:06 [RateCDR] => 1 ) [2025-04-16 06: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-04-16 03:32:06' and `end` < '2025-04-16 06: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-04-16 06:32:18] Production.INFO: count ==47 [2025-04-16 06:32:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:32:06 - End Time 2025-04-16 06:32:06 [2025-04-16 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919103', 'tblTempUsageDetail_20' ) start [2025-04-16 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919103', 'tblTempUsageDetail_20' ) end [2025-04-16 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919103', 'tblTempVendorCDR_20' ) start [2025-04-16 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919103', 'tblTempVendorCDR_20' ) end [2025-04-16 06:32:18] Production.INFO: ProcessCDR(1,14919103,1,1,2) [2025-04-16 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919103', 'tblTempUsageDetail_20' ) start [2025-04-16 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919103', 'tblTempUsageDetail_20' ) end [2025-04-16 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:32:22] Production.INFO: ==22254== Releasing lock... [2025-04-16 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:32:22] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:33:04 [end_date_ymd] => 2025-04-16 06:33:04 [RateCDR] => 1 ) [2025-04-16 06:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 03:33:04' and `end` < '2025-04-16 06:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 06:33:17] Production.INFO: count ==47 [2025-04-16 06:33:17] Production.ERROR: pbx CDR StartTime 2025-04-16 03:33:04 - End Time 2025-04-16 06:33:04 [2025-04-16 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919108', 'tblTempUsageDetail_20' ) start [2025-04-16 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919108', 'tblTempUsageDetail_20' ) end [2025-04-16 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919108', 'tblTempVendorCDR_20' ) start [2025-04-16 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919108', 'tblTempVendorCDR_20' ) end [2025-04-16 06:33:17] Production.INFO: ProcessCDR(1,14919108,1,1,2) [2025-04-16 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919108', 'tblTempUsageDetail_20' ) start [2025-04-16 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919108', 'tblTempUsageDetail_20' ) end [2025-04-16 06:33:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:33:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:33:20] Production.INFO: ==22328== Releasing lock... [2025-04-16 06:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:33:20] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:34:06 [end_date_ymd] => 2025-04-16 06:34:06 [RateCDR] => 1 ) [2025-04-16 06: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-04-16 03:34:06' and `end` < '2025-04-16 06: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-04-16 06:34:18] Production.INFO: count ==47 [2025-04-16 06:34:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:34:06 - End Time 2025-04-16 06:34:06 [2025-04-16 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919113', 'tblTempUsageDetail_20' ) start [2025-04-16 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919113', 'tblTempUsageDetail_20' ) end [2025-04-16 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919113', 'tblTempVendorCDR_20' ) start [2025-04-16 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919113', 'tblTempVendorCDR_20' ) end [2025-04-16 06:34:18] Production.INFO: ProcessCDR(1,14919113,1,1,2) [2025-04-16 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919113', 'tblTempUsageDetail_20' ) start [2025-04-16 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919113', 'tblTempUsageDetail_20' ) end [2025-04-16 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:34:21] Production.INFO: ==22408== Releasing lock... [2025-04-16 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:34:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:35:05 [end_date_ymd] => 2025-04-16 06:35:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:35:05' and `end` < '2025-04-16 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-04-16 06:35:18] Production.INFO: count ==47 [2025-04-16 06:35:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:35:05 - End Time 2025-04-16 06:35:05 [2025-04-16 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919118', 'tblTempUsageDetail_20' ) start [2025-04-16 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919118', 'tblTempUsageDetail_20' ) end [2025-04-16 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919118', 'tblTempVendorCDR_20' ) start [2025-04-16 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919118', 'tblTempVendorCDR_20' ) end [2025-04-16 06:35:18] Production.INFO: ProcessCDR(1,14919118,1,1,2) [2025-04-16 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919118', 'tblTempUsageDetail_20' ) start [2025-04-16 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919118', 'tblTempUsageDetail_20' ) end [2025-04-16 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:35:21] Production.INFO: ==22480== Releasing lock... [2025-04-16 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:35:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:36:05 [end_date_ymd] => 2025-04-16 06:36:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:36:05' and `end` < '2025-04-16 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-04-16 06:36:18] Production.INFO: count ==47 [2025-04-16 06:36:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:36:05 - End Time 2025-04-16 06:36:05 [2025-04-16 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919123', 'tblTempUsageDetail_20' ) start [2025-04-16 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919123', 'tblTempUsageDetail_20' ) end [2025-04-16 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919123', 'tblTempVendorCDR_20' ) start [2025-04-16 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919123', 'tblTempVendorCDR_20' ) end [2025-04-16 06:36:18] Production.INFO: ProcessCDR(1,14919123,1,1,2) [2025-04-16 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919123', 'tblTempUsageDetail_20' ) start [2025-04-16 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919123', 'tblTempUsageDetail_20' ) end [2025-04-16 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:36:21] Production.INFO: ==22564== Releasing lock... [2025-04-16 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:36:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:37:05 [end_date_ymd] => 2025-04-16 06:37:05 [RateCDR] => 1 ) [2025-04-16 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 03:37:05' and `end` < '2025-04-16 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 06:37:18] Production.INFO: count ==47 [2025-04-16 06:37:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:37:05 - End Time 2025-04-16 06:37:05 [2025-04-16 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919128', 'tblTempUsageDetail_20' ) start [2025-04-16 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919128', 'tblTempUsageDetail_20' ) end [2025-04-16 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919128', 'tblTempVendorCDR_20' ) start [2025-04-16 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919128', 'tblTempVendorCDR_20' ) end [2025-04-16 06:37:18] Production.INFO: ProcessCDR(1,14919128,1,1,2) [2025-04-16 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919128', 'tblTempUsageDetail_20' ) start [2025-04-16 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919128', 'tblTempUsageDetail_20' ) end [2025-04-16 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:37:21] Production.INFO: ==22639== Releasing lock... [2025-04-16 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:37:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:38:05 [end_date_ymd] => 2025-04-16 06:38:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:38:05' and `end` < '2025-04-16 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-04-16 06:38:18] Production.INFO: count ==47 [2025-04-16 06:38:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:38:05 - End Time 2025-04-16 06:38:05 [2025-04-16 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919133', 'tblTempUsageDetail_20' ) start [2025-04-16 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919133', 'tblTempUsageDetail_20' ) end [2025-04-16 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919133', 'tblTempVendorCDR_20' ) start [2025-04-16 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919133', 'tblTempVendorCDR_20' ) end [2025-04-16 06:38:18] Production.INFO: ProcessCDR(1,14919133,1,1,2) [2025-04-16 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919133', 'tblTempUsageDetail_20' ) start [2025-04-16 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919133', 'tblTempUsageDetail_20' ) end [2025-04-16 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:38:21] Production.INFO: ==22716== Releasing lock... [2025-04-16 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:38:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:39:06 [end_date_ymd] => 2025-04-16 06:39:06 [RateCDR] => 1 ) [2025-04-16 06: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-04-16 03:39:06' and `end` < '2025-04-16 06: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-04-16 06:39:18] Production.INFO: count ==45 [2025-04-16 06:39:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:39:06 - End Time 2025-04-16 06:39:06 [2025-04-16 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919138', 'tblTempUsageDetail_20' ) start [2025-04-16 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919138', 'tblTempUsageDetail_20' ) end [2025-04-16 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919138', 'tblTempVendorCDR_20' ) start [2025-04-16 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919138', 'tblTempVendorCDR_20' ) end [2025-04-16 06:39:18] Production.INFO: ProcessCDR(1,14919138,1,1,2) [2025-04-16 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919138', 'tblTempUsageDetail_20' ) start [2025-04-16 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919138', 'tblTempUsageDetail_20' ) end [2025-04-16 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:39:22] Production.INFO: ==22791== Releasing lock... [2025-04-16 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:39:22] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:40:06 [end_date_ymd] => 2025-04-16 06:40:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:40:06' and `end` < '2025-04-16 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-04-16 06:40:18] Production.INFO: count ==45 [2025-04-16 06:40:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:40:06 - End Time 2025-04-16 06:40:06 [2025-04-16 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919144', 'tblTempUsageDetail_20' ) start [2025-04-16 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919144', 'tblTempUsageDetail_20' ) end [2025-04-16 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919144', 'tblTempVendorCDR_20' ) start [2025-04-16 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919144', 'tblTempVendorCDR_20' ) end [2025-04-16 06:40:18] Production.INFO: ProcessCDR(1,14919144,1,1,2) [2025-04-16 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919144', 'tblTempUsageDetail_20' ) start [2025-04-16 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919144', 'tblTempUsageDetail_20' ) end [2025-04-16 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:40:21] Production.INFO: ==22871== Releasing lock... [2025-04-16 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:40:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:41:05 [end_date_ymd] => 2025-04-16 06:41:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:41:05' and `end` < '2025-04-16 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-04-16 06:41:18] Production.INFO: count ==43 [2025-04-16 06:41:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:41:05 - End Time 2025-04-16 06:41:05 [2025-04-16 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919149', 'tblTempUsageDetail_20' ) start [2025-04-16 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919149', 'tblTempUsageDetail_20' ) end [2025-04-16 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919149', 'tblTempVendorCDR_20' ) start [2025-04-16 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919149', 'tblTempVendorCDR_20' ) end [2025-04-16 06:41:18] Production.INFO: ProcessCDR(1,14919149,1,1,2) [2025-04-16 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919149', 'tblTempUsageDetail_20' ) start [2025-04-16 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919149', 'tblTempUsageDetail_20' ) end [2025-04-16 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:41:21] Production.INFO: ==22985== Releasing lock... [2025-04-16 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:41:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:42:05 [end_date_ymd] => 2025-04-16 06:42:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:42:05' and `end` < '2025-04-16 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-04-16 06:42:17] Production.INFO: count ==43 [2025-04-16 06:42:17] Production.ERROR: pbx CDR StartTime 2025-04-16 03:42:05 - End Time 2025-04-16 06:42:05 [2025-04-16 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919154', 'tblTempUsageDetail_20' ) start [2025-04-16 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919154', 'tblTempUsageDetail_20' ) end [2025-04-16 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919154', 'tblTempVendorCDR_20' ) start [2025-04-16 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919154', 'tblTempVendorCDR_20' ) end [2025-04-16 06:42:17] Production.INFO: ProcessCDR(1,14919154,1,1,2) [2025-04-16 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919154', 'tblTempUsageDetail_20' ) start [2025-04-16 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919154', 'tblTempUsageDetail_20' ) end [2025-04-16 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:42:21] Production.INFO: ==23072== Releasing lock... [2025-04-16 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:42:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:43:05 [end_date_ymd] => 2025-04-16 06:43:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:43:05' and `end` < '2025-04-16 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-04-16 06:43:17] Production.INFO: count ==43 [2025-04-16 06:43:17] Production.ERROR: pbx CDR StartTime 2025-04-16 03:43:05 - End Time 2025-04-16 06:43:05 [2025-04-16 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919159', 'tblTempUsageDetail_20' ) start [2025-04-16 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919159', 'tblTempUsageDetail_20' ) end [2025-04-16 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919159', 'tblTempVendorCDR_20' ) start [2025-04-16 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919159', 'tblTempVendorCDR_20' ) end [2025-04-16 06:43:17] Production.INFO: ProcessCDR(1,14919159,1,1,2) [2025-04-16 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919159', 'tblTempUsageDetail_20' ) start [2025-04-16 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919159', 'tblTempUsageDetail_20' ) end [2025-04-16 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:43:21] Production.INFO: ==23145== Releasing lock... [2025-04-16 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:43:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:44:05 [end_date_ymd] => 2025-04-16 06:44:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:44:05' and `end` < '2025-04-16 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-04-16 06:44:18] Production.INFO: count ==43 [2025-04-16 06:44:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:44:05 - End Time 2025-04-16 06:44:05 [2025-04-16 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919164', 'tblTempUsageDetail_20' ) start [2025-04-16 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919164', 'tblTempUsageDetail_20' ) end [2025-04-16 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919164', 'tblTempVendorCDR_20' ) start [2025-04-16 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919164', 'tblTempVendorCDR_20' ) end [2025-04-16 06:44:18] Production.INFO: ProcessCDR(1,14919164,1,1,2) [2025-04-16 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919164', 'tblTempUsageDetail_20' ) start [2025-04-16 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919164', 'tblTempUsageDetail_20' ) end [2025-04-16 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:44:21] Production.INFO: ==23221== Releasing lock... [2025-04-16 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:44:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:45:05 [end_date_ymd] => 2025-04-16 06:45:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:45:05' and `end` < '2025-04-16 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-04-16 06:45:17] Production.INFO: count ==43 [2025-04-16 06:45:17] Production.ERROR: pbx CDR StartTime 2025-04-16 03:45:05 - End Time 2025-04-16 06:45:05 [2025-04-16 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919169', 'tblTempUsageDetail_20' ) start [2025-04-16 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919169', 'tblTempUsageDetail_20' ) end [2025-04-16 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919169', 'tblTempVendorCDR_20' ) start [2025-04-16 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919169', 'tblTempVendorCDR_20' ) end [2025-04-16 06:45:17] Production.INFO: ProcessCDR(1,14919169,1,1,2) [2025-04-16 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919169', 'tblTempUsageDetail_20' ) start [2025-04-16 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919169', 'tblTempUsageDetail_20' ) end [2025-04-16 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:45:21] Production.INFO: ==23299== Releasing lock... [2025-04-16 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:45:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:46:06 [end_date_ymd] => 2025-04-16 06:46:06 [RateCDR] => 1 ) [2025-04-16 06: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-04-16 03:46:06' and `end` < '2025-04-16 06: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-04-16 06:46:18] Production.INFO: count ==43 [2025-04-16 06:46:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:46:06 - End Time 2025-04-16 06:46:06 [2025-04-16 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919174', 'tblTempUsageDetail_20' ) start [2025-04-16 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919174', 'tblTempUsageDetail_20' ) end [2025-04-16 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919174', 'tblTempVendorCDR_20' ) start [2025-04-16 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919174', 'tblTempVendorCDR_20' ) end [2025-04-16 06:46:18] Production.INFO: ProcessCDR(1,14919174,1,1,2) [2025-04-16 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919174', 'tblTempUsageDetail_20' ) start [2025-04-16 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919174', 'tblTempUsageDetail_20' ) end [2025-04-16 06:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:46:22] Production.INFO: ==23376== Releasing lock... [2025-04-16 06:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:46:22] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:47:05 [end_date_ymd] => 2025-04-16 06:47:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:47:05' and `end` < '2025-04-16 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-04-16 06:47:17] Production.INFO: count ==43 [2025-04-16 06:47:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:47:05 - End Time 2025-04-16 06:47:05 [2025-04-16 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919179', 'tblTempUsageDetail_20' ) start [2025-04-16 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919179', 'tblTempUsageDetail_20' ) end [2025-04-16 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919179', 'tblTempVendorCDR_20' ) start [2025-04-16 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919179', 'tblTempVendorCDR_20' ) end [2025-04-16 06:47:18] Production.INFO: ProcessCDR(1,14919179,1,1,2) [2025-04-16 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919179', 'tblTempUsageDetail_20' ) start [2025-04-16 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919179', 'tblTempUsageDetail_20' ) end [2025-04-16 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:47:21] Production.INFO: ==23450== Releasing lock... [2025-04-16 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:47:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:48:06 [end_date_ymd] => 2025-04-16 06:48:06 [RateCDR] => 1 ) [2025-04-16 06: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-04-16 03:48:06' and `end` < '2025-04-16 06: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-04-16 06:48:18] Production.INFO: count ==43 [2025-04-16 06:48:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:48:06 - End Time 2025-04-16 06:48:06 [2025-04-16 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919184', 'tblTempUsageDetail_20' ) start [2025-04-16 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919184', 'tblTempUsageDetail_20' ) end [2025-04-16 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919184', 'tblTempVendorCDR_20' ) start [2025-04-16 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919184', 'tblTempVendorCDR_20' ) end [2025-04-16 06:48:18] Production.INFO: ProcessCDR(1,14919184,1,1,2) [2025-04-16 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919184', 'tblTempUsageDetail_20' ) start [2025-04-16 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919184', 'tblTempUsageDetail_20' ) end [2025-04-16 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:48:22] Production.INFO: ==23534== Releasing lock... [2025-04-16 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:48:22] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:49:05 [end_date_ymd] => 2025-04-16 06:49:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:49:05' and `end` < '2025-04-16 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-04-16 06:49:17] Production.INFO: count ==47 [2025-04-16 06:49:17] Production.ERROR: pbx CDR StartTime 2025-04-16 03:49:05 - End Time 2025-04-16 06:49:05 [2025-04-16 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919189', 'tblTempUsageDetail_20' ) start [2025-04-16 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919189', 'tblTempUsageDetail_20' ) end [2025-04-16 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919189', 'tblTempVendorCDR_20' ) start [2025-04-16 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919189', 'tblTempVendorCDR_20' ) end [2025-04-16 06:49:18] Production.INFO: ProcessCDR(1,14919189,1,1,2) [2025-04-16 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919189', 'tblTempUsageDetail_20' ) start [2025-04-16 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919189', 'tblTempUsageDetail_20' ) end [2025-04-16 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:49:21] Production.INFO: ==23606== Releasing lock... [2025-04-16 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:49:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:50:06 [end_date_ymd] => 2025-04-16 06:50:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:50:06' and `end` < '2025-04-16 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-04-16 06:50:19] Production.INFO: count ==47 [2025-04-16 06:50:19] Production.ERROR: pbx CDR StartTime 2025-04-16 03:50:06 - End Time 2025-04-16 06:50:06 [2025-04-16 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919195', 'tblTempUsageDetail_20' ) start [2025-04-16 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919195', 'tblTempUsageDetail_20' ) end [2025-04-16 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919195', 'tblTempVendorCDR_20' ) start [2025-04-16 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919195', 'tblTempVendorCDR_20' ) end [2025-04-16 06:50:19] Production.INFO: ProcessCDR(1,14919195,1,1,2) [2025-04-16 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919195', 'tblTempUsageDetail_20' ) start [2025-04-16 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919195', 'tblTempUsageDetail_20' ) end [2025-04-16 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:50:22] Production.INFO: ==23686== Releasing lock... [2025-04-16 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:50:22] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:51:05 [end_date_ymd] => 2025-04-16 06:51:05 [RateCDR] => 1 ) [2025-04-16 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 03:51:05' and `end` < '2025-04-16 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 06:51:17] Production.INFO: count ==47 [2025-04-16 06:51:17] Production.ERROR: pbx CDR StartTime 2025-04-16 03:51:05 - End Time 2025-04-16 06:51:05 [2025-04-16 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919200', 'tblTempUsageDetail_20' ) start [2025-04-16 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919200', 'tblTempUsageDetail_20' ) end [2025-04-16 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919200', 'tblTempVendorCDR_20' ) start [2025-04-16 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919200', 'tblTempVendorCDR_20' ) end [2025-04-16 06:51:17] Production.INFO: ProcessCDR(1,14919200,1,1,2) [2025-04-16 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919200', 'tblTempUsageDetail_20' ) start [2025-04-16 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919200', 'tblTempUsageDetail_20' ) end [2025-04-16 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:51:21] Production.INFO: ==23768== Releasing lock... [2025-04-16 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:51:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:52:06 [end_date_ymd] => 2025-04-16 06:52:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:52:06' and `end` < '2025-04-16 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-04-16 06:52:18] Production.INFO: count ==47 [2025-04-16 06:52:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:52:06 - End Time 2025-04-16 06:52:06 [2025-04-16 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919205', 'tblTempUsageDetail_20' ) start [2025-04-16 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919205', 'tblTempUsageDetail_20' ) end [2025-04-16 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919205', 'tblTempVendorCDR_20' ) start [2025-04-16 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919205', 'tblTempVendorCDR_20' ) end [2025-04-16 06:52:18] Production.INFO: ProcessCDR(1,14919205,1,1,2) [2025-04-16 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919205', 'tblTempUsageDetail_20' ) start [2025-04-16 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919205', 'tblTempUsageDetail_20' ) end [2025-04-16 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:52:22] Production.INFO: ==23856== Releasing lock... [2025-04-16 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:52:22] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:53:04 [end_date_ymd] => 2025-04-16 06:53:04 [RateCDR] => 1 ) [2025-04-16 06: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-04-16 03:53:04' and `end` < '2025-04-16 06: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-04-16 06:53:17] Production.INFO: count ==47 [2025-04-16 06:53:17] Production.ERROR: pbx CDR StartTime 2025-04-16 03:53:04 - End Time 2025-04-16 06:53:04 [2025-04-16 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919210', 'tblTempUsageDetail_20' ) start [2025-04-16 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919210', 'tblTempUsageDetail_20' ) end [2025-04-16 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919210', 'tblTempVendorCDR_20' ) start [2025-04-16 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919210', 'tblTempVendorCDR_20' ) end [2025-04-16 06:53:17] Production.INFO: ProcessCDR(1,14919210,1,1,2) [2025-04-16 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919210', 'tblTempUsageDetail_20' ) start [2025-04-16 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919210', 'tblTempUsageDetail_20' ) end [2025-04-16 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:53:20] Production.INFO: ==23947== Releasing lock... [2025-04-16 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:53:20] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:54:05 [end_date_ymd] => 2025-04-16 06:54:05 [RateCDR] => 1 ) [2025-04-16 06: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-04-16 03:54:05' and `end` < '2025-04-16 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-04-16 06:54:18] Production.INFO: count ==48 [2025-04-16 06:54:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:54:05 - End Time 2025-04-16 06:54:05 [2025-04-16 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919215', 'tblTempUsageDetail_20' ) start [2025-04-16 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919215', 'tblTempUsageDetail_20' ) end [2025-04-16 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919215', 'tblTempVendorCDR_20' ) start [2025-04-16 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919215', 'tblTempVendorCDR_20' ) end [2025-04-16 06:54:18] Production.INFO: ProcessCDR(1,14919215,1,1,2) [2025-04-16 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919215', 'tblTempUsageDetail_20' ) start [2025-04-16 06:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919215', 'tblTempUsageDetail_20' ) end [2025-04-16 06:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:54:23] Production.INFO: ==24036== Releasing lock... [2025-04-16 06:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:54:23] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:55:05 [end_date_ymd] => 2025-04-16 06:55:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:55:05' and `end` < '2025-04-16 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-04-16 06:55:17] Production.INFO: count ==48 [2025-04-16 06:55:17] Production.ERROR: pbx CDR StartTime 2025-04-16 03:55:05 - End Time 2025-04-16 06:55:05 [2025-04-16 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919220', 'tblTempUsageDetail_20' ) start [2025-04-16 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919220', 'tblTempUsageDetail_20' ) end [2025-04-16 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919220', 'tblTempVendorCDR_20' ) start [2025-04-16 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919220', 'tblTempVendorCDR_20' ) end [2025-04-16 06:55:17] Production.INFO: ProcessCDR(1,14919220,1,1,2) [2025-04-16 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919220', 'tblTempUsageDetail_20' ) start [2025-04-16 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919220', 'tblTempUsageDetail_20' ) end [2025-04-16 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:55:20] Production.INFO: ==24130== Releasing lock... [2025-04-16 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:55:20] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:56:05 [end_date_ymd] => 2025-04-16 06:56:05 [RateCDR] => 1 ) [2025-04-16 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 03:56:05' and `end` < '2025-04-16 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 06:56:18] Production.INFO: count ==48 [2025-04-16 06:56:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:56:05 - End Time 2025-04-16 06:56:05 [2025-04-16 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919225', 'tblTempUsageDetail_20' ) start [2025-04-16 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919225', 'tblTempUsageDetail_20' ) end [2025-04-16 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919225', 'tblTempVendorCDR_20' ) start [2025-04-16 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919225', 'tblTempVendorCDR_20' ) end [2025-04-16 06:56:18] Production.INFO: ProcessCDR(1,14919225,1,1,2) [2025-04-16 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919225', 'tblTempUsageDetail_20' ) start [2025-04-16 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919225', 'tblTempUsageDetail_20' ) end [2025-04-16 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:56:21] Production.INFO: ==24223== Releasing lock... [2025-04-16 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:56:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:57:06 [end_date_ymd] => 2025-04-16 06:57:06 [RateCDR] => 1 ) [2025-04-16 06: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-04-16 03:57:06' and `end` < '2025-04-16 06: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-04-16 06:57:18] Production.INFO: count ==48 [2025-04-16 06:57:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:57:06 - End Time 2025-04-16 06:57:06 [2025-04-16 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919230', 'tblTempUsageDetail_20' ) start [2025-04-16 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919230', 'tblTempUsageDetail_20' ) end [2025-04-16 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919230', 'tblTempVendorCDR_20' ) start [2025-04-16 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919230', 'tblTempVendorCDR_20' ) end [2025-04-16 06:57:18] Production.INFO: ProcessCDR(1,14919230,1,1,2) [2025-04-16 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919230', 'tblTempUsageDetail_20' ) start [2025-04-16 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919230', 'tblTempUsageDetail_20' ) end [2025-04-16 06:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:57:22] Production.INFO: ==24356== Releasing lock... [2025-04-16 06:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:57:22] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:58:05 [end_date_ymd] => 2025-04-16 06:58:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 03:58:05' and `end` < '2025-04-16 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-04-16 06:58:18] Production.INFO: count ==48 [2025-04-16 06:58:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:58:05 - End Time 2025-04-16 06:58:05 [2025-04-16 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919235', 'tblTempUsageDetail_20' ) start [2025-04-16 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919235', 'tblTempUsageDetail_20' ) end [2025-04-16 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919235', 'tblTempVendorCDR_20' ) start [2025-04-16 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919235', 'tblTempVendorCDR_20' ) end [2025-04-16 06:58:18] Production.INFO: ProcessCDR(1,14919235,1,1,2) [2025-04-16 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919235', 'tblTempUsageDetail_20' ) start [2025-04-16 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919235', 'tblTempUsageDetail_20' ) end [2025-04-16 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:58:21] Production.INFO: ==24447== Releasing lock... [2025-04-16 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:58:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 06:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 03:59:06 [end_date_ymd] => 2025-04-16 06:59:06 [RateCDR] => 1 ) [2025-04-16 06: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-04-16 03:59:06' and `end` < '2025-04-16 06: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-04-16 06:59:18] Production.INFO: count ==48 [2025-04-16 06:59:18] Production.ERROR: pbx CDR StartTime 2025-04-16 03:59:06 - End Time 2025-04-16 06:59:06 [2025-04-16 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919240', 'tblTempUsageDetail_20' ) start [2025-04-16 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919240', 'tblTempUsageDetail_20' ) end [2025-04-16 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919240', 'tblTempVendorCDR_20' ) start [2025-04-16 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919240', 'tblTempVendorCDR_20' ) end [2025-04-16 06:59:18] Production.INFO: ProcessCDR(1,14919240,1,1,2) [2025-04-16 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919240', 'tblTempUsageDetail_20' ) start [2025-04-16 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919240', 'tblTempUsageDetail_20' ) end [2025-04-16 06:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 06:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 06:59:22] Production.INFO: ==24543== Releasing lock... [2025-04-16 06:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 06:59:22] Production.INFO: 28 MB #Memory Used# [2025-04-16 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:00:06 [end_date_ymd] => 2025-04-16 07:00:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:00:06' and `end` < '2025-04-16 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-04-16 07:00:19] Production.INFO: count ==58 [2025-04-16 07:00:19] Production.ERROR: pbx CDR StartTime 2025-04-16 04:00:06 - End Time 2025-04-16 07:00:06 [2025-04-16 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919246', 'tblTempUsageDetail_20' ) start [2025-04-16 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919246', 'tblTempUsageDetail_20' ) end [2025-04-16 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919246', 'tblTempVendorCDR_20' ) start [2025-04-16 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919246', 'tblTempVendorCDR_20' ) end [2025-04-16 07:00:19] Production.INFO: ProcessCDR(1,14919246,1,1,2) [2025-04-16 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919246', 'tblTempUsageDetail_20' ) start [2025-04-16 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919246', 'tblTempUsageDetail_20' ) end [2025-04-16 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:00:22] Production.INFO: ==24632== Releasing lock... [2025-04-16 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:00:22] Production.INFO: 28 MB #Memory Used# [2025-04-16 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:01:05 [end_date_ymd] => 2025-04-16 07:01:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:01:05' and `end` < '2025-04-16 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-04-16 07:01:18] Production.INFO: count ==63 [2025-04-16 07:01:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:01:05 - End Time 2025-04-16 07:01:05 [2025-04-16 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919251', 'tblTempUsageDetail_20' ) start [2025-04-16 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919251', 'tblTempUsageDetail_20' ) end [2025-04-16 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919251', 'tblTempVendorCDR_20' ) start [2025-04-16 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919251', 'tblTempVendorCDR_20' ) end [2025-04-16 07:01:18] Production.INFO: ProcessCDR(1,14919251,1,1,2) [2025-04-16 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919251', 'tblTempUsageDetail_20' ) start [2025-04-16 07:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919251', 'tblTempUsageDetail_20' ) end [2025-04-16 07:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:01:23] Production.INFO: ==24738== Releasing lock... [2025-04-16 07:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:01:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:02:05 [end_date_ymd] => 2025-04-16 07:02:05 [RateCDR] => 1 ) [2025-04-16 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 04:02:05' and `end` < '2025-04-16 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 07:02:20] Production.INFO: count ==62 [2025-04-16 07:02:20] Production.ERROR: pbx CDR StartTime 2025-04-16 04:02:05 - End Time 2025-04-16 07:02:05 [2025-04-16 07:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919256', 'tblTempUsageDetail_20' ) start [2025-04-16 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919256', 'tblTempUsageDetail_20' ) end [2025-04-16 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919256', 'tblTempVendorCDR_20' ) start [2025-04-16 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919256', 'tblTempVendorCDR_20' ) end [2025-04-16 07:02:20] Production.INFO: ProcessCDR(1,14919256,1,1,2) [2025-04-16 07:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919256', 'tblTempUsageDetail_20' ) start [2025-04-16 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919256', 'tblTempUsageDetail_20' ) end [2025-04-16 07:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:02:23] Production.INFO: ==24901== Releasing lock... [2025-04-16 07:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:02:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:03:05 [end_date_ymd] => 2025-04-16 07:03:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:03:05' and `end` < '2025-04-16 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-04-16 07:03:18] Production.INFO: count ==63 [2025-04-16 07:03:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:03:05 - End Time 2025-04-16 07:03:05 [2025-04-16 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919261', 'tblTempUsageDetail_20' ) start [2025-04-16 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919261', 'tblTempUsageDetail_20' ) end [2025-04-16 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919261', 'tblTempVendorCDR_20' ) start [2025-04-16 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919261', 'tblTempVendorCDR_20' ) end [2025-04-16 07:03:18] Production.INFO: ProcessCDR(1,14919261,1,1,2) [2025-04-16 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919261', 'tblTempUsageDetail_20' ) start [2025-04-16 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919261', 'tblTempUsageDetail_20' ) end [2025-04-16 07:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:03:21] Production.INFO: ==24996== Releasing lock... [2025-04-16 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:03:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:04:04 [end_date_ymd] => 2025-04-16 07:04:04 [RateCDR] => 1 ) [2025-04-16 07:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 04:04:04' and `end` < '2025-04-16 07:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 07:04:18] Production.INFO: count ==63 [2025-04-16 07:04:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:04:04 - End Time 2025-04-16 07:04:04 [2025-04-16 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919266', 'tblTempUsageDetail_20' ) start [2025-04-16 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919266', 'tblTempUsageDetail_20' ) end [2025-04-16 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919266', 'tblTempVendorCDR_20' ) start [2025-04-16 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919266', 'tblTempVendorCDR_20' ) end [2025-04-16 07:04:18] Production.INFO: ProcessCDR(1,14919266,1,1,2) [2025-04-16 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919266', 'tblTempUsageDetail_20' ) start [2025-04-16 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919266', 'tblTempUsageDetail_20' ) end [2025-04-16 07:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:04:22] Production.INFO: ==25083== Releasing lock... [2025-04-16 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:04:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:05:05 [end_date_ymd] => 2025-04-16 07:05:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:05:05' and `end` < '2025-04-16 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-04-16 07:05:18] Production.INFO: count ==63 [2025-04-16 07:05:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:05:05 - End Time 2025-04-16 07:05:05 [2025-04-16 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919271', 'tblTempUsageDetail_20' ) start [2025-04-16 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919271', 'tblTempUsageDetail_20' ) end [2025-04-16 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919271', 'tblTempVendorCDR_20' ) start [2025-04-16 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919271', 'tblTempVendorCDR_20' ) end [2025-04-16 07:05:18] Production.INFO: ProcessCDR(1,14919271,1,1,2) [2025-04-16 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919271', 'tblTempUsageDetail_20' ) start [2025-04-16 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919271', 'tblTempUsageDetail_20' ) end [2025-04-16 07:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:05:21] Production.INFO: ==25250== Releasing lock... [2025-04-16 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:05:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:06:05 [end_date_ymd] => 2025-04-16 07:06:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:06:05' and `end` < '2025-04-16 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-04-16 07:06:18] Production.INFO: count ==63 [2025-04-16 07:06:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:06:05 - End Time 2025-04-16 07:06:05 [2025-04-16 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919276', 'tblTempUsageDetail_20' ) start [2025-04-16 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919276', 'tblTempUsageDetail_20' ) end [2025-04-16 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919276', 'tblTempVendorCDR_20' ) start [2025-04-16 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919276', 'tblTempVendorCDR_20' ) end [2025-04-16 07:06:18] Production.INFO: ProcessCDR(1,14919276,1,1,2) [2025-04-16 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919276', 'tblTempUsageDetail_20' ) start [2025-04-16 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919276', 'tblTempUsageDetail_20' ) end [2025-04-16 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:06:21] Production.INFO: ==25338== Releasing lock... [2025-04-16 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:06:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:07:05 [end_date_ymd] => 2025-04-16 07:07:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:07:05' and `end` < '2025-04-16 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-04-16 07:07:18] Production.INFO: count ==63 [2025-04-16 07:07:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:07:05 - End Time 2025-04-16 07:07:05 [2025-04-16 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919281', 'tblTempUsageDetail_20' ) start [2025-04-16 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919281', 'tblTempUsageDetail_20' ) end [2025-04-16 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919281', 'tblTempVendorCDR_20' ) start [2025-04-16 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919281', 'tblTempVendorCDR_20' ) end [2025-04-16 07:07:18] Production.INFO: ProcessCDR(1,14919281,1,1,2) [2025-04-16 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919281', 'tblTempUsageDetail_20' ) start [2025-04-16 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919281', 'tblTempUsageDetail_20' ) end [2025-04-16 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:07:22] Production.INFO: ==25430== Releasing lock... [2025-04-16 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:07:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:08:05 [end_date_ymd] => 2025-04-16 07:08:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:08:05' and `end` < '2025-04-16 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-04-16 07:08:18] Production.INFO: count ==63 [2025-04-16 07:08:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:08:05 - End Time 2025-04-16 07:08:05 [2025-04-16 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919286', 'tblTempUsageDetail_20' ) start [2025-04-16 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919286', 'tblTempUsageDetail_20' ) end [2025-04-16 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919286', 'tblTempVendorCDR_20' ) start [2025-04-16 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919286', 'tblTempVendorCDR_20' ) end [2025-04-16 07:08:18] Production.INFO: ProcessCDR(1,14919286,1,1,2) [2025-04-16 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919286', 'tblTempUsageDetail_20' ) start [2025-04-16 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919286', 'tblTempUsageDetail_20' ) end [2025-04-16 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:08:22] Production.INFO: ==25559== Releasing lock... [2025-04-16 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:08:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:09:05 [end_date_ymd] => 2025-04-16 07:09:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:09:05' and `end` < '2025-04-16 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-04-16 07:09:18] Production.INFO: count ==63 [2025-04-16 07:09:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:09:05 - End Time 2025-04-16 07:09:05 [2025-04-16 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919291', 'tblTempUsageDetail_20' ) start [2025-04-16 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919291', 'tblTempUsageDetail_20' ) end [2025-04-16 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919291', 'tblTempVendorCDR_20' ) start [2025-04-16 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919291', 'tblTempVendorCDR_20' ) end [2025-04-16 07:09:18] Production.INFO: ProcessCDR(1,14919291,1,1,2) [2025-04-16 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919291', 'tblTempUsageDetail_20' ) start [2025-04-16 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919291', 'tblTempUsageDetail_20' ) end [2025-04-16 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:09:21] Production.INFO: ==25696== Releasing lock... [2025-04-16 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:09:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:10:06 [end_date_ymd] => 2025-04-16 07:10:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:10:06' and `end` < '2025-04-16 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-04-16 07:10:21] Production.INFO: count ==55 [2025-04-16 07:10:21] Production.ERROR: pbx CDR StartTime 2025-04-16 04:10:06 - End Time 2025-04-16 07:10:06 [2025-04-16 07:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919297', 'tblTempUsageDetail_20' ) start [2025-04-16 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919297', 'tblTempUsageDetail_20' ) end [2025-04-16 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919297', 'tblTempVendorCDR_20' ) start [2025-04-16 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919297', 'tblTempVendorCDR_20' ) end [2025-04-16 07:10:21] Production.INFO: ProcessCDR(1,14919297,1,1,2) [2025-04-16 07:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919297', 'tblTempUsageDetail_20' ) start [2025-04-16 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919297', 'tblTempUsageDetail_20' ) end [2025-04-16 07:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:10:24] Production.INFO: ==25784== Releasing lock... [2025-04-16 07:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:10:24] Production.INFO: 28 MB #Memory Used# [2025-04-16 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:11:05 [end_date_ymd] => 2025-04-16 07:11:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:11:05' and `end` < '2025-04-16 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-04-16 07:11:18] Production.INFO: count ==55 [2025-04-16 07:11:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:11:05 - End Time 2025-04-16 07:11:05 [2025-04-16 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919302', 'tblTempUsageDetail_20' ) start [2025-04-16 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919302', 'tblTempUsageDetail_20' ) end [2025-04-16 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919302', 'tblTempVendorCDR_20' ) start [2025-04-16 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919302', 'tblTempVendorCDR_20' ) end [2025-04-16 07:11:18] Production.INFO: ProcessCDR(1,14919302,1,1,2) [2025-04-16 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919302', 'tblTempUsageDetail_20' ) start [2025-04-16 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919302', 'tblTempUsageDetail_20' ) end [2025-04-16 07:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:11:21] Production.INFO: ==25879== Releasing lock... [2025-04-16 07:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:11:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:12:05 [end_date_ymd] => 2025-04-16 07:12:05 [RateCDR] => 1 ) [2025-04-16 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 04:12:05' and `end` < '2025-04-16 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 07:12:18] Production.INFO: count ==55 [2025-04-16 07:12:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:12:05 - End Time 2025-04-16 07:12:05 [2025-04-16 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919307', 'tblTempUsageDetail_20' ) start [2025-04-16 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919307', 'tblTempUsageDetail_20' ) end [2025-04-16 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919307', 'tblTempVendorCDR_20' ) start [2025-04-16 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919307', 'tblTempVendorCDR_20' ) end [2025-04-16 07:12:18] Production.INFO: ProcessCDR(1,14919307,1,1,2) [2025-04-16 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919307', 'tblTempUsageDetail_20' ) start [2025-04-16 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919307', 'tblTempUsageDetail_20' ) end [2025-04-16 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:12:21] Production.INFO: ==26092== Releasing lock... [2025-04-16 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:12:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:13:05 [end_date_ymd] => 2025-04-16 07:13:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:13:05' and `end` < '2025-04-16 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-04-16 07:13:19] Production.INFO: count ==55 [2025-04-16 07:13:19] Production.ERROR: pbx CDR StartTime 2025-04-16 04:13:05 - End Time 2025-04-16 07:13:05 [2025-04-16 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919312', 'tblTempUsageDetail_20' ) start [2025-04-16 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919312', 'tblTempUsageDetail_20' ) end [2025-04-16 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919312', 'tblTempVendorCDR_20' ) start [2025-04-16 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919312', 'tblTempVendorCDR_20' ) end [2025-04-16 07:13:19] Production.INFO: ProcessCDR(1,14919312,1,1,2) [2025-04-16 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919312', 'tblTempUsageDetail_20' ) start [2025-04-16 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919312', 'tblTempUsageDetail_20' ) end [2025-04-16 07:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:13:23] Production.INFO: ==26180== Releasing lock... [2025-04-16 07:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:13:23] Production.INFO: 28 MB #Memory Used# [2025-04-16 07:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:14:06 [end_date_ymd] => 2025-04-16 07:14:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:14:06' and `end` < '2025-04-16 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-04-16 07:14:18] Production.INFO: count ==55 [2025-04-16 07:14:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:14:06 - End Time 2025-04-16 07:14:06 [2025-04-16 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919317', 'tblTempUsageDetail_20' ) start [2025-04-16 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919317', 'tblTempUsageDetail_20' ) end [2025-04-16 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919317', 'tblTempVendorCDR_20' ) start [2025-04-16 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919317', 'tblTempVendorCDR_20' ) end [2025-04-16 07:14:18] Production.INFO: ProcessCDR(1,14919317,1,1,2) [2025-04-16 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919317', 'tblTempUsageDetail_20' ) start [2025-04-16 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919317', 'tblTempUsageDetail_20' ) end [2025-04-16 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:14:22] Production.INFO: ==26273== Releasing lock... [2025-04-16 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:14:22] Production.INFO: 28 MB #Memory Used# [2025-04-16 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:15:05 [end_date_ymd] => 2025-04-16 07:15:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:15:05' and `end` < '2025-04-16 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-04-16 07:15:18] Production.INFO: count ==55 [2025-04-16 07:15:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:15:05 - End Time 2025-04-16 07:15:05 [2025-04-16 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919322', 'tblTempUsageDetail_20' ) start [2025-04-16 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919322', 'tblTempUsageDetail_20' ) end [2025-04-16 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919322', 'tblTempVendorCDR_20' ) start [2025-04-16 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919322', 'tblTempVendorCDR_20' ) end [2025-04-16 07:15:18] Production.INFO: ProcessCDR(1,14919322,1,1,2) [2025-04-16 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919322', 'tblTempUsageDetail_20' ) start [2025-04-16 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919322', 'tblTempUsageDetail_20' ) end [2025-04-16 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:15:22] Production.INFO: ==26439== Releasing lock... [2025-04-16 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:15:22] Production.INFO: 28 MB #Memory Used# [2025-04-16 07:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:16:06 [end_date_ymd] => 2025-04-16 07:16:06 [RateCDR] => 1 ) [2025-04-16 07: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-04-16 04:16:06' and `end` < '2025-04-16 07: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-04-16 07:16:19] Production.INFO: count ==55 [2025-04-16 07:16:19] Production.ERROR: pbx CDR StartTime 2025-04-16 04:16:06 - End Time 2025-04-16 07:16:06 [2025-04-16 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919327', 'tblTempUsageDetail_20' ) start [2025-04-16 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919327', 'tblTempUsageDetail_20' ) end [2025-04-16 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919327', 'tblTempVendorCDR_20' ) start [2025-04-16 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919327', 'tblTempVendorCDR_20' ) end [2025-04-16 07:16:19] Production.INFO: ProcessCDR(1,14919327,1,1,2) [2025-04-16 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919327', 'tblTempUsageDetail_20' ) start [2025-04-16 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919327', 'tblTempUsageDetail_20' ) end [2025-04-16 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:16:22] Production.INFO: ==26525== Releasing lock... [2025-04-16 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:16:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:17:05 [end_date_ymd] => 2025-04-16 07:17:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:17:05' and `end` < '2025-04-16 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-04-16 07:17:17] Production.INFO: count ==55 [2025-04-16 07:17:17] Production.ERROR: pbx CDR StartTime 2025-04-16 04:17:05 - End Time 2025-04-16 07:17:05 [2025-04-16 07:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919332', 'tblTempUsageDetail_20' ) start [2025-04-16 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919332', 'tblTempUsageDetail_20' ) end [2025-04-16 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919332', 'tblTempVendorCDR_20' ) start [2025-04-16 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919332', 'tblTempVendorCDR_20' ) end [2025-04-16 07:17:17] Production.INFO: ProcessCDR(1,14919332,1,1,2) [2025-04-16 07:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919332', 'tblTempUsageDetail_20' ) start [2025-04-16 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919332', 'tblTempUsageDetail_20' ) end [2025-04-16 07:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:17:21] Production.INFO: ==26612== Releasing lock... [2025-04-16 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:17:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:18:06 [end_date_ymd] => 2025-04-16 07:18:06 [RateCDR] => 1 ) [2025-04-16 07: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-04-16 04:18:06' and `end` < '2025-04-16 07: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-04-16 07:18:18] Production.INFO: count ==55 [2025-04-16 07:18:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:18:06 - End Time 2025-04-16 07:18:06 [2025-04-16 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919337', 'tblTempUsageDetail_20' ) start [2025-04-16 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919337', 'tblTempUsageDetail_20' ) end [2025-04-16 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919337', 'tblTempVendorCDR_20' ) start [2025-04-16 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919337', 'tblTempVendorCDR_20' ) end [2025-04-16 07:18:18] Production.INFO: ProcessCDR(1,14919337,1,1,2) [2025-04-16 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919337', 'tblTempUsageDetail_20' ) start [2025-04-16 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919337', 'tblTempUsageDetail_20' ) end [2025-04-16 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:18:22] Production.INFO: ==26691== Releasing lock... [2025-04-16 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:18:22] Production.INFO: 28 MB #Memory Used# [2025-04-16 07:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:19:04 [end_date_ymd] => 2025-04-16 07:19:04 [RateCDR] => 1 ) [2025-04-16 07:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 04:19:04' and `end` < '2025-04-16 07:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 07:19:17] Production.INFO: count ==55 [2025-04-16 07:19:17] Production.ERROR: pbx CDR StartTime 2025-04-16 04:19:04 - End Time 2025-04-16 07:19:04 [2025-04-16 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919342', 'tblTempUsageDetail_20' ) start [2025-04-16 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919342', 'tblTempUsageDetail_20' ) end [2025-04-16 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919342', 'tblTempVendorCDR_20' ) start [2025-04-16 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919342', 'tblTempVendorCDR_20' ) end [2025-04-16 07:19:17] Production.INFO: ProcessCDR(1,14919342,1,1,2) [2025-04-16 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919342', 'tblTempUsageDetail_20' ) start [2025-04-16 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919342', 'tblTempUsageDetail_20' ) end [2025-04-16 07:19:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:19:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:19:20] Production.INFO: ==26764== Releasing lock... [2025-04-16 07:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:19:20] Production.INFO: 28 MB #Memory Used# [2025-04-16 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:20:06 [end_date_ymd] => 2025-04-16 07:20:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:20:06' and `end` < '2025-04-16 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-04-16 07:20:19] Production.INFO: count ==51 [2025-04-16 07:20:19] Production.ERROR: pbx CDR StartTime 2025-04-16 04:20:06 - End Time 2025-04-16 07:20:06 [2025-04-16 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919348', 'tblTempUsageDetail_20' ) start [2025-04-16 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919348', 'tblTempUsageDetail_20' ) end [2025-04-16 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919348', 'tblTempVendorCDR_20' ) start [2025-04-16 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919348', 'tblTempVendorCDR_20' ) end [2025-04-16 07:20:19] Production.INFO: ProcessCDR(1,14919348,1,1,2) [2025-04-16 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919348', 'tblTempUsageDetail_20' ) start [2025-04-16 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919348', 'tblTempUsageDetail_20' ) end [2025-04-16 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:20:22] Production.INFO: ==26837== Releasing lock... [2025-04-16 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:20:22] Production.INFO: 28 MB #Memory Used# [2025-04-16 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:21:05 [end_date_ymd] => 2025-04-16 07:21:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:21:05' and `end` < '2025-04-16 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-04-16 07:21:17] Production.INFO: count ==50 [2025-04-16 07:21:17] Production.ERROR: pbx CDR StartTime 2025-04-16 04:21:05 - End Time 2025-04-16 07:21:05 [2025-04-16 07:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919353', 'tblTempUsageDetail_20' ) start [2025-04-16 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919353', 'tblTempUsageDetail_20' ) end [2025-04-16 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919353', 'tblTempVendorCDR_20' ) start [2025-04-16 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919353', 'tblTempVendorCDR_20' ) end [2025-04-16 07:21:17] Production.INFO: ProcessCDR(1,14919353,1,1,2) [2025-04-16 07:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919353', 'tblTempUsageDetail_20' ) start [2025-04-16 07:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919353', 'tblTempUsageDetail_20' ) end [2025-04-16 07:21:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:21:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:21:20] Production.INFO: ==26909== Releasing lock... [2025-04-16 07:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:21:20] Production.INFO: 28 MB #Memory Used# [2025-04-16 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:22:05 [end_date_ymd] => 2025-04-16 07:22:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:22:05' and `end` < '2025-04-16 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-04-16 07:22:18] Production.INFO: count ==51 [2025-04-16 07:22:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:22:05 - End Time 2025-04-16 07:22:05 [2025-04-16 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919358', 'tblTempUsageDetail_20' ) start [2025-04-16 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919358', 'tblTempUsageDetail_20' ) end [2025-04-16 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919358', 'tblTempVendorCDR_20' ) start [2025-04-16 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919358', 'tblTempVendorCDR_20' ) end [2025-04-16 07:22:18] Production.INFO: ProcessCDR(1,14919358,1,1,2) [2025-04-16 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919358', 'tblTempUsageDetail_20' ) start [2025-04-16 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919358', 'tblTempUsageDetail_20' ) end [2025-04-16 07:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:22:21] Production.INFO: ==26986== Releasing lock... [2025-04-16 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:22:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:23:05 [end_date_ymd] => 2025-04-16 07:23:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:23:05' and `end` < '2025-04-16 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-04-16 07:23:18] Production.INFO: count ==50 [2025-04-16 07:23:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:23:05 - End Time 2025-04-16 07:23:05 [2025-04-16 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919363', 'tblTempUsageDetail_20' ) start [2025-04-16 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919363', 'tblTempUsageDetail_20' ) end [2025-04-16 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919363', 'tblTempVendorCDR_20' ) start [2025-04-16 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919363', 'tblTempVendorCDR_20' ) end [2025-04-16 07:23:18] Production.INFO: ProcessCDR(1,14919363,1,1,2) [2025-04-16 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919363', 'tblTempUsageDetail_20' ) start [2025-04-16 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919363', 'tblTempUsageDetail_20' ) end [2025-04-16 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:23:21] Production.INFO: ==27056== Releasing lock... [2025-04-16 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:23:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:24:05 [end_date_ymd] => 2025-04-16 07:24:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:24:05' and `end` < '2025-04-16 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-04-16 07:24:18] Production.INFO: count ==50 [2025-04-16 07:24:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:24:05 - End Time 2025-04-16 07:24:05 [2025-04-16 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919368', 'tblTempUsageDetail_20' ) start [2025-04-16 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919368', 'tblTempUsageDetail_20' ) end [2025-04-16 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919368', 'tblTempVendorCDR_20' ) start [2025-04-16 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919368', 'tblTempVendorCDR_20' ) end [2025-04-16 07:24:18] Production.INFO: ProcessCDR(1,14919368,1,1,2) [2025-04-16 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919368', 'tblTempUsageDetail_20' ) start [2025-04-16 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919368', 'tblTempUsageDetail_20' ) end [2025-04-16 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:24:21] Production.INFO: ==27131== Releasing lock... [2025-04-16 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:24:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 07:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:25:04 [end_date_ymd] => 2025-04-16 07:25:04 [RateCDR] => 1 ) [2025-04-16 07: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-04-16 04:25:04' and `end` < '2025-04-16 07:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 07:25:17] Production.INFO: count ==50 [2025-04-16 07:25:17] Production.ERROR: pbx CDR StartTime 2025-04-16 04:25:04 - End Time 2025-04-16 07:25:04 [2025-04-16 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919373', 'tblTempUsageDetail_20' ) start [2025-04-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919373', 'tblTempUsageDetail_20' ) end [2025-04-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919373', 'tblTempVendorCDR_20' ) start [2025-04-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919373', 'tblTempVendorCDR_20' ) end [2025-04-16 07:25:17] Production.INFO: ProcessCDR(1,14919373,1,1,2) [2025-04-16 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919373', 'tblTempUsageDetail_20' ) start [2025-04-16 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919373', 'tblTempUsageDetail_20' ) end [2025-04-16 07:25:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:25:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:25:20] Production.INFO: ==27206== Releasing lock... [2025-04-16 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:25:20] Production.INFO: 28 MB #Memory Used# [2025-04-16 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:26:05 [end_date_ymd] => 2025-04-16 07:26:05 [RateCDR] => 1 ) [2025-04-16 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 04:26:05' and `end` < '2025-04-16 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 07:26:18] Production.INFO: count ==52 [2025-04-16 07:26:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:26:05 - End Time 2025-04-16 07:26:05 [2025-04-16 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919378', 'tblTempUsageDetail_20' ) start [2025-04-16 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919378', 'tblTempUsageDetail_20' ) end [2025-04-16 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919378', 'tblTempVendorCDR_20' ) start [2025-04-16 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919378', 'tblTempVendorCDR_20' ) end [2025-04-16 07:26:18] Production.INFO: ProcessCDR(1,14919378,1,1,2) [2025-04-16 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919378', 'tblTempUsageDetail_20' ) start [2025-04-16 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919378', 'tblTempUsageDetail_20' ) end [2025-04-16 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:26:21] Production.INFO: ==27275== Releasing lock... [2025-04-16 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:26:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:27:05 [end_date_ymd] => 2025-04-16 07:27:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:27:05' and `end` < '2025-04-16 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-04-16 07:27:18] Production.INFO: count ==49 [2025-04-16 07:27:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:27:05 - End Time 2025-04-16 07:27:05 [2025-04-16 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919383', 'tblTempUsageDetail_20' ) start [2025-04-16 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919383', 'tblTempUsageDetail_20' ) end [2025-04-16 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919383', 'tblTempVendorCDR_20' ) start [2025-04-16 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919383', 'tblTempVendorCDR_20' ) end [2025-04-16 07:27:18] Production.INFO: ProcessCDR(1,14919383,1,1,2) [2025-04-16 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919383', 'tblTempUsageDetail_20' ) start [2025-04-16 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919383', 'tblTempUsageDetail_20' ) end [2025-04-16 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:27:21] Production.INFO: ==27355== Releasing lock... [2025-04-16 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:27:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:28:05 [end_date_ymd] => 2025-04-16 07:28:05 [RateCDR] => 1 ) [2025-04-16 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 04:28:05' and `end` < '2025-04-16 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 07:28:18] Production.INFO: count ==48 [2025-04-16 07:28:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:28:05 - End Time 2025-04-16 07:28:05 [2025-04-16 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919388', 'tblTempUsageDetail_20' ) start [2025-04-16 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919388', 'tblTempUsageDetail_20' ) end [2025-04-16 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919388', 'tblTempVendorCDR_20' ) start [2025-04-16 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919388', 'tblTempVendorCDR_20' ) end [2025-04-16 07:28:18] Production.INFO: ProcessCDR(1,14919388,1,1,2) [2025-04-16 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919388', 'tblTempUsageDetail_20' ) start [2025-04-16 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919388', 'tblTempUsageDetail_20' ) end [2025-04-16 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:28:21] Production.INFO: ==27466== Releasing lock... [2025-04-16 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:28:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:29:05 [end_date_ymd] => 2025-04-16 07:29:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:29:05' and `end` < '2025-04-16 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-04-16 07:29:18] Production.INFO: count ==48 [2025-04-16 07:29:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:29:05 - End Time 2025-04-16 07:29:05 [2025-04-16 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919393', 'tblTempUsageDetail_20' ) start [2025-04-16 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919393', 'tblTempUsageDetail_20' ) end [2025-04-16 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919393', 'tblTempVendorCDR_20' ) start [2025-04-16 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919393', 'tblTempVendorCDR_20' ) end [2025-04-16 07:29:18] Production.INFO: ProcessCDR(1,14919393,1,1,2) [2025-04-16 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919393', 'tblTempUsageDetail_20' ) start [2025-04-16 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919393', 'tblTempUsageDetail_20' ) end [2025-04-16 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:29:21] Production.INFO: ==27536== Releasing lock... [2025-04-16 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:29:21] Production.INFO: 28 MB #Memory Used# [2025-04-16 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:30:06 [end_date_ymd] => 2025-04-16 07:30:06 [RateCDR] => 1 ) [2025-04-16 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 04:30:06' and `end` < '2025-04-16 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 07:30:18] Production.INFO: count ==56 [2025-04-16 07:30:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:30:06 - End Time 2025-04-16 07:30:06 [2025-04-16 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919399', 'tblTempUsageDetail_20' ) start [2025-04-16 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919399', 'tblTempUsageDetail_20' ) end [2025-04-16 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919399', 'tblTempVendorCDR_20' ) start [2025-04-16 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919399', 'tblTempVendorCDR_20' ) end [2025-04-16 07:30:18] Production.INFO: ProcessCDR(1,14919399,1,1,2) [2025-04-16 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919399', 'tblTempUsageDetail_20' ) start [2025-04-16 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919399', 'tblTempUsageDetail_20' ) end [2025-04-16 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:30:22] Production.INFO: ==27611== Releasing lock... [2025-04-16 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:31:06 [end_date_ymd] => 2025-04-16 07:31:06 [RateCDR] => 1 ) [2025-04-16 07: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-04-16 04:31:06' and `end` < '2025-04-16 07: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-04-16 07:31:18] Production.INFO: count ==57 [2025-04-16 07:31:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:31:06 - End Time 2025-04-16 07:31:06 [2025-04-16 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919404', 'tblTempUsageDetail_20' ) start [2025-04-16 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919404', 'tblTempUsageDetail_20' ) end [2025-04-16 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919404', 'tblTempVendorCDR_20' ) start [2025-04-16 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919404', 'tblTempVendorCDR_20' ) end [2025-04-16 07:31:18] Production.INFO: ProcessCDR(1,14919404,1,1,2) [2025-04-16 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919404', 'tblTempUsageDetail_20' ) start [2025-04-16 07:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919404', 'tblTempUsageDetail_20' ) end [2025-04-16 07:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:31:23] Production.INFO: ==27686== Releasing lock... [2025-04-16 07:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:31:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:32:05 [end_date_ymd] => 2025-04-16 07:32:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:32:05' and `end` < '2025-04-16 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-04-16 07:32:17] Production.INFO: count ==57 [2025-04-16 07:32:17] Production.ERROR: pbx CDR StartTime 2025-04-16 04:32:05 - End Time 2025-04-16 07:32:05 [2025-04-16 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919409', 'tblTempUsageDetail_20' ) start [2025-04-16 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919409', 'tblTempUsageDetail_20' ) end [2025-04-16 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919409', 'tblTempVendorCDR_20' ) start [2025-04-16 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919409', 'tblTempVendorCDR_20' ) end [2025-04-16 07:32:17] Production.INFO: ProcessCDR(1,14919409,1,1,2) [2025-04-16 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919409', 'tblTempUsageDetail_20' ) start [2025-04-16 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919409', 'tblTempUsageDetail_20' ) end [2025-04-16 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:32:21] Production.INFO: ==27759== Releasing lock... [2025-04-16 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:33:05 [end_date_ymd] => 2025-04-16 07:33:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:33:05' and `end` < '2025-04-16 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-04-16 07:33:18] Production.INFO: count ==57 [2025-04-16 07:33:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:33:05 - End Time 2025-04-16 07:33:05 [2025-04-16 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919414', 'tblTempUsageDetail_20' ) start [2025-04-16 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919414', 'tblTempUsageDetail_20' ) end [2025-04-16 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919414', 'tblTempVendorCDR_20' ) start [2025-04-16 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919414', 'tblTempVendorCDR_20' ) end [2025-04-16 07:33:18] Production.INFO: ProcessCDR(1,14919414,1,1,2) [2025-04-16 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919414', 'tblTempUsageDetail_20' ) start [2025-04-16 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919414', 'tblTempUsageDetail_20' ) end [2025-04-16 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:33:21] Production.INFO: ==27833== Releasing lock... [2025-04-16 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:34:06 [end_date_ymd] => 2025-04-16 07:34:06 [RateCDR] => 1 ) [2025-04-16 07: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-04-16 04:34:06' and `end` < '2025-04-16 07: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-04-16 07:34:18] Production.INFO: count ==57 [2025-04-16 07:34:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:34:06 - End Time 2025-04-16 07:34:06 [2025-04-16 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919419', 'tblTempUsageDetail_20' ) start [2025-04-16 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919419', 'tblTempUsageDetail_20' ) end [2025-04-16 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919419', 'tblTempVendorCDR_20' ) start [2025-04-16 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919419', 'tblTempVendorCDR_20' ) end [2025-04-16 07:34:18] Production.INFO: ProcessCDR(1,14919419,1,1,2) [2025-04-16 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919419', 'tblTempUsageDetail_20' ) start [2025-04-16 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919419', 'tblTempUsageDetail_20' ) end [2025-04-16 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:34:22] Production.INFO: ==27905== Releasing lock... [2025-04-16 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:34:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:35:05 [end_date_ymd] => 2025-04-16 07:35:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:35:05' and `end` < '2025-04-16 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-04-16 07:35:18] Production.INFO: count ==57 [2025-04-16 07:35:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:35:05 - End Time 2025-04-16 07:35:05 [2025-04-16 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919424', 'tblTempUsageDetail_20' ) start [2025-04-16 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919424', 'tblTempUsageDetail_20' ) end [2025-04-16 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919424', 'tblTempVendorCDR_20' ) start [2025-04-16 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919424', 'tblTempVendorCDR_20' ) end [2025-04-16 07:35:18] Production.INFO: ProcessCDR(1,14919424,1,1,2) [2025-04-16 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919424', 'tblTempUsageDetail_20' ) start [2025-04-16 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919424', 'tblTempUsageDetail_20' ) end [2025-04-16 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:35:21] Production.INFO: ==27977== Releasing lock... [2025-04-16 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:36:06 [end_date_ymd] => 2025-04-16 07:36:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:36:06' and `end` < '2025-04-16 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-04-16 07:36:18] Production.INFO: count ==57 [2025-04-16 07:36:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:36:06 - End Time 2025-04-16 07:36:06 [2025-04-16 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919429', 'tblTempUsageDetail_20' ) start [2025-04-16 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919429', 'tblTempUsageDetail_20' ) end [2025-04-16 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919429', 'tblTempVendorCDR_20' ) start [2025-04-16 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919429', 'tblTempVendorCDR_20' ) end [2025-04-16 07:36:18] Production.INFO: ProcessCDR(1,14919429,1,1,2) [2025-04-16 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919429', 'tblTempUsageDetail_20' ) start [2025-04-16 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919429', 'tblTempUsageDetail_20' ) end [2025-04-16 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:36:22] Production.INFO: ==28057== Releasing lock... [2025-04-16 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:36:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:37:05 [end_date_ymd] => 2025-04-16 07:37:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:37:05' and `end` < '2025-04-16 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-04-16 07:37:18] Production.INFO: count ==57 [2025-04-16 07:37:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:37:05 - End Time 2025-04-16 07:37:05 [2025-04-16 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919434', 'tblTempUsageDetail_20' ) start [2025-04-16 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919434', 'tblTempUsageDetail_20' ) end [2025-04-16 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919434', 'tblTempVendorCDR_20' ) start [2025-04-16 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919434', 'tblTempVendorCDR_20' ) end [2025-04-16 07:37:18] Production.INFO: ProcessCDR(1,14919434,1,1,2) [2025-04-16 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919434', 'tblTempUsageDetail_20' ) start [2025-04-16 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919434', 'tblTempUsageDetail_20' ) end [2025-04-16 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:37:21] Production.INFO: ==28135== Releasing lock... [2025-04-16 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:38:05 [end_date_ymd] => 2025-04-16 07:38:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:38:05' and `end` < '2025-04-16 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-04-16 07:38:18] Production.INFO: count ==57 [2025-04-16 07:38:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:38:05 - End Time 2025-04-16 07:38:05 [2025-04-16 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919439', 'tblTempUsageDetail_20' ) start [2025-04-16 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919439', 'tblTempUsageDetail_20' ) end [2025-04-16 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919439', 'tblTempVendorCDR_20' ) start [2025-04-16 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919439', 'tblTempVendorCDR_20' ) end [2025-04-16 07:38:18] Production.INFO: ProcessCDR(1,14919439,1,1,2) [2025-04-16 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919439', 'tblTempUsageDetail_20' ) start [2025-04-16 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919439', 'tblTempUsageDetail_20' ) end [2025-04-16 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:38:21] Production.INFO: ==28205== Releasing lock... [2025-04-16 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:39:05 [end_date_ymd] => 2025-04-16 07:39:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:39:05' and `end` < '2025-04-16 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-04-16 07:39:17] Production.INFO: count ==59 [2025-04-16 07:39:17] Production.ERROR: pbx CDR StartTime 2025-04-16 04:39:05 - End Time 2025-04-16 07:39:05 [2025-04-16 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919444', 'tblTempUsageDetail_20' ) start [2025-04-16 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919444', 'tblTempUsageDetail_20' ) end [2025-04-16 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919444', 'tblTempVendorCDR_20' ) start [2025-04-16 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919444', 'tblTempVendorCDR_20' ) end [2025-04-16 07:39:17] Production.INFO: ProcessCDR(1,14919444,1,1,2) [2025-04-16 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919444', 'tblTempUsageDetail_20' ) start [2025-04-16 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919444', 'tblTempUsageDetail_20' ) end [2025-04-16 07:39:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:39:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:39:20] Production.INFO: ==28274== Releasing lock... [2025-04-16 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:39:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:40:06 [end_date_ymd] => 2025-04-16 07:40:06 [RateCDR] => 1 ) [2025-04-16 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 04:40:06' and `end` < '2025-04-16 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 07:40:19] Production.INFO: count ==67 [2025-04-16 07:40:19] Production.ERROR: pbx CDR StartTime 2025-04-16 04:40:06 - End Time 2025-04-16 07:40:06 [2025-04-16 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919450', 'tblTempUsageDetail_20' ) start [2025-04-16 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919450', 'tblTempUsageDetail_20' ) end [2025-04-16 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919450', 'tblTempVendorCDR_20' ) start [2025-04-16 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919450', 'tblTempVendorCDR_20' ) end [2025-04-16 07:40:19] Production.INFO: ProcessCDR(1,14919450,1,1,2) [2025-04-16 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919450', 'tblTempUsageDetail_20' ) start [2025-04-16 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919450', 'tblTempUsageDetail_20' ) end [2025-04-16 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:40:22] Production.INFO: ==28348== Releasing lock... [2025-04-16 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:41:05 [end_date_ymd] => 2025-04-16 07:41:05 [RateCDR] => 1 ) [2025-04-16 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 04:41:05' and `end` < '2025-04-16 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 07:41:17] Production.INFO: count ==71 [2025-04-16 07:41:17] Production.ERROR: pbx CDR StartTime 2025-04-16 04:41:05 - End Time 2025-04-16 07:41:05 [2025-04-16 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919455', 'tblTempUsageDetail_20' ) start [2025-04-16 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919455', 'tblTempUsageDetail_20' ) end [2025-04-16 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919455', 'tblTempVendorCDR_20' ) start [2025-04-16 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919455', 'tblTempVendorCDR_20' ) end [2025-04-16 07:41:17] Production.INFO: ProcessCDR(1,14919455,1,1,2) [2025-04-16 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919455', 'tblTempUsageDetail_20' ) start [2025-04-16 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919455', 'tblTempUsageDetail_20' ) end [2025-04-16 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:41:21] Production.INFO: ==28423== Releasing lock... [2025-04-16 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:42:05 [end_date_ymd] => 2025-04-16 07:42:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:42:05' and `end` < '2025-04-16 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-04-16 07:42:18] Production.INFO: count ==72 [2025-04-16 07:42:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:42:05 - End Time 2025-04-16 07:42:05 [2025-04-16 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919460', 'tblTempUsageDetail_20' ) start [2025-04-16 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919460', 'tblTempUsageDetail_20' ) end [2025-04-16 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919460', 'tblTempVendorCDR_20' ) start [2025-04-16 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919460', 'tblTempVendorCDR_20' ) end [2025-04-16 07:42:18] Production.INFO: ProcessCDR(1,14919460,1,1,2) [2025-04-16 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919460', 'tblTempUsageDetail_20' ) start [2025-04-16 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919460', 'tblTempUsageDetail_20' ) end [2025-04-16 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:42:21] Production.INFO: ==28497== Releasing lock... [2025-04-16 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:43:05 [end_date_ymd] => 2025-04-16 07:43:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:43:05' and `end` < '2025-04-16 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-04-16 07:43:18] Production.INFO: count ==72 [2025-04-16 07:43:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:43:05 - End Time 2025-04-16 07:43:05 [2025-04-16 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919465', 'tblTempUsageDetail_20' ) start [2025-04-16 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919465', 'tblTempUsageDetail_20' ) end [2025-04-16 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919465', 'tblTempVendorCDR_20' ) start [2025-04-16 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919465', 'tblTempVendorCDR_20' ) end [2025-04-16 07:43:18] Production.INFO: ProcessCDR(1,14919465,1,1,2) [2025-04-16 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919465', 'tblTempUsageDetail_20' ) start [2025-04-16 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919465', 'tblTempUsageDetail_20' ) end [2025-04-16 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:43:21] Production.INFO: ==28609== Releasing lock... [2025-04-16 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:44:05 [end_date_ymd] => 2025-04-16 07:44:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:44:05' and `end` < '2025-04-16 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-04-16 07:44:17] Production.INFO: count ==75 [2025-04-16 07:44:17] Production.ERROR: pbx CDR StartTime 2025-04-16 04:44:05 - End Time 2025-04-16 07:44:05 [2025-04-16 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919470', 'tblTempUsageDetail_20' ) start [2025-04-16 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919470', 'tblTempUsageDetail_20' ) end [2025-04-16 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919470', 'tblTempVendorCDR_20' ) start [2025-04-16 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919470', 'tblTempVendorCDR_20' ) end [2025-04-16 07:44:17] Production.INFO: ProcessCDR(1,14919470,1,1,2) [2025-04-16 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919470', 'tblTempUsageDetail_20' ) start [2025-04-16 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919470', 'tblTempUsageDetail_20' ) end [2025-04-16 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:44:21] Production.INFO: ==28684== Releasing lock... [2025-04-16 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:45:05 [end_date_ymd] => 2025-04-16 07:45:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:45:05' and `end` < '2025-04-16 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-04-16 07:45:18] Production.INFO: count ==75 [2025-04-16 07:45:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:45:05 - End Time 2025-04-16 07:45:05 [2025-04-16 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919475', 'tblTempUsageDetail_20' ) start [2025-04-16 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919475', 'tblTempUsageDetail_20' ) end [2025-04-16 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919475', 'tblTempVendorCDR_20' ) start [2025-04-16 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919475', 'tblTempVendorCDR_20' ) end [2025-04-16 07:45:18] Production.INFO: ProcessCDR(1,14919475,1,1,2) [2025-04-16 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919475', 'tblTempUsageDetail_20' ) start [2025-04-16 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919475', 'tblTempUsageDetail_20' ) end [2025-04-16 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:45:21] Production.INFO: ==28755== Releasing lock... [2025-04-16 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:46:05 [end_date_ymd] => 2025-04-16 07:46:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:46:05' and `end` < '2025-04-16 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-04-16 07:46:17] Production.INFO: count ==75 [2025-04-16 07:46:17] Production.ERROR: pbx CDR StartTime 2025-04-16 04:46:05 - End Time 2025-04-16 07:46:05 [2025-04-16 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919480', 'tblTempUsageDetail_20' ) start [2025-04-16 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919480', 'tblTempUsageDetail_20' ) end [2025-04-16 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919480', 'tblTempVendorCDR_20' ) start [2025-04-16 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919480', 'tblTempVendorCDR_20' ) end [2025-04-16 07:46:17] Production.INFO: ProcessCDR(1,14919480,1,1,2) [2025-04-16 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919480', 'tblTempUsageDetail_20' ) start [2025-04-16 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919480', 'tblTempUsageDetail_20' ) end [2025-04-16 07:46:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:46:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:46:20] Production.INFO: ==28825== Releasing lock... [2025-04-16 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:46:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:47:05 [end_date_ymd] => 2025-04-16 07:47:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:47:05' and `end` < '2025-04-16 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-04-16 07:47:18] Production.INFO: count ==75 [2025-04-16 07:47:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:47:05 - End Time 2025-04-16 07:47:05 [2025-04-16 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919485', 'tblTempUsageDetail_20' ) start [2025-04-16 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919485', 'tblTempUsageDetail_20' ) end [2025-04-16 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919485', 'tblTempVendorCDR_20' ) start [2025-04-16 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919485', 'tblTempVendorCDR_20' ) end [2025-04-16 07:47:18] Production.INFO: ProcessCDR(1,14919485,1,1,2) [2025-04-16 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919485', 'tblTempUsageDetail_20' ) start [2025-04-16 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919485', 'tblTempUsageDetail_20' ) end [2025-04-16 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:47:21] Production.INFO: ==28904== Releasing lock... [2025-04-16 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:47:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:48:05 [end_date_ymd] => 2025-04-16 07:48:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:48:05' and `end` < '2025-04-16 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-04-16 07:48:18] Production.INFO: count ==75 [2025-04-16 07:48:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:48:05 - End Time 2025-04-16 07:48:05 [2025-04-16 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919490', 'tblTempUsageDetail_20' ) start [2025-04-16 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919490', 'tblTempUsageDetail_20' ) end [2025-04-16 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919490', 'tblTempVendorCDR_20' ) start [2025-04-16 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919490', 'tblTempVendorCDR_20' ) end [2025-04-16 07:48:18] Production.INFO: ProcessCDR(1,14919490,1,1,2) [2025-04-16 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919490', 'tblTempUsageDetail_20' ) start [2025-04-16 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919490', 'tblTempUsageDetail_20' ) end [2025-04-16 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:48:21] Production.INFO: ==28976== Releasing lock... [2025-04-16 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:48:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:49:05 [end_date_ymd] => 2025-04-16 07:49:05 [RateCDR] => 1 ) [2025-04-16 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 04:49:05' and `end` < '2025-04-16 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 07:49:18] Production.INFO: count ==75 [2025-04-16 07:49:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:49:05 - End Time 2025-04-16 07:49:05 [2025-04-16 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919495', 'tblTempUsageDetail_20' ) start [2025-04-16 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919495', 'tblTempUsageDetail_20' ) end [2025-04-16 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919495', 'tblTempVendorCDR_20' ) start [2025-04-16 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919495', 'tblTempVendorCDR_20' ) end [2025-04-16 07:49:18] Production.INFO: ProcessCDR(1,14919495,1,1,2) [2025-04-16 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919495', 'tblTempUsageDetail_20' ) start [2025-04-16 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919495', 'tblTempUsageDetail_20' ) end [2025-04-16 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:49:21] Production.INFO: ==29052== Releasing lock... [2025-04-16 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:49:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:50:05 [end_date_ymd] => 2025-04-16 07:50:05 [RateCDR] => 1 ) [2025-04-16 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 04:50:05' and `end` < '2025-04-16 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 07:50:18] Production.INFO: count ==75 [2025-04-16 07:50:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:50:05 - End Time 2025-04-16 07:50:05 [2025-04-16 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919501', 'tblTempUsageDetail_20' ) start [2025-04-16 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919501', 'tblTempUsageDetail_20' ) end [2025-04-16 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919501', 'tblTempVendorCDR_20' ) start [2025-04-16 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919501', 'tblTempVendorCDR_20' ) end [2025-04-16 07:50:18] Production.INFO: ProcessCDR(1,14919501,1,1,2) [2025-04-16 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919501', 'tblTempUsageDetail_20' ) start [2025-04-16 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919501', 'tblTempUsageDetail_20' ) end [2025-04-16 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:50:21] Production.INFO: ==29129== Releasing lock... [2025-04-16 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:50:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:51:05 [end_date_ymd] => 2025-04-16 07:51:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:51:05' and `end` < '2025-04-16 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-04-16 07:51:17] Production.INFO: count ==75 [2025-04-16 07:51:17] Production.ERROR: pbx CDR StartTime 2025-04-16 04:51:05 - End Time 2025-04-16 07:51:05 [2025-04-16 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919506', 'tblTempUsageDetail_20' ) start [2025-04-16 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919506', 'tblTempUsageDetail_20' ) end [2025-04-16 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919506', 'tblTempVendorCDR_20' ) start [2025-04-16 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919506', 'tblTempVendorCDR_20' ) end [2025-04-16 07:51:17] Production.INFO: ProcessCDR(1,14919506,1,1,2) [2025-04-16 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919506', 'tblTempUsageDetail_20' ) start [2025-04-16 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919506', 'tblTempUsageDetail_20' ) end [2025-04-16 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:51:21] Production.INFO: ==29203== Releasing lock... [2025-04-16 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:51:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:52:06 [end_date_ymd] => 2025-04-16 07:52:06 [RateCDR] => 1 ) [2025-04-16 07: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-04-16 04:52:06' and `end` < '2025-04-16 07: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-04-16 07:52:18] Production.INFO: count ==77 [2025-04-16 07:52:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:52:06 - End Time 2025-04-16 07:52:06 [2025-04-16 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919511', 'tblTempUsageDetail_20' ) start [2025-04-16 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919511', 'tblTempUsageDetail_20' ) end [2025-04-16 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919511', 'tblTempVendorCDR_20' ) start [2025-04-16 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919511', 'tblTempVendorCDR_20' ) end [2025-04-16 07:52:18] Production.INFO: ProcessCDR(1,14919511,1,1,2) [2025-04-16 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919511', 'tblTempUsageDetail_20' ) start [2025-04-16 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919511', 'tblTempUsageDetail_20' ) end [2025-04-16 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:52:22] Production.INFO: ==29273== Releasing lock... [2025-04-16 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:52:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:53:05 [end_date_ymd] => 2025-04-16 07:53:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:53:05' and `end` < '2025-04-16 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-04-16 07:53:18] Production.INFO: count ==79 [2025-04-16 07:53:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:53:05 - End Time 2025-04-16 07:53:05 [2025-04-16 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919516', 'tblTempUsageDetail_20' ) start [2025-04-16 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919516', 'tblTempUsageDetail_20' ) end [2025-04-16 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919516', 'tblTempVendorCDR_20' ) start [2025-04-16 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919516', 'tblTempVendorCDR_20' ) end [2025-04-16 07:53:18] Production.INFO: ProcessCDR(1,14919516,1,1,2) [2025-04-16 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919516', 'tblTempUsageDetail_20' ) start [2025-04-16 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919516', 'tblTempUsageDetail_20' ) end [2025-04-16 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:53:21] Production.INFO: ==29345== Releasing lock... [2025-04-16 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:53:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-16 07:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:54:06 [end_date_ymd] => 2025-04-16 07:54:06 [RateCDR] => 1 ) [2025-04-16 07: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-04-16 04:54:06' and `end` < '2025-04-16 07: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-04-16 07:54:18] Production.INFO: count ==85 [2025-04-16 07:54:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:54:06 - End Time 2025-04-16 07:54:06 [2025-04-16 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919521', 'tblTempUsageDetail_20' ) start [2025-04-16 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919521', 'tblTempUsageDetail_20' ) end [2025-04-16 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919521', 'tblTempVendorCDR_20' ) start [2025-04-16 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919521', 'tblTempVendorCDR_20' ) end [2025-04-16 07:54:18] Production.INFO: ProcessCDR(1,14919521,1,1,2) [2025-04-16 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919521', 'tblTempUsageDetail_20' ) start [2025-04-16 07:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919521', 'tblTempUsageDetail_20' ) end [2025-04-16 07:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:54:24] Production.INFO: ==29422== Releasing lock... [2025-04-16 07:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:54:24] Production.INFO: 28.5 MB #Memory Used# [2025-04-16 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:55:05 [end_date_ymd] => 2025-04-16 07:55:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:55:05' and `end` < '2025-04-16 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-04-16 07:55:17] Production.INFO: count ==90 [2025-04-16 07:55:17] Production.ERROR: pbx CDR StartTime 2025-04-16 04:55:05 - End Time 2025-04-16 07:55:05 [2025-04-16 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919526', 'tblTempUsageDetail_20' ) start [2025-04-16 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919526', 'tblTempUsageDetail_20' ) end [2025-04-16 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919526', 'tblTempVendorCDR_20' ) start [2025-04-16 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919526', 'tblTempVendorCDR_20' ) end [2025-04-16 07:55:17] Production.INFO: ProcessCDR(1,14919526,1,1,2) [2025-04-16 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919526', 'tblTempUsageDetail_20' ) start [2025-04-16 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919526', 'tblTempUsageDetail_20' ) end [2025-04-16 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:55:21] Production.INFO: ==29496== Releasing lock... [2025-04-16 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:55:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-16 07:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:56:06 [end_date_ymd] => 2025-04-16 07:56:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:56:06' and `end` < '2025-04-16 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-04-16 07:56:18] Production.INFO: count ==95 [2025-04-16 07:56:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:56:06 - End Time 2025-04-16 07:56:06 [2025-04-16 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919531', 'tblTempUsageDetail_20' ) start [2025-04-16 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919531', 'tblTempUsageDetail_20' ) end [2025-04-16 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919531', 'tblTempVendorCDR_20' ) start [2025-04-16 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919531', 'tblTempVendorCDR_20' ) end [2025-04-16 07:56:18] Production.INFO: ProcessCDR(1,14919531,1,1,2) [2025-04-16 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919531', 'tblTempUsageDetail_20' ) start [2025-04-16 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919531', 'tblTempUsageDetail_20' ) end [2025-04-16 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:56:21] Production.INFO: ==29577== Releasing lock... [2025-04-16 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:57:05 [end_date_ymd] => 2025-04-16 07:57:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:57:05' and `end` < '2025-04-16 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-04-16 07:57:17] Production.INFO: count ==98 [2025-04-16 07:57:17] Production.ERROR: pbx CDR StartTime 2025-04-16 04:57:05 - End Time 2025-04-16 07:57:05 [2025-04-16 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919536', 'tblTempUsageDetail_20' ) start [2025-04-16 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919536', 'tblTempUsageDetail_20' ) end [2025-04-16 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919536', 'tblTempVendorCDR_20' ) start [2025-04-16 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919536', 'tblTempVendorCDR_20' ) end [2025-04-16 07:57:17] Production.INFO: ProcessCDR(1,14919536,1,1,2) [2025-04-16 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919536', 'tblTempUsageDetail_20' ) start [2025-04-16 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919536', 'tblTempUsageDetail_20' ) end [2025-04-16 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:57:21] Production.INFO: ==29648== Releasing lock... [2025-04-16 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:58:05 [end_date_ymd] => 2025-04-16 07:58:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 04:58:05' and `end` < '2025-04-16 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-04-16 07:58:18] Production.INFO: count ==98 [2025-04-16 07:58:18] Production.ERROR: pbx CDR StartTime 2025-04-16 04:58:05 - End Time 2025-04-16 07:58:05 [2025-04-16 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919541', 'tblTempUsageDetail_20' ) start [2025-04-16 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919541', 'tblTempUsageDetail_20' ) end [2025-04-16 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919541', 'tblTempVendorCDR_20' ) start [2025-04-16 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919541', 'tblTempVendorCDR_20' ) end [2025-04-16 07:58:18] Production.INFO: ProcessCDR(1,14919541,1,1,2) [2025-04-16 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919541', 'tblTempUsageDetail_20' ) start [2025-04-16 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919541', 'tblTempUsageDetail_20' ) end [2025-04-16 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:58:21] Production.INFO: ==29721== Releasing lock... [2025-04-16 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:58:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 07:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 04:59:04 [end_date_ymd] => 2025-04-16 07:59:04 [RateCDR] => 1 ) [2025-04-16 07:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 04:59:04' and `end` < '2025-04-16 07:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 07:59:17] Production.INFO: count ==96 [2025-04-16 07:59:17] Production.ERROR: pbx CDR StartTime 2025-04-16 04:59:04 - End Time 2025-04-16 07:59:04 [2025-04-16 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919546', 'tblTempUsageDetail_20' ) start [2025-04-16 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919546', 'tblTempUsageDetail_20' ) end [2025-04-16 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919546', 'tblTempVendorCDR_20' ) start [2025-04-16 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919546', 'tblTempVendorCDR_20' ) end [2025-04-16 07:59:17] Production.INFO: ProcessCDR(1,14919546,1,1,2) [2025-04-16 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919546', 'tblTempUsageDetail_20' ) start [2025-04-16 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919546', 'tblTempUsageDetail_20' ) end [2025-04-16 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 07:59:21] Production.INFO: ==29830== Releasing lock... [2025-04-16 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 07:59:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:00:05 [end_date_ymd] => 2025-04-16 08:00:05 [RateCDR] => 1 ) [2025-04-16 08:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:00:05' and `end` < '2025-04-16 08:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:00:18] Production.INFO: count ==102 [2025-04-16 08:00:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:00:05 - End Time 2025-04-16 08:00:05 [2025-04-16 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919552', 'tblTempUsageDetail_20' ) start [2025-04-16 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919552', 'tblTempUsageDetail_20' ) end [2025-04-16 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919552', 'tblTempVendorCDR_20' ) start [2025-04-16 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919552', 'tblTempVendorCDR_20' ) end [2025-04-16 08:00:18] Production.INFO: ProcessCDR(1,14919552,1,1,2) [2025-04-16 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919552', 'tblTempUsageDetail_20' ) start [2025-04-16 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919552', 'tblTempUsageDetail_20' ) end [2025-04-16 08:00:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:00:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:00:21] Production.INFO: ==29904== Releasing lock... [2025-04-16 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:00:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:01:05 [end_date_ymd] => 2025-04-16 08:01:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 05:01:05' and `end` < '2025-04-16 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-04-16 08:01:18] Production.INFO: count ==113 [2025-04-16 08:01:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:01:05 - End Time 2025-04-16 08:01:05 [2025-04-16 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919557', 'tblTempUsageDetail_20' ) start [2025-04-16 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919557', 'tblTempUsageDetail_20' ) end [2025-04-16 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919557', 'tblTempVendorCDR_20' ) start [2025-04-16 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919557', 'tblTempVendorCDR_20' ) end [2025-04-16 08:01:18] Production.INFO: ProcessCDR(1,14919557,1,1,2) [2025-04-16 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919557', 'tblTempUsageDetail_20' ) start [2025-04-16 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919557', 'tblTempUsageDetail_20' ) end [2025-04-16 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:01:21] Production.INFO: ==29991== Releasing lock... [2025-04-16 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:01:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:02:05 [end_date_ymd] => 2025-04-16 08:02:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 05:02:05' and `end` < '2025-04-16 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-04-16 08:02:18] Production.INFO: count ==114 [2025-04-16 08:02:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:02:05 - End Time 2025-04-16 08:02:05 [2025-04-16 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919562', 'tblTempUsageDetail_20' ) start [2025-04-16 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919562', 'tblTempUsageDetail_20' ) end [2025-04-16 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919562', 'tblTempVendorCDR_20' ) start [2025-04-16 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919562', 'tblTempVendorCDR_20' ) end [2025-04-16 08:02:18] Production.INFO: ProcessCDR(1,14919562,1,1,2) [2025-04-16 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919562', 'tblTempUsageDetail_20' ) start [2025-04-16 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919562', 'tblTempUsageDetail_20' ) end [2025-04-16 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:02:21] Production.INFO: ==30067== Releasing lock... [2025-04-16 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:02:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 08:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:03:04 [end_date_ymd] => 2025-04-16 08:03:04 [RateCDR] => 1 ) [2025-04-16 08:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:03:04' and `end` < '2025-04-16 08:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:03:17] Production.INFO: count ==117 [2025-04-16 08:03:17] Production.ERROR: pbx CDR StartTime 2025-04-16 05:03:04 - End Time 2025-04-16 08:03:04 [2025-04-16 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919567', 'tblTempUsageDetail_20' ) start [2025-04-16 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919567', 'tblTempUsageDetail_20' ) end [2025-04-16 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919567', 'tblTempVendorCDR_20' ) start [2025-04-16 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919567', 'tblTempVendorCDR_20' ) end [2025-04-16 08:03:17] Production.INFO: ProcessCDR(1,14919567,1,1,2) [2025-04-16 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919567', 'tblTempUsageDetail_20' ) start [2025-04-16 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919567', 'tblTempUsageDetail_20' ) end [2025-04-16 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:03:22] Production.INFO: ==30142== Releasing lock... [2025-04-16 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:03:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-16 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:04:05 [end_date_ymd] => 2025-04-16 08:04:05 [RateCDR] => 1 ) [2025-04-16 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:04:05' and `end` < '2025-04-16 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:04:18] Production.INFO: count ==130 [2025-04-16 08:04:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:04:05 - End Time 2025-04-16 08:04:05 [2025-04-16 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919572', 'tblTempUsageDetail_20' ) start [2025-04-16 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919572', 'tblTempUsageDetail_20' ) end [2025-04-16 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919572', 'tblTempVendorCDR_20' ) start [2025-04-16 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919572', 'tblTempVendorCDR_20' ) end [2025-04-16 08:04:18] Production.INFO: ProcessCDR(1,14919572,1,1,2) [2025-04-16 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919572', 'tblTempUsageDetail_20' ) start [2025-04-16 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919572', 'tblTempUsageDetail_20' ) end [2025-04-16 08:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:04:23] Production.INFO: ==30213== Releasing lock... [2025-04-16 08:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:04:23] Production.INFO: 29 MB #Memory Used# [2025-04-16 08:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:05:06 [end_date_ymd] => 2025-04-16 08:05:06 [RateCDR] => 1 ) [2025-04-16 08:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:05:06' and `end` < '2025-04-16 08:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:05:18] Production.INFO: count ==130 [2025-04-16 08:05:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:05:06 - End Time 2025-04-16 08:05:06 [2025-04-16 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919577', 'tblTempUsageDetail_20' ) start [2025-04-16 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919577', 'tblTempUsageDetail_20' ) end [2025-04-16 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919577', 'tblTempVendorCDR_20' ) start [2025-04-16 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919577', 'tblTempVendorCDR_20' ) end [2025-04-16 08:05:18] Production.INFO: ProcessCDR(1,14919577,1,1,2) [2025-04-16 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919577', 'tblTempUsageDetail_20' ) start [2025-04-16 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919577', 'tblTempUsageDetail_20' ) end [2025-04-16 08:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:05:22] Production.INFO: ==30286== Releasing lock... [2025-04-16 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:05:22] Production.INFO: 29 MB #Memory Used# [2025-04-16 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:06:05 [end_date_ymd] => 2025-04-16 08:06:05 [RateCDR] => 1 ) [2025-04-16 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:06:05' and `end` < '2025-04-16 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:06:18] Production.INFO: count ==135 [2025-04-16 08:06:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:06:05 - End Time 2025-04-16 08:06:05 [2025-04-16 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919582', 'tblTempUsageDetail_20' ) start [2025-04-16 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919582', 'tblTempUsageDetail_20' ) end [2025-04-16 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919582', 'tblTempVendorCDR_20' ) start [2025-04-16 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919582', 'tblTempVendorCDR_20' ) end [2025-04-16 08:06:18] Production.INFO: ProcessCDR(1,14919582,1,1,2) [2025-04-16 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919582', 'tblTempUsageDetail_20' ) start [2025-04-16 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919582', 'tblTempUsageDetail_20' ) end [2025-04-16 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:06:21] Production.INFO: ==30357== Releasing lock... [2025-04-16 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 08:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:07:06 [end_date_ymd] => 2025-04-16 08:07:06 [RateCDR] => 1 ) [2025-04-16 08: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-04-16 05:07:06' and `end` < '2025-04-16 08: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-04-16 08:07:18] Production.INFO: count ==145 [2025-04-16 08:07:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:07:06 - End Time 2025-04-16 08:07:06 [2025-04-16 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919587', 'tblTempUsageDetail_20' ) start [2025-04-16 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919587', 'tblTempUsageDetail_20' ) end [2025-04-16 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919587', 'tblTempVendorCDR_20' ) start [2025-04-16 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919587', 'tblTempVendorCDR_20' ) end [2025-04-16 08:07:18] Production.INFO: ProcessCDR(1,14919587,1,1,2) [2025-04-16 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919587', 'tblTempUsageDetail_20' ) start [2025-04-16 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919587', 'tblTempUsageDetail_20' ) end [2025-04-16 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:07:22] Production.INFO: ==30430== Releasing lock... [2025-04-16 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:07:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-16 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:08:05 [end_date_ymd] => 2025-04-16 08:08:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 05:08:05' and `end` < '2025-04-16 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-04-16 08:08:18] Production.INFO: count ==149 [2025-04-16 08:08:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:08:05 - End Time 2025-04-16 08:08:05 [2025-04-16 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919592', 'tblTempUsageDetail_20' ) start [2025-04-16 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919592', 'tblTempUsageDetail_20' ) end [2025-04-16 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919592', 'tblTempVendorCDR_20' ) start [2025-04-16 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919592', 'tblTempVendorCDR_20' ) end [2025-04-16 08:08:18] Production.INFO: ProcessCDR(1,14919592,1,1,2) [2025-04-16 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919592', 'tblTempUsageDetail_20' ) start [2025-04-16 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919592', 'tblTempUsageDetail_20' ) end [2025-04-16 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:08:21] Production.INFO: ==30501== Releasing lock... [2025-04-16 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:08:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-16 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:09:05 [end_date_ymd] => 2025-04-16 08:09:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 05:09:05' and `end` < '2025-04-16 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-04-16 08:09:18] Production.INFO: count ==150 [2025-04-16 08:09:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:09:05 - End Time 2025-04-16 08:09:05 [2025-04-16 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919597', 'tblTempUsageDetail_20' ) start [2025-04-16 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919597', 'tblTempUsageDetail_20' ) end [2025-04-16 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919597', 'tblTempVendorCDR_20' ) start [2025-04-16 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919597', 'tblTempVendorCDR_20' ) end [2025-04-16 08:09:18] Production.INFO: ProcessCDR(1,14919597,1,1,2) [2025-04-16 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919597', 'tblTempUsageDetail_20' ) start [2025-04-16 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919597', 'tblTempUsageDetail_20' ) end [2025-04-16 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:09:22] Production.INFO: ==30574== Releasing lock... [2025-04-16 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:09:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-16 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:10:05 [end_date_ymd] => 2025-04-16 08:10:05 [RateCDR] => 1 ) [2025-04-16 08:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:10:05' and `end` < '2025-04-16 08:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:10:18] Production.INFO: count ==162 [2025-04-16 08:10:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:10:05 - End Time 2025-04-16 08:10:05 [2025-04-16 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919602', 'tblTempUsageDetail_20' ) start [2025-04-16 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919602', 'tblTempUsageDetail_20' ) end [2025-04-16 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919602', 'tblTempVendorCDR_20' ) start [2025-04-16 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919602', 'tblTempVendorCDR_20' ) end [2025-04-16 08:10:18] Production.INFO: ProcessCDR(1,14919602,1,1,2) [2025-04-16 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919602', 'tblTempUsageDetail_20' ) start [2025-04-16 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919602', 'tblTempUsageDetail_20' ) end [2025-04-16 08:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:10:21] Production.INFO: ==30648== Releasing lock... [2025-04-16 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:10:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-16 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:11:05 [end_date_ymd] => 2025-04-16 08:11:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 05:11:05' and `end` < '2025-04-16 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-04-16 08:11:17] Production.INFO: count ==171 [2025-04-16 08:11:17] Production.ERROR: pbx CDR StartTime 2025-04-16 05:11:05 - End Time 2025-04-16 08:11:05 [2025-04-16 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919606', 'tblTempUsageDetail_20' ) start [2025-04-16 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919606', 'tblTempUsageDetail_20' ) end [2025-04-16 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919606', 'tblTempVendorCDR_20' ) start [2025-04-16 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919606', 'tblTempVendorCDR_20' ) end [2025-04-16 08:11:17] Production.INFO: ProcessCDR(1,14919606,1,1,2) [2025-04-16 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919606', 'tblTempUsageDetail_20' ) start [2025-04-16 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919606', 'tblTempUsageDetail_20' ) end [2025-04-16 08:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:11:23] Production.INFO: ==30725== Releasing lock... [2025-04-16 08:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:11:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-16 08:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:12:06 [end_date_ymd] => 2025-04-16 08:12:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 05:12:06' and `end` < '2025-04-16 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-04-16 08:12:18] Production.INFO: count ==171 [2025-04-16 08:12:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:12:06 - End Time 2025-04-16 08:12:06 [2025-04-16 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919613', 'tblTempUsageDetail_20' ) start [2025-04-16 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919613', 'tblTempUsageDetail_20' ) end [2025-04-16 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919613', 'tblTempVendorCDR_20' ) start [2025-04-16 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919613', 'tblTempVendorCDR_20' ) end [2025-04-16 08:12:18] Production.INFO: ProcessCDR(1,14919613,1,1,2) [2025-04-16 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919613', 'tblTempUsageDetail_20' ) start [2025-04-16 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919613', 'tblTempUsageDetail_20' ) end [2025-04-16 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:12:22] Production.INFO: ==30800== Releasing lock... [2025-04-16 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:12:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-16 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:13:05 [end_date_ymd] => 2025-04-16 08:13:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 05:13:05' and `end` < '2025-04-16 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-04-16 08:13:18] Production.INFO: count ==176 [2025-04-16 08:13:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:13:05 - End Time 2025-04-16 08:13:05 [2025-04-16 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919618', 'tblTempUsageDetail_20' ) start [2025-04-16 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919618', 'tblTempUsageDetail_20' ) end [2025-04-16 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919618', 'tblTempVendorCDR_20' ) start [2025-04-16 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919618', 'tblTempVendorCDR_20' ) end [2025-04-16 08:13:18] Production.INFO: ProcessCDR(1,14919618,1,1,2) [2025-04-16 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919618', 'tblTempUsageDetail_20' ) start [2025-04-16 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919618', 'tblTempUsageDetail_20' ) end [2025-04-16 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:13:21] Production.INFO: ==30870== Releasing lock... [2025-04-16 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:13:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-16 08:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:14:06 [end_date_ymd] => 2025-04-16 08:14:06 [RateCDR] => 1 ) [2025-04-16 08:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:14:06' and `end` < '2025-04-16 08:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:14:18] Production.INFO: count ==176 [2025-04-16 08:14:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:14:06 - End Time 2025-04-16 08:14:06 [2025-04-16 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919623', 'tblTempUsageDetail_20' ) start [2025-04-16 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919623', 'tblTempUsageDetail_20' ) end [2025-04-16 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919623', 'tblTempVendorCDR_20' ) start [2025-04-16 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919623', 'tblTempVendorCDR_20' ) end [2025-04-16 08:14:18] Production.INFO: ProcessCDR(1,14919623,1,1,2) [2025-04-16 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919623', 'tblTempUsageDetail_20' ) start [2025-04-16 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919623', 'tblTempUsageDetail_20' ) end [2025-04-16 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:14:22] Production.INFO: ==30982== Releasing lock... [2025-04-16 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:14:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-16 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:15:05 [end_date_ymd] => 2025-04-16 08:15:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 05:15:05' and `end` < '2025-04-16 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-04-16 08:15:18] Production.INFO: count ==181 [2025-04-16 08:15:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:15:05 - End Time 2025-04-16 08:15:05 [2025-04-16 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919628', 'tblTempUsageDetail_20' ) start [2025-04-16 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919628', 'tblTempUsageDetail_20' ) end [2025-04-16 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919628', 'tblTempVendorCDR_20' ) start [2025-04-16 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919628', 'tblTempVendorCDR_20' ) end [2025-04-16 08:15:18] Production.INFO: ProcessCDR(1,14919628,1,1,2) [2025-04-16 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919628', 'tblTempUsageDetail_20' ) start [2025-04-16 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919628', 'tblTempUsageDetail_20' ) end [2025-04-16 08:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:15:22] Production.INFO: ==31053== Releasing lock... [2025-04-16 08:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:15:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-16 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:16:05 [end_date_ymd] => 2025-04-16 08:16:05 [RateCDR] => 1 ) [2025-04-16 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:16:05' and `end` < '2025-04-16 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:16:18] Production.INFO: count ==182 [2025-04-16 08:16:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:16:05 - End Time 2025-04-16 08:16:05 [2025-04-16 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919633', 'tblTempUsageDetail_20' ) start [2025-04-16 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919633', 'tblTempUsageDetail_20' ) end [2025-04-16 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919633', 'tblTempVendorCDR_20' ) start [2025-04-16 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919633', 'tblTempVendorCDR_20' ) end [2025-04-16 08:16:18] Production.INFO: ProcessCDR(1,14919633,1,1,2) [2025-04-16 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919633', 'tblTempUsageDetail_20' ) start [2025-04-16 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919633', 'tblTempUsageDetail_20' ) end [2025-04-16 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:16:21] Production.INFO: ==31126== Releasing lock... [2025-04-16 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:16:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-16 08:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:17:04 [end_date_ymd] => 2025-04-16 08:17:04 [RateCDR] => 1 ) [2025-04-16 08:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:17:04' and `end` < '2025-04-16 08:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:17:17] Production.INFO: count ==183 [2025-04-16 08:17:17] Production.ERROR: pbx CDR StartTime 2025-04-16 05:17:04 - End Time 2025-04-16 08:17:04 [2025-04-16 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919638', 'tblTempUsageDetail_20' ) start [2025-04-16 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919638', 'tblTempUsageDetail_20' ) end [2025-04-16 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919638', 'tblTempVendorCDR_20' ) start [2025-04-16 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919638', 'tblTempVendorCDR_20' ) end [2025-04-16 08:17:17] Production.INFO: ProcessCDR(1,14919638,1,1,2) [2025-04-16 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919638', 'tblTempUsageDetail_20' ) start [2025-04-16 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919638', 'tblTempUsageDetail_20' ) end [2025-04-16 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:17:21] Production.INFO: ==31201== Releasing lock... [2025-04-16 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:17:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-16 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:18:05 [end_date_ymd] => 2025-04-16 08:18:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 05:18:05' and `end` < '2025-04-16 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-04-16 08:18:18] Production.INFO: count ==194 [2025-04-16 08:18:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:18:05 - End Time 2025-04-16 08:18:05 [2025-04-16 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919643', 'tblTempUsageDetail_20' ) start [2025-04-16 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919643', 'tblTempUsageDetail_20' ) end [2025-04-16 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919643', 'tblTempVendorCDR_20' ) start [2025-04-16 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919643', 'tblTempVendorCDR_20' ) end [2025-04-16 08:18:18] Production.INFO: ProcessCDR(1,14919643,1,1,2) [2025-04-16 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919643', 'tblTempUsageDetail_20' ) start [2025-04-16 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919643', 'tblTempUsageDetail_20' ) end [2025-04-16 08:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:18:23] Production.INFO: ==31276== Releasing lock... [2025-04-16 08:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:18:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-16 08:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:19:04 [end_date_ymd] => 2025-04-16 08:19:04 [RateCDR] => 1 ) [2025-04-16 08:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:19:04' and `end` < '2025-04-16 08:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:19:17] Production.INFO: count ==194 [2025-04-16 08:19:17] Production.ERROR: pbx CDR StartTime 2025-04-16 05:19:04 - End Time 2025-04-16 08:19:04 [2025-04-16 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919648', 'tblTempUsageDetail_20' ) start [2025-04-16 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919648', 'tblTempUsageDetail_20' ) end [2025-04-16 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919648', 'tblTempVendorCDR_20' ) start [2025-04-16 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919648', 'tblTempVendorCDR_20' ) end [2025-04-16 08:19:17] Production.INFO: ProcessCDR(1,14919648,1,1,2) [2025-04-16 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919648', 'tblTempUsageDetail_20' ) start [2025-04-16 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919648', 'tblTempUsageDetail_20' ) end [2025-04-16 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:19:21] Production.INFO: ==31346== Releasing lock... [2025-04-16 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:19:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-16 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:20:06 [end_date_ymd] => 2025-04-16 08:20:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 05:20:06' and `end` < '2025-04-16 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-04-16 08:20:19] Production.INFO: count ==204 [2025-04-16 08:20:19] Production.ERROR: pbx CDR StartTime 2025-04-16 05:20:06 - End Time 2025-04-16 08:20:06 [2025-04-16 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919653', 'tblTempUsageDetail_20' ) start [2025-04-16 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919653', 'tblTempUsageDetail_20' ) end [2025-04-16 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919653', 'tblTempVendorCDR_20' ) start [2025-04-16 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919653', 'tblTempVendorCDR_20' ) end [2025-04-16 08:20:19] Production.INFO: ProcessCDR(1,14919653,1,1,2) [2025-04-16 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919653', 'tblTempUsageDetail_20' ) start [2025-04-16 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919653', 'tblTempUsageDetail_20' ) end [2025-04-16 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:20:22] Production.INFO: ==31420== Releasing lock... [2025-04-16 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:20:22] Production.INFO: 30 MB #Memory Used# [2025-04-16 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:21:05 [end_date_ymd] => 2025-04-16 08:21:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 05:21:05' and `end` < '2025-04-16 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-04-16 08:21:18] Production.INFO: count ==224 [2025-04-16 08:21:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:21:05 - End Time 2025-04-16 08:21:05 [2025-04-16 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919659', 'tblTempUsageDetail_20' ) start [2025-04-16 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919659', 'tblTempUsageDetail_20' ) end [2025-04-16 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919659', 'tblTempVendorCDR_20' ) start [2025-04-16 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919659', 'tblTempVendorCDR_20' ) end [2025-04-16 08:21:18] Production.INFO: ProcessCDR(1,14919659,1,1,2) [2025-04-16 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919659', 'tblTempUsageDetail_20' ) start [2025-04-16 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919659', 'tblTempUsageDetail_20' ) end [2025-04-16 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:21:21] Production.INFO: ==31493== Releasing lock... [2025-04-16 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:21:21] Production.INFO: 30 MB #Memory Used# [2025-04-16 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:22:05 [end_date_ymd] => 2025-04-16 08:22:05 [RateCDR] => 1 ) [2025-04-16 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:22:05' and `end` < '2025-04-16 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:22:18] Production.INFO: count ==236 [2025-04-16 08:22:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:22:05 - End Time 2025-04-16 08:22:05 [2025-04-16 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919664', 'tblTempUsageDetail_20' ) start [2025-04-16 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919664', 'tblTempUsageDetail_20' ) end [2025-04-16 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919664', 'tblTempVendorCDR_20' ) start [2025-04-16 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919664', 'tblTempVendorCDR_20' ) end [2025-04-16 08:22:18] Production.INFO: ProcessCDR(1,14919664,1,1,2) [2025-04-16 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919664', 'tblTempUsageDetail_20' ) start [2025-04-16 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919664', 'tblTempUsageDetail_20' ) end [2025-04-16 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:22:23] Production.INFO: ==31566== Releasing lock... [2025-04-16 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:22:23] Production.INFO: 30 MB #Memory Used# [2025-04-16 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:23:05 [end_date_ymd] => 2025-04-16 08:23:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 05:23:05' and `end` < '2025-04-16 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-04-16 08:23:18] Production.INFO: count ==236 [2025-04-16 08:23:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:23:05 - End Time 2025-04-16 08:23:05 [2025-04-16 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919669', 'tblTempUsageDetail_20' ) start [2025-04-16 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919669', 'tblTempUsageDetail_20' ) end [2025-04-16 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919669', 'tblTempVendorCDR_20' ) start [2025-04-16 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919669', 'tblTempVendorCDR_20' ) end [2025-04-16 08:23:18] Production.INFO: ProcessCDR(1,14919669,1,1,2) [2025-04-16 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919669', 'tblTempUsageDetail_20' ) start [2025-04-16 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919669', 'tblTempUsageDetail_20' ) end [2025-04-16 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:23:21] Production.INFO: ==31644== Releasing lock... [2025-04-16 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:23:21] Production.INFO: 30 MB #Memory Used# [2025-04-16 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:24:05 [end_date_ymd] => 2025-04-16 08:24:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 05:24:05' and `end` < '2025-04-16 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-04-16 08:24:17] Production.INFO: count ==248 [2025-04-16 08:24:17] Production.ERROR: pbx CDR StartTime 2025-04-16 05:24:05 - End Time 2025-04-16 08:24:05 [2025-04-16 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919674', 'tblTempUsageDetail_20' ) start [2025-04-16 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919674', 'tblTempUsageDetail_20' ) end [2025-04-16 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919674', 'tblTempVendorCDR_20' ) start [2025-04-16 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919674', 'tblTempVendorCDR_20' ) end [2025-04-16 08:24:17] Production.INFO: ProcessCDR(1,14919674,1,1,2) [2025-04-16 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919674', 'tblTempUsageDetail_20' ) start [2025-04-16 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919674', 'tblTempUsageDetail_20' ) end [2025-04-16 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:24:23] Production.INFO: ==31713== Releasing lock... [2025-04-16 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:24:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-16 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:25:06 [end_date_ymd] => 2025-04-16 08:25:06 [RateCDR] => 1 ) [2025-04-16 08: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-04-16 05:25:06' and `end` < '2025-04-16 08: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-04-16 08:25:18] Production.INFO: count ==248 [2025-04-16 08:25:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:25:06 - End Time 2025-04-16 08:25:06 [2025-04-16 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919679', 'tblTempUsageDetail_20' ) start [2025-04-16 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919679', 'tblTempUsageDetail_20' ) end [2025-04-16 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919679', 'tblTempVendorCDR_20' ) start [2025-04-16 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919679', 'tblTempVendorCDR_20' ) end [2025-04-16 08:25:18] Production.INFO: ProcessCDR(1,14919679,1,1,2) [2025-04-16 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919679', 'tblTempUsageDetail_20' ) start [2025-04-16 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919679', 'tblTempUsageDetail_20' ) end [2025-04-16 08:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:25:22] Production.INFO: ==31787== Releasing lock... [2025-04-16 08:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:25:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-16 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:26:05 [end_date_ymd] => 2025-04-16 08:26:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 05:26:05' and `end` < '2025-04-16 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-04-16 08:26:18] Production.INFO: count ==250 [2025-04-16 08:26:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:26:05 - End Time 2025-04-16 08:26:05 [2025-04-16 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919684', 'tblTempUsageDetail_20' ) start [2025-04-16 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919684', 'tblTempUsageDetail_20' ) end [2025-04-16 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919684', 'tblTempVendorCDR_20' ) start [2025-04-16 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919684', 'tblTempVendorCDR_20' ) end [2025-04-16 08:26:18] Production.INFO: ProcessCDR(1,14919684,1,1,2) [2025-04-16 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919684', 'tblTempUsageDetail_20' ) start [2025-04-16 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919684', 'tblTempUsageDetail_20' ) end [2025-04-16 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:26:21] Production.INFO: ==31865== Releasing lock... [2025-04-16 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:26:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-16 08:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:27:06 [end_date_ymd] => 2025-04-16 08:27:06 [RateCDR] => 1 ) [2025-04-16 08: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-04-16 05:27:06' and `end` < '2025-04-16 08: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-04-16 08:27:18] Production.INFO: count ==262 [2025-04-16 08:27:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:27:06 - End Time 2025-04-16 08:27:06 [2025-04-16 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919689', 'tblTempUsageDetail_20' ) start [2025-04-16 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919689', 'tblTempUsageDetail_20' ) end [2025-04-16 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919689', 'tblTempVendorCDR_20' ) start [2025-04-16 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919689', 'tblTempVendorCDR_20' ) end [2025-04-16 08:27:18] Production.INFO: ProcessCDR(1,14919689,1,1,2) [2025-04-16 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919689', 'tblTempUsageDetail_20' ) start [2025-04-16 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919689', 'tblTempUsageDetail_20' ) end [2025-04-16 08:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:27:23] Production.INFO: ==31937== Releasing lock... [2025-04-16 08:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:27:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-16 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:28:05 [end_date_ymd] => 2025-04-16 08:28:05 [RateCDR] => 1 ) [2025-04-16 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:28:05' and `end` < '2025-04-16 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:28:18] Production.INFO: count ==266 [2025-04-16 08:28:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:28:05 - End Time 2025-04-16 08:28:05 [2025-04-16 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919694', 'tblTempUsageDetail_20' ) start [2025-04-16 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919694', 'tblTempUsageDetail_20' ) end [2025-04-16 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919694', 'tblTempVendorCDR_20' ) start [2025-04-16 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919694', 'tblTempVendorCDR_20' ) end [2025-04-16 08:28:18] Production.INFO: ProcessCDR(1,14919694,1,1,2) [2025-04-16 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919694', 'tblTempUsageDetail_20' ) start [2025-04-16 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919694', 'tblTempUsageDetail_20' ) end [2025-04-16 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:28:21] Production.INFO: ==32009== Releasing lock... [2025-04-16 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:28:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-16 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:29:05 [end_date_ymd] => 2025-04-16 08:29:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 05:29:05' and `end` < '2025-04-16 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-04-16 08:29:18] Production.INFO: count ==283 [2025-04-16 08:29:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:29:05 - End Time 2025-04-16 08:29:05 [2025-04-16 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919699', 'tblTempUsageDetail_20' ) start [2025-04-16 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919699', 'tblTempUsageDetail_20' ) end [2025-04-16 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919699', 'tblTempVendorCDR_20' ) start [2025-04-16 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919699', 'tblTempVendorCDR_20' ) end [2025-04-16 08:29:18] Production.INFO: ProcessCDR(1,14919699,1,1,2) [2025-04-16 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919699', 'tblTempUsageDetail_20' ) start [2025-04-16 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919699', 'tblTempUsageDetail_20' ) end [2025-04-16 08:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:29:23] Production.INFO: ==32120== Releasing lock... [2025-04-16 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:29:23] Production.INFO: 31 MB #Memory Used# [2025-04-16 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:30:05 [end_date_ymd] => 2025-04-16 08:30:05 [RateCDR] => 1 ) [2025-04-16 08:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:30:05' and `end` < '2025-04-16 08:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:30:18] Production.INFO: count ==301 [2025-04-16 08:30:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:30:05 - End Time 2025-04-16 08:30:05 [2025-04-16 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919705', 'tblTempUsageDetail_20' ) start [2025-04-16 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919705', 'tblTempUsageDetail_20' ) end [2025-04-16 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919705', 'tblTempVendorCDR_20' ) start [2025-04-16 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919705', 'tblTempVendorCDR_20' ) end [2025-04-16 08:30:18] Production.INFO: ProcessCDR(1,14919705,1,1,2) [2025-04-16 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919705', 'tblTempUsageDetail_20' ) start [2025-04-16 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919705', 'tblTempUsageDetail_20' ) end [2025-04-16 08:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:30:23] Production.INFO: ==32193== Releasing lock... [2025-04-16 08:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:30:23] Production.INFO: 31 MB #Memory Used# [2025-04-16 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:31:05 [end_date_ymd] => 2025-04-16 08:31:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 05:31:05' and `end` < '2025-04-16 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-04-16 08:31:18] Production.INFO: count ==349 [2025-04-16 08:31:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:31:05 - End Time 2025-04-16 08:31:05 [2025-04-16 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919710', 'tblTempUsageDetail_20' ) start [2025-04-16 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919710', 'tblTempUsageDetail_20' ) end [2025-04-16 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919710', 'tblTempVendorCDR_20' ) start [2025-04-16 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919710', 'tblTempVendorCDR_20' ) end [2025-04-16 08:31:18] Production.INFO: ProcessCDR(1,14919710,1,1,2) [2025-04-16 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919710', 'tblTempUsageDetail_20' ) start [2025-04-16 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919710', 'tblTempUsageDetail_20' ) end [2025-04-16 08:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:31:23] Production.INFO: ==32272== Releasing lock... [2025-04-16 08:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:31:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-16 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:32:05 [end_date_ymd] => 2025-04-16 08:32:05 [RateCDR] => 1 ) [2025-04-16 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:32:05' and `end` < '2025-04-16 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:32:17] Production.INFO: count ==354 [2025-04-16 08:32:17] Production.ERROR: pbx CDR StartTime 2025-04-16 05:32:05 - End Time 2025-04-16 08:32:05 [2025-04-16 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919715', 'tblTempUsageDetail_20' ) start [2025-04-16 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919715', 'tblTempUsageDetail_20' ) end [2025-04-16 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919715', 'tblTempVendorCDR_20' ) start [2025-04-16 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919715', 'tblTempVendorCDR_20' ) end [2025-04-16 08:32:17] Production.INFO: ProcessCDR(1,14919715,1,1,2) [2025-04-16 08:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919715', 'tblTempUsageDetail_20' ) start [2025-04-16 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919715', 'tblTempUsageDetail_20' ) end [2025-04-16 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:32:21] Production.INFO: ==32343== Releasing lock... [2025-04-16 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:32:21] Production.INFO: 31 MB #Memory Used# [2025-04-16 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:33:05 [end_date_ymd] => 2025-04-16 08:33:05 [RateCDR] => 1 ) [2025-04-16 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:33:05' and `end` < '2025-04-16 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:33:18] Production.INFO: count ==367 [2025-04-16 08:33:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:33:05 - End Time 2025-04-16 08:33:05 [2025-04-16 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919720', 'tblTempUsageDetail_20' ) start [2025-04-16 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919720', 'tblTempUsageDetail_20' ) end [2025-04-16 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919720', 'tblTempVendorCDR_20' ) start [2025-04-16 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919720', 'tblTempVendorCDR_20' ) end [2025-04-16 08:33:18] Production.INFO: ProcessCDR(1,14919720,1,1,2) [2025-04-16 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919720', 'tblTempUsageDetail_20' ) start [2025-04-16 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919720', 'tblTempUsageDetail_20' ) end [2025-04-16 08:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:33:23] Production.INFO: ==32416== Releasing lock... [2025-04-16 08:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:33:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-16 08:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:34:06 [end_date_ymd] => 2025-04-16 08:34:06 [RateCDR] => 1 ) [2025-04-16 08: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-04-16 05:34:06' and `end` < '2025-04-16 08: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-04-16 08:34:18] Production.INFO: count ==388 [2025-04-16 08:34:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:34:06 - End Time 2025-04-16 08:34:06 [2025-04-16 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919725', 'tblTempUsageDetail_20' ) start [2025-04-16 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919725', 'tblTempUsageDetail_20' ) end [2025-04-16 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919725', 'tblTempVendorCDR_20' ) start [2025-04-16 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919725', 'tblTempVendorCDR_20' ) end [2025-04-16 08:34:19] Production.INFO: ProcessCDR(1,14919725,1,1,2) [2025-04-16 08:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919725', 'tblTempUsageDetail_20' ) start [2025-04-16 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919725', 'tblTempUsageDetail_20' ) end [2025-04-16 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:34:22] Production.INFO: ==32492== Releasing lock... [2025-04-16 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:34:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-16 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:35:05 [end_date_ymd] => 2025-04-16 08:35:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 05:35:05' and `end` < '2025-04-16 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-04-16 08:35:18] Production.INFO: count ==409 [2025-04-16 08:35:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:35:05 - End Time 2025-04-16 08:35:05 [2025-04-16 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919730', 'tblTempUsageDetail_20' ) start [2025-04-16 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919730', 'tblTempUsageDetail_20' ) end [2025-04-16 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919730', 'tblTempVendorCDR_20' ) start [2025-04-16 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919730', 'tblTempVendorCDR_20' ) end [2025-04-16 08:35:18] Production.INFO: ProcessCDR(1,14919730,1,1,2) [2025-04-16 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919730', 'tblTempUsageDetail_20' ) start [2025-04-16 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919730', 'tblTempUsageDetail_20' ) end [2025-04-16 08:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:35:23] Production.INFO: ==32562== Releasing lock... [2025-04-16 08:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:35:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-16 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:36:05 [end_date_ymd] => 2025-04-16 08:36:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 05:36:05' and `end` < '2025-04-16 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-04-16 08:36:18] Production.INFO: count ==415 [2025-04-16 08:36:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:36:05 - End Time 2025-04-16 08:36:05 [2025-04-16 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919735', 'tblTempUsageDetail_20' ) start [2025-04-16 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919735', 'tblTempUsageDetail_20' ) end [2025-04-16 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919735', 'tblTempVendorCDR_20' ) start [2025-04-16 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919735', 'tblTempVendorCDR_20' ) end [2025-04-16 08:36:18] Production.INFO: ProcessCDR(1,14919735,1,1,2) [2025-04-16 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919735', 'tblTempUsageDetail_20' ) start [2025-04-16 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919735', 'tblTempUsageDetail_20' ) end [2025-04-16 08:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:36:23] Production.INFO: ==32634== Releasing lock... [2025-04-16 08:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:36:23] Production.INFO: 32 MB #Memory Used# [2025-04-16 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:37:05 [end_date_ymd] => 2025-04-16 08:37:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 05:37:05' and `end` < '2025-04-16 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-04-16 08:37:17] Production.INFO: count ==427 [2025-04-16 08:37:17] Production.ERROR: pbx CDR StartTime 2025-04-16 05:37:05 - End Time 2025-04-16 08:37:05 [2025-04-16 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919740', 'tblTempUsageDetail_20' ) start [2025-04-16 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919740', 'tblTempUsageDetail_20' ) end [2025-04-16 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919740', 'tblTempVendorCDR_20' ) start [2025-04-16 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919740', 'tblTempVendorCDR_20' ) end [2025-04-16 08:37:17] Production.INFO: ProcessCDR(1,14919740,1,1,2) [2025-04-16 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919740', 'tblTempUsageDetail_20' ) start [2025-04-16 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919740', 'tblTempUsageDetail_20' ) end [2025-04-16 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:37:21] Production.INFO: ==32704== Releasing lock... [2025-04-16 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:37:21] Production.INFO: 32 MB #Memory Used# [2025-04-16 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:38:05 [end_date_ymd] => 2025-04-16 08:38:05 [RateCDR] => 1 ) [2025-04-16 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:38:05' and `end` < '2025-04-16 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:38:18] Production.INFO: count ==444 [2025-04-16 08:38:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:38:05 - End Time 2025-04-16 08:38:05 [2025-04-16 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919745', 'tblTempUsageDetail_20' ) start [2025-04-16 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919745', 'tblTempUsageDetail_20' ) end [2025-04-16 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919745', 'tblTempVendorCDR_20' ) start [2025-04-16 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919745', 'tblTempVendorCDR_20' ) end [2025-04-16 08:38:18] Production.INFO: ProcessCDR(1,14919745,1,1,2) [2025-04-16 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919745', 'tblTempUsageDetail_20' ) start [2025-04-16 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919745', 'tblTempUsageDetail_20' ) end [2025-04-16 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:38:23] Production.INFO: ==318== Releasing lock... [2025-04-16 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:38:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-16 08:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:39:04 [end_date_ymd] => 2025-04-16 08:39:04 [RateCDR] => 1 ) [2025-04-16 08:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:39:04' and `end` < '2025-04-16 08:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:39:17] Production.INFO: count ==450 [2025-04-16 08:39:17] Production.ERROR: pbx CDR StartTime 2025-04-16 05:39:04 - End Time 2025-04-16 08:39:04 [2025-04-16 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919750', 'tblTempUsageDetail_20' ) start [2025-04-16 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919750', 'tblTempUsageDetail_20' ) end [2025-04-16 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919750', 'tblTempVendorCDR_20' ) start [2025-04-16 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919750', 'tblTempVendorCDR_20' ) end [2025-04-16 08:39:17] Production.INFO: ProcessCDR(1,14919750,1,1,2) [2025-04-16 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919750', 'tblTempUsageDetail_20' ) start [2025-04-16 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919750', 'tblTempUsageDetail_20' ) end [2025-04-16 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:39:22] Production.INFO: ==400== Releasing lock... [2025-04-16 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:39:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-16 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:40:06 [end_date_ymd] => 2025-04-16 08:40:06 [RateCDR] => 1 ) [2025-04-16 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:40:06' and `end` < '2025-04-16 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:40:19] Production.INFO: count ==468 [2025-04-16 08:40:19] Production.ERROR: pbx CDR StartTime 2025-04-16 05:40:06 - End Time 2025-04-16 08:40:06 [2025-04-16 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919756', 'tblTempUsageDetail_20' ) start [2025-04-16 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919756', 'tblTempUsageDetail_20' ) end [2025-04-16 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919756', 'tblTempVendorCDR_20' ) start [2025-04-16 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919756', 'tblTempVendorCDR_20' ) end [2025-04-16 08:40:19] Production.INFO: ProcessCDR(1,14919756,1,1,2) [2025-04-16 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919756', 'tblTempUsageDetail_20' ) start [2025-04-16 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919756', 'tblTempUsageDetail_20' ) end [2025-04-16 08:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:40:24] Production.INFO: ==475== Releasing lock... [2025-04-16 08:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:40:24] Production.INFO: 32 MB #Memory Used# [2025-04-16 08:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:41:04 [end_date_ymd] => 2025-04-16 08:41:04 [RateCDR] => 1 ) [2025-04-16 08: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-04-16 05:41:04' and `end` < '2025-04-16 08: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-04-16 08:41:17] Production.INFO: count ==480 [2025-04-16 08:41:17] Production.ERROR: pbx CDR StartTime 2025-04-16 05:41:04 - End Time 2025-04-16 08:41:04 [2025-04-16 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919761', 'tblTempUsageDetail_20' ) start [2025-04-16 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919761', 'tblTempUsageDetail_20' ) end [2025-04-16 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919761', 'tblTempVendorCDR_20' ) start [2025-04-16 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919761', 'tblTempVendorCDR_20' ) end [2025-04-16 08:41:17] Production.INFO: ProcessCDR(1,14919761,1,1,2) [2025-04-16 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919761', 'tblTempUsageDetail_20' ) start [2025-04-16 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919761', 'tblTempUsageDetail_20' ) end [2025-04-16 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:41:22] Production.INFO: ==556== Releasing lock... [2025-04-16 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:41:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-16 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:42:05 [end_date_ymd] => 2025-04-16 08:42:05 [RateCDR] => 1 ) [2025-04-16 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:42:05' and `end` < '2025-04-16 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:42:18] Production.INFO: count ==480 [2025-04-16 08:42:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:42:05 - End Time 2025-04-16 08:42:05 [2025-04-16 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919766', 'tblTempUsageDetail_20' ) start [2025-04-16 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919766', 'tblTempUsageDetail_20' ) end [2025-04-16 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919766', 'tblTempVendorCDR_20' ) start [2025-04-16 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919766', 'tblTempVendorCDR_20' ) end [2025-04-16 08:42:18] Production.INFO: ProcessCDR(1,14919766,1,1,2) [2025-04-16 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919766', 'tblTempUsageDetail_20' ) start [2025-04-16 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919766', 'tblTempUsageDetail_20' ) end [2025-04-16 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:42:21] Production.INFO: ==638== Releasing lock... [2025-04-16 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:42:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-16 08:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:43:06 [end_date_ymd] => 2025-04-16 08:43:06 [RateCDR] => 1 ) [2025-04-16 08: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-04-16 05:43:06' and `end` < '2025-04-16 08: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-04-16 08:43:18] Production.INFO: count ==481 [2025-04-16 08:43:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:43:06 - End Time 2025-04-16 08:43:06 [2025-04-16 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919771', 'tblTempUsageDetail_20' ) start [2025-04-16 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919771', 'tblTempUsageDetail_20' ) end [2025-04-16 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919771', 'tblTempVendorCDR_20' ) start [2025-04-16 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919771', 'tblTempVendorCDR_20' ) end [2025-04-16 08:43:19] Production.INFO: ProcessCDR(1,14919771,1,1,2) [2025-04-16 08:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919771', 'tblTempUsageDetail_20' ) start [2025-04-16 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919771', 'tblTempUsageDetail_20' ) end [2025-04-16 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:43:22] Production.INFO: ==738== Releasing lock... [2025-04-16 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:43:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-16 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:44:05 [end_date_ymd] => 2025-04-16 08:44:05 [RateCDR] => 1 ) [2025-04-16 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:44:05' and `end` < '2025-04-16 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-04-16 08:44:18] Production.INFO: count ==482 [2025-04-16 08:44:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:44:05 - End Time 2025-04-16 08:44:05 [2025-04-16 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919776', 'tblTempUsageDetail_20' ) start [2025-04-16 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919776', 'tblTempUsageDetail_20' ) end [2025-04-16 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919776', 'tblTempVendorCDR_20' ) start [2025-04-16 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919776', 'tblTempVendorCDR_20' ) end [2025-04-16 08:44:18] Production.INFO: ProcessCDR(1,14919776,1,1,2) [2025-04-16 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919776', 'tblTempUsageDetail_20' ) start [2025-04-16 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919776', 'tblTempUsageDetail_20' ) end [2025-04-16 08:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:44:23] Production.INFO: ==817== Releasing lock... [2025-04-16 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:44:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-16 08:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:45:06 [end_date_ymd] => 2025-04-16 08:45:06 [RateCDR] => 1 ) [2025-04-16 08:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:45:06' and `end` < '2025-04-16 08:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:45:18] Production.INFO: count ==483 [2025-04-16 08:45:19] Production.ERROR: pbx CDR StartTime 2025-04-16 05:45:06 - End Time 2025-04-16 08:45:06 [2025-04-16 08:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919781', 'tblTempUsageDetail_20' ) start [2025-04-16 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919781', 'tblTempUsageDetail_20' ) end [2025-04-16 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919781', 'tblTempVendorCDR_20' ) start [2025-04-16 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919781', 'tblTempVendorCDR_20' ) end [2025-04-16 08:45:19] Production.INFO: ProcessCDR(1,14919781,1,1,2) [2025-04-16 08:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919781', 'tblTempUsageDetail_20' ) start [2025-04-16 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919781', 'tblTempUsageDetail_20' ) end [2025-04-16 08:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:45:23] Production.INFO: ==928== Releasing lock... [2025-04-16 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:45:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-16 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:46:05 [end_date_ymd] => 2025-04-16 08:46:05 [RateCDR] => 1 ) [2025-04-16 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:46:05' and `end` < '2025-04-16 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:46:17] Production.INFO: count ==495 [2025-04-16 08:46:17] Production.ERROR: pbx CDR StartTime 2025-04-16 05:46:05 - End Time 2025-04-16 08:46:05 [2025-04-16 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919786', 'tblTempUsageDetail_20' ) start [2025-04-16 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919786', 'tblTempUsageDetail_20' ) end [2025-04-16 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919786', 'tblTempVendorCDR_20' ) start [2025-04-16 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919786', 'tblTempVendorCDR_20' ) end [2025-04-16 08:46:18] Production.INFO: ProcessCDR(1,14919786,1,1,2) [2025-04-16 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919786', 'tblTempUsageDetail_20' ) start [2025-04-16 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919786', 'tblTempUsageDetail_20' ) end [2025-04-16 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:46:22] Production.INFO: ==1001== Releasing lock... [2025-04-16 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:46:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-16 08:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:47:06 [end_date_ymd] => 2025-04-16 08:47:06 [RateCDR] => 1 ) [2025-04-16 08: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-04-16 05:47:06' and `end` < '2025-04-16 08: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-04-16 08:47:19] Production.INFO: count ==496 [2025-04-16 08:47:19] Production.ERROR: pbx CDR StartTime 2025-04-16 05:47:06 - End Time 2025-04-16 08:47:06 [2025-04-16 08:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919791', 'tblTempUsageDetail_20' ) start [2025-04-16 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919791', 'tblTempUsageDetail_20' ) end [2025-04-16 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919791', 'tblTempVendorCDR_20' ) start [2025-04-16 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919791', 'tblTempVendorCDR_20' ) end [2025-04-16 08:47:19] Production.INFO: ProcessCDR(1,14919791,1,1,2) [2025-04-16 08:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919791', 'tblTempUsageDetail_20' ) start [2025-04-16 08:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919791', 'tblTempUsageDetail_20' ) end [2025-04-16 08:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:47:24] Production.INFO: ==1076== Releasing lock... [2025-04-16 08:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:47:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-16 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:48:05 [end_date_ymd] => 2025-04-16 08:48:05 [RateCDR] => 1 ) [2025-04-16 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:48:05' and `end` < '2025-04-16 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:48:18] Production.INFO: count ==497 [2025-04-16 08:48:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:48:05 - End Time 2025-04-16 08:48:05 [2025-04-16 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919796', 'tblTempUsageDetail_20' ) start [2025-04-16 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919796', 'tblTempUsageDetail_20' ) end [2025-04-16 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919796', 'tblTempVendorCDR_20' ) start [2025-04-16 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919796', 'tblTempVendorCDR_20' ) end [2025-04-16 08:48:18] Production.INFO: ProcessCDR(1,14919796,1,1,2) [2025-04-16 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919796', 'tblTempUsageDetail_20' ) start [2025-04-16 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919796', 'tblTempUsageDetail_20' ) end [2025-04-16 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:48:23] Production.INFO: ==1149== Releasing lock... [2025-04-16 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:48:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-16 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:49:05 [end_date_ymd] => 2025-04-16 08:49:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 05:49:05' and `end` < '2025-04-16 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-04-16 08:49:18] Production.INFO: count ==502 [2025-04-16 08:49:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:49:05 - End Time 2025-04-16 08:49:05 [2025-04-16 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919801', 'tblTempUsageDetail_20' ) start [2025-04-16 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919801', 'tblTempUsageDetail_20' ) end [2025-04-16 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919801', 'tblTempVendorCDR_20' ) start [2025-04-16 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919801', 'tblTempVendorCDR_20' ) end [2025-04-16 08:49:18] Production.INFO: ProcessCDR(1,14919801,1,1,2) [2025-04-16 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919801', 'tblTempUsageDetail_20' ) start [2025-04-16 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919801', 'tblTempUsageDetail_20' ) end [2025-04-16 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:49:21] Production.INFO: ==1223== Releasing lock... [2025-04-16 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:49:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-16 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:50:05 [end_date_ymd] => 2025-04-16 08:50:05 [RateCDR] => 1 ) [2025-04-16 08:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:50:05' and `end` < '2025-04-16 08:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:50:18] Production.INFO: count ==514 [2025-04-16 08:50:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:50:05 - End Time 2025-04-16 08:50:05 [2025-04-16 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919807', 'tblTempUsageDetail_20' ) start [2025-04-16 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919807', 'tblTempUsageDetail_20' ) end [2025-04-16 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919807', 'tblTempVendorCDR_20' ) start [2025-04-16 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919807', 'tblTempVendorCDR_20' ) end [2025-04-16 08:50:18] Production.INFO: ProcessCDR(1,14919807,1,1,2) [2025-04-16 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919807', 'tblTempUsageDetail_20' ) start [2025-04-16 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919807', 'tblTempUsageDetail_20' ) end [2025-04-16 08:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:50:21] Production.INFO: ==1306== Releasing lock... [2025-04-16 08:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:50:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-16 08:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:51:04 [end_date_ymd] => 2025-04-16 08:51:04 [RateCDR] => 1 ) [2025-04-16 08:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:51:04' and `end` < '2025-04-16 08:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:51:17] Production.INFO: count ==540 [2025-04-16 08:51:17] Production.ERROR: pbx CDR StartTime 2025-04-16 05:51:04 - End Time 2025-04-16 08:51:04 [2025-04-16 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919812', 'tblTempUsageDetail_20' ) start [2025-04-16 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919812', 'tblTempUsageDetail_20' ) end [2025-04-16 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919812', 'tblTempVendorCDR_20' ) start [2025-04-16 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919812', 'tblTempVendorCDR_20' ) end [2025-04-16 08:51:17] Production.INFO: ProcessCDR(1,14919812,1,1,2) [2025-04-16 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919812', 'tblTempUsageDetail_20' ) start [2025-04-16 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919812', 'tblTempUsageDetail_20' ) end [2025-04-16 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:51:21] Production.INFO: ==1379== Releasing lock... [2025-04-16 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:51:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:52:05 [end_date_ymd] => 2025-04-16 08:52:05 [RateCDR] => 1 ) [2025-04-16 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:52:05' and `end` < '2025-04-16 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:52:18] Production.INFO: count ==550 [2025-04-16 08:52:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:52:05 - End Time 2025-04-16 08:52:05 [2025-04-16 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919817', 'tblTempUsageDetail_20' ) start [2025-04-16 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919817', 'tblTempUsageDetail_20' ) end [2025-04-16 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919817', 'tblTempVendorCDR_20' ) start [2025-04-16 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919817', 'tblTempVendorCDR_20' ) end [2025-04-16 08:52:18] Production.INFO: ProcessCDR(1,14919817,1,1,2) [2025-04-16 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919817', 'tblTempUsageDetail_20' ) start [2025-04-16 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919817', 'tblTempUsageDetail_20' ) end [2025-04-16 08:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:52:23] Production.INFO: ==1452== Releasing lock... [2025-04-16 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:52:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-16 08:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:53:04 [end_date_ymd] => 2025-04-16 08:53:04 [RateCDR] => 1 ) [2025-04-16 08:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:53:04' and `end` < '2025-04-16 08:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:53:17] Production.INFO: count ==565 [2025-04-16 08:53:17] Production.ERROR: pbx CDR StartTime 2025-04-16 05:53:04 - End Time 2025-04-16 08:53:04 [2025-04-16 08:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919822', 'tblTempUsageDetail_20' ) start [2025-04-16 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919822', 'tblTempUsageDetail_20' ) end [2025-04-16 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919822', 'tblTempVendorCDR_20' ) start [2025-04-16 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919822', 'tblTempVendorCDR_20' ) end [2025-04-16 08:53:17] Production.INFO: ProcessCDR(1,14919822,1,1,2) [2025-04-16 08:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919822', 'tblTempUsageDetail_20' ) start [2025-04-16 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919822', 'tblTempUsageDetail_20' ) end [2025-04-16 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:53:22] Production.INFO: ==1553== Releasing lock... [2025-04-16 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:53:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-16 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:54:05 [end_date_ymd] => 2025-04-16 08:54:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 05:54:05' and `end` < '2025-04-16 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-04-16 08:54:18] Production.INFO: count ==578 [2025-04-16 08:54:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:54:05 - End Time 2025-04-16 08:54:05 [2025-04-16 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919827', 'tblTempUsageDetail_20' ) start [2025-04-16 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919827', 'tblTempUsageDetail_20' ) end [2025-04-16 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919827', 'tblTempVendorCDR_20' ) start [2025-04-16 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919827', 'tblTempVendorCDR_20' ) end [2025-04-16 08:54:18] Production.INFO: ProcessCDR(1,14919827,1,1,2) [2025-04-16 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919827', 'tblTempUsageDetail_20' ) start [2025-04-16 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919827', 'tblTempUsageDetail_20' ) end [2025-04-16 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:54:23] Production.INFO: ==1630== Releasing lock... [2025-04-16 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:54:23] Production.INFO: 33 MB #Memory Used# [2025-04-16 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:55:05 [end_date_ymd] => 2025-04-16 08:55:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 05:55:05' and `end` < '2025-04-16 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-04-16 08:55:17] Production.INFO: count ==583 [2025-04-16 08:55:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:55:05 - End Time 2025-04-16 08:55:05 [2025-04-16 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919832', 'tblTempUsageDetail_20' ) start [2025-04-16 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919832', 'tblTempUsageDetail_20' ) end [2025-04-16 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919832', 'tblTempVendorCDR_20' ) start [2025-04-16 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919832', 'tblTempVendorCDR_20' ) end [2025-04-16 08:55:18] Production.INFO: ProcessCDR(1,14919832,1,1,2) [2025-04-16 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919832', 'tblTempUsageDetail_20' ) start [2025-04-16 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919832', 'tblTempUsageDetail_20' ) end [2025-04-16 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:55:21] Production.INFO: ==1704== Releasing lock... [2025-04-16 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:55:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-16 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:56:05 [end_date_ymd] => 2025-04-16 08:56:05 [RateCDR] => 1 ) [2025-04-16 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:56:05' and `end` < '2025-04-16 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:56:18] Production.INFO: count ==586 [2025-04-16 08:56:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:56:05 - End Time 2025-04-16 08:56:05 [2025-04-16 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919837', 'tblTempUsageDetail_20' ) start [2025-04-16 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919837', 'tblTempUsageDetail_20' ) end [2025-04-16 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919837', 'tblTempVendorCDR_20' ) start [2025-04-16 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919837', 'tblTempVendorCDR_20' ) end [2025-04-16 08:56:18] Production.INFO: ProcessCDR(1,14919837,1,1,2) [2025-04-16 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919837', 'tblTempUsageDetail_20' ) start [2025-04-16 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919837', 'tblTempUsageDetail_20' ) end [2025-04-16 08:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:56:23] Production.INFO: ==1776== Releasing lock... [2025-04-16 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:56:23] Production.INFO: 33 MB #Memory Used# [2025-04-16 08:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:57:04 [end_date_ymd] => 2025-04-16 08:57:04 [RateCDR] => 1 ) [2025-04-16 08:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:57:04' and `end` < '2025-04-16 08:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:57:17] Production.INFO: count ==586 [2025-04-16 08:57:17] Production.ERROR: pbx CDR StartTime 2025-04-16 05:57:04 - End Time 2025-04-16 08:57:04 [2025-04-16 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919842', 'tblTempUsageDetail_20' ) start [2025-04-16 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919842', 'tblTempUsageDetail_20' ) end [2025-04-16 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919842', 'tblTempVendorCDR_20' ) start [2025-04-16 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919842', 'tblTempVendorCDR_20' ) end [2025-04-16 08:57:17] Production.INFO: ProcessCDR(1,14919842,1,1,2) [2025-04-16 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919842', 'tblTempUsageDetail_20' ) start [2025-04-16 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919842', 'tblTempUsageDetail_20' ) end [2025-04-16 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:57:22] Production.INFO: ==1854== Releasing lock... [2025-04-16 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:57:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-16 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:58:05 [end_date_ymd] => 2025-04-16 08:58:05 [RateCDR] => 1 ) [2025-04-16 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 05:58:05' and `end` < '2025-04-16 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 08:58:18] Production.INFO: count ==589 [2025-04-16 08:58:18] Production.ERROR: pbx CDR StartTime 2025-04-16 05:58:05 - End Time 2025-04-16 08:58:05 [2025-04-16 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919847', 'tblTempUsageDetail_20' ) start [2025-04-16 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919847', 'tblTempUsageDetail_20' ) end [2025-04-16 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919847', 'tblTempVendorCDR_20' ) start [2025-04-16 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919847', 'tblTempVendorCDR_20' ) end [2025-04-16 08:58:18] Production.INFO: ProcessCDR(1,14919847,1,1,2) [2025-04-16 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919847', 'tblTempUsageDetail_20' ) start [2025-04-16 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919847', 'tblTempUsageDetail_20' ) end [2025-04-16 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:58:23] Production.INFO: ==1930== Releasing lock... [2025-04-16 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:58:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 05:59:05 [end_date_ymd] => 2025-04-16 08:59:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 05:59:05' and `end` < '2025-04-16 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-04-16 08:59:17] Production.INFO: count ==594 [2025-04-16 08:59:17] Production.ERROR: pbx CDR StartTime 2025-04-16 05:59:05 - End Time 2025-04-16 08:59:05 [2025-04-16 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919852', 'tblTempUsageDetail_20' ) start [2025-04-16 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919852', 'tblTempUsageDetail_20' ) end [2025-04-16 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919852', 'tblTempVendorCDR_20' ) start [2025-04-16 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919852', 'tblTempVendorCDR_20' ) end [2025-04-16 08:59:17] Production.INFO: ProcessCDR(1,14919852,1,1,2) [2025-04-16 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 08:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919852', 'tblTempUsageDetail_20' ) start [2025-04-16 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919852', 'tblTempUsageDetail_20' ) end [2025-04-16 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 08:59:21] Production.INFO: ==2002== Releasing lock... [2025-04-16 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 08:59:21] Production.INFO: 33 MB #Memory Used# [2025-04-16 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:00:05 [end_date_ymd] => 2025-04-16 09:00:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:00:05' and `end` < '2025-04-16 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-04-16 09:00:18] Production.INFO: count ==601 [2025-04-16 09:00:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:00:05 - End Time 2025-04-16 09:00:05 [2025-04-16 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919857', 'tblTempUsageDetail_20' ) start [2025-04-16 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919857', 'tblTempUsageDetail_20' ) end [2025-04-16 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919857', 'tblTempVendorCDR_20' ) start [2025-04-16 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919857', 'tblTempVendorCDR_20' ) end [2025-04-16 09:00:18] Production.INFO: ProcessCDR(1,14919857,1,1,2) [2025-04-16 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919857', 'tblTempUsageDetail_20' ) start [2025-04-16 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919857', 'tblTempUsageDetail_20' ) end [2025-04-16 09:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:00:23] Production.INFO: ==2119== Releasing lock... [2025-04-16 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:00:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-16 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:01:05 [end_date_ymd] => 2025-04-16 09:01:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:01:05' and `end` < '2025-04-16 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-04-16 09:01:18] Production.INFO: count ==619 [2025-04-16 09:01:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:01:05 - End Time 2025-04-16 09:01:05 [2025-04-16 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919863', 'tblTempUsageDetail_20' ) start [2025-04-16 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919863', 'tblTempUsageDetail_20' ) end [2025-04-16 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919863', 'tblTempVendorCDR_20' ) start [2025-04-16 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919863', 'tblTempVendorCDR_20' ) end [2025-04-16 09:01:18] Production.INFO: ProcessCDR(1,14919863,1,1,2) [2025-04-16 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919863', 'tblTempUsageDetail_20' ) start [2025-04-16 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919863', 'tblTempUsageDetail_20' ) end [2025-04-16 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:01:22] Production.INFO: ==2206== Releasing lock... [2025-04-16 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:01:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-16 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:02:05 [end_date_ymd] => 2025-04-16 09:02:05 [RateCDR] => 1 ) [2025-04-16 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 06:02:05' and `end` < '2025-04-16 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 09:02:18] Production.INFO: count ==621 [2025-04-16 09:02:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:02:05 - End Time 2025-04-16 09:02:05 [2025-04-16 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919868', 'tblTempUsageDetail_20' ) start [2025-04-16 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919868', 'tblTempUsageDetail_20' ) end [2025-04-16 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919868', 'tblTempVendorCDR_20' ) start [2025-04-16 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919868', 'tblTempVendorCDR_20' ) end [2025-04-16 09:02:18] Production.INFO: ProcessCDR(1,14919868,1,1,2) [2025-04-16 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919868', 'tblTempUsageDetail_20' ) start [2025-04-16 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919868', 'tblTempUsageDetail_20' ) end [2025-04-16 09:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:02:21] Production.INFO: ==2277== Releasing lock... [2025-04-16 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:02:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-16 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:03:05 [end_date_ymd] => 2025-04-16 09:03:05 [RateCDR] => 1 ) [2025-04-16 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 06:03:05' and `end` < '2025-04-16 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 09:03:18] Production.INFO: count ==627 [2025-04-16 09:03:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:03:05 - End Time 2025-04-16 09:03:05 [2025-04-16 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919873', 'tblTempUsageDetail_20' ) start [2025-04-16 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919873', 'tblTempUsageDetail_20' ) end [2025-04-16 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919873', 'tblTempVendorCDR_20' ) start [2025-04-16 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919873', 'tblTempVendorCDR_20' ) end [2025-04-16 09:03:18] Production.INFO: ProcessCDR(1,14919873,1,1,2) [2025-04-16 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919873', 'tblTempUsageDetail_20' ) start [2025-04-16 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919873', 'tblTempUsageDetail_20' ) end [2025-04-16 09:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:03:22] Production.INFO: ==2348== Releasing lock... [2025-04-16 09:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:03:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-16 09:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:04:04 [end_date_ymd] => 2025-04-16 09:04:04 [RateCDR] => 1 ) [2025-04-16 09:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 06:04:04' and `end` < '2025-04-16 09:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 09:04:17] Production.INFO: count ==641 [2025-04-16 09:04:17] Production.ERROR: pbx CDR StartTime 2025-04-16 06:04:04 - End Time 2025-04-16 09:04:04 [2025-04-16 09:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919878', 'tblTempUsageDetail_20' ) start [2025-04-16 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919878', 'tblTempUsageDetail_20' ) end [2025-04-16 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919878', 'tblTempVendorCDR_20' ) start [2025-04-16 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919878', 'tblTempVendorCDR_20' ) end [2025-04-16 09:04:17] Production.INFO: ProcessCDR(1,14919878,1,1,2) [2025-04-16 09:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919878', 'tblTempUsageDetail_20' ) start [2025-04-16 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919878', 'tblTempUsageDetail_20' ) end [2025-04-16 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:04:23] Production.INFO: ==2419== Releasing lock... [2025-04-16 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:04:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-16 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:05:05 [end_date_ymd] => 2025-04-16 09:05:05 [RateCDR] => 1 ) [2025-04-16 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 06:05:05' and `end` < '2025-04-16 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 09:05:18] Production.INFO: count ==649 [2025-04-16 09:05:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:05:05 - End Time 2025-04-16 09:05:05 [2025-04-16 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919883', 'tblTempUsageDetail_20' ) start [2025-04-16 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919883', 'tblTempUsageDetail_20' ) end [2025-04-16 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919883', 'tblTempVendorCDR_20' ) start [2025-04-16 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919883', 'tblTempVendorCDR_20' ) end [2025-04-16 09:05:18] Production.INFO: ProcessCDR(1,14919883,1,1,2) [2025-04-16 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919883', 'tblTempUsageDetail_20' ) start [2025-04-16 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919883', 'tblTempUsageDetail_20' ) end [2025-04-16 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:05:23] Production.INFO: ==2493== Releasing lock... [2025-04-16 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:05:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-16 09:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:06:04 [end_date_ymd] => 2025-04-16 09:06:04 [RateCDR] => 1 ) [2025-04-16 09:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 06:06:04' and `end` < '2025-04-16 09:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 09:06:17] Production.INFO: count ==661 [2025-04-16 09:06:17] Production.ERROR: pbx CDR StartTime 2025-04-16 06:06:04 - End Time 2025-04-16 09:06:04 [2025-04-16 09:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919888', 'tblTempUsageDetail_20' ) start [2025-04-16 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919888', 'tblTempUsageDetail_20' ) end [2025-04-16 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919888', 'tblTempVendorCDR_20' ) start [2025-04-16 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919888', 'tblTempVendorCDR_20' ) end [2025-04-16 09:06:17] Production.INFO: ProcessCDR(1,14919888,1,1,2) [2025-04-16 09:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919888', 'tblTempUsageDetail_20' ) start [2025-04-16 09:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919888', 'tblTempUsageDetail_20' ) end [2025-04-16 09:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:06:21] Production.INFO: ==2564== Releasing lock... [2025-04-16 09:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:06:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-16 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:07:05 [end_date_ymd] => 2025-04-16 09:07:05 [RateCDR] => 1 ) [2025-04-16 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 06:07:05' and `end` < '2025-04-16 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 09:07:18] Production.INFO: count ==684 [2025-04-16 09:07:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:07:05 - End Time 2025-04-16 09:07:05 [2025-04-16 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919893', 'tblTempUsageDetail_20' ) start [2025-04-16 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919893', 'tblTempUsageDetail_20' ) end [2025-04-16 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919893', 'tblTempVendorCDR_20' ) start [2025-04-16 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919893', 'tblTempVendorCDR_20' ) end [2025-04-16 09:07:18] Production.INFO: ProcessCDR(1,14919893,1,1,2) [2025-04-16 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919893', 'tblTempUsageDetail_20' ) start [2025-04-16 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919893', 'tblTempUsageDetail_20' ) end [2025-04-16 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:07:23] Production.INFO: ==2642== Releasing lock... [2025-04-16 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:07:23] Production.INFO: 34 MB #Memory Used# [2025-04-16 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:08:05 [end_date_ymd] => 2025-04-16 09:08:05 [RateCDR] => 1 ) [2025-04-16 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 06:08:05' and `end` < '2025-04-16 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 09:08:18] Production.INFO: count ==687 [2025-04-16 09:08:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:08:05 - End Time 2025-04-16 09:08:05 [2025-04-16 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919898', 'tblTempUsageDetail_20' ) start [2025-04-16 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919898', 'tblTempUsageDetail_20' ) end [2025-04-16 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919898', 'tblTempVendorCDR_20' ) start [2025-04-16 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919898', 'tblTempVendorCDR_20' ) end [2025-04-16 09:08:18] Production.INFO: ProcessCDR(1,14919898,1,1,2) [2025-04-16 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919898', 'tblTempUsageDetail_20' ) start [2025-04-16 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919898', 'tblTempUsageDetail_20' ) end [2025-04-16 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:08:23] Production.INFO: ==2717== Releasing lock... [2025-04-16 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:08:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-16 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:09:05 [end_date_ymd] => 2025-04-16 09:09:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:09:05' and `end` < '2025-04-16 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-04-16 09:09:18] Production.INFO: count ==698 [2025-04-16 09:09:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:09:05 - End Time 2025-04-16 09:09:05 [2025-04-16 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919903', 'tblTempUsageDetail_20' ) start [2025-04-16 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919903', 'tblTempUsageDetail_20' ) end [2025-04-16 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919903', 'tblTempVendorCDR_20' ) start [2025-04-16 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919903', 'tblTempVendorCDR_20' ) end [2025-04-16 09:09:18] Production.INFO: ProcessCDR(1,14919903,1,1,2) [2025-04-16 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919903', 'tblTempUsageDetail_20' ) start [2025-04-16 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919903', 'tblTempUsageDetail_20' ) end [2025-04-16 09:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:09:21] Production.INFO: ==2788== Releasing lock... [2025-04-16 09:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:09:21] Production.INFO: 34 MB #Memory Used# [2025-04-16 09:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:10:05 [end_date_ymd] => 2025-04-16 09:10:05 [RateCDR] => 1 ) [2025-04-16 09:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 06:10:05' and `end` < '2025-04-16 09:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 09:10:19] Production.INFO: count ==735 [2025-04-16 09:10:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:10:05 - End Time 2025-04-16 09:10:05 [2025-04-16 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919908', 'tblTempUsageDetail_20' ) start [2025-04-16 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919908', 'tblTempUsageDetail_20' ) end [2025-04-16 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919908', 'tblTempVendorCDR_20' ) start [2025-04-16 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919908', 'tblTempVendorCDR_20' ) end [2025-04-16 09:10:19] Production.INFO: ProcessCDR(1,14919908,1,1,2) [2025-04-16 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919908', 'tblTempUsageDetail_20' ) start [2025-04-16 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919908', 'tblTempUsageDetail_20' ) end [2025-04-16 09:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:10:23] Production.INFO: ==2865== Releasing lock... [2025-04-16 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:10:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-16 09:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:11:04 [end_date_ymd] => 2025-04-16 09:11:04 [RateCDR] => 1 ) [2025-04-16 09:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 06:11:04' and `end` < '2025-04-16 09:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 09:11:17] Production.INFO: count ==840 [2025-04-16 09:11:17] Production.ERROR: pbx CDR StartTime 2025-04-16 06:11:04 - End Time 2025-04-16 09:11:04 [2025-04-16 09:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919914', 'tblTempUsageDetail_20' ) start [2025-04-16 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919914', 'tblTempUsageDetail_20' ) end [2025-04-16 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919914', 'tblTempVendorCDR_20' ) start [2025-04-16 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919914', 'tblTempVendorCDR_20' ) end [2025-04-16 09:11:18] Production.INFO: ProcessCDR(1,14919914,1,1,2) [2025-04-16 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919914', 'tblTempUsageDetail_20' ) start [2025-04-16 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919914', 'tblTempUsageDetail_20' ) end [2025-04-16 09:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:11:21] Production.INFO: ==2950== Releasing lock... [2025-04-16 09:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:11:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-16 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:12:05 [end_date_ymd] => 2025-04-16 09:12:05 [RateCDR] => 1 ) [2025-04-16 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 06:12:05' and `end` < '2025-04-16 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 09:12:18] Production.INFO: count ==880 [2025-04-16 09:12:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:12:05 - End Time 2025-04-16 09:12:05 [2025-04-16 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919919', 'tblTempUsageDetail_20' ) start [2025-04-16 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919919', 'tblTempUsageDetail_20' ) end [2025-04-16 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919919', 'tblTempVendorCDR_20' ) start [2025-04-16 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919919', 'tblTempVendorCDR_20' ) end [2025-04-16 09:12:18] Production.INFO: ProcessCDR(1,14919919,1,1,2) [2025-04-16 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919919', 'tblTempUsageDetail_20' ) start [2025-04-16 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919919', 'tblTempUsageDetail_20' ) end [2025-04-16 09:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:12:24] Production.INFO: ==3025== Releasing lock... [2025-04-16 09:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:12:24] Production.INFO: 35.5 MB #Memory Used# [2025-04-16 09:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:13:04 [end_date_ymd] => 2025-04-16 09:13:04 [RateCDR] => 1 ) [2025-04-16 09: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-04-16 06:13:04' and `end` < '2025-04-16 09: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-04-16 09:13:17] Production.INFO: count ==895 [2025-04-16 09:13:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:13:04 - End Time 2025-04-16 09:13:04 [2025-04-16 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919924', 'tblTempUsageDetail_20' ) start [2025-04-16 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919924', 'tblTempUsageDetail_20' ) end [2025-04-16 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919924', 'tblTempVendorCDR_20' ) start [2025-04-16 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919924', 'tblTempVendorCDR_20' ) end [2025-04-16 09:13:18] Production.INFO: ProcessCDR(1,14919924,1,1,2) [2025-04-16 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919924', 'tblTempUsageDetail_20' ) start [2025-04-16 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919924', 'tblTempUsageDetail_20' ) end [2025-04-16 09:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:13:22] Production.INFO: ==3098== Releasing lock... [2025-04-16 09:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:13:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-16 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:14:05 [end_date_ymd] => 2025-04-16 09:14:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:14:05' and `end` < '2025-04-16 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-04-16 09:14:18] Production.INFO: count ==896 [2025-04-16 09:14:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:14:05 - End Time 2025-04-16 09:14:05 [2025-04-16 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919929', 'tblTempUsageDetail_20' ) start [2025-04-16 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919929', 'tblTempUsageDetail_20' ) end [2025-04-16 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919929', 'tblTempVendorCDR_20' ) start [2025-04-16 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919929', 'tblTempVendorCDR_20' ) end [2025-04-16 09:14:18] Production.INFO: ProcessCDR(1,14919929,1,1,2) [2025-04-16 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919929', 'tblTempUsageDetail_20' ) start [2025-04-16 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919929', 'tblTempUsageDetail_20' ) end [2025-04-16 09:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:14:22] Production.INFO: ==3182== Releasing lock... [2025-04-16 09:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:14:22] Production.INFO: 35 MB #Memory Used# [2025-04-16 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:15:05 [end_date_ymd] => 2025-04-16 09:15:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:15:05' and `end` < '2025-04-16 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-04-16 09:15:18] Production.INFO: count ==914 [2025-04-16 09:15:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:15:05 - End Time 2025-04-16 09:15:05 [2025-04-16 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919934', 'tblTempUsageDetail_20' ) start [2025-04-16 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919934', 'tblTempUsageDetail_20' ) end [2025-04-16 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919934', 'tblTempVendorCDR_20' ) start [2025-04-16 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919934', 'tblTempVendorCDR_20' ) end [2025-04-16 09:15:18] Production.INFO: ProcessCDR(1,14919934,1,1,2) [2025-04-16 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919934', 'tblTempUsageDetail_20' ) start [2025-04-16 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919934', 'tblTempUsageDetail_20' ) end [2025-04-16 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:15:23] Production.INFO: ==3256== Releasing lock... [2025-04-16 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:15:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-16 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:16:05 [end_date_ymd] => 2025-04-16 09:16:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:16:05' and `end` < '2025-04-16 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-04-16 09:16:18] Production.INFO: count ==936 [2025-04-16 09:16:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:16:05 - End Time 2025-04-16 09:16:05 [2025-04-16 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919939', 'tblTempUsageDetail_20' ) start [2025-04-16 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919939', 'tblTempUsageDetail_20' ) end [2025-04-16 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919939', 'tblTempVendorCDR_20' ) start [2025-04-16 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919939', 'tblTempVendorCDR_20' ) end [2025-04-16 09:16:18] Production.INFO: ProcessCDR(1,14919939,1,1,2) [2025-04-16 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919939', 'tblTempUsageDetail_20' ) start [2025-04-16 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919939', 'tblTempUsageDetail_20' ) end [2025-04-16 09:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:16:23] Production.INFO: ==3369== Releasing lock... [2025-04-16 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:16:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-16 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:17:05 [end_date_ymd] => 2025-04-16 09:17:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:17:05' and `end` < '2025-04-16 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-04-16 09:17:18] Production.INFO: count ==946 [2025-04-16 09:17:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:17:05 - End Time 2025-04-16 09:17:05 [2025-04-16 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919944', 'tblTempUsageDetail_20' ) start [2025-04-16 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919944', 'tblTempUsageDetail_20' ) end [2025-04-16 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919944', 'tblTempVendorCDR_20' ) start [2025-04-16 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919944', 'tblTempVendorCDR_20' ) end [2025-04-16 09:17:18] Production.INFO: ProcessCDR(1,14919944,1,1,2) [2025-04-16 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919944', 'tblTempUsageDetail_20' ) start [2025-04-16 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919944', 'tblTempUsageDetail_20' ) end [2025-04-16 09:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:17:23] Production.INFO: ==3445== Releasing lock... [2025-04-16 09:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:17:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-16 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:18:05 [end_date_ymd] => 2025-04-16 09:18:05 [RateCDR] => 1 ) [2025-04-16 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 06:18:05' and `end` < '2025-04-16 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 09:18:18] Production.INFO: count ==953 [2025-04-16 09:18:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:18:05 - End Time 2025-04-16 09:18:05 [2025-04-16 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919949', 'tblTempUsageDetail_20' ) start [2025-04-16 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919949', 'tblTempUsageDetail_20' ) end [2025-04-16 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919949', 'tblTempVendorCDR_20' ) start [2025-04-16 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919949', 'tblTempVendorCDR_20' ) end [2025-04-16 09:18:18] Production.INFO: ProcessCDR(1,14919949,1,1,2) [2025-04-16 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919949', 'tblTempUsageDetail_20' ) start [2025-04-16 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919949', 'tblTempUsageDetail_20' ) end [2025-04-16 09:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:18:23] Production.INFO: ==3530== Releasing lock... [2025-04-16 09:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:18:23] Production.INFO: 36 MB #Memory Used# [2025-04-16 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:19:05 [end_date_ymd] => 2025-04-16 09:19:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:19:05' and `end` < '2025-04-16 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-04-16 09:19:18] Production.INFO: count ==957 [2025-04-16 09:19:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:19:05 - End Time 2025-04-16 09:19:05 [2025-04-16 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919954', 'tblTempUsageDetail_20' ) start [2025-04-16 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919954', 'tblTempUsageDetail_20' ) end [2025-04-16 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919954', 'tblTempVendorCDR_20' ) start [2025-04-16 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919954', 'tblTempVendorCDR_20' ) end [2025-04-16 09:19:18] Production.INFO: ProcessCDR(1,14919954,1,1,2) [2025-04-16 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919954', 'tblTempUsageDetail_20' ) start [2025-04-16 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919954', 'tblTempUsageDetail_20' ) end [2025-04-16 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:19:23] Production.INFO: ==3604== Releasing lock... [2025-04-16 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:19:23] Production.INFO: 36 MB #Memory Used# [2025-04-16 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:20:06 [end_date_ymd] => 2025-04-16 09:20:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:20:06' and `end` < '2025-04-16 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-04-16 09:20:19] Production.INFO: count ==987 [2025-04-16 09:20:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:20:06 - End Time 2025-04-16 09:20:06 [2025-04-16 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919959', 'tblTempUsageDetail_20' ) start [2025-04-16 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919959', 'tblTempUsageDetail_20' ) end [2025-04-16 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919959', 'tblTempVendorCDR_20' ) start [2025-04-16 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919959', 'tblTempVendorCDR_20' ) end [2025-04-16 09:20:19] Production.INFO: ProcessCDR(1,14919959,1,1,2) [2025-04-16 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919959', 'tblTempUsageDetail_20' ) start [2025-04-16 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919959', 'tblTempUsageDetail_20' ) end [2025-04-16 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:20:24] Production.INFO: ==3679== Releasing lock... [2025-04-16 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:20:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-16 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:21:05 [end_date_ymd] => 2025-04-16 09:21:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:21:05' and `end` < '2025-04-16 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-04-16 09:21:18] Production.INFO: count ==1081 [2025-04-16 09:21:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:21:05 - End Time 2025-04-16 09:21:05 [2025-04-16 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919965', 'tblTempUsageDetail_20' ) start [2025-04-16 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919965', 'tblTempUsageDetail_20' ) end [2025-04-16 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919965', 'tblTempVendorCDR_20' ) start [2025-04-16 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919965', 'tblTempVendorCDR_20' ) end [2025-04-16 09:21:18] Production.INFO: ProcessCDR(1,14919965,1,1,2) [2025-04-16 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919965', 'tblTempUsageDetail_20' ) start [2025-04-16 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919965', 'tblTempUsageDetail_20' ) end [2025-04-16 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:21:23] Production.INFO: ==3760== Releasing lock... [2025-04-16 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:21:23] Production.INFO: 37 MB #Memory Used# [2025-04-16 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:22:05 [end_date_ymd] => 2025-04-16 09:22:05 [RateCDR] => 1 ) [2025-04-16 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 06:22:05' and `end` < '2025-04-16 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 09:22:18] Production.INFO: count ==1089 [2025-04-16 09:22:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:22:05 - End Time 2025-04-16 09:22:05 [2025-04-16 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919970', 'tblTempUsageDetail_20' ) start [2025-04-16 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919970', 'tblTempUsageDetail_20' ) end [2025-04-16 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919970', 'tblTempVendorCDR_20' ) start [2025-04-16 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919970', 'tblTempVendorCDR_20' ) end [2025-04-16 09:22:18] Production.INFO: ProcessCDR(1,14919970,1,1,2) [2025-04-16 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919970', 'tblTempUsageDetail_20' ) start [2025-04-16 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919970', 'tblTempUsageDetail_20' ) end [2025-04-16 09:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:22:23] Production.INFO: ==3834== Releasing lock... [2025-04-16 09:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:22:23] Production.INFO: 37 MB #Memory Used# [2025-04-16 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:23:05 [end_date_ymd] => 2025-04-16 09:23:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:23:05' and `end` < '2025-04-16 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-04-16 09:23:18] Production.INFO: count ==1112 [2025-04-16 09:23:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:23:05 - End Time 2025-04-16 09:23:05 [2025-04-16 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919975', 'tblTempUsageDetail_20' ) start [2025-04-16 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919975', 'tblTempUsageDetail_20' ) end [2025-04-16 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919975', 'tblTempVendorCDR_20' ) start [2025-04-16 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919975', 'tblTempVendorCDR_20' ) end [2025-04-16 09:23:19] Production.INFO: ProcessCDR(1,14919975,1,1,2) [2025-04-16 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919975', 'tblTempUsageDetail_20' ) start [2025-04-16 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919975', 'tblTempUsageDetail_20' ) end [2025-04-16 09:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:23:24] Production.INFO: ==3908== Releasing lock... [2025-04-16 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:23:24] Production.INFO: 37 MB #Memory Used# [2025-04-16 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:24:05 [end_date_ymd] => 2025-04-16 09:24:05 [RateCDR] => 1 ) [2025-04-16 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 06:24:05' and `end` < '2025-04-16 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 09:24:18] Production.INFO: count ==1127 [2025-04-16 09:24:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:24:05 - End Time 2025-04-16 09:24:05 [2025-04-16 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919980', 'tblTempUsageDetail_20' ) start [2025-04-16 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919980', 'tblTempUsageDetail_20' ) end [2025-04-16 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919980', 'tblTempVendorCDR_20' ) start [2025-04-16 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919980', 'tblTempVendorCDR_20' ) end [2025-04-16 09:24:18] Production.INFO: ProcessCDR(1,14919980,1,1,2) [2025-04-16 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919980', 'tblTempUsageDetail_20' ) start [2025-04-16 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919980', 'tblTempUsageDetail_20' ) end [2025-04-16 09:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:24:23] Production.INFO: ==3980== Releasing lock... [2025-04-16 09:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:24:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-16 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:25:05 [end_date_ymd] => 2025-04-16 09:25:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:25:05' and `end` < '2025-04-16 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-04-16 09:25:18] Production.INFO: count ==1132 [2025-04-16 09:25:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:25:05 - End Time 2025-04-16 09:25:05 [2025-04-16 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919985', 'tblTempUsageDetail_20' ) start [2025-04-16 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919985', 'tblTempUsageDetail_20' ) end [2025-04-16 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919985', 'tblTempVendorCDR_20' ) start [2025-04-16 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919985', 'tblTempVendorCDR_20' ) end [2025-04-16 09:25:18] Production.INFO: ProcessCDR(1,14919985,1,1,2) [2025-04-16 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919985', 'tblTempUsageDetail_20' ) start [2025-04-16 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919985', 'tblTempUsageDetail_20' ) end [2025-04-16 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:25:23] Production.INFO: ==4065== Releasing lock... [2025-04-16 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:25:23] Production.INFO: 37 MB #Memory Used# [2025-04-16 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:26:05 [end_date_ymd] => 2025-04-16 09:26:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:26:05' and `end` < '2025-04-16 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-04-16 09:26:19] Production.INFO: count ==1144 [2025-04-16 09:26:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:26:05 - End Time 2025-04-16 09:26:05 [2025-04-16 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919990', 'tblTempUsageDetail_20' ) start [2025-04-16 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919990', 'tblTempUsageDetail_20' ) end [2025-04-16 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919990', 'tblTempVendorCDR_20' ) start [2025-04-16 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919990', 'tblTempVendorCDR_20' ) end [2025-04-16 09:26:19] Production.INFO: ProcessCDR(1,14919990,1,1,2) [2025-04-16 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919990', 'tblTempUsageDetail_20' ) start [2025-04-16 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919990', 'tblTempUsageDetail_20' ) end [2025-04-16 09:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:26:24] Production.INFO: ==4138== Releasing lock... [2025-04-16 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:26:24] Production.INFO: 37 MB #Memory Used# [2025-04-16 09:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:27:04 [end_date_ymd] => 2025-04-16 09:27:04 [RateCDR] => 1 ) [2025-04-16 09:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 06:27:04' and `end` < '2025-04-16 09:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 09:27:18] Production.INFO: count ==1172 [2025-04-16 09:27:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:27:04 - End Time 2025-04-16 09:27:04 [2025-04-16 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919995', 'tblTempUsageDetail_20' ) start [2025-04-16 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14919995', 'tblTempUsageDetail_20' ) end [2025-04-16 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919995', 'tblTempVendorCDR_20' ) start [2025-04-16 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14919995', 'tblTempVendorCDR_20' ) end [2025-04-16 09:27:18] Production.INFO: ProcessCDR(1,14919995,1,1,2) [2025-04-16 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14919995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14919995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14919995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14919995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919995', 'tblTempUsageDetail_20' ) start [2025-04-16 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14919995', 'tblTempUsageDetail_20' ) end [2025-04-16 09:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:27:23] Production.INFO: ==4221== Releasing lock... [2025-04-16 09:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:27:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-16 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:28:05 [end_date_ymd] => 2025-04-16 09:28:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:28:05' and `end` < '2025-04-16 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-04-16 09:28:18] Production.INFO: count ==1202 [2025-04-16 09:28:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:28:05 - End Time 2025-04-16 09:28:05 [2025-04-16 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920000', 'tblTempUsageDetail_20' ) start [2025-04-16 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920000', 'tblTempUsageDetail_20' ) end [2025-04-16 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920000', 'tblTempVendorCDR_20' ) start [2025-04-16 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920000', 'tblTempVendorCDR_20' ) end [2025-04-16 09:28:19] Production.INFO: ProcessCDR(1,14920000,1,1,2) [2025-04-16 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920000', 'tblTempUsageDetail_20' ) start [2025-04-16 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920000', 'tblTempUsageDetail_20' ) end [2025-04-16 09:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:28:24] Production.INFO: ==4295== Releasing lock... [2025-04-16 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:28:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-16 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:29:05 [end_date_ymd] => 2025-04-16 09:29:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:29:05' and `end` < '2025-04-16 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-04-16 09:29:18] Production.INFO: count ==1216 [2025-04-16 09:29:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:29:05 - End Time 2025-04-16 09:29:05 [2025-04-16 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920005', 'tblTempUsageDetail_20' ) start [2025-04-16 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920005', 'tblTempUsageDetail_20' ) end [2025-04-16 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920005', 'tblTempVendorCDR_20' ) start [2025-04-16 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920005', 'tblTempVendorCDR_20' ) end [2025-04-16 09:29:18] Production.INFO: ProcessCDR(1,14920005,1,1,2) [2025-04-16 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920005', 'tblTempUsageDetail_20' ) start [2025-04-16 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920005', 'tblTempUsageDetail_20' ) end [2025-04-16 09:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:29:24] Production.INFO: ==4368== Releasing lock... [2025-04-16 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:29:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-16 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:30:06 [end_date_ymd] => 2025-04-16 09:30:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:30:06' and `end` < '2025-04-16 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-04-16 09:30:19] Production.INFO: count ==1240 [2025-04-16 09:30:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:30:06 - End Time 2025-04-16 09:30:06 [2025-04-16 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920011', 'tblTempUsageDetail_20' ) start [2025-04-16 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920011', 'tblTempUsageDetail_20' ) end [2025-04-16 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920011', 'tblTempVendorCDR_20' ) start [2025-04-16 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920011', 'tblTempVendorCDR_20' ) end [2025-04-16 09:30:19] Production.INFO: ProcessCDR(1,14920011,1,1,2) [2025-04-16 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920011', 'tblTempUsageDetail_20' ) start [2025-04-16 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920011', 'tblTempUsageDetail_20' ) end [2025-04-16 09:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:30:23] Production.INFO: ==4440== Releasing lock... [2025-04-16 09:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:30:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-16 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:31:05 [end_date_ymd] => 2025-04-16 09:31:05 [RateCDR] => 1 ) [2025-04-16 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 06:31:05' and `end` < '2025-04-16 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 09:31:18] Production.INFO: count ==1371 [2025-04-16 09:31:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:31:05 - End Time 2025-04-16 09:31:05 [2025-04-16 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920016', 'tblTempUsageDetail_20' ) start [2025-04-16 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920016', 'tblTempUsageDetail_20' ) end [2025-04-16 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920016', 'tblTempVendorCDR_20' ) start [2025-04-16 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920016', 'tblTempVendorCDR_20' ) end [2025-04-16 09:31:19] Production.INFO: ProcessCDR(1,14920016,1,1,2) [2025-04-16 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920016', 'tblTempUsageDetail_20' ) start [2025-04-16 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920016', 'tblTempUsageDetail_20' ) end [2025-04-16 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:31:23] Production.INFO: ==4551== Releasing lock... [2025-04-16 09:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:31:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-16 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:32:05 [end_date_ymd] => 2025-04-16 09:32:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:32:05' and `end` < '2025-04-16 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-04-16 09:32:19] Production.INFO: count ==1380 [2025-04-16 09:32:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:32:05 - End Time 2025-04-16 09:32:05 [2025-04-16 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920021', 'tblTempUsageDetail_20' ) start [2025-04-16 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920021', 'tblTempUsageDetail_20' ) end [2025-04-16 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920021', 'tblTempVendorCDR_20' ) start [2025-04-16 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920021', 'tblTempVendorCDR_20' ) end [2025-04-16 09:32:19] Production.INFO: ProcessCDR(1,14920021,1,1,2) [2025-04-16 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920021', 'tblTempUsageDetail_20' ) start [2025-04-16 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920021', 'tblTempUsageDetail_20' ) end [2025-04-16 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:32:24] Production.INFO: ==4630== Releasing lock... [2025-04-16 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:32:24] Production.INFO: 39 MB #Memory Used# [2025-04-16 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:33:05 [end_date_ymd] => 2025-04-16 09:33:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:33:05' and `end` < '2025-04-16 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-04-16 09:33:18] Production.INFO: count ==1394 [2025-04-16 09:33:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:33:05 - End Time 2025-04-16 09:33:05 [2025-04-16 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920026', 'tblTempUsageDetail_20' ) start [2025-04-16 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920026', 'tblTempUsageDetail_20' ) end [2025-04-16 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920026', 'tblTempVendorCDR_20' ) start [2025-04-16 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920026', 'tblTempVendorCDR_20' ) end [2025-04-16 09:33:19] Production.INFO: ProcessCDR(1,14920026,1,1,2) [2025-04-16 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920026', 'tblTempUsageDetail_20' ) start [2025-04-16 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920026', 'tblTempUsageDetail_20' ) end [2025-04-16 09:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:33:22] Production.INFO: ==4707== Releasing lock... [2025-04-16 09:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:33:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-16 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:34:05 [end_date_ymd] => 2025-04-16 09:34:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:34:05' and `end` < '2025-04-16 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-04-16 09:34:18] Production.INFO: count ==1407 [2025-04-16 09:34:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:34:05 - End Time 2025-04-16 09:34:05 [2025-04-16 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920031', 'tblTempUsageDetail_20' ) start [2025-04-16 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920031', 'tblTempUsageDetail_20' ) end [2025-04-16 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920031', 'tblTempVendorCDR_20' ) start [2025-04-16 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920031', 'tblTempVendorCDR_20' ) end [2025-04-16 09:34:19] Production.INFO: ProcessCDR(1,14920031,1,1,2) [2025-04-16 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920031', 'tblTempUsageDetail_20' ) start [2025-04-16 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920031', 'tblTempUsageDetail_20' ) end [2025-04-16 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:34:24] Production.INFO: ==4781== Releasing lock... [2025-04-16 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:34:24] Production.INFO: 39 MB #Memory Used# [2025-04-16 09:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:35:06 [end_date_ymd] => 2025-04-16 09:35:06 [RateCDR] => 1 ) [2025-04-16 09: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-04-16 06:35:06' and `end` < '2025-04-16 09: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-04-16 09:35:19] Production.INFO: count ==1425 [2025-04-16 09:35:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:35:06 - End Time 2025-04-16 09:35:06 [2025-04-16 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920036', 'tblTempUsageDetail_20' ) start [2025-04-16 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920036', 'tblTempUsageDetail_20' ) end [2025-04-16 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920036', 'tblTempVendorCDR_20' ) start [2025-04-16 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920036', 'tblTempVendorCDR_20' ) end [2025-04-16 09:35:19] Production.INFO: ProcessCDR(1,14920036,1,1,2) [2025-04-16 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920036', 'tblTempUsageDetail_20' ) start [2025-04-16 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920036', 'tblTempUsageDetail_20' ) end [2025-04-16 09:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:35:24] Production.INFO: ==4857== Releasing lock... [2025-04-16 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:35:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-16 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:36:04 [end_date_ymd] => 2025-04-16 09:36:04 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:36:04' and `end` < '2025-04-16 09:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 09:36:18] Production.INFO: count ==1433 [2025-04-16 09:36:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:36:04 - End Time 2025-04-16 09:36:04 [2025-04-16 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920041', 'tblTempUsageDetail_20' ) start [2025-04-16 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920041', 'tblTempUsageDetail_20' ) end [2025-04-16 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920041', 'tblTempVendorCDR_20' ) start [2025-04-16 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920041', 'tblTempVendorCDR_20' ) end [2025-04-16 09:36:18] Production.INFO: ProcessCDR(1,14920041,1,1,2) [2025-04-16 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920041', 'tblTempUsageDetail_20' ) start [2025-04-16 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920041', 'tblTempUsageDetail_20' ) end [2025-04-16 09:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:36:23] Production.INFO: ==4928== Releasing lock... [2025-04-16 09:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:36:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-16 09:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:37:06 [end_date_ymd] => 2025-04-16 09:37:06 [RateCDR] => 1 ) [2025-04-16 09: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-04-16 06:37:06' and `end` < '2025-04-16 09: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-04-16 09:37:19] Production.INFO: count ==1441 [2025-04-16 09:37:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:37:06 - End Time 2025-04-16 09:37:06 [2025-04-16 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920046', 'tblTempUsageDetail_20' ) start [2025-04-16 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920046', 'tblTempUsageDetail_20' ) end [2025-04-16 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920046', 'tblTempVendorCDR_20' ) start [2025-04-16 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920046', 'tblTempVendorCDR_20' ) end [2025-04-16 09:37:19] Production.INFO: ProcessCDR(1,14920046,1,1,2) [2025-04-16 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920046', 'tblTempUsageDetail_20' ) start [2025-04-16 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920046', 'tblTempUsageDetail_20' ) end [2025-04-16 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:37:24] Production.INFO: ==5000== Releasing lock... [2025-04-16 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:37:24] Production.INFO: 39 MB #Memory Used# [2025-04-16 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:38:05 [end_date_ymd] => 2025-04-16 09:38:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:38:05' and `end` < '2025-04-16 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-04-16 09:38:19] Production.INFO: count ==1444 [2025-04-16 09:38:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:38:05 - End Time 2025-04-16 09:38:05 [2025-04-16 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920051', 'tblTempUsageDetail_20' ) start [2025-04-16 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920051', 'tblTempUsageDetail_20' ) end [2025-04-16 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920051', 'tblTempVendorCDR_20' ) start [2025-04-16 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920051', 'tblTempVendorCDR_20' ) end [2025-04-16 09:38:19] Production.INFO: ProcessCDR(1,14920051,1,1,2) [2025-04-16 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920051', 'tblTempUsageDetail_20' ) start [2025-04-16 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920051', 'tblTempUsageDetail_20' ) end [2025-04-16 09:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:38:24] Production.INFO: ==5069== Releasing lock... [2025-04-16 09:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:38:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-16 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:39:05 [end_date_ymd] => 2025-04-16 09:39:05 [RateCDR] => 1 ) [2025-04-16 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 06:39:05' and `end` < '2025-04-16 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 09:39:18] Production.INFO: count ==1452 [2025-04-16 09:39:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:39:05 - End Time 2025-04-16 09:39:05 [2025-04-16 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920056', 'tblTempUsageDetail_20' ) start [2025-04-16 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920056', 'tblTempUsageDetail_20' ) end [2025-04-16 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920056', 'tblTempVendorCDR_20' ) start [2025-04-16 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920056', 'tblTempVendorCDR_20' ) end [2025-04-16 09:39:19] Production.INFO: ProcessCDR(1,14920056,1,1,2) [2025-04-16 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920056', 'tblTempUsageDetail_20' ) start [2025-04-16 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920056', 'tblTempUsageDetail_20' ) end [2025-04-16 09:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:39:24] Production.INFO: ==5148== Releasing lock... [2025-04-16 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:39:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-16 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:40:06 [end_date_ymd] => 2025-04-16 09:40:06 [RateCDR] => 1 ) [2025-04-16 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 06:40:06' and `end` < '2025-04-16 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 09:40:19] Production.INFO: count ==1468 [2025-04-16 09:40:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:40:06 - End Time 2025-04-16 09:40:06 [2025-04-16 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920062', 'tblTempUsageDetail_20' ) start [2025-04-16 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920062', 'tblTempUsageDetail_20' ) end [2025-04-16 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920062', 'tblTempVendorCDR_20' ) start [2025-04-16 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920062', 'tblTempVendorCDR_20' ) end [2025-04-16 09:40:19] Production.INFO: ProcessCDR(1,14920062,1,1,2) [2025-04-16 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920062', 'tblTempUsageDetail_20' ) start [2025-04-16 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920062', 'tblTempUsageDetail_20' ) end [2025-04-16 09:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:40:24] Production.INFO: ==5225== Releasing lock... [2025-04-16 09:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:40:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-16 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:41:05 [end_date_ymd] => 2025-04-16 09:41:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:41:05' and `end` < '2025-04-16 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-04-16 09:41:19] Production.INFO: count ==1570 [2025-04-16 09:41:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:41:05 - End Time 2025-04-16 09:41:05 [2025-04-16 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920067', 'tblTempUsageDetail_20' ) start [2025-04-16 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920067', 'tblTempUsageDetail_20' ) end [2025-04-16 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920067', 'tblTempVendorCDR_20' ) start [2025-04-16 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920067', 'tblTempVendorCDR_20' ) end [2025-04-16 09:41:19] Production.INFO: ProcessCDR(1,14920067,1,1,2) [2025-04-16 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920067', 'tblTempUsageDetail_20' ) start [2025-04-16 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920067', 'tblTempUsageDetail_20' ) end [2025-04-16 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:41:24] Production.INFO: ==5313== Releasing lock... [2025-04-16 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:41:24] Production.INFO: 40 MB #Memory Used# [2025-04-16 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:42:05 [end_date_ymd] => 2025-04-16 09:42:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:42:05' and `end` < '2025-04-16 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-04-16 09:42:18] Production.INFO: count ==1581 [2025-04-16 09:42:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:42:05 - End Time 2025-04-16 09:42:05 [2025-04-16 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920072', 'tblTempUsageDetail_20' ) start [2025-04-16 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920072', 'tblTempUsageDetail_20' ) end [2025-04-16 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920072', 'tblTempVendorCDR_20' ) start [2025-04-16 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920072', 'tblTempVendorCDR_20' ) end [2025-04-16 09:42:19] Production.INFO: ProcessCDR(1,14920072,1,1,2) [2025-04-16 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920072', 'tblTempUsageDetail_20' ) start [2025-04-16 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920072', 'tblTempUsageDetail_20' ) end [2025-04-16 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:42:24] Production.INFO: ==5384== Releasing lock... [2025-04-16 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:42:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-16 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:43:05 [end_date_ymd] => 2025-04-16 09:43:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:43:05' and `end` < '2025-04-16 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-04-16 09:43:18] Production.INFO: count ==1586 [2025-04-16 09:43:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:43:05 - End Time 2025-04-16 09:43:05 [2025-04-16 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920077', 'tblTempUsageDetail_20' ) start [2025-04-16 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920077', 'tblTempUsageDetail_20' ) end [2025-04-16 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920077', 'tblTempVendorCDR_20' ) start [2025-04-16 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920077', 'tblTempVendorCDR_20' ) end [2025-04-16 09:43:19] Production.INFO: ProcessCDR(1,14920077,1,1,2) [2025-04-16 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920077', 'tblTempUsageDetail_20' ) start [2025-04-16 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920077', 'tblTempUsageDetail_20' ) end [2025-04-16 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:43:24] Production.INFO: ==5453== Releasing lock... [2025-04-16 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:43:24] Production.INFO: 40 MB #Memory Used# [2025-04-16 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:44:05 [end_date_ymd] => 2025-04-16 09:44:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:44:05' and `end` < '2025-04-16 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-04-16 09:44:18] Production.INFO: count ==1616 [2025-04-16 09:44:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:44:05 - End Time 2025-04-16 09:44:05 [2025-04-16 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920082', 'tblTempUsageDetail_20' ) start [2025-04-16 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920082', 'tblTempUsageDetail_20' ) end [2025-04-16 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920082', 'tblTempVendorCDR_20' ) start [2025-04-16 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920082', 'tblTempVendorCDR_20' ) end [2025-04-16 09:44:19] Production.INFO: ProcessCDR(1,14920082,1,1,2) [2025-04-16 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920082', 'tblTempUsageDetail_20' ) start [2025-04-16 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920082', 'tblTempUsageDetail_20' ) end [2025-04-16 09:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:44:24] Production.INFO: ==5524== Releasing lock... [2025-04-16 09:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:44:24] Production.INFO: 40 MB #Memory Used# [2025-04-16 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:45:05 [end_date_ymd] => 2025-04-16 09:45:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:45:05' and `end` < '2025-04-16 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-04-16 09:45:18] Production.INFO: count ==1633 [2025-04-16 09:45:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:45:05 - End Time 2025-04-16 09:45:05 [2025-04-16 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920087', 'tblTempUsageDetail_20' ) start [2025-04-16 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920087', 'tblTempUsageDetail_20' ) end [2025-04-16 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920087', 'tblTempVendorCDR_20' ) start [2025-04-16 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920087', 'tblTempVendorCDR_20' ) end [2025-04-16 09:45:19] Production.INFO: ProcessCDR(1,14920087,1,1,2) [2025-04-16 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920087', 'tblTempUsageDetail_20' ) start [2025-04-16 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920087', 'tblTempUsageDetail_20' ) end [2025-04-16 09:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:45:22] Production.INFO: ==5596== Releasing lock... [2025-04-16 09:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:45:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-16 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:46:05 [end_date_ymd] => 2025-04-16 09:46:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:46:05' and `end` < '2025-04-16 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-04-16 09:46:18] Production.INFO: count ==1643 [2025-04-16 09:46:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:46:05 - End Time 2025-04-16 09:46:05 [2025-04-16 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920092', 'tblTempUsageDetail_20' ) start [2025-04-16 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920092', 'tblTempUsageDetail_20' ) end [2025-04-16 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920092', 'tblTempVendorCDR_20' ) start [2025-04-16 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920092', 'tblTempVendorCDR_20' ) end [2025-04-16 09:46:19] Production.INFO: ProcessCDR(1,14920092,1,1,2) [2025-04-16 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920092', 'tblTempUsageDetail_20' ) start [2025-04-16 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920092', 'tblTempUsageDetail_20' ) end [2025-04-16 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:46:24] Production.INFO: ==5673== Releasing lock... [2025-04-16 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:46:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-16 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:47:05 [end_date_ymd] => 2025-04-16 09:47:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:47:05' and `end` < '2025-04-16 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-04-16 09:47:18] Production.INFO: count ==1653 [2025-04-16 09:47:18] Production.ERROR: pbx CDR StartTime 2025-04-16 06:47:05 - End Time 2025-04-16 09:47:05 [2025-04-16 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920097', 'tblTempUsageDetail_20' ) start [2025-04-16 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920097', 'tblTempUsageDetail_20' ) end [2025-04-16 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920097', 'tblTempVendorCDR_20' ) start [2025-04-16 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920097', 'tblTempVendorCDR_20' ) end [2025-04-16 09:47:18] Production.INFO: ProcessCDR(1,14920097,1,1,2) [2025-04-16 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920097', 'tblTempUsageDetail_20' ) start [2025-04-16 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920097', 'tblTempUsageDetail_20' ) end [2025-04-16 09:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:47:23] Production.INFO: ==5782== Releasing lock... [2025-04-16 09:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:47:23] Production.INFO: 41 MB #Memory Used# [2025-04-16 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:48:05 [end_date_ymd] => 2025-04-16 09:48:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:48:05' and `end` < '2025-04-16 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-04-16 09:48:18] Production.INFO: count ==1668 [2025-04-16 09:48:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:48:05 - End Time 2025-04-16 09:48:05 [2025-04-16 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920102', 'tblTempUsageDetail_20' ) start [2025-04-16 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920102', 'tblTempUsageDetail_20' ) end [2025-04-16 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920102', 'tblTempVendorCDR_20' ) start [2025-04-16 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920102', 'tblTempVendorCDR_20' ) end [2025-04-16 09:48:19] Production.INFO: ProcessCDR(1,14920102,1,1,2) [2025-04-16 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920102', 'tblTempUsageDetail_20' ) start [2025-04-16 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920102', 'tblTempUsageDetail_20' ) end [2025-04-16 09:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:48:22] Production.INFO: ==5856== Releasing lock... [2025-04-16 09:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:48:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-16 09:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:49:06 [end_date_ymd] => 2025-04-16 09:49:06 [RateCDR] => 1 ) [2025-04-16 09: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-04-16 06:49:06' and `end` < '2025-04-16 09: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-04-16 09:49:19] Production.INFO: count ==1680 [2025-04-16 09:49:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:49:06 - End Time 2025-04-16 09:49:06 [2025-04-16 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920107', 'tblTempUsageDetail_20' ) start [2025-04-16 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920107', 'tblTempUsageDetail_20' ) end [2025-04-16 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920107', 'tblTempVendorCDR_20' ) start [2025-04-16 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920107', 'tblTempVendorCDR_20' ) end [2025-04-16 09:49:20] Production.INFO: ProcessCDR(1,14920107,1,1,2) [2025-04-16 09:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920107', 'tblTempUsageDetail_20' ) start [2025-04-16 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920107', 'tblTempUsageDetail_20' ) end [2025-04-16 09:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:49:24] Production.INFO: ==5927== Releasing lock... [2025-04-16 09:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:49:24] Production.INFO: 41 MB #Memory Used# [2025-04-16 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:50:06 [end_date_ymd] => 2025-04-16 09:50:06 [RateCDR] => 1 ) [2025-04-16 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 06:50:06' and `end` < '2025-04-16 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 09:50:19] Production.INFO: count ==1704 [2025-04-16 09:50:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:50:06 - End Time 2025-04-16 09:50:06 [2025-04-16 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920113', 'tblTempUsageDetail_20' ) start [2025-04-16 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920113', 'tblTempUsageDetail_20' ) end [2025-04-16 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920113', 'tblTempVendorCDR_20' ) start [2025-04-16 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920113', 'tblTempVendorCDR_20' ) end [2025-04-16 09:50:19] Production.INFO: ProcessCDR(1,14920113,1,1,2) [2025-04-16 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920113', 'tblTempUsageDetail_20' ) start [2025-04-16 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920113', 'tblTempUsageDetail_20' ) end [2025-04-16 09:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:50:24] Production.INFO: ==6000== Releasing lock... [2025-04-16 09:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:50:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-16 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:51:05 [end_date_ymd] => 2025-04-16 09:51:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:51:05' and `end` < '2025-04-16 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-04-16 09:51:18] Production.INFO: count ==1782 [2025-04-16 09:51:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:51:05 - End Time 2025-04-16 09:51:05 [2025-04-16 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920117', 'tblTempUsageDetail_20' ) start [2025-04-16 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920117', 'tblTempUsageDetail_20' ) end [2025-04-16 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920117', 'tblTempVendorCDR_20' ) start [2025-04-16 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920117', 'tblTempVendorCDR_20' ) end [2025-04-16 09:51:19] Production.INFO: ProcessCDR(1,14920117,1,1,2) [2025-04-16 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920117', 'tblTempUsageDetail_20' ) start [2025-04-16 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920117', 'tblTempUsageDetail_20' ) end [2025-04-16 09:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:51:22] Production.INFO: ==6075== Releasing lock... [2025-04-16 09:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:51:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-16 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:52:05 [end_date_ymd] => 2025-04-16 09:52:05 [RateCDR] => 1 ) [2025-04-16 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 06:52:05' and `end` < '2025-04-16 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 09:52:18] Production.INFO: count ==1798 [2025-04-16 09:52:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:52:05 - End Time 2025-04-16 09:52:05 [2025-04-16 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920123', 'tblTempUsageDetail_20' ) start [2025-04-16 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920123', 'tblTempUsageDetail_20' ) end [2025-04-16 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920123', 'tblTempVendorCDR_20' ) start [2025-04-16 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920123', 'tblTempVendorCDR_20' ) end [2025-04-16 09:52:19] Production.INFO: ProcessCDR(1,14920123,1,1,2) [2025-04-16 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920123', 'tblTempUsageDetail_20' ) start [2025-04-16 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920123', 'tblTempUsageDetail_20' ) end [2025-04-16 09:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:52:22] Production.INFO: ==6154== Releasing lock... [2025-04-16 09:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:52:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-16 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:53:05 [end_date_ymd] => 2025-04-16 09:53:05 [RateCDR] => 1 ) [2025-04-16 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 06:53:05' and `end` < '2025-04-16 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 09:53:19] Production.INFO: count ==1813 [2025-04-16 09:53:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:53:05 - End Time 2025-04-16 09:53:05 [2025-04-16 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920128', 'tblTempUsageDetail_20' ) start [2025-04-16 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920128', 'tblTempUsageDetail_20' ) end [2025-04-16 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920128', 'tblTempVendorCDR_20' ) start [2025-04-16 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920128', 'tblTempVendorCDR_20' ) end [2025-04-16 09:53:19] Production.INFO: ProcessCDR(1,14920128,1,1,2) [2025-04-16 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920128', 'tblTempUsageDetail_20' ) start [2025-04-16 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920128', 'tblTempUsageDetail_20' ) end [2025-04-16 09:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:53:24] Production.INFO: ==6227== Releasing lock... [2025-04-16 09:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:53:24] Production.INFO: 42 MB #Memory Used# [2025-04-16 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:54:05 [end_date_ymd] => 2025-04-16 09:54:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:54:05' and `end` < '2025-04-16 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-04-16 09:54:18] Production.INFO: count ==1821 [2025-04-16 09:54:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:54:05 - End Time 2025-04-16 09:54:05 [2025-04-16 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920133', 'tblTempUsageDetail_20' ) start [2025-04-16 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920133', 'tblTempUsageDetail_20' ) end [2025-04-16 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920133', 'tblTempVendorCDR_20' ) start [2025-04-16 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920133', 'tblTempVendorCDR_20' ) end [2025-04-16 09:54:19] Production.INFO: ProcessCDR(1,14920133,1,1,2) [2025-04-16 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920133', 'tblTempUsageDetail_20' ) start [2025-04-16 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920133', 'tblTempUsageDetail_20' ) end [2025-04-16 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:54:24] Production.INFO: ==6299== Releasing lock... [2025-04-16 09:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:54:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-16 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:55:05 [end_date_ymd] => 2025-04-16 09:55:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:55:05' and `end` < '2025-04-16 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-04-16 09:55:18] Production.INFO: count ==1846 [2025-04-16 09:55:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:55:05 - End Time 2025-04-16 09:55:05 [2025-04-16 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920138', 'tblTempUsageDetail_20' ) start [2025-04-16 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920138', 'tblTempUsageDetail_20' ) end [2025-04-16 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920138', 'tblTempVendorCDR_20' ) start [2025-04-16 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920138', 'tblTempVendorCDR_20' ) end [2025-04-16 09:55:19] Production.INFO: ProcessCDR(1,14920138,1,1,2) [2025-04-16 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920138', 'tblTempUsageDetail_20' ) start [2025-04-16 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920138', 'tblTempUsageDetail_20' ) end [2025-04-16 09:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:55:24] Production.INFO: ==6374== Releasing lock... [2025-04-16 09:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:55:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-16 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:56:05 [end_date_ymd] => 2025-04-16 09:56:05 [RateCDR] => 1 ) [2025-04-16 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 06:56:05' and `end` < '2025-04-16 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 09:56:18] Production.INFO: count ==1860 [2025-04-16 09:56:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:56:05 - End Time 2025-04-16 09:56:05 [2025-04-16 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920143', 'tblTempUsageDetail_20' ) start [2025-04-16 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920143', 'tblTempUsageDetail_20' ) end [2025-04-16 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920143', 'tblTempVendorCDR_20' ) start [2025-04-16 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920143', 'tblTempVendorCDR_20' ) end [2025-04-16 09:56:19] Production.INFO: ProcessCDR(1,14920143,1,1,2) [2025-04-16 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920143', 'tblTempUsageDetail_20' ) start [2025-04-16 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920143', 'tblTempUsageDetail_20' ) end [2025-04-16 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:56:24] Production.INFO: ==6445== Releasing lock... [2025-04-16 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:56:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-16 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:57:05 [end_date_ymd] => 2025-04-16 09:57:05 [RateCDR] => 1 ) [2025-04-16 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 06:57:05' and `end` < '2025-04-16 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 09:57:19] Production.INFO: count ==1867 [2025-04-16 09:57:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:57:05 - End Time 2025-04-16 09:57:05 [2025-04-16 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920148', 'tblTempUsageDetail_20' ) start [2025-04-16 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920148', 'tblTempUsageDetail_20' ) end [2025-04-16 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920148', 'tblTempVendorCDR_20' ) start [2025-04-16 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920148', 'tblTempVendorCDR_20' ) end [2025-04-16 09:57:19] Production.INFO: ProcessCDR(1,14920148,1,1,2) [2025-04-16 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920148', 'tblTempUsageDetail_20' ) start [2025-04-16 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920148', 'tblTempUsageDetail_20' ) end [2025-04-16 09:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:57:25] Production.INFO: ==6522== Releasing lock... [2025-04-16 09:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:57:25] Production.INFO: 42.25 MB #Memory Used# [2025-04-16 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:58:05 [end_date_ymd] => 2025-04-16 09:58:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 06:58:05' and `end` < '2025-04-16 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-04-16 09:58:18] Production.INFO: count ==1874 [2025-04-16 09:58:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:58:05 - End Time 2025-04-16 09:58:05 [2025-04-16 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920153', 'tblTempUsageDetail_20' ) start [2025-04-16 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920153', 'tblTempUsageDetail_20' ) end [2025-04-16 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920153', 'tblTempVendorCDR_20' ) start [2025-04-16 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920153', 'tblTempVendorCDR_20' ) end [2025-04-16 09:58:19] Production.INFO: ProcessCDR(1,14920153,1,1,2) [2025-04-16 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920153', 'tblTempUsageDetail_20' ) start [2025-04-16 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920153', 'tblTempUsageDetail_20' ) end [2025-04-16 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:58:24] Production.INFO: ==6591== Releasing lock... [2025-04-16 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:58:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-16 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 06:59:05 [end_date_ymd] => 2025-04-16 09:59:05 [RateCDR] => 1 ) [2025-04-16 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 06:59:05' and `end` < '2025-04-16 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 09:59:19] Production.INFO: count ==1879 [2025-04-16 09:59:19] Production.ERROR: pbx CDR StartTime 2025-04-16 06:59:05 - End Time 2025-04-16 09:59:05 [2025-04-16 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920158', 'tblTempUsageDetail_20' ) start [2025-04-16 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920158', 'tblTempUsageDetail_20' ) end [2025-04-16 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920158', 'tblTempVendorCDR_20' ) start [2025-04-16 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920158', 'tblTempVendorCDR_20' ) end [2025-04-16 09:59:19] Production.INFO: ProcessCDR(1,14920158,1,1,2) [2025-04-16 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 09:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920158', 'tblTempUsageDetail_20' ) start [2025-04-16 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920158', 'tblTempUsageDetail_20' ) end [2025-04-16 09:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 09:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 09:59:24] Production.INFO: ==6661== Releasing lock... [2025-04-16 09:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 09:59:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-16 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:00:06 [end_date_ymd] => 2025-04-16 10:00:06 [RateCDR] => 1 ) [2025-04-16 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:00:06' and `end` < '2025-04-16 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:00:19] Production.INFO: count ==1892 [2025-04-16 10:00:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:00:06 - End Time 2025-04-16 10:00:06 [2025-04-16 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920163', 'tblTempUsageDetail_20' ) start [2025-04-16 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920163', 'tblTempUsageDetail_20' ) end [2025-04-16 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920163', 'tblTempVendorCDR_20' ) start [2025-04-16 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920163', 'tblTempVendorCDR_20' ) end [2025-04-16 10:00:20] Production.INFO: ProcessCDR(1,14920163,1,1,2) [2025-04-16 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920163', 'tblTempUsageDetail_20' ) start [2025-04-16 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920163', 'tblTempUsageDetail_20' ) end [2025-04-16 10:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:00:25] Production.INFO: ==6733== Releasing lock... [2025-04-16 10:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:00:25] Production.INFO: 42.5 MB #Memory Used# [2025-04-16 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:01:05 [end_date_ymd] => 2025-04-16 10:01:05 [RateCDR] => 1 ) [2025-04-16 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:01:05' and `end` < '2025-04-16 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:01:18] Production.INFO: count ==2024 [2025-04-16 10:01:18] Production.ERROR: pbx CDR StartTime 2025-04-16 07:01:05 - End Time 2025-04-16 10:01:05 [2025-04-16 10:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920169', 'tblTempUsageDetail_20' ) start [2025-04-16 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920169', 'tblTempUsageDetail_20' ) end [2025-04-16 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920169', 'tblTempVendorCDR_20' ) start [2025-04-16 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920169', 'tblTempVendorCDR_20' ) end [2025-04-16 10:01:19] Production.INFO: ProcessCDR(1,14920169,1,1,2) [2025-04-16 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920169', 'tblTempUsageDetail_20' ) start [2025-04-16 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920169', 'tblTempUsageDetail_20' ) end [2025-04-16 10:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:01:24] Production.INFO: ==6824== Releasing lock... [2025-04-16 10:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:01:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-16 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:02:05 [end_date_ymd] => 2025-04-16 10:02:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:02:05' and `end` < '2025-04-16 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-04-16 10:02:19] Production.INFO: count ==2031 [2025-04-16 10:02:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:02:05 - End Time 2025-04-16 10:02:05 [2025-04-16 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920174', 'tblTempUsageDetail_20' ) start [2025-04-16 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920174', 'tblTempUsageDetail_20' ) end [2025-04-16 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920174', 'tblTempVendorCDR_20' ) start [2025-04-16 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920174', 'tblTempVendorCDR_20' ) end [2025-04-16 10:02:19] Production.INFO: ProcessCDR(1,14920174,1,1,2) [2025-04-16 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920174', 'tblTempUsageDetail_20' ) start [2025-04-16 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920174', 'tblTempUsageDetail_20' ) end [2025-04-16 10:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:02:25] Production.INFO: ==6958== Releasing lock... [2025-04-16 10:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:02:25] Production.INFO: 43.5 MB #Memory Used# [2025-04-16 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:03:05 [end_date_ymd] => 2025-04-16 10:03:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:03:05' and `end` < '2025-04-16 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-04-16 10:03:18] Production.INFO: count ==2037 [2025-04-16 10:03:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:03:05 - End Time 2025-04-16 10:03:05 [2025-04-16 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920179', 'tblTempUsageDetail_20' ) start [2025-04-16 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920179', 'tblTempUsageDetail_20' ) end [2025-04-16 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920179', 'tblTempVendorCDR_20' ) start [2025-04-16 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920179', 'tblTempVendorCDR_20' ) end [2025-04-16 10:03:19] Production.INFO: ProcessCDR(1,14920179,1,1,2) [2025-04-16 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920179', 'tblTempUsageDetail_20' ) start [2025-04-16 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920179', 'tblTempUsageDetail_20' ) end [2025-04-16 10:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:03:24] Production.INFO: ==7030== Releasing lock... [2025-04-16 10:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:03:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-16 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:04:05 [end_date_ymd] => 2025-04-16 10:04:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:04:05' and `end` < '2025-04-16 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-04-16 10:04:18] Production.INFO: count ==2044 [2025-04-16 10:04:18] Production.ERROR: pbx CDR StartTime 2025-04-16 07:04:05 - End Time 2025-04-16 10:04:05 [2025-04-16 10:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920184', 'tblTempUsageDetail_20' ) start [2025-04-16 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920184', 'tblTempUsageDetail_20' ) end [2025-04-16 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920184', 'tblTempVendorCDR_20' ) start [2025-04-16 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920184', 'tblTempVendorCDR_20' ) end [2025-04-16 10:04:18] Production.INFO: ProcessCDR(1,14920184,1,1,2) [2025-04-16 10:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920184', 'tblTempUsageDetail_20' ) start [2025-04-16 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920184', 'tblTempUsageDetail_20' ) end [2025-04-16 10:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:04:24] Production.INFO: ==7102== Releasing lock... [2025-04-16 10:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:04:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-16 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:05:05 [end_date_ymd] => 2025-04-16 10:05:05 [RateCDR] => 1 ) [2025-04-16 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:05:05' and `end` < '2025-04-16 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:05:19] Production.INFO: count ==2062 [2025-04-16 10:05:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:05:05 - End Time 2025-04-16 10:05:05 [2025-04-16 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920189', 'tblTempUsageDetail_20' ) start [2025-04-16 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920189', 'tblTempUsageDetail_20' ) end [2025-04-16 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920189', 'tblTempVendorCDR_20' ) start [2025-04-16 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920189', 'tblTempVendorCDR_20' ) end [2025-04-16 10:05:20] Production.INFO: ProcessCDR(1,14920189,1,1,2) [2025-04-16 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920189', 'tblTempUsageDetail_20' ) start [2025-04-16 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920189', 'tblTempUsageDetail_20' ) end [2025-04-16 10:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:05:25] Production.INFO: ==7172== Releasing lock... [2025-04-16 10:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:05:25] Production.INFO: 43.5 MB #Memory Used# [2025-04-16 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:06:05 [end_date_ymd] => 2025-04-16 10:06:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:06:05' and `end` < '2025-04-16 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-04-16 10:06:18] Production.INFO: count ==2070 [2025-04-16 10:06:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:06:05 - End Time 2025-04-16 10:06:05 [2025-04-16 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920194', 'tblTempUsageDetail_20' ) start [2025-04-16 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920194', 'tblTempUsageDetail_20' ) end [2025-04-16 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920194', 'tblTempVendorCDR_20' ) start [2025-04-16 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920194', 'tblTempVendorCDR_20' ) end [2025-04-16 10:06:19] Production.INFO: ProcessCDR(1,14920194,1,1,2) [2025-04-16 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920194', 'tblTempUsageDetail_20' ) start [2025-04-16 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920194', 'tblTempUsageDetail_20' ) end [2025-04-16 10:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:06:24] Production.INFO: ==7249== Releasing lock... [2025-04-16 10:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:06:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-16 10:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:07:04 [end_date_ymd] => 2025-04-16 10:07:04 [RateCDR] => 1 ) [2025-04-16 10:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:07:04' and `end` < '2025-04-16 10:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:07:18] Production.INFO: count ==2105 [2025-04-16 10:07:18] Production.ERROR: pbx CDR StartTime 2025-04-16 07:07:04 - End Time 2025-04-16 10:07:04 [2025-04-16 10:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920199', 'tblTempUsageDetail_20' ) start [2025-04-16 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920199', 'tblTempUsageDetail_20' ) end [2025-04-16 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920199', 'tblTempVendorCDR_20' ) start [2025-04-16 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920199', 'tblTempVendorCDR_20' ) end [2025-04-16 10:07:18] Production.INFO: ProcessCDR(1,14920199,1,1,2) [2025-04-16 10:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920199', 'tblTempUsageDetail_20' ) start [2025-04-16 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920199', 'tblTempUsageDetail_20' ) end [2025-04-16 10:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:07:23] Production.INFO: ==7321== Releasing lock... [2025-04-16 10:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:07:23] Production.INFO: 44 MB #Memory Used# [2025-04-16 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:08:05 [end_date_ymd] => 2025-04-16 10:08:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:08:05' and `end` < '2025-04-16 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-04-16 10:08:19] Production.INFO: count ==2129 [2025-04-16 10:08:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:08:05 - End Time 2025-04-16 10:08:05 [2025-04-16 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920204', 'tblTempUsageDetail_20' ) start [2025-04-16 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920204', 'tblTempUsageDetail_20' ) end [2025-04-16 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920204', 'tblTempVendorCDR_20' ) start [2025-04-16 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920204', 'tblTempVendorCDR_20' ) end [2025-04-16 10:08:19] Production.INFO: ProcessCDR(1,14920204,1,1,2) [2025-04-16 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920204', 'tblTempUsageDetail_20' ) start [2025-04-16 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920204', 'tblTempUsageDetail_20' ) end [2025-04-16 10:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:08:24] Production.INFO: ==7393== Releasing lock... [2025-04-16 10:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:08:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-16 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:09:06 [end_date_ymd] => 2025-04-16 10:09:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:09:06' and `end` < '2025-04-16 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-04-16 10:09:19] Production.INFO: count ==2140 [2025-04-16 10:09:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:09:06 - End Time 2025-04-16 10:09:06 [2025-04-16 10:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920209', 'tblTempUsageDetail_20' ) start [2025-04-16 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920209', 'tblTempUsageDetail_20' ) end [2025-04-16 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920209', 'tblTempVendorCDR_20' ) start [2025-04-16 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920209', 'tblTempVendorCDR_20' ) end [2025-04-16 10:09:20] Production.INFO: ProcessCDR(1,14920209,1,1,2) [2025-04-16 10:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920209', 'tblTempUsageDetail_20' ) start [2025-04-16 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920209', 'tblTempUsageDetail_20' ) end [2025-04-16 10:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:09:25] Production.INFO: ==7467== Releasing lock... [2025-04-16 10:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:09:25] Production.INFO: 44.25 MB #Memory Used# [2025-04-16 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:10:05 [end_date_ymd] => 2025-04-16 10:10:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:10:05' and `end` < '2025-04-16 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-04-16 10:10:19] Production.INFO: count ==2167 [2025-04-16 10:10:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:10:05 - End Time 2025-04-16 10:10:05 [2025-04-16 10:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920215', 'tblTempUsageDetail_20' ) start [2025-04-16 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920215', 'tblTempUsageDetail_20' ) end [2025-04-16 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920215', 'tblTempVendorCDR_20' ) start [2025-04-16 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920215', 'tblTempVendorCDR_20' ) end [2025-04-16 10:10:19] Production.INFO: ProcessCDR(1,14920215,1,1,2) [2025-04-16 10:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920215', 'tblTempUsageDetail_20' ) start [2025-04-16 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920215', 'tblTempUsageDetail_20' ) end [2025-04-16 10:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:10:24] Production.INFO: ==7545== Releasing lock... [2025-04-16 10:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:10:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-16 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:11:05 [end_date_ymd] => 2025-04-16 10:11:05 [RateCDR] => 1 ) [2025-04-16 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:11:05' and `end` < '2025-04-16 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:11:19] Production.INFO: count ==2285 [2025-04-16 10:11:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:11:05 - End Time 2025-04-16 10:11:05 [2025-04-16 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920220', 'tblTempUsageDetail_20' ) start [2025-04-16 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920220', 'tblTempUsageDetail_20' ) end [2025-04-16 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920220', 'tblTempVendorCDR_20' ) start [2025-04-16 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920220', 'tblTempVendorCDR_20' ) end [2025-04-16 10:11:19] Production.INFO: ProcessCDR(1,14920220,1,1,2) [2025-04-16 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920220', 'tblTempUsageDetail_20' ) start [2025-04-16 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920220', 'tblTempUsageDetail_20' ) end [2025-04-16 10:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:11:23] Production.INFO: ==7619== Releasing lock... [2025-04-16 10:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:11:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-16 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:12:05 [end_date_ymd] => 2025-04-16 10:12:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:12:05' and `end` < '2025-04-16 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-04-16 10:12:18] Production.INFO: count ==2310 [2025-04-16 10:12:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:12:05 - End Time 2025-04-16 10:12:05 [2025-04-16 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920225', 'tblTempUsageDetail_20' ) start [2025-04-16 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920225', 'tblTempUsageDetail_20' ) end [2025-04-16 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920225', 'tblTempVendorCDR_20' ) start [2025-04-16 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920225', 'tblTempVendorCDR_20' ) end [2025-04-16 10:12:19] Production.INFO: ProcessCDR(1,14920225,1,1,2) [2025-04-16 10:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920225', 'tblTempUsageDetail_20' ) start [2025-04-16 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920225', 'tblTempUsageDetail_20' ) end [2025-04-16 10:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:12:24] Production.INFO: ==7692== Releasing lock... [2025-04-16 10:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:12:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-16 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:13:05 [end_date_ymd] => 2025-04-16 10:13:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:13:05' and `end` < '2025-04-16 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-04-16 10:13:18] Production.INFO: count ==2320 [2025-04-16 10:13:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:13:05 - End Time 2025-04-16 10:13:05 [2025-04-16 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920230', 'tblTempUsageDetail_20' ) start [2025-04-16 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920230', 'tblTempUsageDetail_20' ) end [2025-04-16 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920230', 'tblTempVendorCDR_20' ) start [2025-04-16 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920230', 'tblTempVendorCDR_20' ) end [2025-04-16 10:13:19] Production.INFO: ProcessCDR(1,14920230,1,1,2) [2025-04-16 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920230', 'tblTempUsageDetail_20' ) start [2025-04-16 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920230', 'tblTempUsageDetail_20' ) end [2025-04-16 10:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:13:24] Production.INFO: ==7763== Releasing lock... [2025-04-16 10:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:13:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-16 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:14:05 [end_date_ymd] => 2025-04-16 10:14:05 [RateCDR] => 1 ) [2025-04-16 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:14:05' and `end` < '2025-04-16 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:14:19] Production.INFO: count ==2329 [2025-04-16 10:14:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:14:05 - End Time 2025-04-16 10:14:05 [2025-04-16 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920235', 'tblTempUsageDetail_20' ) start [2025-04-16 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920235', 'tblTempUsageDetail_20' ) end [2025-04-16 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920235', 'tblTempVendorCDR_20' ) start [2025-04-16 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920235', 'tblTempVendorCDR_20' ) end [2025-04-16 10:14:19] Production.INFO: ProcessCDR(1,14920235,1,1,2) [2025-04-16 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920235', 'tblTempUsageDetail_20' ) start [2025-04-16 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920235', 'tblTempUsageDetail_20' ) end [2025-04-16 10:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:14:25] Production.INFO: ==7833== Releasing lock... [2025-04-16 10:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:14:25] Production.INFO: 45.5 MB #Memory Used# [2025-04-16 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:15:05 [end_date_ymd] => 2025-04-16 10:15:05 [RateCDR] => 1 ) [2025-04-16 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:15:05' and `end` < '2025-04-16 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:15:18] Production.INFO: count ==2345 [2025-04-16 10:15:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:15:05 - End Time 2025-04-16 10:15:05 [2025-04-16 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920240', 'tblTempUsageDetail_20' ) start [2025-04-16 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920240', 'tblTempUsageDetail_20' ) end [2025-04-16 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920240', 'tblTempVendorCDR_20' ) start [2025-04-16 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920240', 'tblTempVendorCDR_20' ) end [2025-04-16 10:15:19] Production.INFO: ProcessCDR(1,14920240,1,1,2) [2025-04-16 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920240', 'tblTempUsageDetail_20' ) start [2025-04-16 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920240', 'tblTempUsageDetail_20' ) end [2025-04-16 10:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:15:24] Production.INFO: ==7910== Releasing lock... [2025-04-16 10:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:15:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-16 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:16:05 [end_date_ymd] => 2025-04-16 10:16:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:16:05' and `end` < '2025-04-16 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-04-16 10:16:19] Production.INFO: count ==2378 [2025-04-16 10:16:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:16:05 - End Time 2025-04-16 10:16:05 [2025-04-16 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920245', 'tblTempUsageDetail_20' ) start [2025-04-16 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920245', 'tblTempUsageDetail_20' ) end [2025-04-16 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920245', 'tblTempVendorCDR_20' ) start [2025-04-16 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920245', 'tblTempVendorCDR_20' ) end [2025-04-16 10:16:20] Production.INFO: ProcessCDR(1,14920245,1,1,2) [2025-04-16 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920245', 'tblTempUsageDetail_20' ) start [2025-04-16 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920245', 'tblTempUsageDetail_20' ) end [2025-04-16 10:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:16:25] Production.INFO: ==7982== Releasing lock... [2025-04-16 10:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:16:25] Production.INFO: 46 MB #Memory Used# [2025-04-16 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:17:05 [end_date_ymd] => 2025-04-16 10:17:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:17:05' and `end` < '2025-04-16 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-04-16 10:17:19] Production.INFO: count ==2392 [2025-04-16 10:17:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:17:05 - End Time 2025-04-16 10:17:05 [2025-04-16 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920250', 'tblTempUsageDetail_20' ) start [2025-04-16 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920250', 'tblTempUsageDetail_20' ) end [2025-04-16 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920250', 'tblTempVendorCDR_20' ) start [2025-04-16 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920250', 'tblTempVendorCDR_20' ) end [2025-04-16 10:17:19] Production.INFO: ProcessCDR(1,14920250,1,1,2) [2025-04-16 10:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920250', 'tblTempUsageDetail_20' ) start [2025-04-16 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920250', 'tblTempUsageDetail_20' ) end [2025-04-16 10:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:17:24] Production.INFO: ==8091== Releasing lock... [2025-04-16 10:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:17:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-16 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:18:06 [end_date_ymd] => 2025-04-16 10:18:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:18:06' and `end` < '2025-04-16 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-04-16 10:18:19] Production.INFO: count ==2413 [2025-04-16 10:18:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:18:06 - End Time 2025-04-16 10:18:06 [2025-04-16 10:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920255', 'tblTempUsageDetail_20' ) start [2025-04-16 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920255', 'tblTempUsageDetail_20' ) end [2025-04-16 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920255', 'tblTempVendorCDR_20' ) start [2025-04-16 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920255', 'tblTempVendorCDR_20' ) end [2025-04-16 10:18:20] Production.INFO: ProcessCDR(1,14920255,1,1,2) [2025-04-16 10:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920255', 'tblTempUsageDetail_20' ) start [2025-04-16 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920255', 'tblTempUsageDetail_20' ) end [2025-04-16 10:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:18:25] Production.INFO: ==8165== Releasing lock... [2025-04-16 10:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:18:25] Production.INFO: 46.25 MB #Memory Used# [2025-04-16 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:19:05 [end_date_ymd] => 2025-04-16 10:19:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:19:05' and `end` < '2025-04-16 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-04-16 10:19:18] Production.INFO: count ==2451 [2025-04-16 10:19:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:19:05 - End Time 2025-04-16 10:19:05 [2025-04-16 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920260', 'tblTempUsageDetail_20' ) start [2025-04-16 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920260', 'tblTempUsageDetail_20' ) end [2025-04-16 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920260', 'tblTempVendorCDR_20' ) start [2025-04-16 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920260', 'tblTempVendorCDR_20' ) end [2025-04-16 10:19:19] Production.INFO: ProcessCDR(1,14920260,1,1,2) [2025-04-16 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920260', 'tblTempUsageDetail_20' ) start [2025-04-16 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920260', 'tblTempUsageDetail_20' ) end [2025-04-16 10:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:19:24] Production.INFO: ==8238== Releasing lock... [2025-04-16 10:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:19:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-16 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:20:06 [end_date_ymd] => 2025-04-16 10:20:06 [RateCDR] => 1 ) [2025-04-16 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:20:06' and `end` < '2025-04-16 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:20:19] Production.INFO: count ==2463 [2025-04-16 10:20:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:20:06 - End Time 2025-04-16 10:20:06 [2025-04-16 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920265', 'tblTempUsageDetail_20' ) start [2025-04-16 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920265', 'tblTempUsageDetail_20' ) end [2025-04-16 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920265', 'tblTempVendorCDR_20' ) start [2025-04-16 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920265', 'tblTempVendorCDR_20' ) end [2025-04-16 10:20:20] Production.INFO: ProcessCDR(1,14920265,1,1,2) [2025-04-16 10:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920265', 'tblTempUsageDetail_20' ) start [2025-04-16 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920265', 'tblTempUsageDetail_20' ) end [2025-04-16 10:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:20:25] Production.INFO: ==8313== Releasing lock... [2025-04-16 10:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:20:25] Production.INFO: 46.75 MB #Memory Used# [2025-04-16 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:21:05 [end_date_ymd] => 2025-04-16 10:21:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:21:05' and `end` < '2025-04-16 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-04-16 10:21:18] Production.INFO: count ==2579 [2025-04-16 10:21:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:21:05 - End Time 2025-04-16 10:21:05 [2025-04-16 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920271', 'tblTempUsageDetail_20' ) start [2025-04-16 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920271', 'tblTempUsageDetail_20' ) end [2025-04-16 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920271', 'tblTempVendorCDR_20' ) start [2025-04-16 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920271', 'tblTempVendorCDR_20' ) end [2025-04-16 10:21:19] Production.INFO: ProcessCDR(1,14920271,1,1,2) [2025-04-16 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920271', 'tblTempUsageDetail_20' ) start [2025-04-16 10:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920271', 'tblTempUsageDetail_20' ) end [2025-04-16 10:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:21:22] Production.INFO: ==8388== Releasing lock... [2025-04-16 10:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:21:22] Production.INFO: 47.5 MB #Memory Used# [2025-04-16 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:22:05 [end_date_ymd] => 2025-04-16 10:22:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:22:05' and `end` < '2025-04-16 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-04-16 10:22:19] Production.INFO: count ==2615 [2025-04-16 10:22:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:22:05 - End Time 2025-04-16 10:22:05 [2025-04-16 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920276', 'tblTempUsageDetail_20' ) start [2025-04-16 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920276', 'tblTempUsageDetail_20' ) end [2025-04-16 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920276', 'tblTempVendorCDR_20' ) start [2025-04-16 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920276', 'tblTempVendorCDR_20' ) end [2025-04-16 10:22:20] Production.INFO: ProcessCDR(1,14920276,1,1,2) [2025-04-16 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920276', 'tblTempUsageDetail_20' ) start [2025-04-16 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920276', 'tblTempUsageDetail_20' ) end [2025-04-16 10:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:22:25] Production.INFO: ==8462== Releasing lock... [2025-04-16 10:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:22:25] Production.INFO: 47.75 MB #Memory Used# [2025-04-16 10:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:23:04 [end_date_ymd] => 2025-04-16 10:23:04 [RateCDR] => 1 ) [2025-04-16 10:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:23:04' and `end` < '2025-04-16 10:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:23:19] Production.INFO: count ==2642 [2025-04-16 10:23:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:23:04 - End Time 2025-04-16 10:23:04 [2025-04-16 10:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920281', 'tblTempUsageDetail_20' ) start [2025-04-16 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920281', 'tblTempUsageDetail_20' ) end [2025-04-16 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920281', 'tblTempVendorCDR_20' ) start [2025-04-16 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920281', 'tblTempVendorCDR_20' ) end [2025-04-16 10:23:20] Production.INFO: ProcessCDR(1,14920281,1,1,2) [2025-04-16 10:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920281', 'tblTempUsageDetail_20' ) start [2025-04-16 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920281', 'tblTempUsageDetail_20' ) end [2025-04-16 10:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:23:25] Production.INFO: ==8531== Releasing lock... [2025-04-16 10:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:23:25] Production.INFO: 48.25 MB #Memory Used# [2025-04-16 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:24:05 [end_date_ymd] => 2025-04-16 10:24:05 [RateCDR] => 1 ) [2025-04-16 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:24:05' and `end` < '2025-04-16 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:24:19] Production.INFO: count ==2654 [2025-04-16 10:24:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:24:05 - End Time 2025-04-16 10:24:05 [2025-04-16 10:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920286', 'tblTempUsageDetail_20' ) start [2025-04-16 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920286', 'tblTempUsageDetail_20' ) end [2025-04-16 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920286', 'tblTempVendorCDR_20' ) start [2025-04-16 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920286', 'tblTempVendorCDR_20' ) end [2025-04-16 10:24:20] Production.INFO: ProcessCDR(1,14920286,1,1,2) [2025-04-16 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920286', 'tblTempUsageDetail_20' ) start [2025-04-16 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920286', 'tblTempUsageDetail_20' ) end [2025-04-16 10:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:24:25] Production.INFO: ==8606== Releasing lock... [2025-04-16 10:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:24:25] Production.INFO: 48 MB #Memory Used# [2025-04-16 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:25:05 [end_date_ymd] => 2025-04-16 10:25:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:25:05' and `end` < '2025-04-16 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-04-16 10:25:19] Production.INFO: count ==2665 [2025-04-16 10:25:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:25:05 - End Time 2025-04-16 10:25:05 [2025-04-16 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920291', 'tblTempUsageDetail_20' ) start [2025-04-16 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920291', 'tblTempUsageDetail_20' ) end [2025-04-16 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920291', 'tblTempVendorCDR_20' ) start [2025-04-16 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920291', 'tblTempVendorCDR_20' ) end [2025-04-16 10:25:20] Production.INFO: ProcessCDR(1,14920291,1,1,2) [2025-04-16 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920291', 'tblTempUsageDetail_20' ) start [2025-04-16 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920291', 'tblTempUsageDetail_20' ) end [2025-04-16 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:25:25] Production.INFO: ==8691== Releasing lock... [2025-04-16 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:25:25] Production.INFO: 48.25 MB #Memory Used# [2025-04-16 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:26:05 [end_date_ymd] => 2025-04-16 10:26:05 [RateCDR] => 1 ) [2025-04-16 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:26:05' and `end` < '2025-04-16 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:26:19] Production.INFO: count ==2735 [2025-04-16 10:26:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:26:05 - End Time 2025-04-16 10:26:05 [2025-04-16 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920296', 'tblTempUsageDetail_20' ) start [2025-04-16 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920296', 'tblTempUsageDetail_20' ) end [2025-04-16 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920296', 'tblTempVendorCDR_20' ) start [2025-04-16 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920296', 'tblTempVendorCDR_20' ) end [2025-04-16 10:26:20] Production.INFO: ProcessCDR(1,14920296,1,1,2) [2025-04-16 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920296', 'tblTempUsageDetail_20' ) start [2025-04-16 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920296', 'tblTempUsageDetail_20' ) end [2025-04-16 10:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:26:25] Production.INFO: ==8761== Releasing lock... [2025-04-16 10:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:26:25] Production.INFO: 48.5 MB #Memory Used# [2025-04-16 10:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:27:06 [end_date_ymd] => 2025-04-16 10:27:06 [RateCDR] => 1 ) [2025-04-16 10: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-04-16 07:27:06' and `end` < '2025-04-16 10: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-04-16 10:27:20] Production.INFO: count ==2746 [2025-04-16 10:27:21] Production.ERROR: pbx CDR StartTime 2025-04-16 07:27:06 - End Time 2025-04-16 10:27:06 [2025-04-16 10:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920301', 'tblTempUsageDetail_20' ) start [2025-04-16 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920301', 'tblTempUsageDetail_20' ) end [2025-04-16 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920301', 'tblTempVendorCDR_20' ) start [2025-04-16 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920301', 'tblTempVendorCDR_20' ) end [2025-04-16 10:27:21] Production.INFO: ProcessCDR(1,14920301,1,1,2) [2025-04-16 10:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920301', 'tblTempUsageDetail_20' ) start [2025-04-16 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920301', 'tblTempUsageDetail_20' ) end [2025-04-16 10:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:27:26] Production.INFO: ==8835== Releasing lock... [2025-04-16 10:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:27:26] Production.INFO: 48.75 MB #Memory Used# [2025-04-16 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:28:05 [end_date_ymd] => 2025-04-16 10:28:05 [RateCDR] => 1 ) [2025-04-16 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:28:05' and `end` < '2025-04-16 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:28:18] Production.INFO: count ==2757 [2025-04-16 10:28:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:28:05 - End Time 2025-04-16 10:28:05 [2025-04-16 10:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920306', 'tblTempUsageDetail_20' ) start [2025-04-16 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920306', 'tblTempUsageDetail_20' ) end [2025-04-16 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920306', 'tblTempVendorCDR_20' ) start [2025-04-16 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920306', 'tblTempVendorCDR_20' ) end [2025-04-16 10:28:19] Production.INFO: ProcessCDR(1,14920306,1,1,2) [2025-04-16 10:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920306', 'tblTempUsageDetail_20' ) start [2025-04-16 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920306', 'tblTempUsageDetail_20' ) end [2025-04-16 10:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:28:24] Production.INFO: ==8909== Releasing lock... [2025-04-16 10:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:28:24] Production.INFO: 48.75 MB #Memory Used# [2025-04-16 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:29:05 [end_date_ymd] => 2025-04-16 10:29:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:29:05' and `end` < '2025-04-16 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-04-16 10:29:19] Production.INFO: count ==2766 [2025-04-16 10:29:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:29:05 - End Time 2025-04-16 10:29:05 [2025-04-16 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920311', 'tblTempUsageDetail_20' ) start [2025-04-16 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920311', 'tblTempUsageDetail_20' ) end [2025-04-16 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920311', 'tblTempVendorCDR_20' ) start [2025-04-16 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920311', 'tblTempVendorCDR_20' ) end [2025-04-16 10:29:20] Production.INFO: ProcessCDR(1,14920311,1,1,2) [2025-04-16 10:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920311', 'tblTempUsageDetail_20' ) start [2025-04-16 10:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920311', 'tblTempUsageDetail_20' ) end [2025-04-16 10:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:29:26] Production.INFO: ==8982== Releasing lock... [2025-04-16 10:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:29:26] Production.INFO: 48.75 MB #Memory Used# [2025-04-16 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:30:06 [end_date_ymd] => 2025-04-16 10:30:06 [RateCDR] => 1 ) [2025-04-16 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:30:06' and `end` < '2025-04-16 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:30:19] Production.INFO: count ==2773 [2025-04-16 10:30:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:30:06 - End Time 2025-04-16 10:30:06 [2025-04-16 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920317', 'tblTempUsageDetail_20' ) start [2025-04-16 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920317', 'tblTempUsageDetail_20' ) end [2025-04-16 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920317', 'tblTempVendorCDR_20' ) start [2025-04-16 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920317', 'tblTempVendorCDR_20' ) end [2025-04-16 10:30:20] Production.INFO: ProcessCDR(1,14920317,1,1,2) [2025-04-16 10:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920317', 'tblTempUsageDetail_20' ) start [2025-04-16 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920317', 'tblTempUsageDetail_20' ) end [2025-04-16 10:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:30:25] Production.INFO: ==9052== Releasing lock... [2025-04-16 10:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:30:25] Production.INFO: 49 MB #Memory Used# [2025-04-16 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:31:05 [end_date_ymd] => 2025-04-16 10:31:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:31:05' and `end` < '2025-04-16 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-04-16 10:31:19] Production.INFO: count ==2895 [2025-04-16 10:31:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:31:05 - End Time 2025-04-16 10:31:05 [2025-04-16 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920322', 'tblTempUsageDetail_20' ) start [2025-04-16 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920322', 'tblTempUsageDetail_20' ) end [2025-04-16 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920322', 'tblTempVendorCDR_20' ) start [2025-04-16 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920322', 'tblTempVendorCDR_20' ) end [2025-04-16 10:31:20] Production.INFO: ProcessCDR(1,14920322,1,1,2) [2025-04-16 10:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920322', 'tblTempUsageDetail_20' ) start [2025-04-16 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920322', 'tblTempUsageDetail_20' ) end [2025-04-16 10:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:31:25] Production.INFO: ==9133== Releasing lock... [2025-04-16 10:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:31:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-16 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:32:05 [end_date_ymd] => 2025-04-16 10:32:05 [RateCDR] => 1 ) [2025-04-16 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:32:05' and `end` < '2025-04-16 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:32:18] Production.INFO: count ==2918 [2025-04-16 10:32:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:32:05 - End Time 2025-04-16 10:32:05 [2025-04-16 10:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920327', 'tblTempUsageDetail_20' ) start [2025-04-16 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920327', 'tblTempUsageDetail_20' ) end [2025-04-16 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920327', 'tblTempVendorCDR_20' ) start [2025-04-16 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920327', 'tblTempVendorCDR_20' ) end [2025-04-16 10:32:19] Production.INFO: ProcessCDR(1,14920327,1,1,2) [2025-04-16 10:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920327', 'tblTempUsageDetail_20' ) start [2025-04-16 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920327', 'tblTempUsageDetail_20' ) end [2025-04-16 10:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:32:25] Production.INFO: ==9208== Releasing lock... [2025-04-16 10:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:32:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-16 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:33:05 [end_date_ymd] => 2025-04-16 10:33:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:33:05' and `end` < '2025-04-16 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-04-16 10:33:18] Production.INFO: count ==2936 [2025-04-16 10:33:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:33:05 - End Time 2025-04-16 10:33:05 [2025-04-16 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920332', 'tblTempUsageDetail_20' ) start [2025-04-16 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920332', 'tblTempUsageDetail_20' ) end [2025-04-16 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920332', 'tblTempVendorCDR_20' ) start [2025-04-16 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920332', 'tblTempVendorCDR_20' ) end [2025-04-16 10:33:19] Production.INFO: ProcessCDR(1,14920332,1,1,2) [2025-04-16 10:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920332', 'tblTempUsageDetail_20' ) start [2025-04-16 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920332', 'tblTempUsageDetail_20' ) end [2025-04-16 10:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:33:25] Production.INFO: ==9330== Releasing lock... [2025-04-16 10:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:33:25] Production.INFO: 49.75 MB #Memory Used# [2025-04-16 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:34:05 [end_date_ymd] => 2025-04-16 10:34:05 [RateCDR] => 1 ) [2025-04-16 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:34:05' and `end` < '2025-04-16 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:34:18] Production.INFO: count ==2960 [2025-04-16 10:34:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:34:05 - End Time 2025-04-16 10:34:05 [2025-04-16 10:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920337', 'tblTempUsageDetail_20' ) start [2025-04-16 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920337', 'tblTempUsageDetail_20' ) end [2025-04-16 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920337', 'tblTempVendorCDR_20' ) start [2025-04-16 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920337', 'tblTempVendorCDR_20' ) end [2025-04-16 10:34:19] Production.INFO: ProcessCDR(1,14920337,1,1,2) [2025-04-16 10:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920337', 'tblTempUsageDetail_20' ) start [2025-04-16 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920337', 'tblTempUsageDetail_20' ) end [2025-04-16 10:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:34:24] Production.INFO: ==9403== Releasing lock... [2025-04-16 10:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:34:24] Production.INFO: 49.75 MB #Memory Used# [2025-04-16 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:35:05 [end_date_ymd] => 2025-04-16 10:35:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:35:05' and `end` < '2025-04-16 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-04-16 10:35:18] Production.INFO: count ==2969 [2025-04-16 10:35:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:35:05 - End Time 2025-04-16 10:35:05 [2025-04-16 10:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920342', 'tblTempUsageDetail_20' ) start [2025-04-16 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920342', 'tblTempUsageDetail_20' ) end [2025-04-16 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920342', 'tblTempVendorCDR_20' ) start [2025-04-16 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920342', 'tblTempVendorCDR_20' ) end [2025-04-16 10:35:19] Production.INFO: ProcessCDR(1,14920342,1,1,2) [2025-04-16 10:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920342', 'tblTempUsageDetail_20' ) start [2025-04-16 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920342', 'tblTempUsageDetail_20' ) end [2025-04-16 10:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:35:24] Production.INFO: ==9476== Releasing lock... [2025-04-16 10:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:35:24] Production.INFO: 50.25 MB #Memory Used# [2025-04-16 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:36:05 [end_date_ymd] => 2025-04-16 10:36:05 [RateCDR] => 1 ) [2025-04-16 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:36:05' and `end` < '2025-04-16 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:36:19] Production.INFO: count ==2979 [2025-04-16 10:36:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:36:05 - End Time 2025-04-16 10:36:05 [2025-04-16 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920345', 'tblTempUsageDetail_20' ) start [2025-04-16 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920345', 'tblTempUsageDetail_20' ) end [2025-04-16 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920345', 'tblTempVendorCDR_20' ) start [2025-04-16 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920345', 'tblTempVendorCDR_20' ) end [2025-04-16 10:36:20] Production.INFO: ProcessCDR(1,14920345,1,1,2) [2025-04-16 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920345', 'tblTempUsageDetail_20' ) start [2025-04-16 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920345', 'tblTempUsageDetail_20' ) end [2025-04-16 10:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:36:25] Production.INFO: ==9549== Releasing lock... [2025-04-16 10:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:36:25] Production.INFO: 50.25 MB #Memory Used# [2025-04-16 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:37:05 [end_date_ymd] => 2025-04-16 10:37:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:37:05' and `end` < '2025-04-16 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-04-16 10:37:18] Production.INFO: count ==2990 [2025-04-16 10:37:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:37:05 - End Time 2025-04-16 10:37:05 [2025-04-16 10:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920352', 'tblTempUsageDetail_20' ) start [2025-04-16 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920352', 'tblTempUsageDetail_20' ) end [2025-04-16 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920352', 'tblTempVendorCDR_20' ) start [2025-04-16 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920352', 'tblTempVendorCDR_20' ) end [2025-04-16 10:37:19] Production.INFO: ProcessCDR(1,14920352,1,1,2) [2025-04-16 10:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920352', 'tblTempUsageDetail_20' ) start [2025-04-16 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920352', 'tblTempUsageDetail_20' ) end [2025-04-16 10:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:37:24] Production.INFO: ==9620== Releasing lock... [2025-04-16 10:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:37:24] Production.INFO: 50.5 MB #Memory Used# [2025-04-16 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:38:05 [end_date_ymd] => 2025-04-16 10:38:05 [RateCDR] => 1 ) [2025-04-16 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:38:05' and `end` < '2025-04-16 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:38:18] Production.INFO: count ==2994 [2025-04-16 10:38:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:38:05 - End Time 2025-04-16 10:38:05 [2025-04-16 10:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920357', 'tblTempUsageDetail_20' ) start [2025-04-16 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920357', 'tblTempUsageDetail_20' ) end [2025-04-16 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920357', 'tblTempVendorCDR_20' ) start [2025-04-16 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920357', 'tblTempVendorCDR_20' ) end [2025-04-16 10:38:20] Production.INFO: ProcessCDR(1,14920357,1,1,2) [2025-04-16 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920357', 'tblTempUsageDetail_20' ) start [2025-04-16 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920357', 'tblTempUsageDetail_20' ) end [2025-04-16 10:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:38:25] Production.INFO: ==9693== Releasing lock... [2025-04-16 10:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:38:25] Production.INFO: 50.25 MB #Memory Used# [2025-04-16 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:39:05 [end_date_ymd] => 2025-04-16 10:39:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:39:05' and `end` < '2025-04-16 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-04-16 10:39:19] Production.INFO: count ==3037 [2025-04-16 10:39:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:39:05 - End Time 2025-04-16 10:39:05 [2025-04-16 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920362', 'tblTempUsageDetail_20' ) start [2025-04-16 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920362', 'tblTempUsageDetail_20' ) end [2025-04-16 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920362', 'tblTempVendorCDR_20' ) start [2025-04-16 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920362', 'tblTempVendorCDR_20' ) end [2025-04-16 10:39:20] Production.INFO: ProcessCDR(1,14920362,1,1,2) [2025-04-16 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920362', 'tblTempUsageDetail_20' ) start [2025-04-16 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920362', 'tblTempUsageDetail_20' ) end [2025-04-16 10:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:39:25] Production.INFO: ==9767== Releasing lock... [2025-04-16 10:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:39:25] Production.INFO: 50.75 MB #Memory Used# [2025-04-16 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:40:05 [end_date_ymd] => 2025-04-16 10:40:05 [RateCDR] => 1 ) [2025-04-16 10:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:40:05' and `end` < '2025-04-16 10:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:40:19] Production.INFO: count ==3033 [2025-04-16 10:40:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:40:05 - End Time 2025-04-16 10:40:05 [2025-04-16 10:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920367', 'tblTempUsageDetail_20' ) start [2025-04-16 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920367', 'tblTempUsageDetail_20' ) end [2025-04-16 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920367', 'tblTempVendorCDR_20' ) start [2025-04-16 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920367', 'tblTempVendorCDR_20' ) end [2025-04-16 10:40:20] Production.INFO: ProcessCDR(1,14920367,1,1,2) [2025-04-16 10:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920367', 'tblTempUsageDetail_20' ) start [2025-04-16 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920367', 'tblTempUsageDetail_20' ) end [2025-04-16 10:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:40:25] Production.INFO: ==9846== Releasing lock... [2025-04-16 10:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:40:25] Production.INFO: 50.75 MB #Memory Used# [2025-04-16 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:41:05 [end_date_ymd] => 2025-04-16 10:41:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:41:05' and `end` < '2025-04-16 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-04-16 10:41:18] Production.INFO: count ==3160 [2025-04-16 10:41:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:41:05 - End Time 2025-04-16 10:41:05 [2025-04-16 10:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920373', 'tblTempUsageDetail_20' ) start [2025-04-16 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920373', 'tblTempUsageDetail_20' ) end [2025-04-16 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920373', 'tblTempVendorCDR_20' ) start [2025-04-16 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920373', 'tblTempVendorCDR_20' ) end [2025-04-16 10:41:20] Production.INFO: ProcessCDR(1,14920373,1,1,2) [2025-04-16 10:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920373', 'tblTempUsageDetail_20' ) start [2025-04-16 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920373', 'tblTempUsageDetail_20' ) end [2025-04-16 10:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:41:25] Production.INFO: ==9923== Releasing lock... [2025-04-16 10:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:41:25] Production.INFO: 51.75 MB #Memory Used# [2025-04-16 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:42:05 [end_date_ymd] => 2025-04-16 10:42:05 [RateCDR] => 1 ) [2025-04-16 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:42:05' and `end` < '2025-04-16 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:42:19] Production.INFO: count ==3173 [2025-04-16 10:42:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:42:05 - End Time 2025-04-16 10:42:05 [2025-04-16 10:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920378', 'tblTempUsageDetail_20' ) start [2025-04-16 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920378', 'tblTempUsageDetail_20' ) end [2025-04-16 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920378', 'tblTempVendorCDR_20' ) start [2025-04-16 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920378', 'tblTempVendorCDR_20' ) end [2025-04-16 10:42:20] Production.INFO: ProcessCDR(1,14920378,1,1,2) [2025-04-16 10:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920378', 'tblTempUsageDetail_20' ) start [2025-04-16 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920378', 'tblTempUsageDetail_20' ) end [2025-04-16 10:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:42:25] Production.INFO: ==9997== Releasing lock... [2025-04-16 10:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:42:25] Production.INFO: 51.75 MB #Memory Used# [2025-04-16 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:43:05 [end_date_ymd] => 2025-04-16 10:43:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:43:05' and `end` < '2025-04-16 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-04-16 10:43:18] Production.INFO: count ==3190 [2025-04-16 10:43:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:43:05 - End Time 2025-04-16 10:43:05 [2025-04-16 10:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920383', 'tblTempUsageDetail_20' ) start [2025-04-16 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920383', 'tblTempUsageDetail_20' ) end [2025-04-16 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920383', 'tblTempVendorCDR_20' ) start [2025-04-16 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920383', 'tblTempVendorCDR_20' ) end [2025-04-16 10:43:20] Production.INFO: ProcessCDR(1,14920383,1,1,2) [2025-04-16 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920383', 'tblTempUsageDetail_20' ) start [2025-04-16 10:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920383', 'tblTempUsageDetail_20' ) end [2025-04-16 10:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:43:24] Production.INFO: ==10071== Releasing lock... [2025-04-16 10:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:43:24] Production.INFO: 52.75 MB #Memory Used# [2025-04-16 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:44:05 [end_date_ymd] => 2025-04-16 10:44:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:44:05' and `end` < '2025-04-16 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-04-16 10:44:19] Production.INFO: count ==3204 [2025-04-16 10:44:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:44:05 - End Time 2025-04-16 10:44:05 [2025-04-16 10:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920388', 'tblTempUsageDetail_20' ) start [2025-04-16 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920388', 'tblTempUsageDetail_20' ) end [2025-04-16 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920388', 'tblTempVendorCDR_20' ) start [2025-04-16 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920388', 'tblTempVendorCDR_20' ) end [2025-04-16 10:44:20] Production.INFO: ProcessCDR(1,14920388,1,1,2) [2025-04-16 10:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920388', 'tblTempUsageDetail_20' ) start [2025-04-16 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920388', 'tblTempUsageDetail_20' ) end [2025-04-16 10:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:44:25] Production.INFO: ==10145== Releasing lock... [2025-04-16 10:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:44:25] Production.INFO: 52 MB #Memory Used# [2025-04-16 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:45:05 [end_date_ymd] => 2025-04-16 10:45:05 [RateCDR] => 1 ) [2025-04-16 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:45:05' and `end` < '2025-04-16 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:45:19] Production.INFO: count ==3218 [2025-04-16 10:45:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:45:05 - End Time 2025-04-16 10:45:05 [2025-04-16 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920393', 'tblTempUsageDetail_20' ) start [2025-04-16 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920393', 'tblTempUsageDetail_20' ) end [2025-04-16 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920393', 'tblTempVendorCDR_20' ) start [2025-04-16 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920393', 'tblTempVendorCDR_20' ) end [2025-04-16 10:45:20] Production.INFO: ProcessCDR(1,14920393,1,1,2) [2025-04-16 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920393', 'tblTempUsageDetail_20' ) start [2025-04-16 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920393', 'tblTempUsageDetail_20' ) end [2025-04-16 10:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:45:25] Production.INFO: ==10215== Releasing lock... [2025-04-16 10:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:45:25] Production.INFO: 53 MB #Memory Used# [2025-04-16 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:46:05 [end_date_ymd] => 2025-04-16 10:46:05 [RateCDR] => 1 ) [2025-04-16 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:46:05' and `end` < '2025-04-16 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:46:18] Production.INFO: count ==3229 [2025-04-16 10:46:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:46:05 - End Time 2025-04-16 10:46:05 [2025-04-16 10:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920398', 'tblTempUsageDetail_20' ) start [2025-04-16 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920398', 'tblTempUsageDetail_20' ) end [2025-04-16 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920398', 'tblTempVendorCDR_20' ) start [2025-04-16 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920398', 'tblTempVendorCDR_20' ) end [2025-04-16 10:46:19] Production.INFO: ProcessCDR(1,14920398,1,1,2) [2025-04-16 10:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920398', 'tblTempUsageDetail_20' ) start [2025-04-16 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920398', 'tblTempUsageDetail_20' ) end [2025-04-16 10:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:46:24] Production.INFO: ==10289== Releasing lock... [2025-04-16 10:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:46:24] Production.INFO: 52 MB #Memory Used# [2025-04-16 10:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:47:06 [end_date_ymd] => 2025-04-16 10:47:06 [RateCDR] => 1 ) [2025-04-16 10: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-04-16 07:47:06' and `end` < '2025-04-16 10: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-04-16 10:47:19] Production.INFO: count ==3247 [2025-04-16 10:47:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:47:06 - End Time 2025-04-16 10:47:06 [2025-04-16 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920403', 'tblTempUsageDetail_20' ) start [2025-04-16 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920403', 'tblTempUsageDetail_20' ) end [2025-04-16 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920403', 'tblTempVendorCDR_20' ) start [2025-04-16 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920403', 'tblTempVendorCDR_20' ) end [2025-04-16 10:47:20] Production.INFO: ProcessCDR(1,14920403,1,1,2) [2025-04-16 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920403', 'tblTempUsageDetail_20' ) start [2025-04-16 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920403', 'tblTempUsageDetail_20' ) end [2025-04-16 10:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:47:25] Production.INFO: ==10370== Releasing lock... [2025-04-16 10:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:47:25] Production.INFO: 52.5 MB #Memory Used# [2025-04-16 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:48:05 [end_date_ymd] => 2025-04-16 10:48:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:48:05' and `end` < '2025-04-16 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-04-16 10:48:18] Production.INFO: count ==3270 [2025-04-16 10:48:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:48:05 - End Time 2025-04-16 10:48:05 [2025-04-16 10:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920408', 'tblTempUsageDetail_20' ) start [2025-04-16 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920408', 'tblTempUsageDetail_20' ) end [2025-04-16 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920408', 'tblTempVendorCDR_20' ) start [2025-04-16 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920408', 'tblTempVendorCDR_20' ) end [2025-04-16 10:48:19] Production.INFO: ProcessCDR(1,14920408,1,1,2) [2025-04-16 10:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920408', 'tblTempUsageDetail_20' ) start [2025-04-16 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920408', 'tblTempUsageDetail_20' ) end [2025-04-16 10:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:48:24] Production.INFO: ==10479== Releasing lock... [2025-04-16 10:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:48:24] Production.INFO: 52.5 MB #Memory Used# [2025-04-16 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:49:05 [end_date_ymd] => 2025-04-16 10:49:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:49:05' and `end` < '2025-04-16 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-04-16 10:49:19] Production.INFO: count ==3281 [2025-04-16 10:49:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:49:05 - End Time 2025-04-16 10:49:05 [2025-04-16 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920413', 'tblTempUsageDetail_20' ) start [2025-04-16 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920413', 'tblTempUsageDetail_20' ) end [2025-04-16 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920413', 'tblTempVendorCDR_20' ) start [2025-04-16 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920413', 'tblTempVendorCDR_20' ) end [2025-04-16 10:49:20] Production.INFO: ProcessCDR(1,14920413,1,1,2) [2025-04-16 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920413', 'tblTempUsageDetail_20' ) start [2025-04-16 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920413', 'tblTempUsageDetail_20' ) end [2025-04-16 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:49:25] Production.INFO: ==10552== Releasing lock... [2025-04-16 10:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:49:25] Production.INFO: 53.5 MB #Memory Used# [2025-04-16 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:50:05 [end_date_ymd] => 2025-04-16 10:50:05 [RateCDR] => 1 ) [2025-04-16 10:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:50:05' and `end` < '2025-04-16 10:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:50:19] Production.INFO: count ==3306 [2025-04-16 10:50:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:50:05 - End Time 2025-04-16 10:50:05 [2025-04-16 10:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920419', 'tblTempUsageDetail_20' ) start [2025-04-16 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920419', 'tblTempUsageDetail_20' ) end [2025-04-16 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920419', 'tblTempVendorCDR_20' ) start [2025-04-16 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920419', 'tblTempVendorCDR_20' ) end [2025-04-16 10:50:20] Production.INFO: ProcessCDR(1,14920419,1,1,2) [2025-04-16 10:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920419', 'tblTempUsageDetail_20' ) start [2025-04-16 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920419', 'tblTempUsageDetail_20' ) end [2025-04-16 10:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:50:25] Production.INFO: ==10624== Releasing lock... [2025-04-16 10:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:50:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-16 10:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:51:06 [end_date_ymd] => 2025-04-16 10:51:06 [RateCDR] => 1 ) [2025-04-16 10: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-04-16 07:51:06' and `end` < '2025-04-16 10: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-04-16 10:51:19] Production.INFO: count ==3445 [2025-04-16 10:51:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:51:06 - End Time 2025-04-16 10:51:06 [2025-04-16 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920424', 'tblTempUsageDetail_20' ) start [2025-04-16 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920424', 'tblTempUsageDetail_20' ) end [2025-04-16 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920424', 'tblTempVendorCDR_20' ) start [2025-04-16 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920424', 'tblTempVendorCDR_20' ) end [2025-04-16 10:51:20] Production.INFO: ProcessCDR(1,14920424,1,1,2) [2025-04-16 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920424', 'tblTempUsageDetail_20' ) start [2025-04-16 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920424', 'tblTempUsageDetail_20' ) end [2025-04-16 10:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:51:25] Production.INFO: ==10699== Releasing lock... [2025-04-16 10:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:51:25] Production.INFO: 54.75 MB #Memory Used# [2025-04-16 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:52:05 [end_date_ymd] => 2025-04-16 10:52:05 [RateCDR] => 1 ) [2025-04-16 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:52:05' and `end` < '2025-04-16 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:52:18] Production.INFO: count ==3449 [2025-04-16 10:52:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:52:05 - End Time 2025-04-16 10:52:05 [2025-04-16 10:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920429', 'tblTempUsageDetail_20' ) start [2025-04-16 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920429', 'tblTempUsageDetail_20' ) end [2025-04-16 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920429', 'tblTempVendorCDR_20' ) start [2025-04-16 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920429', 'tblTempVendorCDR_20' ) end [2025-04-16 10:52:19] Production.INFO: ProcessCDR(1,14920429,1,1,2) [2025-04-16 10:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920429', 'tblTempUsageDetail_20' ) start [2025-04-16 10:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920429', 'tblTempUsageDetail_20' ) end [2025-04-16 10:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:52:23] Production.INFO: ==10775== Releasing lock... [2025-04-16 10:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:52:23] Production.INFO: 54 MB #Memory Used# [2025-04-16 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:53:05 [end_date_ymd] => 2025-04-16 10:53:05 [RateCDR] => 1 ) [2025-04-16 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:53:05' and `end` < '2025-04-16 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:53:19] Production.INFO: count ==3461 [2025-04-16 10:53:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:53:05 - End Time 2025-04-16 10:53:05 [2025-04-16 10:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920434', 'tblTempUsageDetail_20' ) start [2025-04-16 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920434', 'tblTempUsageDetail_20' ) end [2025-04-16 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920434', 'tblTempVendorCDR_20' ) start [2025-04-16 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920434', 'tblTempVendorCDR_20' ) end [2025-04-16 10:53:20] Production.INFO: ProcessCDR(1,14920434,1,1,2) [2025-04-16 10:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920434', 'tblTempUsageDetail_20' ) start [2025-04-16 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920434', 'tblTempUsageDetail_20' ) end [2025-04-16 10:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:53:25] Production.INFO: ==10846== Releasing lock... [2025-04-16 10:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:53:25] Production.INFO: 53.75 MB #Memory Used# [2025-04-16 10:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:54:04 [end_date_ymd] => 2025-04-16 10:54:04 [RateCDR] => 1 ) [2025-04-16 10:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:54:04' and `end` < '2025-04-16 10:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:54:18] Production.INFO: count ==3463 [2025-04-16 10:54:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:54:04 - End Time 2025-04-16 10:54:04 [2025-04-16 10:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920439', 'tblTempUsageDetail_20' ) start [2025-04-16 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920439', 'tblTempUsageDetail_20' ) end [2025-04-16 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920439', 'tblTempVendorCDR_20' ) start [2025-04-16 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920439', 'tblTempVendorCDR_20' ) end [2025-04-16 10:54:19] Production.INFO: ProcessCDR(1,14920439,1,1,2) [2025-04-16 10:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920439', 'tblTempUsageDetail_20' ) start [2025-04-16 10:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920439', 'tblTempUsageDetail_20' ) end [2025-04-16 10:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:54:24] Production.INFO: ==10917== Releasing lock... [2025-04-16 10:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:54:24] Production.INFO: 53.75 MB #Memory Used# [2025-04-16 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:55:05 [end_date_ymd] => 2025-04-16 10:55:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:55:05' and `end` < '2025-04-16 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-04-16 10:55:18] Production.INFO: count ==3473 [2025-04-16 10:55:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:55:05 - End Time 2025-04-16 10:55:05 [2025-04-16 10:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920443', 'tblTempUsageDetail_20' ) start [2025-04-16 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920443', 'tblTempUsageDetail_20' ) end [2025-04-16 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920443', 'tblTempVendorCDR_20' ) start [2025-04-16 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920443', 'tblTempVendorCDR_20' ) end [2025-04-16 10:55:20] Production.INFO: ProcessCDR(1,14920443,1,1,2) [2025-04-16 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920443', 'tblTempUsageDetail_20' ) start [2025-04-16 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920443', 'tblTempUsageDetail_20' ) end [2025-04-16 10:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:55:25] Production.INFO: ==10993== Releasing lock... [2025-04-16 10:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:55:25] Production.INFO: 54 MB #Memory Used# [2025-04-16 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:56:05 [end_date_ymd] => 2025-04-16 10:56:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 07:56:05' and `end` < '2025-04-16 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-04-16 10:56:18] Production.INFO: count ==3501 [2025-04-16 10:56:19] Production.ERROR: pbx CDR StartTime 2025-04-16 07:56:05 - End Time 2025-04-16 10:56:05 [2025-04-16 10:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920449', 'tblTempUsageDetail_20' ) start [2025-04-16 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920449', 'tblTempUsageDetail_20' ) end [2025-04-16 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920449', 'tblTempVendorCDR_20' ) start [2025-04-16 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920449', 'tblTempVendorCDR_20' ) end [2025-04-16 10:56:19] Production.INFO: ProcessCDR(1,14920449,1,1,2) [2025-04-16 10:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920449', 'tblTempUsageDetail_20' ) start [2025-04-16 10:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920449', 'tblTempUsageDetail_20' ) end [2025-04-16 10:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:56:24] Production.INFO: ==11072== Releasing lock... [2025-04-16 10:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:56:24] Production.INFO: 54 MB #Memory Used# [2025-04-16 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:57:05 [end_date_ymd] => 2025-04-16 10:57:05 [RateCDR] => 1 ) [2025-04-16 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:57:05' and `end` < '2025-04-16 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:57:18] Production.INFO: count ==3517 [2025-04-16 10:57:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:57:05 - End Time 2025-04-16 10:57:05 [2025-04-16 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920454', 'tblTempUsageDetail_20' ) start [2025-04-16 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920454', 'tblTempUsageDetail_20' ) end [2025-04-16 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920454', 'tblTempVendorCDR_20' ) start [2025-04-16 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920454', 'tblTempVendorCDR_20' ) end [2025-04-16 10:57:20] Production.INFO: ProcessCDR(1,14920454,1,1,2) [2025-04-16 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920454', 'tblTempUsageDetail_20' ) start [2025-04-16 10:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920454', 'tblTempUsageDetail_20' ) end [2025-04-16 10:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:57:25] Production.INFO: ==11146== Releasing lock... [2025-04-16 10:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:57:25] Production.INFO: 54.25 MB #Memory Used# [2025-04-16 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:58:05 [end_date_ymd] => 2025-04-16 10:58:05 [RateCDR] => 1 ) [2025-04-16 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:58:05' and `end` < '2025-04-16 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:58:18] Production.INFO: count ==3527 [2025-04-16 10:58:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:58:05 - End Time 2025-04-16 10:58:05 [2025-04-16 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920459', 'tblTempUsageDetail_20' ) start [2025-04-16 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920459', 'tblTempUsageDetail_20' ) end [2025-04-16 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920459', 'tblTempVendorCDR_20' ) start [2025-04-16 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920459', 'tblTempVendorCDR_20' ) end [2025-04-16 10:58:20] Production.INFO: ProcessCDR(1,14920459,1,1,2) [2025-04-16 10:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920459', 'tblTempUsageDetail_20' ) start [2025-04-16 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920459', 'tblTempUsageDetail_20' ) end [2025-04-16 10:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:58:24] Production.INFO: ==11220== Releasing lock... [2025-04-16 10:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:58:24] Production.INFO: 54.25 MB #Memory Used# [2025-04-16 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 07:59:05 [end_date_ymd] => 2025-04-16 10:59:05 [RateCDR] => 1 ) [2025-04-16 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 07:59:05' and `end` < '2025-04-16 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 10:59:18] Production.INFO: count ==3546 [2025-04-16 10:59:20] Production.ERROR: pbx CDR StartTime 2025-04-16 07:59:05 - End Time 2025-04-16 10:59:05 [2025-04-16 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920464', 'tblTempUsageDetail_20' ) start [2025-04-16 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920464', 'tblTempUsageDetail_20' ) end [2025-04-16 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920464', 'tblTempVendorCDR_20' ) start [2025-04-16 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920464', 'tblTempVendorCDR_20' ) end [2025-04-16 10:59:20] Production.INFO: ProcessCDR(1,14920464,1,1,2) [2025-04-16 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 10:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920464', 'tblTempUsageDetail_20' ) start [2025-04-16 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920464', 'tblTempUsageDetail_20' ) end [2025-04-16 10:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 10:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 10:59:25] Production.INFO: ==11291== Releasing lock... [2025-04-16 10:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 10:59:25] Production.INFO: 54.75 MB #Memory Used# [2025-04-16 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:00:06 [end_date_ymd] => 2025-04-16 11:00:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:00:06' and `end` < '2025-04-16 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-04-16 11:00:20] Production.INFO: count ==3573 [2025-04-16 11:00:21] Production.ERROR: pbx CDR StartTime 2025-04-16 08:00:06 - End Time 2025-04-16 11:00:06 [2025-04-16 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920470', 'tblTempUsageDetail_20' ) start [2025-04-16 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920470', 'tblTempUsageDetail_20' ) end [2025-04-16 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920470', 'tblTempVendorCDR_20' ) start [2025-04-16 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920470', 'tblTempVendorCDR_20' ) end [2025-04-16 11:00:21] Production.INFO: ProcessCDR(1,14920470,1,1,2) [2025-04-16 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920470', 'tblTempUsageDetail_20' ) start [2025-04-16 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920470', 'tblTempUsageDetail_20' ) end [2025-04-16 11:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:00:26] Production.INFO: ==11375== Releasing lock... [2025-04-16 11:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:00:26] Production.INFO: 55.5 MB #Memory Used# [2025-04-16 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:01:05 [end_date_ymd] => 2025-04-16 11:01:05 [RateCDR] => 1 ) [2025-04-16 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:01:05' and `end` < '2025-04-16 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:01:18] Production.INFO: count ==3709 [2025-04-16 11:01:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:01:05 - End Time 2025-04-16 11:01:05 [2025-04-16 11:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920475', 'tblTempUsageDetail_20' ) start [2025-04-16 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920475', 'tblTempUsageDetail_20' ) end [2025-04-16 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920475', 'tblTempVendorCDR_20' ) start [2025-04-16 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920475', 'tblTempVendorCDR_20' ) end [2025-04-16 11:01:20] Production.INFO: ProcessCDR(1,14920475,1,1,2) [2025-04-16 11:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920475', 'tblTempUsageDetail_20' ) start [2025-04-16 11:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920475', 'tblTempUsageDetail_20' ) end [2025-04-16 11:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:01:24] Production.INFO: ==11548== Releasing lock... [2025-04-16 11:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:01:24] Production.INFO: 55.75 MB #Memory Used# [2025-04-16 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:02:05 [end_date_ymd] => 2025-04-16 11:02:05 [RateCDR] => 1 ) [2025-04-16 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:02:05' and `end` < '2025-04-16 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:02:19] Production.INFO: count ==3759 [2025-04-16 11:02:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:02:05 - End Time 2025-04-16 11:02:05 [2025-04-16 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920480', 'tblTempUsageDetail_20' ) start [2025-04-16 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920480', 'tblTempUsageDetail_20' ) end [2025-04-16 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920480', 'tblTempVendorCDR_20' ) start [2025-04-16 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920480', 'tblTempVendorCDR_20' ) end [2025-04-16 11:02:20] Production.INFO: ProcessCDR(1,14920480,1,1,2) [2025-04-16 11:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920480', 'tblTempUsageDetail_20' ) start [2025-04-16 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920480', 'tblTempUsageDetail_20' ) end [2025-04-16 11:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:02:25] Production.INFO: ==11623== Releasing lock... [2025-04-16 11:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:02:25] Production.INFO: 56 MB #Memory Used# [2025-04-16 11:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:03:04 [end_date_ymd] => 2025-04-16 11:03:04 [RateCDR] => 1 ) [2025-04-16 11:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:03:04' and `end` < '2025-04-16 11:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:03:18] Production.INFO: count ==3765 [2025-04-16 11:03:19] Production.ERROR: pbx CDR StartTime 2025-04-16 08:03:04 - End Time 2025-04-16 11:03:04 [2025-04-16 11:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920485', 'tblTempUsageDetail_20' ) start [2025-04-16 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920485', 'tblTempUsageDetail_20' ) end [2025-04-16 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920485', 'tblTempVendorCDR_20' ) start [2025-04-16 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920485', 'tblTempVendorCDR_20' ) end [2025-04-16 11:03:19] Production.INFO: ProcessCDR(1,14920485,1,1,2) [2025-04-16 11:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920485', 'tblTempUsageDetail_20' ) start [2025-04-16 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920485', 'tblTempUsageDetail_20' ) end [2025-04-16 11:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:03:24] Production.INFO: ==11695== Releasing lock... [2025-04-16 11:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:03:24] Production.INFO: 56 MB #Memory Used# [2025-04-16 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:04:05 [end_date_ymd] => 2025-04-16 11:04:05 [RateCDR] => 1 ) [2025-04-16 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:04:05' and `end` < '2025-04-16 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:04:18] Production.INFO: count ==3775 [2025-04-16 11:04:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:04:05 - End Time 2025-04-16 11:04:05 [2025-04-16 11:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920490', 'tblTempUsageDetail_20' ) start [2025-04-16 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920490', 'tblTempUsageDetail_20' ) end [2025-04-16 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920490', 'tblTempVendorCDR_20' ) start [2025-04-16 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920490', 'tblTempVendorCDR_20' ) end [2025-04-16 11:04:20] Production.INFO: ProcessCDR(1,14920490,1,1,2) [2025-04-16 11:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920490', 'tblTempUsageDetail_20' ) start [2025-04-16 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920490', 'tblTempUsageDetail_20' ) end [2025-04-16 11:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:04:25] Production.INFO: ==11814== Releasing lock... [2025-04-16 11:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:04:25] Production.INFO: 56.75 MB #Memory Used# [2025-04-16 11:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:05:04 [end_date_ymd] => 2025-04-16 11:05:04 [RateCDR] => 1 ) [2025-04-16 11:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:05:04' and `end` < '2025-04-16 11:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:05:18] Production.INFO: count ==3788 [2025-04-16 11:05:19] Production.ERROR: pbx CDR StartTime 2025-04-16 08:05:04 - End Time 2025-04-16 11:05:04 [2025-04-16 11:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920495', 'tblTempUsageDetail_20' ) start [2025-04-16 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920495', 'tblTempUsageDetail_20' ) end [2025-04-16 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920495', 'tblTempVendorCDR_20' ) start [2025-04-16 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920495', 'tblTempVendorCDR_20' ) end [2025-04-16 11:05:19] Production.INFO: ProcessCDR(1,14920495,1,1,2) [2025-04-16 11:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920495', 'tblTempUsageDetail_20' ) start [2025-04-16 11:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920495', 'tblTempUsageDetail_20' ) end [2025-04-16 11:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:05:24] Production.INFO: ==11964== Releasing lock... [2025-04-16 11:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:05:24] Production.INFO: 57.25 MB #Memory Used# [2025-04-16 11:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:06:04 [end_date_ymd] => 2025-04-16 11:06:04 [RateCDR] => 1 ) [2025-04-16 11:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:06:04' and `end` < '2025-04-16 11:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:06:18] Production.INFO: count ==3785 [2025-04-16 11:06:19] Production.ERROR: pbx CDR StartTime 2025-04-16 08:06:04 - End Time 2025-04-16 11:06:04 [2025-04-16 11:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920500', 'tblTempUsageDetail_20' ) start [2025-04-16 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920500', 'tblTempUsageDetail_20' ) end [2025-04-16 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920500', 'tblTempVendorCDR_20' ) start [2025-04-16 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920500', 'tblTempVendorCDR_20' ) end [2025-04-16 11:06:19] Production.INFO: ProcessCDR(1,14920500,1,1,2) [2025-04-16 11:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920500', 'tblTempUsageDetail_20' ) start [2025-04-16 11:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920500', 'tblTempUsageDetail_20' ) end [2025-04-16 11:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:06:22] Production.INFO: ==12039== Releasing lock... [2025-04-16 11:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:06:22] Production.INFO: 56.25 MB #Memory Used# [2025-04-16 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:07:05 [end_date_ymd] => 2025-04-16 11:07:05 [RateCDR] => 1 ) [2025-04-16 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:07:05' and `end` < '2025-04-16 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:07:18] Production.INFO: count ==3794 [2025-04-16 11:07:19] Production.ERROR: pbx CDR StartTime 2025-04-16 08:07:05 - End Time 2025-04-16 11:07:05 [2025-04-16 11:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920505', 'tblTempUsageDetail_20' ) start [2025-04-16 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920505', 'tblTempUsageDetail_20' ) end [2025-04-16 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920505', 'tblTempVendorCDR_20' ) start [2025-04-16 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920505', 'tblTempVendorCDR_20' ) end [2025-04-16 11:07:20] Production.INFO: ProcessCDR(1,14920505,1,1,2) [2025-04-16 11:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920505', 'tblTempUsageDetail_20' ) start [2025-04-16 11:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920505', 'tblTempUsageDetail_20' ) end [2025-04-16 11:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:07:24] Production.INFO: ==12119== Releasing lock... [2025-04-16 11:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:07:24] Production.INFO: 56.25 MB #Memory Used# [2025-04-16 11:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:08:04 [end_date_ymd] => 2025-04-16 11:08:04 [RateCDR] => 1 ) [2025-04-16 11:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:08:04' and `end` < '2025-04-16 11:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:08:18] Production.INFO: count ==3816 [2025-04-16 11:08:19] Production.ERROR: pbx CDR StartTime 2025-04-16 08:08:04 - End Time 2025-04-16 11:08:04 [2025-04-16 11:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920510', 'tblTempUsageDetail_20' ) start [2025-04-16 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920510', 'tblTempUsageDetail_20' ) end [2025-04-16 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920510', 'tblTempVendorCDR_20' ) start [2025-04-16 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920510', 'tblTempVendorCDR_20' ) end [2025-04-16 11:08:19] Production.INFO: ProcessCDR(1,14920510,1,1,2) [2025-04-16 11:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920510', 'tblTempUsageDetail_20' ) start [2025-04-16 11:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920510', 'tblTempUsageDetail_20' ) end [2025-04-16 11:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:08:24] Production.INFO: ==12278== Releasing lock... [2025-04-16 11:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:08:24] Production.INFO: 56.5 MB #Memory Used# [2025-04-16 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:09:05 [end_date_ymd] => 2025-04-16 11:09:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:09:05' and `end` < '2025-04-16 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-04-16 11:09:18] Production.INFO: count ==3827 [2025-04-16 11:09:19] Production.ERROR: pbx CDR StartTime 2025-04-16 08:09:05 - End Time 2025-04-16 11:09:05 [2025-04-16 11:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920515', 'tblTempUsageDetail_20' ) start [2025-04-16 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920515', 'tblTempUsageDetail_20' ) end [2025-04-16 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920515', 'tblTempVendorCDR_20' ) start [2025-04-16 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920515', 'tblTempVendorCDR_20' ) end [2025-04-16 11:09:19] Production.INFO: ProcessCDR(1,14920515,1,1,2) [2025-04-16 11:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920515', 'tblTempUsageDetail_20' ) start [2025-04-16 11:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920515', 'tblTempUsageDetail_20' ) end [2025-04-16 11:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:09:24] Production.INFO: ==12368== Releasing lock... [2025-04-16 11:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:09:24] Production.INFO: 56.5 MB #Memory Used# [2025-04-16 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:10:06 [end_date_ymd] => 2025-04-16 11:10:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:10:06' and `end` < '2025-04-16 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-04-16 11:10:19] Production.INFO: count ==3858 [2025-04-16 11:10:21] Production.ERROR: pbx CDR StartTime 2025-04-16 08:10:06 - End Time 2025-04-16 11:10:06 [2025-04-16 11:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920521', 'tblTempUsageDetail_20' ) start [2025-04-16 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920521', 'tblTempUsageDetail_20' ) end [2025-04-16 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920521', 'tblTempVendorCDR_20' ) start [2025-04-16 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920521', 'tblTempVendorCDR_20' ) end [2025-04-16 11:10:21] Production.INFO: ProcessCDR(1,14920521,1,1,2) [2025-04-16 11:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920521', 'tblTempUsageDetail_20' ) start [2025-04-16 11:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920521', 'tblTempUsageDetail_20' ) end [2025-04-16 11:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:10:26] Production.INFO: ==12465== Releasing lock... [2025-04-16 11:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:10:26] Production.INFO: 57 MB #Memory Used# [2025-04-16 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:11:05 [end_date_ymd] => 2025-04-16 11:11:05 [RateCDR] => 1 ) [2025-04-16 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:11:05' and `end` < '2025-04-16 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:11:18] Production.INFO: count ==3956 [2025-04-16 11:11:19] Production.ERROR: pbx CDR StartTime 2025-04-16 08:11:05 - End Time 2025-04-16 11:11:05 [2025-04-16 11:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920526', 'tblTempUsageDetail_20' ) start [2025-04-16 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920526', 'tblTempUsageDetail_20' ) end [2025-04-16 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920526', 'tblTempVendorCDR_20' ) start [2025-04-16 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920526', 'tblTempVendorCDR_20' ) end [2025-04-16 11:11:19] Production.INFO: ProcessCDR(1,14920526,1,1,2) [2025-04-16 11:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920526', 'tblTempUsageDetail_20' ) start [2025-04-16 11:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920526', 'tblTempUsageDetail_20' ) end [2025-04-16 11:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:11:24] Production.INFO: ==12555== Releasing lock... [2025-04-16 11:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:11:24] Production.INFO: 57.75 MB #Memory Used# [2025-04-16 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:12:05 [end_date_ymd] => 2025-04-16 11:12:05 [RateCDR] => 1 ) [2025-04-16 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:12:05' and `end` < '2025-04-16 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:12:18] Production.INFO: count ==3961 [2025-04-16 11:12:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:12:05 - End Time 2025-04-16 11:12:05 [2025-04-16 11:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920531', 'tblTempUsageDetail_20' ) start [2025-04-16 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920531', 'tblTempUsageDetail_20' ) end [2025-04-16 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920531', 'tblTempVendorCDR_20' ) start [2025-04-16 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920531', 'tblTempVendorCDR_20' ) end [2025-04-16 11:12:20] Production.INFO: ProcessCDR(1,14920531,1,1,2) [2025-04-16 11:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920531', 'tblTempUsageDetail_20' ) start [2025-04-16 11:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920531', 'tblTempUsageDetail_20' ) end [2025-04-16 11:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:12:25] Production.INFO: ==12720== Releasing lock... [2025-04-16 11:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:12:25] Production.INFO: 57.5 MB #Memory Used# [2025-04-16 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:13:05 [end_date_ymd] => 2025-04-16 11:13:05 [RateCDR] => 1 ) [2025-04-16 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:13:05' and `end` < '2025-04-16 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:13:18] Production.INFO: count ==3979 [2025-04-16 11:13:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:13:05 - End Time 2025-04-16 11:13:05 [2025-04-16 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920536', 'tblTempUsageDetail_20' ) start [2025-04-16 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920536', 'tblTempUsageDetail_20' ) end [2025-04-16 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920536', 'tblTempVendorCDR_20' ) start [2025-04-16 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920536', 'tblTempVendorCDR_20' ) end [2025-04-16 11:13:20] Production.INFO: ProcessCDR(1,14920536,1,1,2) [2025-04-16 11:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920536', 'tblTempUsageDetail_20' ) start [2025-04-16 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920536', 'tblTempUsageDetail_20' ) end [2025-04-16 11:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:13:25] Production.INFO: ==12807== Releasing lock... [2025-04-16 11:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:13:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-16 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:14:05 [end_date_ymd] => 2025-04-16 11:14:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:14:05' and `end` < '2025-04-16 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-04-16 11:14:19] Production.INFO: count ==3986 [2025-04-16 11:14:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:14:05 - End Time 2025-04-16 11:14:05 [2025-04-16 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920541', 'tblTempUsageDetail_20' ) start [2025-04-16 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920541', 'tblTempUsageDetail_20' ) end [2025-04-16 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920541', 'tblTempVendorCDR_20' ) start [2025-04-16 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920541', 'tblTempVendorCDR_20' ) end [2025-04-16 11:14:21] Production.INFO: ProcessCDR(1,14920541,1,1,2) [2025-04-16 11:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920541', 'tblTempUsageDetail_20' ) start [2025-04-16 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920541', 'tblTempUsageDetail_20' ) end [2025-04-16 11:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:14:25] Production.INFO: ==12901== Releasing lock... [2025-04-16 11:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:14:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-16 11:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:15:04 [end_date_ymd] => 2025-04-16 11:15:04 [RateCDR] => 1 ) [2025-04-16 11:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:15:04' and `end` < '2025-04-16 11:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:15:18] Production.INFO: count ==3995 [2025-04-16 11:15:19] Production.ERROR: pbx CDR StartTime 2025-04-16 08:15:04 - End Time 2025-04-16 11:15:04 [2025-04-16 11:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920546', 'tblTempUsageDetail_20' ) start [2025-04-16 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920546', 'tblTempUsageDetail_20' ) end [2025-04-16 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920546', 'tblTempVendorCDR_20' ) start [2025-04-16 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920546', 'tblTempVendorCDR_20' ) end [2025-04-16 11:15:19] Production.INFO: ProcessCDR(1,14920546,1,1,2) [2025-04-16 11:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920546', 'tblTempUsageDetail_20' ) start [2025-04-16 11:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920546', 'tblTempUsageDetail_20' ) end [2025-04-16 11:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:15:24] Production.INFO: ==13066== Releasing lock... [2025-04-16 11:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:15:24] Production.INFO: 58 MB #Memory Used# [2025-04-16 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:16:05 [end_date_ymd] => 2025-04-16 11:16:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:16:05' and `end` < '2025-04-16 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-04-16 11:16:19] Production.INFO: count ==4043 [2025-04-16 11:16:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:16:05 - End Time 2025-04-16 11:16:05 [2025-04-16 11:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920551', 'tblTempUsageDetail_20' ) start [2025-04-16 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920551', 'tblTempUsageDetail_20' ) end [2025-04-16 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920551', 'tblTempVendorCDR_20' ) start [2025-04-16 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920551', 'tblTempVendorCDR_20' ) end [2025-04-16 11:16:20] Production.INFO: ProcessCDR(1,14920551,1,1,2) [2025-04-16 11:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920551', 'tblTempUsageDetail_20' ) start [2025-04-16 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920551', 'tblTempUsageDetail_20' ) end [2025-04-16 11:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:16:25] Production.INFO: ==13162== Releasing lock... [2025-04-16 11:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:16:25] Production.INFO: 58.25 MB #Memory Used# [2025-04-16 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:17:05 [end_date_ymd] => 2025-04-16 11:17:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:17:05' and `end` < '2025-04-16 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-04-16 11:17:18] Production.INFO: count ==4051 [2025-04-16 11:17:19] Production.ERROR: pbx CDR StartTime 2025-04-16 08:17:05 - End Time 2025-04-16 11:17:05 [2025-04-16 11:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920556', 'tblTempUsageDetail_20' ) start [2025-04-16 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920556', 'tblTempUsageDetail_20' ) end [2025-04-16 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920556', 'tblTempVendorCDR_20' ) start [2025-04-16 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920556', 'tblTempVendorCDR_20' ) end [2025-04-16 11:17:19] Production.INFO: ProcessCDR(1,14920556,1,1,2) [2025-04-16 11:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920556', 'tblTempUsageDetail_20' ) start [2025-04-16 11:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920556', 'tblTempUsageDetail_20' ) end [2025-04-16 11:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:17:24] Production.INFO: ==13249== Releasing lock... [2025-04-16 11:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:17:24] Production.INFO: 58.5 MB #Memory Used# [2025-04-16 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:18:05 [end_date_ymd] => 2025-04-16 11:18:05 [RateCDR] => 1 ) [2025-04-16 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:18:05' and `end` < '2025-04-16 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:18:19] Production.INFO: count ==4050 [2025-04-16 11:18:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:18:05 - End Time 2025-04-16 11:18:05 [2025-04-16 11:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920561', 'tblTempUsageDetail_20' ) start [2025-04-16 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920561', 'tblTempUsageDetail_20' ) end [2025-04-16 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920561', 'tblTempVendorCDR_20' ) start [2025-04-16 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920561', 'tblTempVendorCDR_20' ) end [2025-04-16 11:18:20] Production.INFO: ProcessCDR(1,14920561,1,1,2) [2025-04-16 11:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920561', 'tblTempUsageDetail_20' ) start [2025-04-16 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920561', 'tblTempUsageDetail_20' ) end [2025-04-16 11:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:18:25] Production.INFO: ==13338== Releasing lock... [2025-04-16 11:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:18:25] Production.INFO: 58.25 MB #Memory Used# [2025-04-16 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:19:06 [end_date_ymd] => 2025-04-16 11:19:06 [RateCDR] => 1 ) [2025-04-16 11:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:19:06' and `end` < '2025-04-16 11:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:19:19] Production.INFO: count ==4057 [2025-04-16 11:19:21] Production.ERROR: pbx CDR StartTime 2025-04-16 08:19:06 - End Time 2025-04-16 11:19:06 [2025-04-16 11:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920566', 'tblTempUsageDetail_20' ) start [2025-04-16 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920566', 'tblTempUsageDetail_20' ) end [2025-04-16 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920566', 'tblTempVendorCDR_20' ) start [2025-04-16 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920566', 'tblTempVendorCDR_20' ) end [2025-04-16 11:19:21] Production.INFO: ProcessCDR(1,14920566,1,1,2) [2025-04-16 11:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920566', 'tblTempUsageDetail_20' ) start [2025-04-16 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920566', 'tblTempUsageDetail_20' ) end [2025-04-16 11:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:19:26] Production.INFO: ==13465== Releasing lock... [2025-04-16 11:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:19:26] Production.INFO: 58.25 MB #Memory Used# [2025-04-16 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:20:05 [end_date_ymd] => 2025-04-16 11:20:05 [RateCDR] => 1 ) [2025-04-16 11:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:20:05' and `end` < '2025-04-16 11:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:20:19] Production.INFO: count ==4068 [2025-04-16 11:20:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:20:05 - End Time 2025-04-16 11:20:05 [2025-04-16 11:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920572', 'tblTempUsageDetail_20' ) start [2025-04-16 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920572', 'tblTempUsageDetail_20' ) end [2025-04-16 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920572', 'tblTempVendorCDR_20' ) start [2025-04-16 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920572', 'tblTempVendorCDR_20' ) end [2025-04-16 11:20:20] Production.INFO: ProcessCDR(1,14920572,1,1,2) [2025-04-16 11:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920572', 'tblTempUsageDetail_20' ) start [2025-04-16 11:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920572', 'tblTempUsageDetail_20' ) end [2025-04-16 11:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:20:25] Production.INFO: ==13553== Releasing lock... [2025-04-16 11:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:20:25] Production.INFO: 58.25 MB #Memory Used# [2025-04-16 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:21:05 [end_date_ymd] => 2025-04-16 11:21:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:21:05' and `end` < '2025-04-16 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-04-16 11:21:18] Production.INFO: count ==4162 [2025-04-16 11:21:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:21:05 - End Time 2025-04-16 11:21:05 [2025-04-16 11:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920577', 'tblTempUsageDetail_20' ) start [2025-04-16 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920577', 'tblTempUsageDetail_20' ) end [2025-04-16 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920577', 'tblTempVendorCDR_20' ) start [2025-04-16 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920577', 'tblTempVendorCDR_20' ) end [2025-04-16 11:21:20] Production.INFO: ProcessCDR(1,14920577,1,1,2) [2025-04-16 11:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920577', 'tblTempUsageDetail_20' ) start [2025-04-16 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920577', 'tblTempUsageDetail_20' ) end [2025-04-16 11:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:21:25] Production.INFO: ==13644== Releasing lock... [2025-04-16 11:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:21:25] Production.INFO: 59 MB #Memory Used# [2025-04-16 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:22:05 [end_date_ymd] => 2025-04-16 11:22:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:22:05' and `end` < '2025-04-16 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-04-16 11:22:18] Production.INFO: count ==4174 [2025-04-16 11:22:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:22:05 - End Time 2025-04-16 11:22:05 [2025-04-16 11:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920582', 'tblTempUsageDetail_20' ) start [2025-04-16 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920582', 'tblTempUsageDetail_20' ) end [2025-04-16 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920582', 'tblTempVendorCDR_20' ) start [2025-04-16 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920582', 'tblTempVendorCDR_20' ) end [2025-04-16 11:22:20] Production.INFO: ProcessCDR(1,14920582,1,1,2) [2025-04-16 11:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920582', 'tblTempUsageDetail_20' ) start [2025-04-16 11:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920582', 'tblTempUsageDetail_20' ) end [2025-04-16 11:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:22:23] Production.INFO: ==13736== Releasing lock... [2025-04-16 11:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:22:23] Production.INFO: 59.25 MB #Memory Used# [2025-04-16 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:23:05 [end_date_ymd] => 2025-04-16 11:23:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:23:05' and `end` < '2025-04-16 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-04-16 11:23:19] Production.INFO: count ==4174 [2025-04-16 11:23:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:23:05 - End Time 2025-04-16 11:23:05 [2025-04-16 11:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920587', 'tblTempUsageDetail_20' ) start [2025-04-16 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920587', 'tblTempUsageDetail_20' ) end [2025-04-16 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920587', 'tblTempVendorCDR_20' ) start [2025-04-16 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920587', 'tblTempVendorCDR_20' ) end [2025-04-16 11:23:20] Production.INFO: ProcessCDR(1,14920587,1,1,2) [2025-04-16 11:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920587', 'tblTempUsageDetail_20' ) start [2025-04-16 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920587', 'tblTempUsageDetail_20' ) end [2025-04-16 11:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:23:25] Production.INFO: ==13822== Releasing lock... [2025-04-16 11:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:23:25] Production.INFO: 59.25 MB #Memory Used# [2025-04-16 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:24:06 [end_date_ymd] => 2025-04-16 11:24:06 [RateCDR] => 1 ) [2025-04-16 11:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:24:06' and `end` < '2025-04-16 11:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:24:19] Production.INFO: count ==4174 [2025-04-16 11:24:21] Production.ERROR: pbx CDR StartTime 2025-04-16 08:24:06 - End Time 2025-04-16 11:24:06 [2025-04-16 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920592', 'tblTempUsageDetail_20' ) start [2025-04-16 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920592', 'tblTempUsageDetail_20' ) end [2025-04-16 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920592', 'tblTempVendorCDR_20' ) start [2025-04-16 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920592', 'tblTempVendorCDR_20' ) end [2025-04-16 11:24:21] Production.INFO: ProcessCDR(1,14920592,1,1,2) [2025-04-16 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920592', 'tblTempUsageDetail_20' ) start [2025-04-16 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920592', 'tblTempUsageDetail_20' ) end [2025-04-16 11:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:24:26] Production.INFO: ==13910== Releasing lock... [2025-04-16 11:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:24:26] Production.INFO: 59.25 MB #Memory Used# [2025-04-16 11:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:25:04 [end_date_ymd] => 2025-04-16 11:25:04 [RateCDR] => 1 ) [2025-04-16 11:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:25:04' and `end` < '2025-04-16 11:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:25:18] Production.INFO: count ==4188 [2025-04-16 11:25:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:25:04 - End Time 2025-04-16 11:25:04 [2025-04-16 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920597', 'tblTempUsageDetail_20' ) start [2025-04-16 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920597', 'tblTempUsageDetail_20' ) end [2025-04-16 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920597', 'tblTempVendorCDR_20' ) start [2025-04-16 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920597', 'tblTempVendorCDR_20' ) end [2025-04-16 11:25:20] Production.INFO: ProcessCDR(1,14920597,1,1,2) [2025-04-16 11:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920597', 'tblTempUsageDetail_20' ) start [2025-04-16 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920597', 'tblTempUsageDetail_20' ) end [2025-04-16 11:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:25:25] Production.INFO: ==13999== Releasing lock... [2025-04-16 11:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:25:25] Production.INFO: 59.25 MB #Memory Used# [2025-04-16 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:26:05 [end_date_ymd] => 2025-04-16 11:26:05 [RateCDR] => 1 ) [2025-04-16 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:26:05' and `end` < '2025-04-16 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:26:19] Production.INFO: count ==4207 [2025-04-16 11:26:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:26:05 - End Time 2025-04-16 11:26:05 [2025-04-16 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920602', 'tblTempUsageDetail_20' ) start [2025-04-16 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920602', 'tblTempUsageDetail_20' ) end [2025-04-16 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920602', 'tblTempVendorCDR_20' ) start [2025-04-16 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920602', 'tblTempVendorCDR_20' ) end [2025-04-16 11:26:20] Production.INFO: ProcessCDR(1,14920602,1,1,2) [2025-04-16 11:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920602', 'tblTempUsageDetail_20' ) start [2025-04-16 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920602', 'tblTempUsageDetail_20' ) end [2025-04-16 11:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:26:25] Production.INFO: ==14088== Releasing lock... [2025-04-16 11:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:26:25] Production.INFO: 59.5 MB #Memory Used# [2025-04-16 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:27:05 [end_date_ymd] => 2025-04-16 11:27:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:27:05' and `end` < '2025-04-16 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-04-16 11:27:18] Production.INFO: count ==4206 [2025-04-16 11:27:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:27:05 - End Time 2025-04-16 11:27:05 [2025-04-16 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920607', 'tblTempUsageDetail_20' ) start [2025-04-16 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920607', 'tblTempUsageDetail_20' ) end [2025-04-16 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920607', 'tblTempVendorCDR_20' ) start [2025-04-16 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920607', 'tblTempVendorCDR_20' ) end [2025-04-16 11:27:20] Production.INFO: ProcessCDR(1,14920607,1,1,2) [2025-04-16 11:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920607', 'tblTempUsageDetail_20' ) start [2025-04-16 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920607', 'tblTempUsageDetail_20' ) end [2025-04-16 11:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:27:25] Production.INFO: ==14183== Releasing lock... [2025-04-16 11:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:27:25] Production.INFO: 59.5 MB #Memory Used# [2025-04-16 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:28:05 [end_date_ymd] => 2025-04-16 11:28:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:28:05' and `end` < '2025-04-16 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-04-16 11:28:19] Production.INFO: count ==4208 [2025-04-16 11:28:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:28:05 - End Time 2025-04-16 11:28:05 [2025-04-16 11:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920612', 'tblTempUsageDetail_20' ) start [2025-04-16 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920612', 'tblTempUsageDetail_20' ) end [2025-04-16 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920612', 'tblTempVendorCDR_20' ) start [2025-04-16 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920612', 'tblTempVendorCDR_20' ) end [2025-04-16 11:28:20] Production.INFO: ProcessCDR(1,14920612,1,1,2) [2025-04-16 11:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920612', 'tblTempUsageDetail_20' ) start [2025-04-16 11:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920612', 'tblTempUsageDetail_20' ) end [2025-04-16 11:28:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:28:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:28:25] Production.INFO: ==14278== Releasing lock... [2025-04-16 11:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:28:25] Production.INFO: 59.5 MB #Memory Used# [2025-04-16 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:29:05 [end_date_ymd] => 2025-04-16 11:29:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:29:05' and `end` < '2025-04-16 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:29:18] Production.INFO: count ==4194 [2025-04-16 11:29:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:29:05 - End Time 2025-04-16 11:29:05 [2025-04-16 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920617', 'tblTempUsageDetail_20' ) start [2025-04-16 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920617', 'tblTempUsageDetail_20' ) end [2025-04-16 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920617', 'tblTempVendorCDR_20' ) start [2025-04-16 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920617', 'tblTempVendorCDR_20' ) end [2025-04-16 11:29:20] Production.INFO: ProcessCDR(1,14920617,1,1,2) [2025-04-16 11:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920617', 'tblTempUsageDetail_20' ) start [2025-04-16 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920617', 'tblTempUsageDetail_20' ) end [2025-04-16 11:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:29:25] Production.INFO: ==14369== Releasing lock... [2025-04-16 11:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:29:25] Production.INFO: 59.25 MB #Memory Used# [2025-04-16 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:30:06 [end_date_ymd] => 2025-04-16 11:30:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:30:06' and `end` < '2025-04-16 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-04-16 11:30:19] Production.INFO: count ==4208 [2025-04-16 11:30:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:30:06 - End Time 2025-04-16 11:30:06 [2025-04-16 11:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920623', 'tblTempUsageDetail_20' ) start [2025-04-16 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920623', 'tblTempUsageDetail_20' ) end [2025-04-16 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920623', 'tblTempVendorCDR_20' ) start [2025-04-16 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920623', 'tblTempVendorCDR_20' ) end [2025-04-16 11:30:21] Production.INFO: ProcessCDR(1,14920623,1,1,2) [2025-04-16 11:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920623', 'tblTempUsageDetail_20' ) start [2025-04-16 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920623', 'tblTempUsageDetail_20' ) end [2025-04-16 11:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:30:26] Production.INFO: ==14458== Releasing lock... [2025-04-16 11:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:30:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-16 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:31:05 [end_date_ymd] => 2025-04-16 11:31:05 [RateCDR] => 1 ) [2025-04-16 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:31:05' and `end` < '2025-04-16 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:31:19] Production.INFO: count ==4277 [2025-04-16 11:31:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:31:05 - End Time 2025-04-16 11:31:05 [2025-04-16 11:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920628', 'tblTempUsageDetail_20' ) start [2025-04-16 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920628', 'tblTempUsageDetail_20' ) end [2025-04-16 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920628', 'tblTempVendorCDR_20' ) start [2025-04-16 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920628', 'tblTempVendorCDR_20' ) end [2025-04-16 11:31:20] Production.INFO: ProcessCDR(1,14920628,1,1,2) [2025-04-16 11:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920628', 'tblTempUsageDetail_20' ) start [2025-04-16 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920628', 'tblTempUsageDetail_20' ) end [2025-04-16 11:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:31:25] Production.INFO: ==14547== Releasing lock... [2025-04-16 11:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:31:25] Production.INFO: 60 MB #Memory Used# [2025-04-16 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:32:05 [end_date_ymd] => 2025-04-16 11:32:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:32:05' and `end` < '2025-04-16 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-04-16 11:32:18] Production.INFO: count ==4296 [2025-04-16 11:32:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:32:05 - End Time 2025-04-16 11:32:05 [2025-04-16 11:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920633', 'tblTempUsageDetail_20' ) start [2025-04-16 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920633', 'tblTempUsageDetail_20' ) end [2025-04-16 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920633', 'tblTempVendorCDR_20' ) start [2025-04-16 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920633', 'tblTempVendorCDR_20' ) end [2025-04-16 11:32:20] Production.INFO: ProcessCDR(1,14920633,1,1,2) [2025-04-16 11:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920633', 'tblTempUsageDetail_20' ) start [2025-04-16 11:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920633', 'tblTempUsageDetail_20' ) end [2025-04-16 11:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:32:25] Production.INFO: ==14632== Releasing lock... [2025-04-16 11:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:32:25] Production.INFO: 60.25 MB #Memory Used# [2025-04-16 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:33:05 [end_date_ymd] => 2025-04-16 11:33:05 [RateCDR] => 1 ) [2025-04-16 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:33:05' and `end` < '2025-04-16 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:33:19] Production.INFO: count ==4289 [2025-04-16 11:33:21] Production.ERROR: pbx CDR StartTime 2025-04-16 08:33:05 - End Time 2025-04-16 11:33:05 [2025-04-16 11:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920638', 'tblTempUsageDetail_20' ) start [2025-04-16 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920638', 'tblTempUsageDetail_20' ) end [2025-04-16 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920638', 'tblTempVendorCDR_20' ) start [2025-04-16 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920638', 'tblTempVendorCDR_20' ) end [2025-04-16 11:33:21] Production.INFO: ProcessCDR(1,14920638,1,1,2) [2025-04-16 11:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920638', 'tblTempUsageDetail_20' ) start [2025-04-16 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920638', 'tblTempUsageDetail_20' ) end [2025-04-16 11:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:33:26] Production.INFO: ==14722== Releasing lock... [2025-04-16 11:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:33:26] Production.INFO: 60 MB #Memory Used# [2025-04-16 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:34:05 [end_date_ymd] => 2025-04-16 11:34:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:34:05' and `end` < '2025-04-16 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-04-16 11:34:18] Production.INFO: count ==4282 [2025-04-16 11:34:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:34:05 - End Time 2025-04-16 11:34:05 [2025-04-16 11:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920643', 'tblTempUsageDetail_20' ) start [2025-04-16 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920643', 'tblTempUsageDetail_20' ) end [2025-04-16 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920643', 'tblTempVendorCDR_20' ) start [2025-04-16 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920643', 'tblTempVendorCDR_20' ) end [2025-04-16 11:34:20] Production.INFO: ProcessCDR(1,14920643,1,1,2) [2025-04-16 11:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920643', 'tblTempUsageDetail_20' ) start [2025-04-16 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920643', 'tblTempUsageDetail_20' ) end [2025-04-16 11:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:34:25] Production.INFO: ==14808== Releasing lock... [2025-04-16 11:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:34:25] Production.INFO: 60 MB #Memory Used# [2025-04-16 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:35:05 [end_date_ymd] => 2025-04-16 11:35:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:35:05' and `end` < '2025-04-16 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-04-16 11:35:19] Production.INFO: count ==4283 [2025-04-16 11:35:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:35:05 - End Time 2025-04-16 11:35:05 [2025-04-16 11:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920648', 'tblTempUsageDetail_20' ) start [2025-04-16 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920648', 'tblTempUsageDetail_20' ) end [2025-04-16 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920648', 'tblTempVendorCDR_20' ) start [2025-04-16 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920648', 'tblTempVendorCDR_20' ) end [2025-04-16 11:35:20] Production.INFO: ProcessCDR(1,14920648,1,1,2) [2025-04-16 11:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920648', 'tblTempUsageDetail_20' ) start [2025-04-16 11:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920648', 'tblTempUsageDetail_20' ) end [2025-04-16 11:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:35:25] Production.INFO: ==14932== Releasing lock... [2025-04-16 11:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:35:25] Production.INFO: 60 MB #Memory Used# [2025-04-16 11:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:36:04 [end_date_ymd] => 2025-04-16 11:36:04 [RateCDR] => 1 ) [2025-04-16 11:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:36:04' and `end` < '2025-04-16 11:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:36:18] Production.INFO: count ==4290 [2025-04-16 11:36:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:36:04 - End Time 2025-04-16 11:36:04 [2025-04-16 11:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920653', 'tblTempUsageDetail_20' ) start [2025-04-16 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920653', 'tblTempUsageDetail_20' ) end [2025-04-16 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920653', 'tblTempVendorCDR_20' ) start [2025-04-16 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920653', 'tblTempVendorCDR_20' ) end [2025-04-16 11:36:20] Production.INFO: ProcessCDR(1,14920653,1,1,2) [2025-04-16 11:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920653', 'tblTempUsageDetail_20' ) start [2025-04-16 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920653', 'tblTempUsageDetail_20' ) end [2025-04-16 11:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:36:25] Production.INFO: ==15018== Releasing lock... [2025-04-16 11:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:36:25] Production.INFO: 60 MB #Memory Used# [2025-04-16 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:37:05 [end_date_ymd] => 2025-04-16 11:37:05 [RateCDR] => 1 ) [2025-04-16 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:37:05' and `end` < '2025-04-16 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:37:19] Production.INFO: count ==4303 [2025-04-16 11:37:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:37:05 - End Time 2025-04-16 11:37:05 [2025-04-16 11:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920658', 'tblTempUsageDetail_20' ) start [2025-04-16 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920658', 'tblTempUsageDetail_20' ) end [2025-04-16 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920658', 'tblTempVendorCDR_20' ) start [2025-04-16 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920658', 'tblTempVendorCDR_20' ) end [2025-04-16 11:37:20] Production.INFO: ProcessCDR(1,14920658,1,1,2) [2025-04-16 11:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920658', 'tblTempUsageDetail_20' ) start [2025-04-16 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920658', 'tblTempUsageDetail_20' ) end [2025-04-16 11:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:37:26] Production.INFO: ==15117== Releasing lock... [2025-04-16 11:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:37:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-16 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:38:05 [end_date_ymd] => 2025-04-16 11:38:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:38:05' and `end` < '2025-04-16 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-04-16 11:38:19] Production.INFO: count ==4307 [2025-04-16 11:38:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:38:05 - End Time 2025-04-16 11:38:05 [2025-04-16 11:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920663', 'tblTempUsageDetail_20' ) start [2025-04-16 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920663', 'tblTempUsageDetail_20' ) end [2025-04-16 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920663', 'tblTempVendorCDR_20' ) start [2025-04-16 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920663', 'tblTempVendorCDR_20' ) end [2025-04-16 11:38:20] Production.INFO: ProcessCDR(1,14920663,1,1,2) [2025-04-16 11:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920663', 'tblTempUsageDetail_20' ) start [2025-04-16 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920663', 'tblTempUsageDetail_20' ) end [2025-04-16 11:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:38:25] Production.INFO: ==15201== Releasing lock... [2025-04-16 11:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:38:25] Production.INFO: 60.25 MB #Memory Used# [2025-04-16 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:39:05 [end_date_ymd] => 2025-04-16 11:39:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:39:05' and `end` < '2025-04-16 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-04-16 11:39:19] Production.INFO: count ==4301 [2025-04-16 11:39:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:39:05 - End Time 2025-04-16 11:39:05 [2025-04-16 11:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920668', 'tblTempUsageDetail_20' ) start [2025-04-16 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920668', 'tblTempUsageDetail_20' ) end [2025-04-16 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920668', 'tblTempVendorCDR_20' ) start [2025-04-16 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920668', 'tblTempVendorCDR_20' ) end [2025-04-16 11:39:20] Production.INFO: ProcessCDR(1,14920668,1,1,2) [2025-04-16 11:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920668', 'tblTempUsageDetail_20' ) start [2025-04-16 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920668', 'tblTempUsageDetail_20' ) end [2025-04-16 11:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:39:25] Production.INFO: ==15282== Releasing lock... [2025-04-16 11:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:39:25] Production.INFO: 60.25 MB #Memory Used# [2025-04-16 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:40:06 [end_date_ymd] => 2025-04-16 11:40:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:40:06' and `end` < '2025-04-16 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-04-16 11:40:19] Production.INFO: count ==4308 [2025-04-16 11:40:21] Production.ERROR: pbx CDR StartTime 2025-04-16 08:40:06 - End Time 2025-04-16 11:40:06 [2025-04-16 11:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920674', 'tblTempUsageDetail_20' ) start [2025-04-16 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920674', 'tblTempUsageDetail_20' ) end [2025-04-16 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920674', 'tblTempVendorCDR_20' ) start [2025-04-16 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920674', 'tblTempVendorCDR_20' ) end [2025-04-16 11:40:21] Production.INFO: ProcessCDR(1,14920674,1,1,2) [2025-04-16 11:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920674', 'tblTempUsageDetail_20' ) start [2025-04-16 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920674', 'tblTempUsageDetail_20' ) end [2025-04-16 11:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:40:26] Production.INFO: ==15375== Releasing lock... [2025-04-16 11:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:40:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-16 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:41:05 [end_date_ymd] => 2025-04-16 11:41:05 [RateCDR] => 1 ) [2025-04-16 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:41:05' and `end` < '2025-04-16 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:41:18] Production.INFO: count ==4427 [2025-04-16 11:41:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:41:05 - End Time 2025-04-16 11:41:05 [2025-04-16 11:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920679', 'tblTempUsageDetail_20' ) start [2025-04-16 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920679', 'tblTempUsageDetail_20' ) end [2025-04-16 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920679', 'tblTempVendorCDR_20' ) start [2025-04-16 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920679', 'tblTempVendorCDR_20' ) end [2025-04-16 11:41:20] Production.INFO: ProcessCDR(1,14920679,1,1,2) [2025-04-16 11:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920679', 'tblTempUsageDetail_20' ) start [2025-04-16 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920679', 'tblTempUsageDetail_20' ) end [2025-04-16 11:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:41:25] Production.INFO: ==15464== Releasing lock... [2025-04-16 11:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:41:25] Production.INFO: 61 MB #Memory Used# [2025-04-16 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:42:05 [end_date_ymd] => 2025-04-16 11:42:05 [RateCDR] => 1 ) [2025-04-16 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:42:05' and `end` < '2025-04-16 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:42:19] Production.INFO: count ==4436 [2025-04-16 11:42:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:42:05 - End Time 2025-04-16 11:42:05 [2025-04-16 11:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920684', 'tblTempUsageDetail_20' ) start [2025-04-16 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920684', 'tblTempUsageDetail_20' ) end [2025-04-16 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920684', 'tblTempVendorCDR_20' ) start [2025-04-16 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920684', 'tblTempVendorCDR_20' ) end [2025-04-16 11:42:20] Production.INFO: ProcessCDR(1,14920684,1,1,2) [2025-04-16 11:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920684', 'tblTempUsageDetail_20' ) start [2025-04-16 11:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920684', 'tblTempUsageDetail_20' ) end [2025-04-16 11:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:42:25] Production.INFO: ==15538== Releasing lock... [2025-04-16 11:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:42:25] Production.INFO: 61.25 MB #Memory Used# [2025-04-16 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:43:05 [end_date_ymd] => 2025-04-16 11:43:05 [RateCDR] => 1 ) [2025-04-16 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:43:05' and `end` < '2025-04-16 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:43:18] Production.INFO: count ==4441 [2025-04-16 11:43:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:43:05 - End Time 2025-04-16 11:43:05 [2025-04-16 11:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920689', 'tblTempUsageDetail_20' ) start [2025-04-16 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920689', 'tblTempUsageDetail_20' ) end [2025-04-16 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920689', 'tblTempVendorCDR_20' ) start [2025-04-16 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920689', 'tblTempVendorCDR_20' ) end [2025-04-16 11:43:20] Production.INFO: ProcessCDR(1,14920689,1,1,2) [2025-04-16 11:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920689', 'tblTempUsageDetail_20' ) start [2025-04-16 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920689', 'tblTempUsageDetail_20' ) end [2025-04-16 11:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:43:25] Production.INFO: ==15615== Releasing lock... [2025-04-16 11:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:43:25] Production.INFO: 61.25 MB #Memory Used# [2025-04-16 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:44:05 [end_date_ymd] => 2025-04-16 11:44:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:44:05' and `end` < '2025-04-16 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-04-16 11:44:19] Production.INFO: count ==4445 [2025-04-16 11:44:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:44:05 - End Time 2025-04-16 11:44:05 [2025-04-16 11:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920694', 'tblTempUsageDetail_20' ) start [2025-04-16 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920694', 'tblTempUsageDetail_20' ) end [2025-04-16 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920694', 'tblTempVendorCDR_20' ) start [2025-04-16 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920694', 'tblTempVendorCDR_20' ) end [2025-04-16 11:44:21] Production.INFO: ProcessCDR(1,14920694,1,1,2) [2025-04-16 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920694', 'tblTempUsageDetail_20' ) start [2025-04-16 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920694', 'tblTempUsageDetail_20' ) end [2025-04-16 11:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:44:25] Production.INFO: ==15689== Releasing lock... [2025-04-16 11:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:44:25] Production.INFO: 61.25 MB #Memory Used# [2025-04-16 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:45:05 [end_date_ymd] => 2025-04-16 11:45:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:45:05' and `end` < '2025-04-16 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-04-16 11:45:18] Production.INFO: count ==4471 [2025-04-16 11:45:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:45:05 - End Time 2025-04-16 11:45:05 [2025-04-16 11:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920699', 'tblTempUsageDetail_20' ) start [2025-04-16 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920699', 'tblTempUsageDetail_20' ) end [2025-04-16 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920699', 'tblTempVendorCDR_20' ) start [2025-04-16 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920699', 'tblTempVendorCDR_20' ) end [2025-04-16 11:45:20] Production.INFO: ProcessCDR(1,14920699,1,1,2) [2025-04-16 11:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920699', 'tblTempUsageDetail_20' ) start [2025-04-16 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920699', 'tblTempUsageDetail_20' ) end [2025-04-16 11:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:45:25] Production.INFO: ==15762== Releasing lock... [2025-04-16 11:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:45:25] Production.INFO: 61.5 MB #Memory Used# [2025-04-16 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:46:05 [end_date_ymd] => 2025-04-16 11:46:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:46:05' and `end` < '2025-04-16 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-04-16 11:46:19] Production.INFO: count ==4500 [2025-04-16 11:46:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:46:05 - End Time 2025-04-16 11:46:05 [2025-04-16 11:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920704', 'tblTempUsageDetail_20' ) start [2025-04-16 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920704', 'tblTempUsageDetail_20' ) end [2025-04-16 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920704', 'tblTempVendorCDR_20' ) start [2025-04-16 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920704', 'tblTempVendorCDR_20' ) end [2025-04-16 11:46:20] Production.INFO: ProcessCDR(1,14920704,1,1,2) [2025-04-16 11:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920704', 'tblTempUsageDetail_20' ) start [2025-04-16 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920704', 'tblTempUsageDetail_20' ) end [2025-04-16 11:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:46:26] Production.INFO: ==15837== Releasing lock... [2025-04-16 11:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:46:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-16 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:47:05 [end_date_ymd] => 2025-04-16 11:47:05 [RateCDR] => 1 ) [2025-04-16 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:47:05' and `end` < '2025-04-16 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:47:19] Production.INFO: count ==4510 [2025-04-16 11:47:21] Production.ERROR: pbx CDR StartTime 2025-04-16 08:47:05 - End Time 2025-04-16 11:47:05 [2025-04-16 11:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920709', 'tblTempUsageDetail_20' ) start [2025-04-16 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920709', 'tblTempUsageDetail_20' ) end [2025-04-16 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920709', 'tblTempVendorCDR_20' ) start [2025-04-16 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920709', 'tblTempVendorCDR_20' ) end [2025-04-16 11:47:21] Production.INFO: ProcessCDR(1,14920709,1,1,2) [2025-04-16 11:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920709', 'tblTempUsageDetail_20' ) start [2025-04-16 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920709', 'tblTempUsageDetail_20' ) end [2025-04-16 11:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:47:26] Production.INFO: ==15910== Releasing lock... [2025-04-16 11:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:47:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-16 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:48:05 [end_date_ymd] => 2025-04-16 11:48:05 [RateCDR] => 1 ) [2025-04-16 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:48:05' and `end` < '2025-04-16 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:48:19] Production.INFO: count ==4508 [2025-04-16 11:48:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:48:05 - End Time 2025-04-16 11:48:05 [2025-04-16 11:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920714', 'tblTempUsageDetail_20' ) start [2025-04-16 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920714', 'tblTempUsageDetail_20' ) end [2025-04-16 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920714', 'tblTempVendorCDR_20' ) start [2025-04-16 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920714', 'tblTempVendorCDR_20' ) end [2025-04-16 11:48:20] Production.INFO: ProcessCDR(1,14920714,1,1,2) [2025-04-16 11:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920714', 'tblTempUsageDetail_20' ) start [2025-04-16 11:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920714', 'tblTempUsageDetail_20' ) end [2025-04-16 11:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:48:25] Production.INFO: ==15983== Releasing lock... [2025-04-16 11:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:48:25] Production.INFO: 61.75 MB #Memory Used# [2025-04-16 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:49:05 [end_date_ymd] => 2025-04-16 11:49:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:49:05' and `end` < '2025-04-16 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-04-16 11:49:19] Production.INFO: count ==4506 [2025-04-16 11:49:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:49:05 - End Time 2025-04-16 11:49:05 [2025-04-16 11:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920719', 'tblTempUsageDetail_20' ) start [2025-04-16 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920719', 'tblTempUsageDetail_20' ) end [2025-04-16 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920719', 'tblTempVendorCDR_20' ) start [2025-04-16 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920719', 'tblTempVendorCDR_20' ) end [2025-04-16 11:49:20] Production.INFO: ProcessCDR(1,14920719,1,1,2) [2025-04-16 11:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920719', 'tblTempUsageDetail_20' ) start [2025-04-16 11:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920719', 'tblTempUsageDetail_20' ) end [2025-04-16 11:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:49:26] Production.INFO: ==16056== Releasing lock... [2025-04-16 11:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:49:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-16 11:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:50:05 [end_date_ymd] => 2025-04-16 11:50:05 [RateCDR] => 1 ) [2025-04-16 11:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:50:05' and `end` < '2025-04-16 11:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:50:19] Production.INFO: count ==4511 [2025-04-16 11:50:21] Production.ERROR: pbx CDR StartTime 2025-04-16 08:50:05 - End Time 2025-04-16 11:50:05 [2025-04-16 11:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920724', 'tblTempUsageDetail_20' ) start [2025-04-16 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920724', 'tblTempUsageDetail_20' ) end [2025-04-16 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920724', 'tblTempVendorCDR_20' ) start [2025-04-16 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920724', 'tblTempVendorCDR_20' ) end [2025-04-16 11:50:21] Production.INFO: ProcessCDR(1,14920724,1,1,2) [2025-04-16 11:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920724', 'tblTempUsageDetail_20' ) start [2025-04-16 11:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920724', 'tblTempUsageDetail_20' ) end [2025-04-16 11:50:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:50:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:50:26] Production.INFO: ==16169== Releasing lock... [2025-04-16 11:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:50:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-16 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:51:05 [end_date_ymd] => 2025-04-16 11:51:05 [RateCDR] => 1 ) [2025-04-16 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:51:05' and `end` < '2025-04-16 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:51:19] Production.INFO: count ==4607 [2025-04-16 11:51:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:51:05 - End Time 2025-04-16 11:51:05 [2025-04-16 11:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920730', 'tblTempUsageDetail_20' ) start [2025-04-16 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920730', 'tblTempUsageDetail_20' ) end [2025-04-16 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920730', 'tblTempVendorCDR_20' ) start [2025-04-16 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920730', 'tblTempVendorCDR_20' ) end [2025-04-16 11:51:20] Production.INFO: ProcessCDR(1,14920730,1,1,2) [2025-04-16 11:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920730', 'tblTempUsageDetail_20' ) start [2025-04-16 11:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920730', 'tblTempUsageDetail_20' ) end [2025-04-16 11:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:51:26] Production.INFO: ==16243== Releasing lock... [2025-04-16 11:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:51:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-16 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:52:05 [end_date_ymd] => 2025-04-16 11:52:05 [RateCDR] => 1 ) [2025-04-16 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:52:05' and `end` < '2025-04-16 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:52:19] Production.INFO: count ==4598 [2025-04-16 11:52:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:52:05 - End Time 2025-04-16 11:52:05 [2025-04-16 11:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920735', 'tblTempUsageDetail_20' ) start [2025-04-16 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920735', 'tblTempUsageDetail_20' ) end [2025-04-16 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920735', 'tblTempVendorCDR_20' ) start [2025-04-16 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920735', 'tblTempVendorCDR_20' ) end [2025-04-16 11:52:20] Production.INFO: ProcessCDR(1,14920735,1,1,2) [2025-04-16 11:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920735', 'tblTempUsageDetail_20' ) start [2025-04-16 11:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920735', 'tblTempUsageDetail_20' ) end [2025-04-16 11:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:52:26] Production.INFO: ==16317== Releasing lock... [2025-04-16 11:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:52:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-16 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:53:05 [end_date_ymd] => 2025-04-16 11:53:05 [RateCDR] => 1 ) [2025-04-16 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:53:05' and `end` < '2025-04-16 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:53:19] Production.INFO: count ==4612 [2025-04-16 11:53:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:53:05 - End Time 2025-04-16 11:53:05 [2025-04-16 11:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920740', 'tblTempUsageDetail_20' ) start [2025-04-16 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920740', 'tblTempUsageDetail_20' ) end [2025-04-16 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920740', 'tblTempVendorCDR_20' ) start [2025-04-16 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920740', 'tblTempVendorCDR_20' ) end [2025-04-16 11:53:20] Production.INFO: ProcessCDR(1,14920740,1,1,2) [2025-04-16 11:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920740', 'tblTempUsageDetail_20' ) start [2025-04-16 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920740', 'tblTempUsageDetail_20' ) end [2025-04-16 11:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:53:26] Production.INFO: ==16388== Releasing lock... [2025-04-16 11:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:53:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-16 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:54:05 [end_date_ymd] => 2025-04-16 11:54:05 [RateCDR] => 1 ) [2025-04-16 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:54:05' and `end` < '2025-04-16 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:54:19] Production.INFO: count ==4608 [2025-04-16 11:54:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:54:05 - End Time 2025-04-16 11:54:05 [2025-04-16 11:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920745', 'tblTempUsageDetail_20' ) start [2025-04-16 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920745', 'tblTempUsageDetail_20' ) end [2025-04-16 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920745', 'tblTempVendorCDR_20' ) start [2025-04-16 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920745', 'tblTempVendorCDR_20' ) end [2025-04-16 11:54:20] Production.INFO: ProcessCDR(1,14920745,1,1,2) [2025-04-16 11:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920745', 'tblTempUsageDetail_20' ) start [2025-04-16 11:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920745', 'tblTempUsageDetail_20' ) end [2025-04-16 11:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:54:25] Production.INFO: ==16462== Releasing lock... [2025-04-16 11:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:54:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-16 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:55:05 [end_date_ymd] => 2025-04-16 11:55:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:55:05' and `end` < '2025-04-16 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-04-16 11:55:19] Production.INFO: count ==4616 [2025-04-16 11:55:20] Production.ERROR: pbx CDR StartTime 2025-04-16 08:55:05 - End Time 2025-04-16 11:55:05 [2025-04-16 11:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920750', 'tblTempUsageDetail_20' ) start [2025-04-16 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920750', 'tblTempUsageDetail_20' ) end [2025-04-16 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920750', 'tblTempVendorCDR_20' ) start [2025-04-16 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920750', 'tblTempVendorCDR_20' ) end [2025-04-16 11:55:21] Production.INFO: ProcessCDR(1,14920750,1,1,2) [2025-04-16 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920750', 'tblTempUsageDetail_20' ) start [2025-04-16 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920750', 'tblTempUsageDetail_20' ) end [2025-04-16 11:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:55:26] Production.INFO: ==16542== Releasing lock... [2025-04-16 11:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:55:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-16 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:56:05 [end_date_ymd] => 2025-04-16 11:56:05 [RateCDR] => 1 ) [2025-04-16 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:56:05' and `end` < '2025-04-16 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:56:19] Production.INFO: count ==4631 [2025-04-16 11:56:21] Production.ERROR: pbx CDR StartTime 2025-04-16 08:56:05 - End Time 2025-04-16 11:56:05 [2025-04-16 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920755', 'tblTempUsageDetail_20' ) start [2025-04-16 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920755', 'tblTempUsageDetail_20' ) end [2025-04-16 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920755', 'tblTempVendorCDR_20' ) start [2025-04-16 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920755', 'tblTempVendorCDR_20' ) end [2025-04-16 11:56:21] Production.INFO: ProcessCDR(1,14920755,1,1,2) [2025-04-16 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920755', 'tblTempUsageDetail_20' ) start [2025-04-16 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920755', 'tblTempUsageDetail_20' ) end [2025-04-16 11:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:56:26] Production.INFO: ==16624== Releasing lock... [2025-04-16 11:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:56:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-16 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:57:05 [end_date_ymd] => 2025-04-16 11:57:05 [RateCDR] => 1 ) [2025-04-16 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 08:57:05' and `end` < '2025-04-16 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 11:57:19] Production.INFO: count ==4662 [2025-04-16 11:57:21] Production.ERROR: pbx CDR StartTime 2025-04-16 08:57:05 - End Time 2025-04-16 11:57:05 [2025-04-16 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920760', 'tblTempUsageDetail_20' ) start [2025-04-16 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920760', 'tblTempUsageDetail_20' ) end [2025-04-16 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920760', 'tblTempVendorCDR_20' ) start [2025-04-16 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920760', 'tblTempVendorCDR_20' ) end [2025-04-16 11:57:21] Production.INFO: ProcessCDR(1,14920760,1,1,2) [2025-04-16 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920760', 'tblTempUsageDetail_20' ) start [2025-04-16 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920760', 'tblTempUsageDetail_20' ) end [2025-04-16 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:57:26] Production.INFO: ==16694== Releasing lock... [2025-04-16 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:57:26] Production.INFO: 63 MB #Memory Used# [2025-04-16 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:58:06 [end_date_ymd] => 2025-04-16 11:58:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:58:06' and `end` < '2025-04-16 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-04-16 11:58:19] Production.INFO: count ==4677 [2025-04-16 11:58:21] Production.ERROR: pbx CDR StartTime 2025-04-16 08:58:06 - End Time 2025-04-16 11:58:06 [2025-04-16 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920765', 'tblTempUsageDetail_20' ) start [2025-04-16 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920765', 'tblTempUsageDetail_20' ) end [2025-04-16 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920765', 'tblTempVendorCDR_20' ) start [2025-04-16 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920765', 'tblTempVendorCDR_20' ) end [2025-04-16 11:58:21] Production.INFO: ProcessCDR(1,14920765,1,1,2) [2025-04-16 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920765', 'tblTempUsageDetail_20' ) start [2025-04-16 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920765', 'tblTempUsageDetail_20' ) end [2025-04-16 11:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:58:26] Production.INFO: ==16769== Releasing lock... [2025-04-16 11:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:58:26] Production.INFO: 63 MB #Memory Used# [2025-04-16 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 08:59:05 [end_date_ymd] => 2025-04-16 11:59:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 08:59:05' and `end` < '2025-04-16 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-04-16 11:59:19] Production.INFO: count ==4703 [2025-04-16 11:59:21] Production.ERROR: pbx CDR StartTime 2025-04-16 08:59:05 - End Time 2025-04-16 11:59:05 [2025-04-16 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920770', 'tblTempUsageDetail_20' ) start [2025-04-16 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920770', 'tblTempUsageDetail_20' ) end [2025-04-16 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920770', 'tblTempVendorCDR_20' ) start [2025-04-16 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920770', 'tblTempVendorCDR_20' ) end [2025-04-16 11:59:21] Production.INFO: ProcessCDR(1,14920770,1,1,2) [2025-04-16 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920770', 'tblTempUsageDetail_20' ) start [2025-04-16 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920770', 'tblTempUsageDetail_20' ) end [2025-04-16 11:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 11:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 11:59:26] Production.INFO: ==16838== Releasing lock... [2025-04-16 11:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 11:59:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:00:06 [end_date_ymd] => 2025-04-16 12:00:06 [RateCDR] => 1 ) [2025-04-16 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 09:00:06' and `end` < '2025-04-16 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 12:00:20] Production.INFO: count ==4722 [2025-04-16 12:00:22] Production.ERROR: pbx CDR StartTime 2025-04-16 09:00:06 - End Time 2025-04-16 12:00:06 [2025-04-16 12:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920776', 'tblTempUsageDetail_20' ) start [2025-04-16 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920776', 'tblTempUsageDetail_20' ) end [2025-04-16 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920776', 'tblTempVendorCDR_20' ) start [2025-04-16 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920776', 'tblTempVendorCDR_20' ) end [2025-04-16 12:00:22] Production.INFO: ProcessCDR(1,14920776,1,1,2) [2025-04-16 12:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920776', 'tblTempUsageDetail_20' ) start [2025-04-16 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920776', 'tblTempUsageDetail_20' ) end [2025-04-16 12:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:00:27] Production.INFO: ==16912== Releasing lock... [2025-04-16 12:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:00:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:01:05 [end_date_ymd] => 2025-04-16 12:01:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:01:05' and `end` < '2025-04-16 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-04-16 12:01:19] Production.INFO: count ==4831 [2025-04-16 12:01:20] Production.ERROR: pbx CDR StartTime 2025-04-16 09:01:05 - End Time 2025-04-16 12:01:05 [2025-04-16 12:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920781', 'tblTempUsageDetail_20' ) start [2025-04-16 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920781', 'tblTempUsageDetail_20' ) end [2025-04-16 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920781', 'tblTempVendorCDR_20' ) start [2025-04-16 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920781', 'tblTempVendorCDR_20' ) end [2025-04-16 12:01:21] Production.INFO: ProcessCDR(1,14920781,1,1,2) [2025-04-16 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920781', 'tblTempUsageDetail_20' ) start [2025-04-16 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920781', 'tblTempUsageDetail_20' ) end [2025-04-16 12:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:01:25] Production.INFO: ==17001== Releasing lock... [2025-04-16 12:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:01:25] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:02:05 [end_date_ymd] => 2025-04-16 12:02:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:02:05' and `end` < '2025-04-16 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-04-16 12:02:19] Production.INFO: count ==4834 [2025-04-16 12:02:20] Production.ERROR: pbx CDR StartTime 2025-04-16 09:02:05 - End Time 2025-04-16 12:02:05 [2025-04-16 12:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920786', 'tblTempUsageDetail_20' ) start [2025-04-16 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920786', 'tblTempUsageDetail_20' ) end [2025-04-16 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920786', 'tblTempVendorCDR_20' ) start [2025-04-16 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920786', 'tblTempVendorCDR_20' ) end [2025-04-16 12:02:21] Production.INFO: ProcessCDR(1,14920786,1,1,2) [2025-04-16 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920786', 'tblTempUsageDetail_20' ) start [2025-04-16 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920786', 'tblTempUsageDetail_20' ) end [2025-04-16 12:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:02:26] Production.INFO: ==17071== Releasing lock... [2025-04-16 12:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:02:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:03:05 [end_date_ymd] => 2025-04-16 12:03:05 [RateCDR] => 1 ) [2025-04-16 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 09:03:05' and `end` < '2025-04-16 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 12:03:19] Production.INFO: count ==4850 [2025-04-16 12:03:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:03:05 - End Time 2025-04-16 12:03:05 [2025-04-16 12:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920791', 'tblTempUsageDetail_20' ) start [2025-04-16 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920791', 'tblTempUsageDetail_20' ) end [2025-04-16 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920791', 'tblTempVendorCDR_20' ) start [2025-04-16 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920791', 'tblTempVendorCDR_20' ) end [2025-04-16 12:03:21] Production.INFO: ProcessCDR(1,14920791,1,1,2) [2025-04-16 12:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920791', 'tblTempUsageDetail_20' ) start [2025-04-16 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920791', 'tblTempUsageDetail_20' ) end [2025-04-16 12:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:03:26] Production.INFO: ==17147== Releasing lock... [2025-04-16 12:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:03:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:04:06 [end_date_ymd] => 2025-04-16 12:04:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:04:06' and `end` < '2025-04-16 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-04-16 12:04:19] Production.INFO: count ==4843 [2025-04-16 12:04:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:04:06 - End Time 2025-04-16 12:04:06 [2025-04-16 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920796', 'tblTempUsageDetail_20' ) start [2025-04-16 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920796', 'tblTempUsageDetail_20' ) end [2025-04-16 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920796', 'tblTempVendorCDR_20' ) start [2025-04-16 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920796', 'tblTempVendorCDR_20' ) end [2025-04-16 12:04:21] Production.INFO: ProcessCDR(1,14920796,1,1,2) [2025-04-16 12:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920796', 'tblTempUsageDetail_20' ) start [2025-04-16 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920796', 'tblTempUsageDetail_20' ) end [2025-04-16 12:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:04:26] Production.INFO: ==17221== Releasing lock... [2025-04-16 12:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:04:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:05:05 [end_date_ymd] => 2025-04-16 12:05:05 [RateCDR] => 1 ) [2025-04-16 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 09:05:05' and `end` < '2025-04-16 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 12:05:19] Production.INFO: count ==4856 [2025-04-16 12:05:20] Production.ERROR: pbx CDR StartTime 2025-04-16 09:05:05 - End Time 2025-04-16 12:05:05 [2025-04-16 12:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920801', 'tblTempUsageDetail_20' ) start [2025-04-16 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920801', 'tblTempUsageDetail_20' ) end [2025-04-16 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920801', 'tblTempVendorCDR_20' ) start [2025-04-16 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920801', 'tblTempVendorCDR_20' ) end [2025-04-16 12:05:21] Production.INFO: ProcessCDR(1,14920801,1,1,2) [2025-04-16 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920801', 'tblTempUsageDetail_20' ) start [2025-04-16 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920801', 'tblTempUsageDetail_20' ) end [2025-04-16 12:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:05:26] Production.INFO: ==17293== Releasing lock... [2025-04-16 12:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:05:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:06:06 [end_date_ymd] => 2025-04-16 12:06:06 [RateCDR] => 1 ) [2025-04-16 12:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 09:06:06' and `end` < '2025-04-16 12:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 12:06:19] Production.INFO: count ==4828 [2025-04-16 12:06:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:06:06 - End Time 2025-04-16 12:06:06 [2025-04-16 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920806', 'tblTempUsageDetail_20' ) start [2025-04-16 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920806', 'tblTempUsageDetail_20' ) end [2025-04-16 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920806', 'tblTempVendorCDR_20' ) start [2025-04-16 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920806', 'tblTempVendorCDR_20' ) end [2025-04-16 12:06:21] Production.INFO: ProcessCDR(1,14920806,1,1,2) [2025-04-16 12:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920806', 'tblTempUsageDetail_20' ) start [2025-04-16 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920806', 'tblTempUsageDetail_20' ) end [2025-04-16 12:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:06:26] Production.INFO: ==17405== Releasing lock... [2025-04-16 12:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:06:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:07:05 [end_date_ymd] => 2025-04-16 12:07:05 [RateCDR] => 1 ) [2025-04-16 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 09:07:05' and `end` < '2025-04-16 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 12:07:19] Production.INFO: count ==4828 [2025-04-16 12:07:20] Production.ERROR: pbx CDR StartTime 2025-04-16 09:07:05 - End Time 2025-04-16 12:07:05 [2025-04-16 12:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920811', 'tblTempUsageDetail_20' ) start [2025-04-16 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920811', 'tblTempUsageDetail_20' ) end [2025-04-16 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920811', 'tblTempVendorCDR_20' ) start [2025-04-16 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920811', 'tblTempVendorCDR_20' ) end [2025-04-16 12:07:21] Production.INFO: ProcessCDR(1,14920811,1,1,2) [2025-04-16 12:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920811', 'tblTempUsageDetail_20' ) start [2025-04-16 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920811', 'tblTempUsageDetail_20' ) end [2025-04-16 12:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:07:26] Production.INFO: ==17477== Releasing lock... [2025-04-16 12:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:07:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:08:05 [end_date_ymd] => 2025-04-16 12:08:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:08:05' and `end` < '2025-04-16 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-04-16 12:08:18] Production.INFO: count ==4829 [2025-04-16 12:08:20] Production.ERROR: pbx CDR StartTime 2025-04-16 09:08:05 - End Time 2025-04-16 12:08:05 [2025-04-16 12:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920816', 'tblTempUsageDetail_20' ) start [2025-04-16 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920816', 'tblTempUsageDetail_20' ) end [2025-04-16 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920816', 'tblTempVendorCDR_20' ) start [2025-04-16 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920816', 'tblTempVendorCDR_20' ) end [2025-04-16 12:08:20] Production.INFO: ProcessCDR(1,14920816,1,1,2) [2025-04-16 12:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920816', 'tblTempUsageDetail_20' ) start [2025-04-16 12:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920816', 'tblTempUsageDetail_20' ) end [2025-04-16 12:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:08:25] Production.INFO: ==17553== Releasing lock... [2025-04-16 12:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:08:25] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:09:05 [end_date_ymd] => 2025-04-16 12:09:05 [RateCDR] => 1 ) [2025-04-16 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 09:09:05' and `end` < '2025-04-16 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 12:09:19] Production.INFO: count ==4835 [2025-04-16 12:09:20] Production.ERROR: pbx CDR StartTime 2025-04-16 09:09:05 - End Time 2025-04-16 12:09:05 [2025-04-16 12:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920821', 'tblTempUsageDetail_20' ) start [2025-04-16 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920821', 'tblTempUsageDetail_20' ) end [2025-04-16 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920821', 'tblTempVendorCDR_20' ) start [2025-04-16 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920821', 'tblTempVendorCDR_20' ) end [2025-04-16 12:09:20] Production.INFO: ProcessCDR(1,14920821,1,1,2) [2025-04-16 12:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920821', 'tblTempUsageDetail_20' ) start [2025-04-16 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920821', 'tblTempUsageDetail_20' ) end [2025-04-16 12:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:09:26] Production.INFO: ==17623== Releasing lock... [2025-04-16 12:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:09:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:10:06 [end_date_ymd] => 2025-04-16 12:10:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:10:06' and `end` < '2025-04-16 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-04-16 12:10:20] Production.INFO: count ==4831 [2025-04-16 12:10:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:10:06 - End Time 2025-04-16 12:10:06 [2025-04-16 12:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920827', 'tblTempUsageDetail_20' ) start [2025-04-16 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920827', 'tblTempUsageDetail_20' ) end [2025-04-16 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920827', 'tblTempVendorCDR_20' ) start [2025-04-16 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920827', 'tblTempVendorCDR_20' ) end [2025-04-16 12:10:22] Production.INFO: ProcessCDR(1,14920827,1,1,2) [2025-04-16 12:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920827', 'tblTempUsageDetail_20' ) start [2025-04-16 12:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920827', 'tblTempUsageDetail_20' ) end [2025-04-16 12:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:10:26] Production.INFO: ==17711== Releasing lock... [2025-04-16 12:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:10:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 12:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:11:04 [end_date_ymd] => 2025-04-16 12:11:04 [RateCDR] => 1 ) [2025-04-16 12:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 09:11:04' and `end` < '2025-04-16 12:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 12:11:18] Production.INFO: count ==4840 [2025-04-16 12:11:20] Production.ERROR: pbx CDR StartTime 2025-04-16 09:11:04 - End Time 2025-04-16 12:11:04 [2025-04-16 12:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920832', 'tblTempUsageDetail_20' ) start [2025-04-16 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920832', 'tblTempUsageDetail_20' ) end [2025-04-16 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920832', 'tblTempVendorCDR_20' ) start [2025-04-16 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920832', 'tblTempVendorCDR_20' ) end [2025-04-16 12:11:20] Production.INFO: ProcessCDR(1,14920832,1,1,2) [2025-04-16 12:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920832', 'tblTempUsageDetail_20' ) start [2025-04-16 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920832', 'tblTempUsageDetail_20' ) end [2025-04-16 12:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:11:25] Production.INFO: ==17787== Releasing lock... [2025-04-16 12:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:11:25] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:12:05 [end_date_ymd] => 2025-04-16 12:12:05 [RateCDR] => 1 ) [2025-04-16 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 09:12:05' and `end` < '2025-04-16 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-04-16 12:12:19] Production.INFO: count ==4842 [2025-04-16 12:12:20] Production.ERROR: pbx CDR StartTime 2025-04-16 09:12:05 - End Time 2025-04-16 12:12:05 [2025-04-16 12:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920837', 'tblTempUsageDetail_20' ) start [2025-04-16 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920837', 'tblTempUsageDetail_20' ) end [2025-04-16 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920837', 'tblTempVendorCDR_20' ) start [2025-04-16 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920837', 'tblTempVendorCDR_20' ) end [2025-04-16 12:12:20] Production.INFO: ProcessCDR(1,14920837,1,1,2) [2025-04-16 12:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920837', 'tblTempUsageDetail_20' ) start [2025-04-16 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920837', 'tblTempUsageDetail_20' ) end [2025-04-16 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:12:26] Production.INFO: ==17857== Releasing lock... [2025-04-16 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:12:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:13:05 [end_date_ymd] => 2025-04-16 12:13:05 [RateCDR] => 1 ) [2025-04-16 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 09:13:05' and `end` < '2025-04-16 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 12:13:19] Production.INFO: count ==4856 [2025-04-16 12:13:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:13:05 - End Time 2025-04-16 12:13:05 [2025-04-16 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920842', 'tblTempUsageDetail_20' ) start [2025-04-16 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920842', 'tblTempUsageDetail_20' ) end [2025-04-16 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920842', 'tblTempVendorCDR_20' ) start [2025-04-16 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920842', 'tblTempVendorCDR_20' ) end [2025-04-16 12:13:21] Production.INFO: ProcessCDR(1,14920842,1,1,2) [2025-04-16 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920842', 'tblTempUsageDetail_20' ) start [2025-04-16 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920842', 'tblTempUsageDetail_20' ) end [2025-04-16 12:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:13:26] Production.INFO: ==17932== Releasing lock... [2025-04-16 12:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:13:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:14:05 [end_date_ymd] => 2025-04-16 12:14:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:14:05' and `end` < '2025-04-16 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-04-16 12:14:20] Production.INFO: count ==4863 [2025-04-16 12:14:22] Production.ERROR: pbx CDR StartTime 2025-04-16 09:14:05 - End Time 2025-04-16 12:14:05 [2025-04-16 12:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920847', 'tblTempUsageDetail_20' ) start [2025-04-16 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920847', 'tblTempUsageDetail_20' ) end [2025-04-16 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920847', 'tblTempVendorCDR_20' ) start [2025-04-16 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920847', 'tblTempVendorCDR_20' ) end [2025-04-16 12:14:22] Production.INFO: ProcessCDR(1,14920847,1,1,2) [2025-04-16 12:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920847', 'tblTempUsageDetail_20' ) start [2025-04-16 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920847', 'tblTempUsageDetail_20' ) end [2025-04-16 12:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:14:27] Production.INFO: ==18003== Releasing lock... [2025-04-16 12:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:14:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:15:05 [end_date_ymd] => 2025-04-16 12:15:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:15:05' and `end` < '2025-04-16 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-04-16 12:15:19] Production.INFO: count ==4881 [2025-04-16 12:15:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:15:05 - End Time 2025-04-16 12:15:05 [2025-04-16 12:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920852', 'tblTempUsageDetail_20' ) start [2025-04-16 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920852', 'tblTempUsageDetail_20' ) end [2025-04-16 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920852', 'tblTempVendorCDR_20' ) start [2025-04-16 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920852', 'tblTempVendorCDR_20' ) end [2025-04-16 12:15:21] Production.INFO: ProcessCDR(1,14920852,1,1,2) [2025-04-16 12:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920852', 'tblTempUsageDetail_20' ) start [2025-04-16 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920852', 'tblTempUsageDetail_20' ) end [2025-04-16 12:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:15:26] Production.INFO: ==18076== Releasing lock... [2025-04-16 12:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:15:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:16:06 [end_date_ymd] => 2025-04-16 12:16:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:16:06' and `end` < '2025-04-16 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-04-16 12:16:19] Production.INFO: count ==4867 [2025-04-16 12:16:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:16:06 - End Time 2025-04-16 12:16:06 [2025-04-16 12:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920857', 'tblTempUsageDetail_20' ) start [2025-04-16 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920857', 'tblTempUsageDetail_20' ) end [2025-04-16 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920857', 'tblTempVendorCDR_20' ) start [2025-04-16 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920857', 'tblTempVendorCDR_20' ) end [2025-04-16 12:16:21] Production.INFO: ProcessCDR(1,14920857,1,1,2) [2025-04-16 12:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920857', 'tblTempUsageDetail_20' ) start [2025-04-16 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920857', 'tblTempUsageDetail_20' ) end [2025-04-16 12:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:16:26] Production.INFO: ==18151== Releasing lock... [2025-04-16 12:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:16:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:17:05 [end_date_ymd] => 2025-04-16 12:17:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:17:05' and `end` < '2025-04-16 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-04-16 12:17:19] Production.INFO: count ==4868 [2025-04-16 12:17:20] Production.ERROR: pbx CDR StartTime 2025-04-16 09:17:05 - End Time 2025-04-16 12:17:05 [2025-04-16 12:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920862', 'tblTempUsageDetail_20' ) start [2025-04-16 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920862', 'tblTempUsageDetail_20' ) end [2025-04-16 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920862', 'tblTempVendorCDR_20' ) start [2025-04-16 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920862', 'tblTempVendorCDR_20' ) end [2025-04-16 12:17:20] Production.INFO: ProcessCDR(1,14920862,1,1,2) [2025-04-16 12:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920862', 'tblTempUsageDetail_20' ) start [2025-04-16 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920862', 'tblTempUsageDetail_20' ) end [2025-04-16 12:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:17:26] Production.INFO: ==18229== Releasing lock... [2025-04-16 12:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:17:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-16 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:18:05 [end_date_ymd] => 2025-04-16 12:18:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:18:05' and `end` < '2025-04-16 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-04-16 12:18:19] Production.INFO: count ==4870 [2025-04-16 12:18:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:18:05 - End Time 2025-04-16 12:18:05 [2025-04-16 12:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920867', 'tblTempUsageDetail_20' ) start [2025-04-16 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920867', 'tblTempUsageDetail_20' ) end [2025-04-16 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920867', 'tblTempVendorCDR_20' ) start [2025-04-16 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920867', 'tblTempVendorCDR_20' ) end [2025-04-16 12:18:21] Production.INFO: ProcessCDR(1,14920867,1,1,2) [2025-04-16 12:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920867', 'tblTempUsageDetail_20' ) start [2025-04-16 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920867', 'tblTempUsageDetail_20' ) end [2025-04-16 12:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:18:26] Production.INFO: ==18301== Releasing lock... [2025-04-16 12:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:18:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:19:05 [end_date_ymd] => 2025-04-16 12:19:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:19:05' and `end` < '2025-04-16 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-04-16 12:19:18] Production.INFO: count ==4874 [2025-04-16 12:19:20] Production.ERROR: pbx CDR StartTime 2025-04-16 09:19:05 - End Time 2025-04-16 12:19:05 [2025-04-16 12:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920872', 'tblTempUsageDetail_20' ) start [2025-04-16 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920872', 'tblTempUsageDetail_20' ) end [2025-04-16 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920872', 'tblTempVendorCDR_20' ) start [2025-04-16 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920872', 'tblTempVendorCDR_20' ) end [2025-04-16 12:19:20] Production.INFO: ProcessCDR(1,14920872,1,1,2) [2025-04-16 12:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920872', 'tblTempUsageDetail_20' ) start [2025-04-16 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920872', 'tblTempUsageDetail_20' ) end [2025-04-16 12:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:19:25] Production.INFO: ==18386== Releasing lock... [2025-04-16 12:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:19:25] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:20:06 [end_date_ymd] => 2025-04-16 12:20:06 [RateCDR] => 1 ) [2025-04-16 12: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-04-16 09:20:06' and `end` < '2025-04-16 12: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-04-16 12:20:19] Production.INFO: count ==4869 [2025-04-16 12:20:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:20:06 - End Time 2025-04-16 12:20:06 [2025-04-16 12:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920878', 'tblTempUsageDetail_20' ) start [2025-04-16 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920878', 'tblTempUsageDetail_20' ) end [2025-04-16 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920878', 'tblTempVendorCDR_20' ) start [2025-04-16 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920878', 'tblTempVendorCDR_20' ) end [2025-04-16 12:20:21] Production.INFO: ProcessCDR(1,14920878,1,1,2) [2025-04-16 12:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920878', 'tblTempUsageDetail_20' ) start [2025-04-16 12:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920878', 'tblTempUsageDetail_20' ) end [2025-04-16 12:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:20:26] Production.INFO: ==18479== Releasing lock... [2025-04-16 12:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:20:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:21:05 [end_date_ymd] => 2025-04-16 12:21:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:21:05' and `end` < '2025-04-16 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-04-16 12:21:20] Production.INFO: count ==4866 [2025-04-16 12:21:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:21:05 - End Time 2025-04-16 12:21:05 [2025-04-16 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920883', 'tblTempUsageDetail_20' ) start [2025-04-16 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920883', 'tblTempUsageDetail_20' ) end [2025-04-16 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920883', 'tblTempVendorCDR_20' ) start [2025-04-16 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920883', 'tblTempVendorCDR_20' ) end [2025-04-16 12:21:21] Production.INFO: ProcessCDR(1,14920883,1,1,2) [2025-04-16 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920883', 'tblTempUsageDetail_20' ) start [2025-04-16 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920883', 'tblTempUsageDetail_20' ) end [2025-04-16 12:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:21:26] Production.INFO: ==18594== Releasing lock... [2025-04-16 12:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:21:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:22:05 [end_date_ymd] => 2025-04-16 12:22:05 [RateCDR] => 1 ) [2025-04-16 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 09:22:05' and `end` < '2025-04-16 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 12:22:19] Production.INFO: count ==4860 [2025-04-16 12:22:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:22:05 - End Time 2025-04-16 12:22:05 [2025-04-16 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920888', 'tblTempUsageDetail_20' ) start [2025-04-16 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920888', 'tblTempUsageDetail_20' ) end [2025-04-16 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920888', 'tblTempVendorCDR_20' ) start [2025-04-16 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920888', 'tblTempVendorCDR_20' ) end [2025-04-16 12:22:21] Production.INFO: ProcessCDR(1,14920888,1,1,2) [2025-04-16 12:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920888', 'tblTempUsageDetail_20' ) start [2025-04-16 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920888', 'tblTempUsageDetail_20' ) end [2025-04-16 12:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:22:26] Production.INFO: ==18671== Releasing lock... [2025-04-16 12:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:22:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-16 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:23:05 [end_date_ymd] => 2025-04-16 12:23:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:23:05' and `end` < '2025-04-16 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-04-16 12:23:19] Production.INFO: count ==4857 [2025-04-16 12:23:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:23:05 - End Time 2025-04-16 12:23:05 [2025-04-16 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920893', 'tblTempUsageDetail_20' ) start [2025-04-16 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920893', 'tblTempUsageDetail_20' ) end [2025-04-16 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920893', 'tblTempVendorCDR_20' ) start [2025-04-16 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920893', 'tblTempVendorCDR_20' ) end [2025-04-16 12:23:21] Production.INFO: ProcessCDR(1,14920893,1,1,2) [2025-04-16 12:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920893', 'tblTempUsageDetail_20' ) start [2025-04-16 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920893', 'tblTempUsageDetail_20' ) end [2025-04-16 12:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:23:26] Production.INFO: ==18741== Releasing lock... [2025-04-16 12:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:23:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 12:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:24:04 [end_date_ymd] => 2025-04-16 12:24:04 [RateCDR] => 1 ) [2025-04-16 12:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 09:24:04' and `end` < '2025-04-16 12:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 12:24:18] Production.INFO: count ==4855 [2025-04-16 12:24:20] Production.ERROR: pbx CDR StartTime 2025-04-16 09:24:04 - End Time 2025-04-16 12:24:04 [2025-04-16 12:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920898', 'tblTempUsageDetail_20' ) start [2025-04-16 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920898', 'tblTempUsageDetail_20' ) end [2025-04-16 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920898', 'tblTempVendorCDR_20' ) start [2025-04-16 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920898', 'tblTempVendorCDR_20' ) end [2025-04-16 12:24:20] Production.INFO: ProcessCDR(1,14920898,1,1,2) [2025-04-16 12:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920898', 'tblTempUsageDetail_20' ) start [2025-04-16 12:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920898', 'tblTempUsageDetail_20' ) end [2025-04-16 12:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:24:25] Production.INFO: ==18816== Releasing lock... [2025-04-16 12:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:24:25] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:25:05 [end_date_ymd] => 2025-04-16 12:25:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:25:05' and `end` < '2025-04-16 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-04-16 12:25:19] Production.INFO: count ==4863 [2025-04-16 12:25:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:25:05 - End Time 2025-04-16 12:25:05 [2025-04-16 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920903', 'tblTempUsageDetail_20' ) start [2025-04-16 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920903', 'tblTempUsageDetail_20' ) end [2025-04-16 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920903', 'tblTempVendorCDR_20' ) start [2025-04-16 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920903', 'tblTempVendorCDR_20' ) end [2025-04-16 12:25:21] Production.INFO: ProcessCDR(1,14920903,1,1,2) [2025-04-16 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920903', 'tblTempUsageDetail_20' ) start [2025-04-16 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920903', 'tblTempUsageDetail_20' ) end [2025-04-16 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:25:26] Production.INFO: ==18890== Releasing lock... [2025-04-16 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:25:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:26:05 [end_date_ymd] => 2025-04-16 12:26:05 [RateCDR] => 1 ) [2025-04-16 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 09:26:05' and `end` < '2025-04-16 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 12:26:19] Production.INFO: count ==4859 [2025-04-16 12:26:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:26:05 - End Time 2025-04-16 12:26:05 [2025-04-16 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920908', 'tblTempUsageDetail_20' ) start [2025-04-16 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920908', 'tblTempUsageDetail_20' ) end [2025-04-16 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920908', 'tblTempVendorCDR_20' ) start [2025-04-16 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920908', 'tblTempVendorCDR_20' ) end [2025-04-16 12:26:21] Production.INFO: ProcessCDR(1,14920908,1,1,2) [2025-04-16 12:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920908', 'tblTempUsageDetail_20' ) start [2025-04-16 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920908', 'tblTempUsageDetail_20' ) end [2025-04-16 12:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:26:26] Production.INFO: ==18964== Releasing lock... [2025-04-16 12:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:26:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:27:05 [end_date_ymd] => 2025-04-16 12:27:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:27:05' and `end` < '2025-04-16 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-04-16 12:27:19] Production.INFO: count ==4834 [2025-04-16 12:27:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:27:05 - End Time 2025-04-16 12:27:05 [2025-04-16 12:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920913', 'tblTempUsageDetail_20' ) start [2025-04-16 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920913', 'tblTempUsageDetail_20' ) end [2025-04-16 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920913', 'tblTempVendorCDR_20' ) start [2025-04-16 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920913', 'tblTempVendorCDR_20' ) end [2025-04-16 12:27:21] Production.INFO: ProcessCDR(1,14920913,1,1,2) [2025-04-16 12:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920913', 'tblTempUsageDetail_20' ) start [2025-04-16 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920913', 'tblTempUsageDetail_20' ) end [2025-04-16 12:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:27:26] Production.INFO: ==19036== Releasing lock... [2025-04-16 12:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:27:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:28:06 [end_date_ymd] => 2025-04-16 12:28:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:28:06' and `end` < '2025-04-16 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-04-16 12:28:20] Production.INFO: count ==4828 [2025-04-16 12:28:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:28:06 - End Time 2025-04-16 12:28:06 [2025-04-16 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920918', 'tblTempUsageDetail_20' ) start [2025-04-16 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920918', 'tblTempUsageDetail_20' ) end [2025-04-16 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920918', 'tblTempVendorCDR_20' ) start [2025-04-16 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920918', 'tblTempVendorCDR_20' ) end [2025-04-16 12:28:21] Production.INFO: ProcessCDR(1,14920918,1,1,2) [2025-04-16 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920918', 'tblTempUsageDetail_20' ) start [2025-04-16 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920918', 'tblTempUsageDetail_20' ) end [2025-04-16 12:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:28:27] Production.INFO: ==19111== Releasing lock... [2025-04-16 12:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:28:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:29:05 [end_date_ymd] => 2025-04-16 12:29:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:29:05' and `end` < '2025-04-16 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-04-16 12:29:19] Production.INFO: count ==4831 [2025-04-16 12:29:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:29:05 - End Time 2025-04-16 12:29:05 [2025-04-16 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920923', 'tblTempUsageDetail_20' ) start [2025-04-16 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920923', 'tblTempUsageDetail_20' ) end [2025-04-16 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920923', 'tblTempVendorCDR_20' ) start [2025-04-16 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920923', 'tblTempVendorCDR_20' ) end [2025-04-16 12:29:21] Production.INFO: ProcessCDR(1,14920923,1,1,2) [2025-04-16 12:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920923', 'tblTempUsageDetail_20' ) start [2025-04-16 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920923', 'tblTempUsageDetail_20' ) end [2025-04-16 12:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:29:26] Production.INFO: ==19183== Releasing lock... [2025-04-16 12:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:29:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:30:06 [end_date_ymd] => 2025-04-16 12:30:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:30:06' and `end` < '2025-04-16 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-04-16 12:30:19] Production.INFO: count ==4844 [2025-04-16 12:30:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:30:06 - End Time 2025-04-16 12:30:06 [2025-04-16 12:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920928', 'tblTempUsageDetail_20' ) start [2025-04-16 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920928', 'tblTempUsageDetail_20' ) end [2025-04-16 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920928', 'tblTempVendorCDR_20' ) start [2025-04-16 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920928', 'tblTempVendorCDR_20' ) end [2025-04-16 12:30:21] Production.INFO: ProcessCDR(1,14920928,1,1,2) [2025-04-16 12:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920928', 'tblTempUsageDetail_20' ) start [2025-04-16 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920928', 'tblTempUsageDetail_20' ) end [2025-04-16 12:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:30:27] Production.INFO: ==19256== Releasing lock... [2025-04-16 12:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:30:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 12:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:31:06 [end_date_ymd] => 2025-04-16 12:31:06 [RateCDR] => 1 ) [2025-04-16 12: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-04-16 09:31:06' and `end` < '2025-04-16 12: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-04-16 12:31:19] Production.INFO: count ==4809 [2025-04-16 12:31:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:31:06 - End Time 2025-04-16 12:31:06 [2025-04-16 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920934', 'tblTempUsageDetail_20' ) start [2025-04-16 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920934', 'tblTempUsageDetail_20' ) end [2025-04-16 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920934', 'tblTempVendorCDR_20' ) start [2025-04-16 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920934', 'tblTempVendorCDR_20' ) end [2025-04-16 12:31:21] Production.INFO: ProcessCDR(1,14920934,1,1,2) [2025-04-16 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920934', 'tblTempUsageDetail_20' ) start [2025-04-16 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920934', 'tblTempUsageDetail_20' ) end [2025-04-16 12:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:31:26] Production.INFO: ==19330== Releasing lock... [2025-04-16 12:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:31:26] Production.INFO: 64 MB #Memory Used# [2025-04-16 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:32:05 [end_date_ymd] => 2025-04-16 12:32:05 [RateCDR] => 1 ) [2025-04-16 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 09:32:05' and `end` < '2025-04-16 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 12:32:18] Production.INFO: count ==4808 [2025-04-16 12:32:20] Production.ERROR: pbx CDR StartTime 2025-04-16 09:32:05 - End Time 2025-04-16 12:32:05 [2025-04-16 12:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920939', 'tblTempUsageDetail_20' ) start [2025-04-16 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920939', 'tblTempUsageDetail_20' ) end [2025-04-16 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920939', 'tblTempVendorCDR_20' ) start [2025-04-16 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920939', 'tblTempVendorCDR_20' ) end [2025-04-16 12:32:20] Production.INFO: ProcessCDR(1,14920939,1,1,2) [2025-04-16 12:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920939', 'tblTempUsageDetail_20' ) start [2025-04-16 12:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920939', 'tblTempUsageDetail_20' ) end [2025-04-16 12:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:32:25] Production.INFO: ==19400== Releasing lock... [2025-04-16 12:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:32:25] Production.INFO: 64 MB #Memory Used# [2025-04-16 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:33:05 [end_date_ymd] => 2025-04-16 12:33:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:33:05' and `end` < '2025-04-16 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-04-16 12:33:19] Production.INFO: count ==4803 [2025-04-16 12:33:20] Production.ERROR: pbx CDR StartTime 2025-04-16 09:33:05 - End Time 2025-04-16 12:33:05 [2025-04-16 12:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920944', 'tblTempUsageDetail_20' ) start [2025-04-16 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920944', 'tblTempUsageDetail_20' ) end [2025-04-16 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920944', 'tblTempVendorCDR_20' ) start [2025-04-16 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920944', 'tblTempVendorCDR_20' ) end [2025-04-16 12:33:21] Production.INFO: ProcessCDR(1,14920944,1,1,2) [2025-04-16 12:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920944', 'tblTempUsageDetail_20' ) start [2025-04-16 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920944', 'tblTempUsageDetail_20' ) end [2025-04-16 12:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:33:26] Production.INFO: ==19484== Releasing lock... [2025-04-16 12:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:33:26] Production.INFO: 64 MB #Memory Used# [2025-04-16 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:34:06 [end_date_ymd] => 2025-04-16 12:34:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:34:06' and `end` < '2025-04-16 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-04-16 12:34:19] Production.INFO: count ==4807 [2025-04-16 12:34:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:34:06 - End Time 2025-04-16 12:34:06 [2025-04-16 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920949', 'tblTempUsageDetail_20' ) start [2025-04-16 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920949', 'tblTempUsageDetail_20' ) end [2025-04-16 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920949', 'tblTempVendorCDR_20' ) start [2025-04-16 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920949', 'tblTempVendorCDR_20' ) end [2025-04-16 12:34:21] Production.INFO: ProcessCDR(1,14920949,1,1,2) [2025-04-16 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920949', 'tblTempUsageDetail_20' ) start [2025-04-16 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920949', 'tblTempUsageDetail_20' ) end [2025-04-16 12:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:34:26] Production.INFO: ==19560== Releasing lock... [2025-04-16 12:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:34:26] Production.INFO: 64 MB #Memory Used# [2025-04-16 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:35:05 [end_date_ymd] => 2025-04-16 12:35:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:35:05' and `end` < '2025-04-16 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-04-16 12:35:19] Production.INFO: count ==4815 [2025-04-16 12:35:20] Production.ERROR: pbx CDR StartTime 2025-04-16 09:35:05 - End Time 2025-04-16 12:35:05 [2025-04-16 12:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920954', 'tblTempUsageDetail_20' ) start [2025-04-16 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920954', 'tblTempUsageDetail_20' ) end [2025-04-16 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920954', 'tblTempVendorCDR_20' ) start [2025-04-16 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920954', 'tblTempVendorCDR_20' ) end [2025-04-16 12:35:21] Production.INFO: ProcessCDR(1,14920954,1,1,2) [2025-04-16 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920954', 'tblTempUsageDetail_20' ) start [2025-04-16 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920954', 'tblTempUsageDetail_20' ) end [2025-04-16 12:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:35:26] Production.INFO: ==19629== Releasing lock... [2025-04-16 12:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:35:26] Production.INFO: 64 MB #Memory Used# [2025-04-16 12:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:36:06 [end_date_ymd] => 2025-04-16 12:36:06 [RateCDR] => 1 ) [2025-04-16 12:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 09:36:06' and `end` < '2025-04-16 12:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 12:36:20] Production.INFO: count ==4830 [2025-04-16 12:36:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:36:06 - End Time 2025-04-16 12:36:06 [2025-04-16 12:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920959', 'tblTempUsageDetail_20' ) start [2025-04-16 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920959', 'tblTempUsageDetail_20' ) end [2025-04-16 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920959', 'tblTempVendorCDR_20' ) start [2025-04-16 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920959', 'tblTempVendorCDR_20' ) end [2025-04-16 12:36:22] Production.INFO: ProcessCDR(1,14920959,1,1,2) [2025-04-16 12:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920959', 'tblTempUsageDetail_20' ) start [2025-04-16 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920959', 'tblTempUsageDetail_20' ) end [2025-04-16 12:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:36:27] Production.INFO: ==19749== Releasing lock... [2025-04-16 12:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:36:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 12:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:37:04 [end_date_ymd] => 2025-04-16 12:37:04 [RateCDR] => 1 ) [2025-04-16 12:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 09:37:04' and `end` < '2025-04-16 12:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 12:37:18] Production.INFO: count ==4843 [2025-04-16 12:37:20] Production.ERROR: pbx CDR StartTime 2025-04-16 09:37:04 - End Time 2025-04-16 12:37:04 [2025-04-16 12:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920964', 'tblTempUsageDetail_20' ) start [2025-04-16 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920964', 'tblTempUsageDetail_20' ) end [2025-04-16 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920964', 'tblTempVendorCDR_20' ) start [2025-04-16 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920964', 'tblTempVendorCDR_20' ) end [2025-04-16 12:37:20] Production.INFO: ProcessCDR(1,14920964,1,1,2) [2025-04-16 12:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920964', 'tblTempUsageDetail_20' ) start [2025-04-16 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920964', 'tblTempUsageDetail_20' ) end [2025-04-16 12:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:37:26] Production.INFO: ==19819== Releasing lock... [2025-04-16 12:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:37:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:38:05 [end_date_ymd] => 2025-04-16 12:38:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:38:05' and `end` < '2025-04-16 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-04-16 12:38:19] Production.INFO: count ==4861 [2025-04-16 12:38:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:38:05 - End Time 2025-04-16 12:38:05 [2025-04-16 12:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920969', 'tblTempUsageDetail_20' ) start [2025-04-16 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920969', 'tblTempUsageDetail_20' ) end [2025-04-16 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920969', 'tblTempVendorCDR_20' ) start [2025-04-16 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920969', 'tblTempVendorCDR_20' ) end [2025-04-16 12:38:21] Production.INFO: ProcessCDR(1,14920969,1,1,2) [2025-04-16 12:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920969', 'tblTempUsageDetail_20' ) start [2025-04-16 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920969', 'tblTempUsageDetail_20' ) end [2025-04-16 12:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:38:26] Production.INFO: ==19894== Releasing lock... [2025-04-16 12:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:38:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 12:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:39:06 [end_date_ymd] => 2025-04-16 12:39:06 [RateCDR] => 1 ) [2025-04-16 12: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-04-16 09:39:06' and `end` < '2025-04-16 12: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-04-16 12:39:19] Production.INFO: count ==4870 [2025-04-16 12:39:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:39:06 - End Time 2025-04-16 12:39:06 [2025-04-16 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920974', 'tblTempUsageDetail_20' ) start [2025-04-16 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920974', 'tblTempUsageDetail_20' ) end [2025-04-16 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920974', 'tblTempVendorCDR_20' ) start [2025-04-16 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920974', 'tblTempVendorCDR_20' ) end [2025-04-16 12:39:21] Production.INFO: ProcessCDR(1,14920974,1,1,2) [2025-04-16 12:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920974', 'tblTempUsageDetail_20' ) start [2025-04-16 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920974', 'tblTempUsageDetail_20' ) end [2025-04-16 12:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:39:27] Production.INFO: ==19972== Releasing lock... [2025-04-16 12:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:39:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:40:06 [end_date_ymd] => 2025-04-16 12:40:06 [RateCDR] => 1 ) [2025-04-16 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 09:40:06' and `end` < '2025-04-16 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 12:40:20] Production.INFO: count ==4873 [2025-04-16 12:40:22] Production.ERROR: pbx CDR StartTime 2025-04-16 09:40:06 - End Time 2025-04-16 12:40:06 [2025-04-16 12:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920980', 'tblTempUsageDetail_20' ) start [2025-04-16 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920980', 'tblTempUsageDetail_20' ) end [2025-04-16 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920980', 'tblTempVendorCDR_20' ) start [2025-04-16 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920980', 'tblTempVendorCDR_20' ) end [2025-04-16 12:40:22] Production.INFO: ProcessCDR(1,14920980,1,1,2) [2025-04-16 12:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920980', 'tblTempUsageDetail_20' ) start [2025-04-16 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920980', 'tblTempUsageDetail_20' ) end [2025-04-16 12:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:40:27] Production.INFO: ==20049== Releasing lock... [2025-04-16 12:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:40:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:41:05 [end_date_ymd] => 2025-04-16 12:41:05 [RateCDR] => 1 ) [2025-04-16 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 09:41:05' and `end` < '2025-04-16 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 12:41:19] Production.INFO: count ==4848 [2025-04-16 12:41:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:41:05 - End Time 2025-04-16 12:41:05 [2025-04-16 12:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920985', 'tblTempUsageDetail_20' ) start [2025-04-16 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920985', 'tblTempUsageDetail_20' ) end [2025-04-16 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920985', 'tblTempVendorCDR_20' ) start [2025-04-16 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920985', 'tblTempVendorCDR_20' ) end [2025-04-16 12:41:21] Production.INFO: ProcessCDR(1,14920985,1,1,2) [2025-04-16 12:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920985', 'tblTempUsageDetail_20' ) start [2025-04-16 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920985', 'tblTempUsageDetail_20' ) end [2025-04-16 12:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:41:26] Production.INFO: ==20124== Releasing lock... [2025-04-16 12:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:41:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:42:05 [end_date_ymd] => 2025-04-16 12:42:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:42:05' and `end` < '2025-04-16 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-04-16 12:42:19] Production.INFO: count ==4855 [2025-04-16 12:42:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:42:05 - End Time 2025-04-16 12:42:05 [2025-04-16 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920990', 'tblTempUsageDetail_20' ) start [2025-04-16 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920990', 'tblTempUsageDetail_20' ) end [2025-04-16 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920990', 'tblTempVendorCDR_20' ) start [2025-04-16 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920990', 'tblTempVendorCDR_20' ) end [2025-04-16 12:42:21] Production.INFO: ProcessCDR(1,14920990,1,1,2) [2025-04-16 12:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920990', 'tblTempUsageDetail_20' ) start [2025-04-16 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920990', 'tblTempUsageDetail_20' ) end [2025-04-16 12:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:42:26] Production.INFO: ==20197== Releasing lock... [2025-04-16 12:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:42:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:43:05 [end_date_ymd] => 2025-04-16 12:43:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:43:05' and `end` < '2025-04-16 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-04-16 12:43:19] Production.INFO: count ==4860 [2025-04-16 12:43:20] Production.ERROR: pbx CDR StartTime 2025-04-16 09:43:05 - End Time 2025-04-16 12:43:05 [2025-04-16 12:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920995', 'tblTempUsageDetail_20' ) start [2025-04-16 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14920995', 'tblTempUsageDetail_20' ) end [2025-04-16 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920995', 'tblTempVendorCDR_20' ) start [2025-04-16 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14920995', 'tblTempVendorCDR_20' ) end [2025-04-16 12:43:21] Production.INFO: ProcessCDR(1,14920995,1,1,2) [2025-04-16 12:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14920995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14920995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14920995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14920995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920995', 'tblTempUsageDetail_20' ) start [2025-04-16 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14920995', 'tblTempUsageDetail_20' ) end [2025-04-16 12:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:43:26] Production.INFO: ==20267== Releasing lock... [2025-04-16 12:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:43:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:44:05 [end_date_ymd] => 2025-04-16 12:44:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:44:05' and `end` < '2025-04-16 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-04-16 12:44:19] Production.INFO: count ==4858 [2025-04-16 12:44:20] Production.ERROR: pbx CDR StartTime 2025-04-16 09:44:05 - End Time 2025-04-16 12:44:05 [2025-04-16 12:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921000', 'tblTempUsageDetail_20' ) start [2025-04-16 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921000', 'tblTempUsageDetail_20' ) end [2025-04-16 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921000', 'tblTempVendorCDR_20' ) start [2025-04-16 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921000', 'tblTempVendorCDR_20' ) end [2025-04-16 12:44:21] Production.INFO: ProcessCDR(1,14921000,1,1,2) [2025-04-16 12:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921000', 'tblTempUsageDetail_20' ) start [2025-04-16 12:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921000', 'tblTempUsageDetail_20' ) end [2025-04-16 12:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:44:25] Production.INFO: ==20340== Releasing lock... [2025-04-16 12:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:44:25] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:45:05 [end_date_ymd] => 2025-04-16 12:45:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:45:05' and `end` < '2025-04-16 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-04-16 12:45:19] Production.INFO: count ==4860 [2025-04-16 12:45:20] Production.ERROR: pbx CDR StartTime 2025-04-16 09:45:05 - End Time 2025-04-16 12:45:05 [2025-04-16 12:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921005', 'tblTempUsageDetail_20' ) start [2025-04-16 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921005', 'tblTempUsageDetail_20' ) end [2025-04-16 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921005', 'tblTempVendorCDR_20' ) start [2025-04-16 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921005', 'tblTempVendorCDR_20' ) end [2025-04-16 12:45:21] Production.INFO: ProcessCDR(1,14921005,1,1,2) [2025-04-16 12:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921005', 'tblTempUsageDetail_20' ) start [2025-04-16 12:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921005', 'tblTempUsageDetail_20' ) end [2025-04-16 12:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:45:26] Production.INFO: ==20414== Releasing lock... [2025-04-16 12:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:45:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:46:05 [end_date_ymd] => 2025-04-16 12:46:05 [RateCDR] => 1 ) [2025-04-16 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 09:46:05' and `end` < '2025-04-16 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 12:46:19] Production.INFO: count ==4879 [2025-04-16 12:46:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:46:05 - End Time 2025-04-16 12:46:05 [2025-04-16 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921010', 'tblTempUsageDetail_20' ) start [2025-04-16 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921010', 'tblTempUsageDetail_20' ) end [2025-04-16 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921010', 'tblTempVendorCDR_20' ) start [2025-04-16 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921010', 'tblTempVendorCDR_20' ) end [2025-04-16 12:46:21] Production.INFO: ProcessCDR(1,14921010,1,1,2) [2025-04-16 12:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921010', 'tblTempUsageDetail_20' ) start [2025-04-16 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921010', 'tblTempUsageDetail_20' ) end [2025-04-16 12:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:46:26] Production.INFO: ==20484== Releasing lock... [2025-04-16 12:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:46:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:47:05 [end_date_ymd] => 2025-04-16 12:47:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:47:05' and `end` < '2025-04-16 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-04-16 12:47:19] Production.INFO: count ==4880 [2025-04-16 12:47:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:47:05 - End Time 2025-04-16 12:47:05 [2025-04-16 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921015', 'tblTempUsageDetail_20' ) start [2025-04-16 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921015', 'tblTempUsageDetail_20' ) end [2025-04-16 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921015', 'tblTempVendorCDR_20' ) start [2025-04-16 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921015', 'tblTempVendorCDR_20' ) end [2025-04-16 12:47:21] Production.INFO: ProcessCDR(1,14921015,1,1,2) [2025-04-16 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921015', 'tblTempUsageDetail_20' ) start [2025-04-16 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921015', 'tblTempUsageDetail_20' ) end [2025-04-16 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:47:26] Production.INFO: ==20557== Releasing lock... [2025-04-16 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:47:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:48:05 [end_date_ymd] => 2025-04-16 12:48:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:48:05' and `end` < '2025-04-16 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-04-16 12:48:19] Production.INFO: count ==4888 [2025-04-16 12:48:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:48:05 - End Time 2025-04-16 12:48:05 [2025-04-16 12:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921020', 'tblTempUsageDetail_20' ) start [2025-04-16 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921020', 'tblTempUsageDetail_20' ) end [2025-04-16 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921020', 'tblTempVendorCDR_20' ) start [2025-04-16 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921020', 'tblTempVendorCDR_20' ) end [2025-04-16 12:48:21] Production.INFO: ProcessCDR(1,14921020,1,1,2) [2025-04-16 12:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921020', 'tblTempUsageDetail_20' ) start [2025-04-16 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921020', 'tblTempUsageDetail_20' ) end [2025-04-16 12:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:48:26] Production.INFO: ==20628== Releasing lock... [2025-04-16 12:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:48:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:49:05 [end_date_ymd] => 2025-04-16 12:49:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:49:05' and `end` < '2025-04-16 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-04-16 12:49:18] Production.INFO: count ==4877 [2025-04-16 12:49:20] Production.ERROR: pbx CDR StartTime 2025-04-16 09:49:05 - End Time 2025-04-16 12:49:05 [2025-04-16 12:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921025', 'tblTempUsageDetail_20' ) start [2025-04-16 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921025', 'tblTempUsageDetail_20' ) end [2025-04-16 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921025', 'tblTempVendorCDR_20' ) start [2025-04-16 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921025', 'tblTempVendorCDR_20' ) end [2025-04-16 12:49:20] Production.INFO: ProcessCDR(1,14921025,1,1,2) [2025-04-16 12:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921025', 'tblTempUsageDetail_20' ) start [2025-04-16 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921025', 'tblTempUsageDetail_20' ) end [2025-04-16 12:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:49:25] Production.INFO: ==20711== Releasing lock... [2025-04-16 12:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:49:25] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:50:06 [end_date_ymd] => 2025-04-16 12:50:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:50:06' and `end` < '2025-04-16 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-04-16 12:50:19] Production.INFO: count ==4888 [2025-04-16 12:50:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:50:06 - End Time 2025-04-16 12:50:06 [2025-04-16 12:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921031', 'tblTempUsageDetail_20' ) start [2025-04-16 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921031', 'tblTempUsageDetail_20' ) end [2025-04-16 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921031', 'tblTempVendorCDR_20' ) start [2025-04-16 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921031', 'tblTempVendorCDR_20' ) end [2025-04-16 12:50:22] Production.INFO: ProcessCDR(1,14921031,1,1,2) [2025-04-16 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921031', 'tblTempUsageDetail_20' ) start [2025-04-16 12:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921031', 'tblTempUsageDetail_20' ) end [2025-04-16 12:50:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:50:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:50:27] Production.INFO: ==20791== Releasing lock... [2025-04-16 12:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:50:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:51:05 [end_date_ymd] => 2025-04-16 12:51:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:51:05' and `end` < '2025-04-16 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-04-16 12:51:18] Production.INFO: count ==4906 [2025-04-16 12:51:20] Production.ERROR: pbx CDR StartTime 2025-04-16 09:51:05 - End Time 2025-04-16 12:51:05 [2025-04-16 12:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921036', 'tblTempUsageDetail_20' ) start [2025-04-16 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921036', 'tblTempUsageDetail_20' ) end [2025-04-16 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921036', 'tblTempVendorCDR_20' ) start [2025-04-16 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921036', 'tblTempVendorCDR_20' ) end [2025-04-16 12:51:20] Production.INFO: ProcessCDR(1,14921036,1,1,2) [2025-04-16 12:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921036', 'tblTempUsageDetail_20' ) start [2025-04-16 12:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921036', 'tblTempUsageDetail_20' ) end [2025-04-16 12:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:51:26] Production.INFO: ==20865== Releasing lock... [2025-04-16 12:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:51:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-16 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:52:05 [end_date_ymd] => 2025-04-16 12:52:05 [RateCDR] => 1 ) [2025-04-16 12: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-04-16 09:52:05' and `end` < '2025-04-16 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-04-16 12:52:19] Production.INFO: count ==4950 [2025-04-16 12:52:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:52:05 - End Time 2025-04-16 12:52:05 [2025-04-16 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921041', 'tblTempUsageDetail_20' ) start [2025-04-16 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921041', 'tblTempUsageDetail_20' ) end [2025-04-16 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921041', 'tblTempVendorCDR_20' ) start [2025-04-16 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921041', 'tblTempVendorCDR_20' ) end [2025-04-16 12:52:22] Production.INFO: ProcessCDR(1,14921041,1,1,2) [2025-04-16 12:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921041', 'tblTempUsageDetail_20' ) start [2025-04-16 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921041', 'tblTempUsageDetail_20' ) end [2025-04-16 12:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:52:26] Production.INFO: ==20977== Releasing lock... [2025-04-16 12:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:52:26] Production.INFO: 65 MB #Memory Used# [2025-04-16 12:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:53:04 [end_date_ymd] => 2025-04-16 12:53:04 [RateCDR] => 1 ) [2025-04-16 12:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 09:53:04' and `end` < '2025-04-16 12:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 12:53:18] Production.INFO: count ==4948 [2025-04-16 12:53:20] Production.ERROR: pbx CDR StartTime 2025-04-16 09:53:04 - End Time 2025-04-16 12:53:04 [2025-04-16 12:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921046', 'tblTempUsageDetail_20' ) start [2025-04-16 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921046', 'tblTempUsageDetail_20' ) end [2025-04-16 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921046', 'tblTempVendorCDR_20' ) start [2025-04-16 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921046', 'tblTempVendorCDR_20' ) end [2025-04-16 12:53:20] Production.INFO: ProcessCDR(1,14921046,1,1,2) [2025-04-16 12:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921046', 'tblTempUsageDetail_20' ) start [2025-04-16 12:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921046', 'tblTempUsageDetail_20' ) end [2025-04-16 12:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:53:25] Production.INFO: ==21055== Releasing lock... [2025-04-16 12:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:53:25] Production.INFO: 65 MB #Memory Used# [2025-04-16 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:54:05 [end_date_ymd] => 2025-04-16 12:54:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:54:05' and `end` < '2025-04-16 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-04-16 12:54:19] Production.INFO: count ==4934 [2025-04-16 12:54:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:54:05 - End Time 2025-04-16 12:54:05 [2025-04-16 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921051', 'tblTempUsageDetail_20' ) start [2025-04-16 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921051', 'tblTempUsageDetail_20' ) end [2025-04-16 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921051', 'tblTempVendorCDR_20' ) start [2025-04-16 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921051', 'tblTempVendorCDR_20' ) end [2025-04-16 12:54:21] Production.INFO: ProcessCDR(1,14921051,1,1,2) [2025-04-16 12:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921051', 'tblTempUsageDetail_20' ) start [2025-04-16 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921051', 'tblTempUsageDetail_20' ) end [2025-04-16 12:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:54:26] Production.INFO: ==21130== Releasing lock... [2025-04-16 12:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:54:26] Production.INFO: 65 MB #Memory Used# [2025-04-16 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:55:05 [end_date_ymd] => 2025-04-16 12:55:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:55:05' and `end` < '2025-04-16 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-04-16 12:55:18] Production.INFO: count ==4944 [2025-04-16 12:55:20] Production.ERROR: pbx CDR StartTime 2025-04-16 09:55:05 - End Time 2025-04-16 12:55:05 [2025-04-16 12:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921056', 'tblTempUsageDetail_20' ) start [2025-04-16 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921056', 'tblTempUsageDetail_20' ) end [2025-04-16 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921056', 'tblTempVendorCDR_20' ) start [2025-04-16 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921056', 'tblTempVendorCDR_20' ) end [2025-04-16 12:55:20] Production.INFO: ProcessCDR(1,14921056,1,1,2) [2025-04-16 12:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921056', 'tblTempUsageDetail_20' ) start [2025-04-16 12:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921056', 'tblTempUsageDetail_20' ) end [2025-04-16 12:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:55:25] Production.INFO: ==21201== Releasing lock... [2025-04-16 12:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:55:25] Production.INFO: 65 MB #Memory Used# [2025-04-16 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:56:05 [end_date_ymd] => 2025-04-16 12:56:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:56:05' and `end` < '2025-04-16 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-04-16 12:56:18] Production.INFO: count ==4955 [2025-04-16 12:56:20] Production.ERROR: pbx CDR StartTime 2025-04-16 09:56:05 - End Time 2025-04-16 12:56:05 [2025-04-16 12:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921061', 'tblTempUsageDetail_20' ) start [2025-04-16 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921061', 'tblTempUsageDetail_20' ) end [2025-04-16 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921061', 'tblTempVendorCDR_20' ) start [2025-04-16 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921061', 'tblTempVendorCDR_20' ) end [2025-04-16 12:56:21] Production.INFO: ProcessCDR(1,14921061,1,1,2) [2025-04-16 12:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921061', 'tblTempUsageDetail_20' ) start [2025-04-16 12:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921061', 'tblTempUsageDetail_20' ) end [2025-04-16 12:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:56:26] Production.INFO: ==21274== Releasing lock... [2025-04-16 12:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:56:26] Production.INFO: 65 MB #Memory Used# [2025-04-16 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:57:05 [end_date_ymd] => 2025-04-16 12:57:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:57:05' and `end` < '2025-04-16 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-04-16 12:57:19] Production.INFO: count ==4950 [2025-04-16 12:57:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:57:05 - End Time 2025-04-16 12:57:05 [2025-04-16 12:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921066', 'tblTempUsageDetail_20' ) start [2025-04-16 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921066', 'tblTempUsageDetail_20' ) end [2025-04-16 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921066', 'tblTempVendorCDR_20' ) start [2025-04-16 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921066', 'tblTempVendorCDR_20' ) end [2025-04-16 12:57:21] Production.INFO: ProcessCDR(1,14921066,1,1,2) [2025-04-16 12:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921066', 'tblTempUsageDetail_20' ) start [2025-04-16 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921066', 'tblTempUsageDetail_20' ) end [2025-04-16 12:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:57:26] Production.INFO: ==21347== Releasing lock... [2025-04-16 12:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:57:26] Production.INFO: 65 MB #Memory Used# [2025-04-16 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:58:05 [end_date_ymd] => 2025-04-16 12:58:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:58:05' and `end` < '2025-04-16 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-04-16 12:58:19] Production.INFO: count ==4972 [2025-04-16 12:58:20] Production.ERROR: pbx CDR StartTime 2025-04-16 09:58:05 - End Time 2025-04-16 12:58:05 [2025-04-16 12:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921071', 'tblTempUsageDetail_20' ) start [2025-04-16 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921071', 'tblTempUsageDetail_20' ) end [2025-04-16 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921071', 'tblTempVendorCDR_20' ) start [2025-04-16 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921071', 'tblTempVendorCDR_20' ) end [2025-04-16 12:58:21] Production.INFO: ProcessCDR(1,14921071,1,1,2) [2025-04-16 12:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921071', 'tblTempUsageDetail_20' ) start [2025-04-16 12:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921071', 'tblTempUsageDetail_20' ) end [2025-04-16 12:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:58:26] Production.INFO: ==21421== Releasing lock... [2025-04-16 12:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:58:26] Production.INFO: 65.25 MB #Memory Used# [2025-04-16 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 09:59:05 [end_date_ymd] => 2025-04-16 12:59:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 09:59:05' and `end` < '2025-04-16 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-04-16 12:59:19] Production.INFO: count ==4953 [2025-04-16 12:59:21] Production.ERROR: pbx CDR StartTime 2025-04-16 09:59:05 - End Time 2025-04-16 12:59:05 [2025-04-16 12:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921076', 'tblTempUsageDetail_20' ) start [2025-04-16 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921076', 'tblTempUsageDetail_20' ) end [2025-04-16 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921076', 'tblTempVendorCDR_20' ) start [2025-04-16 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921076', 'tblTempVendorCDR_20' ) end [2025-04-16 12:59:21] Production.INFO: ProcessCDR(1,14921076,1,1,2) [2025-04-16 12:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 12:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 12:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921076', 'tblTempUsageDetail_20' ) start [2025-04-16 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921076', 'tblTempUsageDetail_20' ) end [2025-04-16 12:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 12:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 12:59:26] Production.INFO: ==21493== Releasing lock... [2025-04-16 12:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 12:59:26] Production.INFO: 65 MB #Memory Used# [2025-04-16 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:00:05 [end_date_ymd] => 2025-04-16 13:00:05 [RateCDR] => 1 ) [2025-04-16 13:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:00:05' and `end` < '2025-04-16 13:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:00:19] Production.INFO: count ==4959 [2025-04-16 13:00:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:00:05 - End Time 2025-04-16 13:00:05 [2025-04-16 13:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921081', 'tblTempUsageDetail_20' ) start [2025-04-16 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921081', 'tblTempUsageDetail_20' ) end [2025-04-16 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921081', 'tblTempVendorCDR_20' ) start [2025-04-16 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921081', 'tblTempVendorCDR_20' ) end [2025-04-16 13:00:21] Production.INFO: ProcessCDR(1,14921081,1,1,2) [2025-04-16 13:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921081', 'tblTempUsageDetail_20' ) start [2025-04-16 13:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921081', 'tblTempUsageDetail_20' ) end [2025-04-16 13:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:00:26] Production.INFO: ==21566== Releasing lock... [2025-04-16 13:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:00:26] Production.INFO: 65.25 MB #Memory Used# [2025-04-16 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:01:05 [end_date_ymd] => 2025-04-16 13:01:05 [RateCDR] => 1 ) [2025-04-16 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:01:05' and `end` < '2025-04-16 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:01:19] Production.INFO: count ==4923 [2025-04-16 13:01:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:01:05 - End Time 2025-04-16 13:01:05 [2025-04-16 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921087', 'tblTempUsageDetail_20' ) start [2025-04-16 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921087', 'tblTempUsageDetail_20' ) end [2025-04-16 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921087', 'tblTempVendorCDR_20' ) start [2025-04-16 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921087', 'tblTempVendorCDR_20' ) end [2025-04-16 13:01:21] Production.INFO: ProcessCDR(1,14921087,1,1,2) [2025-04-16 13:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921087', 'tblTempUsageDetail_20' ) start [2025-04-16 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921087', 'tblTempUsageDetail_20' ) end [2025-04-16 13:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:01:26] Production.INFO: ==21657== Releasing lock... [2025-04-16 13:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:01:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-16 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:02:05 [end_date_ymd] => 2025-04-16 13:02:05 [RateCDR] => 1 ) [2025-04-16 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:02:05' and `end` < '2025-04-16 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:02:19] Production.INFO: count ==4916 [2025-04-16 13:02:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:02:05 - End Time 2025-04-16 13:02:05 [2025-04-16 13:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921092', 'tblTempUsageDetail_20' ) start [2025-04-16 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921092', 'tblTempUsageDetail_20' ) end [2025-04-16 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921092', 'tblTempVendorCDR_20' ) start [2025-04-16 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921092', 'tblTempVendorCDR_20' ) end [2025-04-16 13:02:21] Production.INFO: ProcessCDR(1,14921092,1,1,2) [2025-04-16 13:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921092', 'tblTempUsageDetail_20' ) start [2025-04-16 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921092', 'tblTempUsageDetail_20' ) end [2025-04-16 13:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:02:26] Production.INFO: ==21730== Releasing lock... [2025-04-16 13:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:02:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-16 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:03:05 [end_date_ymd] => 2025-04-16 13:03:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:03:05' and `end` < '2025-04-16 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-04-16 13:03:18] Production.INFO: count ==4915 [2025-04-16 13:03:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:03:05 - End Time 2025-04-16 13:03:05 [2025-04-16 13:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921097', 'tblTempUsageDetail_20' ) start [2025-04-16 13:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921097', 'tblTempUsageDetail_20' ) end [2025-04-16 13:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921097', 'tblTempVendorCDR_20' ) start [2025-04-16 13:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921097', 'tblTempVendorCDR_20' ) end [2025-04-16 13:03:20] Production.INFO: ProcessCDR(1,14921097,1,1,2) [2025-04-16 13:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921097', 'tblTempUsageDetail_20' ) start [2025-04-16 13:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921097', 'tblTempUsageDetail_20' ) end [2025-04-16 13:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:03:25] Production.INFO: ==21806== Releasing lock... [2025-04-16 13:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:03:25] Production.INFO: 64.75 MB #Memory Used# [2025-04-16 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:04:05 [end_date_ymd] => 2025-04-16 13:04:05 [RateCDR] => 1 ) [2025-04-16 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:04:05' and `end` < '2025-04-16 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:04:19] Production.INFO: count ==4907 [2025-04-16 13:04:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:04:05 - End Time 2025-04-16 13:04:05 [2025-04-16 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921102', 'tblTempUsageDetail_20' ) start [2025-04-16 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921102', 'tblTempUsageDetail_20' ) end [2025-04-16 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921102', 'tblTempVendorCDR_20' ) start [2025-04-16 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921102', 'tblTempVendorCDR_20' ) end [2025-04-16 13:04:21] Production.INFO: ProcessCDR(1,14921102,1,1,2) [2025-04-16 13:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921102', 'tblTempUsageDetail_20' ) start [2025-04-16 13:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921102', 'tblTempUsageDetail_20' ) end [2025-04-16 13:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:04:25] Production.INFO: ==21884== Releasing lock... [2025-04-16 13:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:04:25] Production.INFO: 64.75 MB #Memory Used# [2025-04-16 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:05:05 [end_date_ymd] => 2025-04-16 13:05:05 [RateCDR] => 1 ) [2025-04-16 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:05:05' and `end` < '2025-04-16 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:05:18] Production.INFO: count ==4904 [2025-04-16 13:05:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:05:05 - End Time 2025-04-16 13:05:05 [2025-04-16 13:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921107', 'tblTempUsageDetail_20' ) start [2025-04-16 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921107', 'tblTempUsageDetail_20' ) end [2025-04-16 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921107', 'tblTempVendorCDR_20' ) start [2025-04-16 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921107', 'tblTempVendorCDR_20' ) end [2025-04-16 13:05:20] Production.INFO: ProcessCDR(1,14921107,1,1,2) [2025-04-16 13:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921107', 'tblTempUsageDetail_20' ) start [2025-04-16 13:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921107', 'tblTempUsageDetail_20' ) end [2025-04-16 13:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:05:25] Production.INFO: ==21962== Releasing lock... [2025-04-16 13:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:05:25] Production.INFO: 64.75 MB #Memory Used# [2025-04-16 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:06:05 [end_date_ymd] => 2025-04-16 13:06:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:06:05' and `end` < '2025-04-16 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-04-16 13:06:19] Production.INFO: count ==4884 [2025-04-16 13:06:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:06:05 - End Time 2025-04-16 13:06:05 [2025-04-16 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921112', 'tblTempUsageDetail_20' ) start [2025-04-16 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921112', 'tblTempUsageDetail_20' ) end [2025-04-16 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921112', 'tblTempVendorCDR_20' ) start [2025-04-16 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921112', 'tblTempVendorCDR_20' ) end [2025-04-16 13:06:21] Production.INFO: ProcessCDR(1,14921112,1,1,2) [2025-04-16 13:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921112', 'tblTempUsageDetail_20' ) start [2025-04-16 13:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921112', 'tblTempUsageDetail_20' ) end [2025-04-16 13:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:06:25] Production.INFO: ==22052== Releasing lock... [2025-04-16 13:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:06:25] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 13:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:07:04 [end_date_ymd] => 2025-04-16 13:07:04 [RateCDR] => 1 ) [2025-04-16 13:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:07:04' and `end` < '2025-04-16 13:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:07:18] Production.INFO: count ==4864 [2025-04-16 13:07:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:07:04 - End Time 2025-04-16 13:07:04 [2025-04-16 13:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921117', 'tblTempUsageDetail_20' ) start [2025-04-16 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921117', 'tblTempUsageDetail_20' ) end [2025-04-16 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921117', 'tblTempVendorCDR_20' ) start [2025-04-16 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921117', 'tblTempVendorCDR_20' ) end [2025-04-16 13:07:20] Production.INFO: ProcessCDR(1,14921117,1,1,2) [2025-04-16 13:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921117', 'tblTempUsageDetail_20' ) start [2025-04-16 13:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921117', 'tblTempUsageDetail_20' ) end [2025-04-16 13:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:07:25] Production.INFO: ==22165== Releasing lock... [2025-04-16 13:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:07:25] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:08:05 [end_date_ymd] => 2025-04-16 13:08:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:08:05' and `end` < '2025-04-16 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-04-16 13:08:19] Production.INFO: count ==4855 [2025-04-16 13:08:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:08:05 - End Time 2025-04-16 13:08:05 [2025-04-16 13:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921122', 'tblTempUsageDetail_20' ) start [2025-04-16 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921122', 'tblTempUsageDetail_20' ) end [2025-04-16 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921122', 'tblTempVendorCDR_20' ) start [2025-04-16 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921122', 'tblTempVendorCDR_20' ) end [2025-04-16 13:08:21] Production.INFO: ProcessCDR(1,14921122,1,1,2) [2025-04-16 13:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921122', 'tblTempUsageDetail_20' ) start [2025-04-16 13:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921122', 'tblTempUsageDetail_20' ) end [2025-04-16 13:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:08:26] Production.INFO: ==22239== Releasing lock... [2025-04-16 13:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:08:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:09:05 [end_date_ymd] => 2025-04-16 13:09:05 [RateCDR] => 1 ) [2025-04-16 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:09:05' and `end` < '2025-04-16 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:09:19] Production.INFO: count ==4843 [2025-04-16 13:09:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:09:05 - End Time 2025-04-16 13:09:05 [2025-04-16 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921127', 'tblTempUsageDetail_20' ) start [2025-04-16 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921127', 'tblTempUsageDetail_20' ) end [2025-04-16 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921127', 'tblTempVendorCDR_20' ) start [2025-04-16 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921127', 'tblTempVendorCDR_20' ) end [2025-04-16 13:09:21] Production.INFO: ProcessCDR(1,14921127,1,1,2) [2025-04-16 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921127', 'tblTempUsageDetail_20' ) start [2025-04-16 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921127', 'tblTempUsageDetail_20' ) end [2025-04-16 13:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:09:26] Production.INFO: ==22320== Releasing lock... [2025-04-16 13:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:09:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:10:05 [end_date_ymd] => 2025-04-16 13:10:05 [RateCDR] => 1 ) [2025-04-16 13:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:10:05' and `end` < '2025-04-16 13:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:10:19] Production.INFO: count ==4830 [2025-04-16 13:10:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:10:05 - End Time 2025-04-16 13:10:05 [2025-04-16 13:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921132', 'tblTempUsageDetail_20' ) start [2025-04-16 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921132', 'tblTempUsageDetail_20' ) end [2025-04-16 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921132', 'tblTempVendorCDR_20' ) start [2025-04-16 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921132', 'tblTempVendorCDR_20' ) end [2025-04-16 13:10:20] Production.INFO: ProcessCDR(1,14921132,1,1,2) [2025-04-16 13:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921132', 'tblTempUsageDetail_20' ) start [2025-04-16 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921132', 'tblTempUsageDetail_20' ) end [2025-04-16 13:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:10:25] Production.INFO: ==22395== Releasing lock... [2025-04-16 13:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:10:25] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:11:05 [end_date_ymd] => 2025-04-16 13:11:05 [RateCDR] => 1 ) [2025-04-16 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:11:05' and `end` < '2025-04-16 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:11:19] Production.INFO: count ==4841 [2025-04-16 13:11:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:11:05 - End Time 2025-04-16 13:11:05 [2025-04-16 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921138', 'tblTempUsageDetail_20' ) start [2025-04-16 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921138', 'tblTempUsageDetail_20' ) end [2025-04-16 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921138', 'tblTempVendorCDR_20' ) start [2025-04-16 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921138', 'tblTempVendorCDR_20' ) end [2025-04-16 13:11:21] Production.INFO: ProcessCDR(1,14921138,1,1,2) [2025-04-16 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921138', 'tblTempUsageDetail_20' ) start [2025-04-16 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921138', 'tblTempUsageDetail_20' ) end [2025-04-16 13:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:11:26] Production.INFO: ==22468== Releasing lock... [2025-04-16 13:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:11:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:12:05 [end_date_ymd] => 2025-04-16 13:12:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:12:05' and `end` < '2025-04-16 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-04-16 13:12:18] Production.INFO: count ==4827 [2025-04-16 13:12:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:12:05 - End Time 2025-04-16 13:12:05 [2025-04-16 13:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921143', 'tblTempUsageDetail_20' ) start [2025-04-16 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921143', 'tblTempUsageDetail_20' ) end [2025-04-16 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921143', 'tblTempVendorCDR_20' ) start [2025-04-16 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921143', 'tblTempVendorCDR_20' ) end [2025-04-16 13:12:20] Production.INFO: ProcessCDR(1,14921143,1,1,2) [2025-04-16 13:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921143', 'tblTempUsageDetail_20' ) start [2025-04-16 13:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921143', 'tblTempUsageDetail_20' ) end [2025-04-16 13:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:12:25] Production.INFO: ==22549== Releasing lock... [2025-04-16 13:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:12:25] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:13:05 [end_date_ymd] => 2025-04-16 13:13:05 [RateCDR] => 1 ) [2025-04-16 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:13:05' and `end` < '2025-04-16 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:13:19] Production.INFO: count ==4820 [2025-04-16 13:13:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:13:05 - End Time 2025-04-16 13:13:05 [2025-04-16 13:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921148', 'tblTempUsageDetail_20' ) start [2025-04-16 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921148', 'tblTempUsageDetail_20' ) end [2025-04-16 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921148', 'tblTempVendorCDR_20' ) start [2025-04-16 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921148', 'tblTempVendorCDR_20' ) end [2025-04-16 13:13:21] Production.INFO: ProcessCDR(1,14921148,1,1,2) [2025-04-16 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921148', 'tblTempUsageDetail_20' ) start [2025-04-16 13:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921148', 'tblTempUsageDetail_20' ) end [2025-04-16 13:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:13:26] Production.INFO: ==22621== Releasing lock... [2025-04-16 13:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:13:26] Production.INFO: 64 MB #Memory Used# [2025-04-16 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:14:05 [end_date_ymd] => 2025-04-16 13:14:05 [RateCDR] => 1 ) [2025-04-16 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:14:05' and `end` < '2025-04-16 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:14:18] Production.INFO: count ==4813 [2025-04-16 13:14:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:14:05 - End Time 2025-04-16 13:14:05 [2025-04-16 13:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921153', 'tblTempUsageDetail_20' ) start [2025-04-16 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921153', 'tblTempUsageDetail_20' ) end [2025-04-16 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921153', 'tblTempVendorCDR_20' ) start [2025-04-16 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921153', 'tblTempVendorCDR_20' ) end [2025-04-16 13:14:20] Production.INFO: ProcessCDR(1,14921153,1,1,2) [2025-04-16 13:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921153', 'tblTempUsageDetail_20' ) start [2025-04-16 13:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921153', 'tblTempUsageDetail_20' ) end [2025-04-16 13:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:14:25] Production.INFO: ==22695== Releasing lock... [2025-04-16 13:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:14:25] Production.INFO: 64 MB #Memory Used# [2025-04-16 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:15:05 [end_date_ymd] => 2025-04-16 13:15:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:15:05' and `end` < '2025-04-16 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-04-16 13:15:18] Production.INFO: count ==4802 [2025-04-16 13:15:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:15:05 - End Time 2025-04-16 13:15:05 [2025-04-16 13:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921158', 'tblTempUsageDetail_20' ) start [2025-04-16 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921158', 'tblTempUsageDetail_20' ) end [2025-04-16 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921158', 'tblTempVendorCDR_20' ) start [2025-04-16 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921158', 'tblTempVendorCDR_20' ) end [2025-04-16 13:15:20] Production.INFO: ProcessCDR(1,14921158,1,1,2) [2025-04-16 13:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921158', 'tblTempUsageDetail_20' ) start [2025-04-16 13:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921158', 'tblTempUsageDetail_20' ) end [2025-04-16 13:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:15:25] Production.INFO: ==22767== Releasing lock... [2025-04-16 13:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:15:25] Production.INFO: 64 MB #Memory Used# [2025-04-16 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:16:06 [end_date_ymd] => 2025-04-16 13:16:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:16:06' and `end` < '2025-04-16 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-04-16 13:16:19] Production.INFO: count ==4792 [2025-04-16 13:16:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:16:06 - End Time 2025-04-16 13:16:06 [2025-04-16 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921163', 'tblTempUsageDetail_20' ) start [2025-04-16 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921163', 'tblTempUsageDetail_20' ) end [2025-04-16 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921163', 'tblTempVendorCDR_20' ) start [2025-04-16 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921163', 'tblTempVendorCDR_20' ) end [2025-04-16 13:16:21] Production.INFO: ProcessCDR(1,14921163,1,1,2) [2025-04-16 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921163', 'tblTempUsageDetail_20' ) start [2025-04-16 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921163', 'tblTempUsageDetail_20' ) end [2025-04-16 13:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:16:26] Production.INFO: ==22844== Releasing lock... [2025-04-16 13:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:16:26] Production.INFO: 64 MB #Memory Used# [2025-04-16 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:17:05 [end_date_ymd] => 2025-04-16 13:17:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:17:05' and `end` < '2025-04-16 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-04-16 13:17:18] Production.INFO: count ==4793 [2025-04-16 13:17:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:17:05 - End Time 2025-04-16 13:17:05 [2025-04-16 13:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921168', 'tblTempUsageDetail_20' ) start [2025-04-16 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921168', 'tblTempUsageDetail_20' ) end [2025-04-16 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921168', 'tblTempVendorCDR_20' ) start [2025-04-16 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921168', 'tblTempVendorCDR_20' ) end [2025-04-16 13:17:20] Production.INFO: ProcessCDR(1,14921168,1,1,2) [2025-04-16 13:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921168', 'tblTempUsageDetail_20' ) start [2025-04-16 13:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921168', 'tblTempUsageDetail_20' ) end [2025-04-16 13:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:17:25] Production.INFO: ==22917== Releasing lock... [2025-04-16 13:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:17:25] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:18:05 [end_date_ymd] => 2025-04-16 13:18:05 [RateCDR] => 1 ) [2025-04-16 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:18:05' and `end` < '2025-04-16 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:18:19] Production.INFO: count ==4815 [2025-04-16 13:18:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:18:05 - End Time 2025-04-16 13:18:05 [2025-04-16 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921173', 'tblTempUsageDetail_20' ) start [2025-04-16 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921173', 'tblTempUsageDetail_20' ) end [2025-04-16 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921173', 'tblTempVendorCDR_20' ) start [2025-04-16 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921173', 'tblTempVendorCDR_20' ) end [2025-04-16 13:18:21] Production.INFO: ProcessCDR(1,14921173,1,1,2) [2025-04-16 13:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921173', 'tblTempUsageDetail_20' ) start [2025-04-16 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921173', 'tblTempUsageDetail_20' ) end [2025-04-16 13:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:18:26] Production.INFO: ==23002== Releasing lock... [2025-04-16 13:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:18:26] Production.INFO: 64 MB #Memory Used# [2025-04-16 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:19:05 [end_date_ymd] => 2025-04-16 13:19:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:19:05' and `end` < '2025-04-16 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-04-16 13:19:18] Production.INFO: count ==4801 [2025-04-16 13:19:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:19:05 - End Time 2025-04-16 13:19:05 [2025-04-16 13:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921178', 'tblTempUsageDetail_20' ) start [2025-04-16 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921178', 'tblTempUsageDetail_20' ) end [2025-04-16 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921178', 'tblTempVendorCDR_20' ) start [2025-04-16 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921178', 'tblTempVendorCDR_20' ) end [2025-04-16 13:19:20] Production.INFO: ProcessCDR(1,14921178,1,1,2) [2025-04-16 13:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921178', 'tblTempUsageDetail_20' ) start [2025-04-16 13:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921178', 'tblTempUsageDetail_20' ) end [2025-04-16 13:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:19:25] Production.INFO: ==23079== Releasing lock... [2025-04-16 13:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:19:25] Production.INFO: 64 MB #Memory Used# [2025-04-16 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:20:06 [end_date_ymd] => 2025-04-16 13:20:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:20:06' and `end` < '2025-04-16 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-04-16 13:20:20] Production.INFO: count ==4784 [2025-04-16 13:20:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:20:06 - End Time 2025-04-16 13:20:06 [2025-04-16 13:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921184', 'tblTempUsageDetail_20' ) start [2025-04-16 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921184', 'tblTempUsageDetail_20' ) end [2025-04-16 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921184', 'tblTempVendorCDR_20' ) start [2025-04-16 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921184', 'tblTempVendorCDR_20' ) end [2025-04-16 13:20:21] Production.INFO: ProcessCDR(1,14921184,1,1,2) [2025-04-16 13:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921184', 'tblTempUsageDetail_20' ) start [2025-04-16 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921184', 'tblTempUsageDetail_20' ) end [2025-04-16 13:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:20:27] Production.INFO: ==23152== Releasing lock... [2025-04-16 13:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:20:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 13:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:21:04 [end_date_ymd] => 2025-04-16 13:21:04 [RateCDR] => 1 ) [2025-04-16 13:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:21:04' and `end` < '2025-04-16 13:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:21:18] Production.INFO: count ==4778 [2025-04-16 13:21:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:21:04 - End Time 2025-04-16 13:21:04 [2025-04-16 13:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921189', 'tblTempUsageDetail_20' ) start [2025-04-16 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921189', 'tblTempUsageDetail_20' ) end [2025-04-16 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921189', 'tblTempVendorCDR_20' ) start [2025-04-16 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921189', 'tblTempVendorCDR_20' ) end [2025-04-16 13:21:20] Production.INFO: ProcessCDR(1,14921189,1,1,2) [2025-04-16 13:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921189', 'tblTempUsageDetail_20' ) start [2025-04-16 13:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921189', 'tblTempUsageDetail_20' ) end [2025-04-16 13:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:21:25] Production.INFO: ==23224== Releasing lock... [2025-04-16 13:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:21:25] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:22:05 [end_date_ymd] => 2025-04-16 13:22:05 [RateCDR] => 1 ) [2025-04-16 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:22:05' and `end` < '2025-04-16 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:22:19] Production.INFO: count ==4766 [2025-04-16 13:22:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:22:05 - End Time 2025-04-16 13:22:05 [2025-04-16 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921194', 'tblTempUsageDetail_20' ) start [2025-04-16 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921194', 'tblTempUsageDetail_20' ) end [2025-04-16 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921194', 'tblTempVendorCDR_20' ) start [2025-04-16 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921194', 'tblTempVendorCDR_20' ) end [2025-04-16 13:22:21] Production.INFO: ProcessCDR(1,14921194,1,1,2) [2025-04-16 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921194', 'tblTempUsageDetail_20' ) start [2025-04-16 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921194', 'tblTempUsageDetail_20' ) end [2025-04-16 13:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:22:26] Production.INFO: ==23299== Releasing lock... [2025-04-16 13:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:22:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:23:06 [end_date_ymd] => 2025-04-16 13:23:06 [RateCDR] => 1 ) [2025-04-16 13: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-04-16 10:23:06' and `end` < '2025-04-16 13: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-04-16 13:23:19] Production.INFO: count ==4746 [2025-04-16 13:23:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:23:06 - End Time 2025-04-16 13:23:06 [2025-04-16 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921199', 'tblTempUsageDetail_20' ) start [2025-04-16 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921199', 'tblTempUsageDetail_20' ) end [2025-04-16 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921199', 'tblTempVendorCDR_20' ) start [2025-04-16 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921199', 'tblTempVendorCDR_20' ) end [2025-04-16 13:23:21] Production.INFO: ProcessCDR(1,14921199,1,1,2) [2025-04-16 13:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921199', 'tblTempUsageDetail_20' ) start [2025-04-16 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921199', 'tblTempUsageDetail_20' ) end [2025-04-16 13:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:23:26] Production.INFO: ==23410== Releasing lock... [2025-04-16 13:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:23:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:24:05 [end_date_ymd] => 2025-04-16 13:24:05 [RateCDR] => 1 ) [2025-04-16 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:24:05' and `end` < '2025-04-16 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:24:18] Production.INFO: count ==4748 [2025-04-16 13:24:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:24:05 - End Time 2025-04-16 13:24:05 [2025-04-16 13:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921204', 'tblTempUsageDetail_20' ) start [2025-04-16 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921204', 'tblTempUsageDetail_20' ) end [2025-04-16 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921204', 'tblTempVendorCDR_20' ) start [2025-04-16 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921204', 'tblTempVendorCDR_20' ) end [2025-04-16 13:24:20] Production.INFO: ProcessCDR(1,14921204,1,1,2) [2025-04-16 13:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921204', 'tblTempUsageDetail_20' ) start [2025-04-16 13:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921204', 'tblTempUsageDetail_20' ) end [2025-04-16 13:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:24:25] Production.INFO: ==23485== Releasing lock... [2025-04-16 13:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:24:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:25:05 [end_date_ymd] => 2025-04-16 13:25:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:25:05' and `end` < '2025-04-16 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-04-16 13:25:18] Production.INFO: count ==4726 [2025-04-16 13:25:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:25:05 - End Time 2025-04-16 13:25:05 [2025-04-16 13:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921209', 'tblTempUsageDetail_20' ) start [2025-04-16 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921209', 'tblTempUsageDetail_20' ) end [2025-04-16 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921209', 'tblTempVendorCDR_20' ) start [2025-04-16 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921209', 'tblTempVendorCDR_20' ) end [2025-04-16 13:25:20] Production.INFO: ProcessCDR(1,14921209,1,1,2) [2025-04-16 13:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921209', 'tblTempUsageDetail_20' ) start [2025-04-16 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921209', 'tblTempUsageDetail_20' ) end [2025-04-16 13:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:25:25] Production.INFO: ==23560== Releasing lock... [2025-04-16 13:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:25:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:26:05 [end_date_ymd] => 2025-04-16 13:26:05 [RateCDR] => 1 ) [2025-04-16 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:26:05' and `end` < '2025-04-16 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:26:18] Production.INFO: count ==4712 [2025-04-16 13:26:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:26:05 - End Time 2025-04-16 13:26:05 [2025-04-16 13:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921214', 'tblTempUsageDetail_20' ) start [2025-04-16 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921214', 'tblTempUsageDetail_20' ) end [2025-04-16 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921214', 'tblTempVendorCDR_20' ) start [2025-04-16 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921214', 'tblTempVendorCDR_20' ) end [2025-04-16 13:26:20] Production.INFO: ProcessCDR(1,14921214,1,1,2) [2025-04-16 13:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921214', 'tblTempUsageDetail_20' ) start [2025-04-16 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921214', 'tblTempUsageDetail_20' ) end [2025-04-16 13:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:26:25] Production.INFO: ==23635== Releasing lock... [2025-04-16 13:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:26:25] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:27:05 [end_date_ymd] => 2025-04-16 13:27:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:27:05' and `end` < '2025-04-16 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-04-16 13:27:19] Production.INFO: count ==4715 [2025-04-16 13:27:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:27:05 - End Time 2025-04-16 13:27:05 [2025-04-16 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921219', 'tblTempUsageDetail_20' ) start [2025-04-16 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921219', 'tblTempUsageDetail_20' ) end [2025-04-16 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921219', 'tblTempVendorCDR_20' ) start [2025-04-16 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921219', 'tblTempVendorCDR_20' ) end [2025-04-16 13:27:21] Production.INFO: ProcessCDR(1,14921219,1,1,2) [2025-04-16 13:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921219', 'tblTempUsageDetail_20' ) start [2025-04-16 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921219', 'tblTempUsageDetail_20' ) end [2025-04-16 13:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:27:26] Production.INFO: ==23708== Releasing lock... [2025-04-16 13:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:27:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:28:05 [end_date_ymd] => 2025-04-16 13:28:05 [RateCDR] => 1 ) [2025-04-16 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:28:05' and `end` < '2025-04-16 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:28:18] Production.INFO: count ==4710 [2025-04-16 13:28:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:28:05 - End Time 2025-04-16 13:28:05 [2025-04-16 13:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921224', 'tblTempUsageDetail_20' ) start [2025-04-16 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921224', 'tblTempUsageDetail_20' ) end [2025-04-16 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921224', 'tblTempVendorCDR_20' ) start [2025-04-16 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921224', 'tblTempVendorCDR_20' ) end [2025-04-16 13:28:20] Production.INFO: ProcessCDR(1,14921224,1,1,2) [2025-04-16 13:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921224', 'tblTempUsageDetail_20' ) start [2025-04-16 13:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921224', 'tblTempUsageDetail_20' ) end [2025-04-16 13:28:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:28:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:28:25] Production.INFO: ==23780== Releasing lock... [2025-04-16 13:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:28:25] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:29:05 [end_date_ymd] => 2025-04-16 13:29:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:29:05' and `end` < '2025-04-16 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-04-16 13:29:18] Production.INFO: count ==4714 [2025-04-16 13:29:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:29:05 - End Time 2025-04-16 13:29:05 [2025-04-16 13:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921229', 'tblTempUsageDetail_20' ) start [2025-04-16 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921229', 'tblTempUsageDetail_20' ) end [2025-04-16 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921229', 'tblTempVendorCDR_20' ) start [2025-04-16 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921229', 'tblTempVendorCDR_20' ) end [2025-04-16 13:29:20] Production.INFO: ProcessCDR(1,14921229,1,1,2) [2025-04-16 13:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921229', 'tblTempUsageDetail_20' ) start [2025-04-16 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921229', 'tblTempUsageDetail_20' ) end [2025-04-16 13:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:29:25] Production.INFO: ==23852== Releasing lock... [2025-04-16 13:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:29:25] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:30:06 [end_date_ymd] => 2025-04-16 13:30:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:30:06' and `end` < '2025-04-16 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-04-16 13:30:20] Production.INFO: count ==4705 [2025-04-16 13:30:22] Production.ERROR: pbx CDR StartTime 2025-04-16 10:30:06 - End Time 2025-04-16 13:30:06 [2025-04-16 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921235', 'tblTempUsageDetail_20' ) start [2025-04-16 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921235', 'tblTempUsageDetail_20' ) end [2025-04-16 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921235', 'tblTempVendorCDR_20' ) start [2025-04-16 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921235', 'tblTempVendorCDR_20' ) end [2025-04-16 13:30:22] Production.INFO: ProcessCDR(1,14921235,1,1,2) [2025-04-16 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921235', 'tblTempUsageDetail_20' ) start [2025-04-16 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921235', 'tblTempUsageDetail_20' ) end [2025-04-16 13:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:30:27] Production.INFO: ==23931== Releasing lock... [2025-04-16 13:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:30:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:31:05 [end_date_ymd] => 2025-04-16 13:31:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:31:05' and `end` < '2025-04-16 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-04-16 13:31:19] Production.INFO: count ==4715 [2025-04-16 13:31:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:31:05 - End Time 2025-04-16 13:31:05 [2025-04-16 13:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921240', 'tblTempUsageDetail_20' ) start [2025-04-16 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921240', 'tblTempUsageDetail_20' ) end [2025-04-16 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921240', 'tblTempVendorCDR_20' ) start [2025-04-16 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921240', 'tblTempVendorCDR_20' ) end [2025-04-16 13:31:20] Production.INFO: ProcessCDR(1,14921240,1,1,2) [2025-04-16 13:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921240', 'tblTempUsageDetail_20' ) start [2025-04-16 13:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921240', 'tblTempUsageDetail_20' ) end [2025-04-16 13:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:31:25] Production.INFO: ==24003== Releasing lock... [2025-04-16 13:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:31:25] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:32:05 [end_date_ymd] => 2025-04-16 13:32:05 [RateCDR] => 1 ) [2025-04-16 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:32:05' and `end` < '2025-04-16 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:32:19] Production.INFO: count ==4700 [2025-04-16 13:32:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:32:05 - End Time 2025-04-16 13:32:05 [2025-04-16 13:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921245', 'tblTempUsageDetail_20' ) start [2025-04-16 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921245', 'tblTempUsageDetail_20' ) end [2025-04-16 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921245', 'tblTempVendorCDR_20' ) start [2025-04-16 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921245', 'tblTempVendorCDR_20' ) end [2025-04-16 13:32:20] Production.INFO: ProcessCDR(1,14921245,1,1,2) [2025-04-16 13:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921245', 'tblTempUsageDetail_20' ) start [2025-04-16 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921245', 'tblTempUsageDetail_20' ) end [2025-04-16 13:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:32:26] Production.INFO: ==24073== Releasing lock... [2025-04-16 13:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:32:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:33:05 [end_date_ymd] => 2025-04-16 13:33:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:33:05' and `end` < '2025-04-16 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-04-16 13:33:19] Production.INFO: count ==4712 [2025-04-16 13:33:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:33:05 - End Time 2025-04-16 13:33:05 [2025-04-16 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921250', 'tblTempUsageDetail_20' ) start [2025-04-16 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921250', 'tblTempUsageDetail_20' ) end [2025-04-16 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921250', 'tblTempVendorCDR_20' ) start [2025-04-16 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921250', 'tblTempVendorCDR_20' ) end [2025-04-16 13:33:21] Production.INFO: ProcessCDR(1,14921250,1,1,2) [2025-04-16 13:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921250', 'tblTempUsageDetail_20' ) start [2025-04-16 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921250', 'tblTempUsageDetail_20' ) end [2025-04-16 13:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:33:26] Production.INFO: ==24147== Releasing lock... [2025-04-16 13:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:33:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 13:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:34:06 [end_date_ymd] => 2025-04-16 13:34:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:34:06' and `end` < '2025-04-16 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-04-16 13:34:19] Production.INFO: count ==4716 [2025-04-16 13:34:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:34:06 - End Time 2025-04-16 13:34:06 [2025-04-16 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921255', 'tblTempUsageDetail_20' ) start [2025-04-16 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921255', 'tblTempUsageDetail_20' ) end [2025-04-16 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921255', 'tblTempVendorCDR_20' ) start [2025-04-16 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921255', 'tblTempVendorCDR_20' ) end [2025-04-16 13:34:21] Production.INFO: ProcessCDR(1,14921255,1,1,2) [2025-04-16 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921255', 'tblTempUsageDetail_20' ) start [2025-04-16 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921255', 'tblTempUsageDetail_20' ) end [2025-04-16 13:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:34:26] Production.INFO: ==24233== Releasing lock... [2025-04-16 13:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:34:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:35:05 [end_date_ymd] => 2025-04-16 13:35:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:35:05' and `end` < '2025-04-16 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-04-16 13:35:19] Production.INFO: count ==4720 [2025-04-16 13:35:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:35:05 - End Time 2025-04-16 13:35:05 [2025-04-16 13:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921260', 'tblTempUsageDetail_20' ) start [2025-04-16 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921260', 'tblTempUsageDetail_20' ) end [2025-04-16 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921260', 'tblTempVendorCDR_20' ) start [2025-04-16 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921260', 'tblTempVendorCDR_20' ) end [2025-04-16 13:35:20] Production.INFO: ProcessCDR(1,14921260,1,1,2) [2025-04-16 13:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921260', 'tblTempUsageDetail_20' ) start [2025-04-16 13:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921260', 'tblTempUsageDetail_20' ) end [2025-04-16 13:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:35:25] Production.INFO: ==24308== Releasing lock... [2025-04-16 13:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:35:25] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:36:05 [end_date_ymd] => 2025-04-16 13:36:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:36:05' and `end` < '2025-04-16 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-04-16 13:36:19] Production.INFO: count ==4721 [2025-04-16 13:36:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:36:05 - End Time 2025-04-16 13:36:05 [2025-04-16 13:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921265', 'tblTempUsageDetail_20' ) start [2025-04-16 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921265', 'tblTempUsageDetail_20' ) end [2025-04-16 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921265', 'tblTempVendorCDR_20' ) start [2025-04-16 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921265', 'tblTempVendorCDR_20' ) end [2025-04-16 13:36:21] Production.INFO: ProcessCDR(1,14921265,1,1,2) [2025-04-16 13:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921265', 'tblTempUsageDetail_20' ) start [2025-04-16 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921265', 'tblTempUsageDetail_20' ) end [2025-04-16 13:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:36:26] Production.INFO: ==24379== Releasing lock... [2025-04-16 13:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:36:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:37:05 [end_date_ymd] => 2025-04-16 13:37:05 [RateCDR] => 1 ) [2025-04-16 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:37:05' and `end` < '2025-04-16 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:37:18] Production.INFO: count ==4709 [2025-04-16 13:37:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:37:05 - End Time 2025-04-16 13:37:05 [2025-04-16 13:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921270', 'tblTempUsageDetail_20' ) start [2025-04-16 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921270', 'tblTempUsageDetail_20' ) end [2025-04-16 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921270', 'tblTempVendorCDR_20' ) start [2025-04-16 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921270', 'tblTempVendorCDR_20' ) end [2025-04-16 13:37:20] Production.INFO: ProcessCDR(1,14921270,1,1,2) [2025-04-16 13:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921270', 'tblTempUsageDetail_20' ) start [2025-04-16 13:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921270', 'tblTempUsageDetail_20' ) end [2025-04-16 13:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:37:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:37:25] Production.INFO: ==24454== Releasing lock... [2025-04-16 13:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:37:25] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:38:05 [end_date_ymd] => 2025-04-16 13:38:05 [RateCDR] => 1 ) [2025-04-16 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:38:05' and `end` < '2025-04-16 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:38:19] Production.INFO: count ==4722 [2025-04-16 13:38:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:38:05 - End Time 2025-04-16 13:38:05 [2025-04-16 13:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921275', 'tblTempUsageDetail_20' ) start [2025-04-16 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921275', 'tblTempUsageDetail_20' ) end [2025-04-16 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921275', 'tblTempVendorCDR_20' ) start [2025-04-16 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921275', 'tblTempVendorCDR_20' ) end [2025-04-16 13:38:21] Production.INFO: ProcessCDR(1,14921275,1,1,2) [2025-04-16 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921275', 'tblTempUsageDetail_20' ) start [2025-04-16 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921275', 'tblTempUsageDetail_20' ) end [2025-04-16 13:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:38:26] Production.INFO: ==24564== Releasing lock... [2025-04-16 13:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:38:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 13:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:39:04 [end_date_ymd] => 2025-04-16 13:39:04 [RateCDR] => 1 ) [2025-04-16 13:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:39:04' and `end` < '2025-04-16 13:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:39:18] Production.INFO: count ==4732 [2025-04-16 13:39:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:39:04 - End Time 2025-04-16 13:39:04 [2025-04-16 13:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921280', 'tblTempUsageDetail_20' ) start [2025-04-16 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921280', 'tblTempUsageDetail_20' ) end [2025-04-16 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921280', 'tblTempVendorCDR_20' ) start [2025-04-16 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921280', 'tblTempVendorCDR_20' ) end [2025-04-16 13:39:20] Production.INFO: ProcessCDR(1,14921280,1,1,2) [2025-04-16 13:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921280', 'tblTempUsageDetail_20' ) start [2025-04-16 13:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921280', 'tblTempUsageDetail_20' ) end [2025-04-16 13:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:39:25] Production.INFO: ==24635== Releasing lock... [2025-04-16 13:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:39:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:40:05 [end_date_ymd] => 2025-04-16 13:40:05 [RateCDR] => 1 ) [2025-04-16 13:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:40:05' and `end` < '2025-04-16 13:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:40:19] Production.INFO: count ==4741 [2025-04-16 13:40:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:40:05 - End Time 2025-04-16 13:40:05 [2025-04-16 13:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921285', 'tblTempUsageDetail_20' ) start [2025-04-16 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921285', 'tblTempUsageDetail_20' ) end [2025-04-16 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921285', 'tblTempVendorCDR_20' ) start [2025-04-16 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921285', 'tblTempVendorCDR_20' ) end [2025-04-16 13:40:21] Production.INFO: ProcessCDR(1,14921285,1,1,2) [2025-04-16 13:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921285', 'tblTempUsageDetail_20' ) start [2025-04-16 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921285', 'tblTempUsageDetail_20' ) end [2025-04-16 13:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:40:26] Production.INFO: ==24709== Releasing lock... [2025-04-16 13:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:40:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:41:05 [end_date_ymd] => 2025-04-16 13:41:05 [RateCDR] => 1 ) [2025-04-16 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:41:05' and `end` < '2025-04-16 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:41:19] Production.INFO: count ==4742 [2025-04-16 13:41:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:41:05 - End Time 2025-04-16 13:41:05 [2025-04-16 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921291', 'tblTempUsageDetail_20' ) start [2025-04-16 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921291', 'tblTempUsageDetail_20' ) end [2025-04-16 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921291', 'tblTempVendorCDR_20' ) start [2025-04-16 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921291', 'tblTempVendorCDR_20' ) end [2025-04-16 13:41:21] Production.INFO: ProcessCDR(1,14921291,1,1,2) [2025-04-16 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921291', 'tblTempUsageDetail_20' ) start [2025-04-16 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921291', 'tblTempUsageDetail_20' ) end [2025-04-16 13:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:41:26] Production.INFO: ==24785== Releasing lock... [2025-04-16 13:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:41:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:42:05 [end_date_ymd] => 2025-04-16 13:42:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:42:05' and `end` < '2025-04-16 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-04-16 13:42:19] Production.INFO: count ==4733 [2025-04-16 13:42:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:42:05 - End Time 2025-04-16 13:42:05 [2025-04-16 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921296', 'tblTempUsageDetail_20' ) start [2025-04-16 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921296', 'tblTempUsageDetail_20' ) end [2025-04-16 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921296', 'tblTempVendorCDR_20' ) start [2025-04-16 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921296', 'tblTempVendorCDR_20' ) end [2025-04-16 13:42:21] Production.INFO: ProcessCDR(1,14921296,1,1,2) [2025-04-16 13:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921296', 'tblTempUsageDetail_20' ) start [2025-04-16 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921296', 'tblTempUsageDetail_20' ) end [2025-04-16 13:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:42:26] Production.INFO: ==24863== Releasing lock... [2025-04-16 13:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:42:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:43:06 [end_date_ymd] => 2025-04-16 13:43:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:43:06' and `end` < '2025-04-16 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-04-16 13:43:19] Production.INFO: count ==4720 [2025-04-16 13:43:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:43:06 - End Time 2025-04-16 13:43:06 [2025-04-16 13:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921301', 'tblTempUsageDetail_20' ) start [2025-04-16 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921301', 'tblTempUsageDetail_20' ) end [2025-04-16 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921301', 'tblTempVendorCDR_20' ) start [2025-04-16 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921301', 'tblTempVendorCDR_20' ) end [2025-04-16 13:43:21] Production.INFO: ProcessCDR(1,14921301,1,1,2) [2025-04-16 13:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921301', 'tblTempUsageDetail_20' ) start [2025-04-16 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921301', 'tblTempUsageDetail_20' ) end [2025-04-16 13:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:43:26] Production.INFO: ==24935== Releasing lock... [2025-04-16 13:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:43:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:44:05 [end_date_ymd] => 2025-04-16 13:44:05 [RateCDR] => 1 ) [2025-04-16 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:44:05' and `end` < '2025-04-16 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:44:19] Production.INFO: count ==4715 [2025-04-16 13:44:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:44:05 - End Time 2025-04-16 13:44:05 [2025-04-16 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921306', 'tblTempUsageDetail_20' ) start [2025-04-16 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921306', 'tblTempUsageDetail_20' ) end [2025-04-16 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921306', 'tblTempVendorCDR_20' ) start [2025-04-16 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921306', 'tblTempVendorCDR_20' ) end [2025-04-16 13:44:21] Production.INFO: ProcessCDR(1,14921306,1,1,2) [2025-04-16 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921306', 'tblTempUsageDetail_20' ) start [2025-04-16 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921306', 'tblTempUsageDetail_20' ) end [2025-04-16 13:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:44:26] Production.INFO: ==25011== Releasing lock... [2025-04-16 13:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:44:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:45:05 [end_date_ymd] => 2025-04-16 13:45:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:45:05' and `end` < '2025-04-16 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-04-16 13:45:19] Production.INFO: count ==4725 [2025-04-16 13:45:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:45:05 - End Time 2025-04-16 13:45:05 [2025-04-16 13:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921311', 'tblTempUsageDetail_20' ) start [2025-04-16 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921311', 'tblTempUsageDetail_20' ) end [2025-04-16 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921311', 'tblTempVendorCDR_20' ) start [2025-04-16 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921311', 'tblTempVendorCDR_20' ) end [2025-04-16 13:45:21] Production.INFO: ProcessCDR(1,14921311,1,1,2) [2025-04-16 13:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921311', 'tblTempUsageDetail_20' ) start [2025-04-16 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921311', 'tblTempUsageDetail_20' ) end [2025-04-16 13:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:45:26] Production.INFO: ==25086== Releasing lock... [2025-04-16 13:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:45:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:46:05 [end_date_ymd] => 2025-04-16 13:46:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:46:05' and `end` < '2025-04-16 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-04-16 13:46:18] Production.INFO: count ==4719 [2025-04-16 13:46:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:46:05 - End Time 2025-04-16 13:46:05 [2025-04-16 13:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921316', 'tblTempUsageDetail_20' ) start [2025-04-16 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921316', 'tblTempUsageDetail_20' ) end [2025-04-16 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921316', 'tblTempVendorCDR_20' ) start [2025-04-16 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921316', 'tblTempVendorCDR_20' ) end [2025-04-16 13:46:20] Production.INFO: ProcessCDR(1,14921316,1,1,2) [2025-04-16 13:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921316', 'tblTempUsageDetail_20' ) start [2025-04-16 13:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921316', 'tblTempUsageDetail_20' ) end [2025-04-16 13:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:46:25] Production.INFO: ==25158== Releasing lock... [2025-04-16 13:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:46:25] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:47:05 [end_date_ymd] => 2025-04-16 13:47:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:47:05' and `end` < '2025-04-16 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-04-16 13:47:19] Production.INFO: count ==4733 [2025-04-16 13:47:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:47:05 - End Time 2025-04-16 13:47:05 [2025-04-16 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921321', 'tblTempUsageDetail_20' ) start [2025-04-16 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921321', 'tblTempUsageDetail_20' ) end [2025-04-16 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921321', 'tblTempVendorCDR_20' ) start [2025-04-16 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921321', 'tblTempVendorCDR_20' ) end [2025-04-16 13:47:21] Production.INFO: ProcessCDR(1,14921321,1,1,2) [2025-04-16 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921321', 'tblTempUsageDetail_20' ) start [2025-04-16 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921321', 'tblTempUsageDetail_20' ) end [2025-04-16 13:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:47:26] Production.INFO: ==25229== Releasing lock... [2025-04-16 13:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:47:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:48:05 [end_date_ymd] => 2025-04-16 13:48:05 [RateCDR] => 1 ) [2025-04-16 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:48:05' and `end` < '2025-04-16 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:48:19] Production.INFO: count ==4740 [2025-04-16 13:48:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:48:05 - End Time 2025-04-16 13:48:05 [2025-04-16 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921326', 'tblTempUsageDetail_20' ) start [2025-04-16 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921326', 'tblTempUsageDetail_20' ) end [2025-04-16 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921326', 'tblTempVendorCDR_20' ) start [2025-04-16 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921326', 'tblTempVendorCDR_20' ) end [2025-04-16 13:48:21] Production.INFO: ProcessCDR(1,14921326,1,1,2) [2025-04-16 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921326', 'tblTempUsageDetail_20' ) start [2025-04-16 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921326', 'tblTempUsageDetail_20' ) end [2025-04-16 13:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:48:26] Production.INFO: ==25302== Releasing lock... [2025-04-16 13:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:48:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:49:05 [end_date_ymd] => 2025-04-16 13:49:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:49:05' and `end` < '2025-04-16 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-04-16 13:49:19] Production.INFO: count ==4768 [2025-04-16 13:49:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:49:05 - End Time 2025-04-16 13:49:05 [2025-04-16 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921331', 'tblTempUsageDetail_20' ) start [2025-04-16 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921331', 'tblTempUsageDetail_20' ) end [2025-04-16 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921331', 'tblTempVendorCDR_20' ) start [2025-04-16 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921331', 'tblTempVendorCDR_20' ) end [2025-04-16 13:49:21] Production.INFO: ProcessCDR(1,14921331,1,1,2) [2025-04-16 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921331', 'tblTempUsageDetail_20' ) start [2025-04-16 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921331', 'tblTempUsageDetail_20' ) end [2025-04-16 13:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:49:27] Production.INFO: ==25387== Releasing lock... [2025-04-16 13:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:49:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:50:05 [end_date_ymd] => 2025-04-16 13:50:05 [RateCDR] => 1 ) [2025-04-16 13:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:50:05' and `end` < '2025-04-16 13:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:50:19] Production.INFO: count ==4770 [2025-04-16 13:50:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:50:05 - End Time 2025-04-16 13:50:05 [2025-04-16 13:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921336', 'tblTempUsageDetail_20' ) start [2025-04-16 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921336', 'tblTempUsageDetail_20' ) end [2025-04-16 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921336', 'tblTempVendorCDR_20' ) start [2025-04-16 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921336', 'tblTempVendorCDR_20' ) end [2025-04-16 13:50:21] Production.INFO: ProcessCDR(1,14921336,1,1,2) [2025-04-16 13:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921336', 'tblTempUsageDetail_20' ) start [2025-04-16 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921336', 'tblTempUsageDetail_20' ) end [2025-04-16 13:50:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:50:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:50:26] Production.INFO: ==25458== Releasing lock... [2025-04-16 13:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:50:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:51:05 [end_date_ymd] => 2025-04-16 13:51:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:51:05' and `end` < '2025-04-16 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-04-16 13:51:18] Production.INFO: count ==4846 [2025-04-16 13:51:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:51:05 - End Time 2025-04-16 13:51:05 [2025-04-16 13:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921342', 'tblTempUsageDetail_20' ) start [2025-04-16 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921342', 'tblTempUsageDetail_20' ) end [2025-04-16 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921342', 'tblTempVendorCDR_20' ) start [2025-04-16 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921342', 'tblTempVendorCDR_20' ) end [2025-04-16 13:51:20] Production.INFO: ProcessCDR(1,14921342,1,1,2) [2025-04-16 13:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921342', 'tblTempUsageDetail_20' ) start [2025-04-16 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921342', 'tblTempUsageDetail_20' ) end [2025-04-16 13:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:51:25] Production.INFO: ==25532== Releasing lock... [2025-04-16 13:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:51:25] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:52:05 [end_date_ymd] => 2025-04-16 13:52:05 [RateCDR] => 1 ) [2025-04-16 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:52:05' and `end` < '2025-04-16 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:52:19] Production.INFO: count ==4841 [2025-04-16 13:52:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:52:05 - End Time 2025-04-16 13:52:05 [2025-04-16 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921347', 'tblTempUsageDetail_20' ) start [2025-04-16 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921347', 'tblTempUsageDetail_20' ) end [2025-04-16 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921347', 'tblTempVendorCDR_20' ) start [2025-04-16 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921347', 'tblTempVendorCDR_20' ) end [2025-04-16 13:52:21] Production.INFO: ProcessCDR(1,14921347,1,1,2) [2025-04-16 13:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921347', 'tblTempUsageDetail_20' ) start [2025-04-16 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921347', 'tblTempUsageDetail_20' ) end [2025-04-16 13:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:52:27] Production.INFO: ==25614== Releasing lock... [2025-04-16 13:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:52:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:53:05 [end_date_ymd] => 2025-04-16 13:53:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:53:05' and `end` < '2025-04-16 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-04-16 13:53:19] Production.INFO: count ==4838 [2025-04-16 13:53:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:53:05 - End Time 2025-04-16 13:53:05 [2025-04-16 13:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921352', 'tblTempUsageDetail_20' ) start [2025-04-16 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921352', 'tblTempUsageDetail_20' ) end [2025-04-16 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921352', 'tblTempVendorCDR_20' ) start [2025-04-16 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921352', 'tblTempVendorCDR_20' ) end [2025-04-16 13:53:20] Production.INFO: ProcessCDR(1,14921352,1,1,2) [2025-04-16 13:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921352', 'tblTempUsageDetail_20' ) start [2025-04-16 13:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921352', 'tblTempUsageDetail_20' ) end [2025-04-16 13:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:53:25] Production.INFO: ==25686== Releasing lock... [2025-04-16 13:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:53:25] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:54:05 [end_date_ymd] => 2025-04-16 13:54:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:54:05' and `end` < '2025-04-16 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-04-16 13:54:19] Production.INFO: count ==4873 [2025-04-16 13:54:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:54:05 - End Time 2025-04-16 13:54:05 [2025-04-16 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921357', 'tblTempUsageDetail_20' ) start [2025-04-16 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921357', 'tblTempUsageDetail_20' ) end [2025-04-16 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921357', 'tblTempVendorCDR_20' ) start [2025-04-16 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921357', 'tblTempVendorCDR_20' ) end [2025-04-16 13:54:21] Production.INFO: ProcessCDR(1,14921357,1,1,2) [2025-04-16 13:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921357', 'tblTempUsageDetail_20' ) start [2025-04-16 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921357', 'tblTempUsageDetail_20' ) end [2025-04-16 13:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:54:27] Production.INFO: ==25797== Releasing lock... [2025-04-16 13:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:54:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:55:05 [end_date_ymd] => 2025-04-16 13:55:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:55:05' and `end` < '2025-04-16 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-04-16 13:55:19] Production.INFO: count ==4877 [2025-04-16 13:55:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:55:05 - End Time 2025-04-16 13:55:05 [2025-04-16 13:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921362', 'tblTempUsageDetail_20' ) start [2025-04-16 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921362', 'tblTempUsageDetail_20' ) end [2025-04-16 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921362', 'tblTempVendorCDR_20' ) start [2025-04-16 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921362', 'tblTempVendorCDR_20' ) end [2025-04-16 13:55:21] Production.INFO: ProcessCDR(1,14921362,1,1,2) [2025-04-16 13:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921362', 'tblTempUsageDetail_20' ) start [2025-04-16 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921362', 'tblTempUsageDetail_20' ) end [2025-04-16 13:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:55:26] Production.INFO: ==25867== Releasing lock... [2025-04-16 13:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:55:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:56:05 [end_date_ymd] => 2025-04-16 13:56:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 10:56:05' and `end` < '2025-04-16 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-04-16 13:56:19] Production.INFO: count ==4881 [2025-04-16 13:56:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:56:05 - End Time 2025-04-16 13:56:05 [2025-04-16 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921367', 'tblTempUsageDetail_20' ) start [2025-04-16 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921367', 'tblTempUsageDetail_20' ) end [2025-04-16 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921367', 'tblTempVendorCDR_20' ) start [2025-04-16 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921367', 'tblTempVendorCDR_20' ) end [2025-04-16 13:56:21] Production.INFO: ProcessCDR(1,14921367,1,1,2) [2025-04-16 13:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921367', 'tblTempUsageDetail_20' ) start [2025-04-16 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921367', 'tblTempUsageDetail_20' ) end [2025-04-16 13:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:56:26] Production.INFO: ==25940== Releasing lock... [2025-04-16 13:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:56:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:57:05 [end_date_ymd] => 2025-04-16 13:57:05 [RateCDR] => 1 ) [2025-04-16 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:57:05' and `end` < '2025-04-16 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:57:18] Production.INFO: count ==4879 [2025-04-16 13:57:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:57:05 - End Time 2025-04-16 13:57:05 [2025-04-16 13:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921372', 'tblTempUsageDetail_20' ) start [2025-04-16 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921372', 'tblTempUsageDetail_20' ) end [2025-04-16 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921372', 'tblTempVendorCDR_20' ) start [2025-04-16 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921372', 'tblTempVendorCDR_20' ) end [2025-04-16 13:57:20] Production.INFO: ProcessCDR(1,14921372,1,1,2) [2025-04-16 13:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921372', 'tblTempUsageDetail_20' ) start [2025-04-16 13:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921372', 'tblTempUsageDetail_20' ) end [2025-04-16 13:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:57:25] Production.INFO: ==26017== Releasing lock... [2025-04-16 13:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:57:25] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:58:05 [end_date_ymd] => 2025-04-16 13:58:05 [RateCDR] => 1 ) [2025-04-16 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:58:05' and `end` < '2025-04-16 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:58:19] Production.INFO: count ==4871 [2025-04-16 13:58:21] Production.ERROR: pbx CDR StartTime 2025-04-16 10:58:05 - End Time 2025-04-16 13:58:05 [2025-04-16 13:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921377', 'tblTempUsageDetail_20' ) start [2025-04-16 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921377', 'tblTempUsageDetail_20' ) end [2025-04-16 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921377', 'tblTempVendorCDR_20' ) start [2025-04-16 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921377', 'tblTempVendorCDR_20' ) end [2025-04-16 13:58:21] Production.INFO: ProcessCDR(1,14921377,1,1,2) [2025-04-16 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921377', 'tblTempUsageDetail_20' ) start [2025-04-16 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921377', 'tblTempUsageDetail_20' ) end [2025-04-16 13:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:58:26] Production.INFO: ==26095== Releasing lock... [2025-04-16 13:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:58:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 13:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 10:59:04 [end_date_ymd] => 2025-04-16 13:59:04 [RateCDR] => 1 ) [2025-04-16 13:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 10:59:04' and `end` < '2025-04-16 13:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 13:59:18] Production.INFO: count ==4868 [2025-04-16 13:59:20] Production.ERROR: pbx CDR StartTime 2025-04-16 10:59:04 - End Time 2025-04-16 13:59:04 [2025-04-16 13:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921382', 'tblTempUsageDetail_20' ) start [2025-04-16 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921382', 'tblTempUsageDetail_20' ) end [2025-04-16 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921382', 'tblTempVendorCDR_20' ) start [2025-04-16 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921382', 'tblTempVendorCDR_20' ) end [2025-04-16 13:59:20] Production.INFO: ProcessCDR(1,14921382,1,1,2) [2025-04-16 13:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 13:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921382', 'tblTempUsageDetail_20' ) start [2025-04-16 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921382', 'tblTempUsageDetail_20' ) end [2025-04-16 13:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 13:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 13:59:25] Production.INFO: ==26167== Releasing lock... [2025-04-16 13:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 13:59:25] Production.INFO: 64.5 MB #Memory Used# [2025-04-16 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:00:06 [end_date_ymd] => 2025-04-16 14:00:06 [RateCDR] => 1 ) [2025-04-16 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:00:06' and `end` < '2025-04-16 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:00:20] Production.INFO: count ==4852 [2025-04-16 14:00:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:00:06 - End Time 2025-04-16 14:00:06 [2025-04-16 14:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921388', 'tblTempUsageDetail_20' ) start [2025-04-16 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921388', 'tblTempUsageDetail_20' ) end [2025-04-16 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921388', 'tblTempVendorCDR_20' ) start [2025-04-16 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921388', 'tblTempVendorCDR_20' ) end [2025-04-16 14:00:22] Production.INFO: ProcessCDR(1,14921388,1,1,2) [2025-04-16 14:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921388', 'tblTempUsageDetail_20' ) start [2025-04-16 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921388', 'tblTempUsageDetail_20' ) end [2025-04-16 14:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:00:27] Production.INFO: ==26243== Releasing lock... [2025-04-16 14:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:00:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 14:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:01:04 [end_date_ymd] => 2025-04-16 14:01:04 [RateCDR] => 1 ) [2025-04-16 14:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:01:04' and `end` < '2025-04-16 14:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:01:18] Production.INFO: count ==4829 [2025-04-16 14:01:20] Production.ERROR: pbx CDR StartTime 2025-04-16 11:01:04 - End Time 2025-04-16 14:01:04 [2025-04-16 14:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921393', 'tblTempUsageDetail_20' ) start [2025-04-16 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921393', 'tblTempUsageDetail_20' ) end [2025-04-16 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921393', 'tblTempVendorCDR_20' ) start [2025-04-16 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921393', 'tblTempVendorCDR_20' ) end [2025-04-16 14:01:20] Production.INFO: ProcessCDR(1,14921393,1,1,2) [2025-04-16 14:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921393', 'tblTempUsageDetail_20' ) start [2025-04-16 14:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921393', 'tblTempUsageDetail_20' ) end [2025-04-16 14:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:01:25] Production.INFO: ==26325== Releasing lock... [2025-04-16 14:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:01:25] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:02:05 [end_date_ymd] => 2025-04-16 14:02:05 [RateCDR] => 1 ) [2025-04-16 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:02:05' and `end` < '2025-04-16 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:02:19] Production.INFO: count ==4776 [2025-04-16 14:02:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:02:05 - End Time 2025-04-16 14:02:05 [2025-04-16 14:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921398', 'tblTempUsageDetail_20' ) start [2025-04-16 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921398', 'tblTempUsageDetail_20' ) end [2025-04-16 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921398', 'tblTempVendorCDR_20' ) start [2025-04-16 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921398', 'tblTempVendorCDR_20' ) end [2025-04-16 14:02:21] Production.INFO: ProcessCDR(1,14921398,1,1,2) [2025-04-16 14:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921398', 'tblTempUsageDetail_20' ) start [2025-04-16 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921398', 'tblTempUsageDetail_20' ) end [2025-04-16 14:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:02:26] Production.INFO: ==26398== Releasing lock... [2025-04-16 14:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:02:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:03:04 [end_date_ymd] => 2025-04-16 14:03:04 [RateCDR] => 1 ) [2025-04-16 14:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:03:04' and `end` < '2025-04-16 14:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:03:18] Production.INFO: count ==4791 [2025-04-16 14:03:20] Production.ERROR: pbx CDR StartTime 2025-04-16 11:03:04 - End Time 2025-04-16 14:03:04 [2025-04-16 14:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921403', 'tblTempUsageDetail_20' ) start [2025-04-16 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921403', 'tblTempUsageDetail_20' ) end [2025-04-16 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921403', 'tblTempVendorCDR_20' ) start [2025-04-16 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921403', 'tblTempVendorCDR_20' ) end [2025-04-16 14:03:20] Production.INFO: ProcessCDR(1,14921403,1,1,2) [2025-04-16 14:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921403', 'tblTempUsageDetail_20' ) start [2025-04-16 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921403', 'tblTempUsageDetail_20' ) end [2025-04-16 14:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:03:25] Production.INFO: ==26484== Releasing lock... [2025-04-16 14:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:03:25] Production.INFO: 64 MB #Memory Used# [2025-04-16 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:04:05 [end_date_ymd] => 2025-04-16 14:04:05 [RateCDR] => 1 ) [2025-04-16 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:04:05' and `end` < '2025-04-16 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:04:19] Production.INFO: count ==4786 [2025-04-16 14:04:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:04:05 - End Time 2025-04-16 14:04:05 [2025-04-16 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921408', 'tblTempUsageDetail_20' ) start [2025-04-16 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921408', 'tblTempUsageDetail_20' ) end [2025-04-16 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921408', 'tblTempVendorCDR_20' ) start [2025-04-16 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921408', 'tblTempVendorCDR_20' ) end [2025-04-16 14:04:21] Production.INFO: ProcessCDR(1,14921408,1,1,2) [2025-04-16 14:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921408', 'tblTempUsageDetail_20' ) start [2025-04-16 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921408', 'tblTempUsageDetail_20' ) end [2025-04-16 14:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:04:26] Production.INFO: ==26577== Releasing lock... [2025-04-16 14:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:04:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:05:04 [end_date_ymd] => 2025-04-16 14:05:04 [RateCDR] => 1 ) [2025-04-16 14:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:05:04' and `end` < '2025-04-16 14:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:05:18] Production.INFO: count ==4783 [2025-04-16 14:05:20] Production.ERROR: pbx CDR StartTime 2025-04-16 11:05:04 - End Time 2025-04-16 14:05:04 [2025-04-16 14:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921413', 'tblTempUsageDetail_20' ) start [2025-04-16 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921413', 'tblTempUsageDetail_20' ) end [2025-04-16 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921413', 'tblTempVendorCDR_20' ) start [2025-04-16 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921413', 'tblTempVendorCDR_20' ) end [2025-04-16 14:05:20] Production.INFO: ProcessCDR(1,14921413,1,1,2) [2025-04-16 14:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921413', 'tblTempUsageDetail_20' ) start [2025-04-16 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921413', 'tblTempUsageDetail_20' ) end [2025-04-16 14:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:05:25] Production.INFO: ==26650== Releasing lock... [2025-04-16 14:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:05:25] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:06:05 [end_date_ymd] => 2025-04-16 14:06:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 11:06:05' and `end` < '2025-04-16 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-04-16 14:06:19] Production.INFO: count ==4787 [2025-04-16 14:06:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:06:05 - End Time 2025-04-16 14:06:05 [2025-04-16 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921418', 'tblTempUsageDetail_20' ) start [2025-04-16 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921418', 'tblTempUsageDetail_20' ) end [2025-04-16 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921418', 'tblTempVendorCDR_20' ) start [2025-04-16 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921418', 'tblTempVendorCDR_20' ) end [2025-04-16 14:06:21] Production.INFO: ProcessCDR(1,14921418,1,1,2) [2025-04-16 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921418', 'tblTempUsageDetail_20' ) start [2025-04-16 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921418', 'tblTempUsageDetail_20' ) end [2025-04-16 14:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:06:27] Production.INFO: ==26722== Releasing lock... [2025-04-16 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:06:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:07:04 [end_date_ymd] => 2025-04-16 14:07:04 [RateCDR] => 1 ) [2025-04-16 14:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:07:04' and `end` < '2025-04-16 14:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:07:18] Production.INFO: count ==4791 [2025-04-16 14:07:20] Production.ERROR: pbx CDR StartTime 2025-04-16 11:07:04 - End Time 2025-04-16 14:07:04 [2025-04-16 14:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921423', 'tblTempUsageDetail_20' ) start [2025-04-16 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921423', 'tblTempUsageDetail_20' ) end [2025-04-16 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921423', 'tblTempVendorCDR_20' ) start [2025-04-16 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921423', 'tblTempVendorCDR_20' ) end [2025-04-16 14:07:20] Production.INFO: ProcessCDR(1,14921423,1,1,2) [2025-04-16 14:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921423', 'tblTempUsageDetail_20' ) start [2025-04-16 14:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921423', 'tblTempUsageDetail_20' ) end [2025-04-16 14:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:07:25] Production.INFO: ==26793== Releasing lock... [2025-04-16 14:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:07:25] Production.INFO: 64 MB #Memory Used# [2025-04-16 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:08:05 [end_date_ymd] => 2025-04-16 14:08:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 11:08:05' and `end` < '2025-04-16 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-04-16 14:08:19] Production.INFO: count ==4804 [2025-04-16 14:08:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:08:05 - End Time 2025-04-16 14:08:05 [2025-04-16 14:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921428', 'tblTempUsageDetail_20' ) start [2025-04-16 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921428', 'tblTempUsageDetail_20' ) end [2025-04-16 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921428', 'tblTempVendorCDR_20' ) start [2025-04-16 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921428', 'tblTempVendorCDR_20' ) end [2025-04-16 14:08:21] Production.INFO: ProcessCDR(1,14921428,1,1,2) [2025-04-16 14:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921428', 'tblTempUsageDetail_20' ) start [2025-04-16 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921428', 'tblTempUsageDetail_20' ) end [2025-04-16 14:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:08:26] Production.INFO: ==26866== Releasing lock... [2025-04-16 14:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:08:26] Production.INFO: 64 MB #Memory Used# [2025-04-16 14:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:09:06 [end_date_ymd] => 2025-04-16 14:09:06 [RateCDR] => 1 ) [2025-04-16 14: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-04-16 11:09:06' and `end` < '2025-04-16 14: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-04-16 14:09:19] Production.INFO: count ==4805 [2025-04-16 14:09:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:09:06 - End Time 2025-04-16 14:09:06 [2025-04-16 14:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921433', 'tblTempUsageDetail_20' ) start [2025-04-16 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921433', 'tblTempUsageDetail_20' ) end [2025-04-16 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921433', 'tblTempVendorCDR_20' ) start [2025-04-16 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921433', 'tblTempVendorCDR_20' ) end [2025-04-16 14:09:21] Production.INFO: ProcessCDR(1,14921433,1,1,2) [2025-04-16 14:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921433', 'tblTempUsageDetail_20' ) start [2025-04-16 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921433', 'tblTempUsageDetail_20' ) end [2025-04-16 14:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:09:26] Production.INFO: ==26978== Releasing lock... [2025-04-16 14:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:09:26] Production.INFO: 64 MB #Memory Used# [2025-04-16 14:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:10:05 [end_date_ymd] => 2025-04-16 14:10:05 [RateCDR] => 1 ) [2025-04-16 14:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:10:05' and `end` < '2025-04-16 14:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:10:19] Production.INFO: count ==4773 [2025-04-16 14:10:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:10:05 - End Time 2025-04-16 14:10:05 [2025-04-16 14:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921438', 'tblTempUsageDetail_20' ) start [2025-04-16 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921438', 'tblTempUsageDetail_20' ) end [2025-04-16 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921438', 'tblTempVendorCDR_20' ) start [2025-04-16 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921438', 'tblTempVendorCDR_20' ) end [2025-04-16 14:10:21] Production.INFO: ProcessCDR(1,14921438,1,1,2) [2025-04-16 14:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921438', 'tblTempUsageDetail_20' ) start [2025-04-16 14:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921438', 'tblTempUsageDetail_20' ) end [2025-04-16 14:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:10:26] Production.INFO: ==27050== Releasing lock... [2025-04-16 14:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:10:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:11:05 [end_date_ymd] => 2025-04-16 14:11:05 [RateCDR] => 1 ) [2025-04-16 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:11:05' and `end` < '2025-04-16 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:11:19] Production.INFO: count ==4770 [2025-04-16 14:11:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:11:05 - End Time 2025-04-16 14:11:05 [2025-04-16 14:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921444', 'tblTempUsageDetail_20' ) start [2025-04-16 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921444', 'tblTempUsageDetail_20' ) end [2025-04-16 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921444', 'tblTempVendorCDR_20' ) start [2025-04-16 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921444', 'tblTempVendorCDR_20' ) end [2025-04-16 14:11:21] Production.INFO: ProcessCDR(1,14921444,1,1,2) [2025-04-16 14:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921444', 'tblTempUsageDetail_20' ) start [2025-04-16 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921444', 'tblTempUsageDetail_20' ) end [2025-04-16 14:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:11:26] Production.INFO: ==27130== Releasing lock... [2025-04-16 14:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:11:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:12:05 [end_date_ymd] => 2025-04-16 14:12:05 [RateCDR] => 1 ) [2025-04-16 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:12:05' and `end` < '2025-04-16 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:12:19] Production.INFO: count ==4770 [2025-04-16 14:12:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:12:05 - End Time 2025-04-16 14:12:05 [2025-04-16 14:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921449', 'tblTempUsageDetail_20' ) start [2025-04-16 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921449', 'tblTempUsageDetail_20' ) end [2025-04-16 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921449', 'tblTempVendorCDR_20' ) start [2025-04-16 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921449', 'tblTempVendorCDR_20' ) end [2025-04-16 14:12:21] Production.INFO: ProcessCDR(1,14921449,1,1,2) [2025-04-16 14:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921449', 'tblTempUsageDetail_20' ) start [2025-04-16 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921449', 'tblTempUsageDetail_20' ) end [2025-04-16 14:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:12:26] Production.INFO: ==27201== Releasing lock... [2025-04-16 14:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:12:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:13:05 [end_date_ymd] => 2025-04-16 14:13:05 [RateCDR] => 1 ) [2025-04-16 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:13:05' and `end` < '2025-04-16 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:13:18] Production.INFO: count ==4794 [2025-04-16 14:13:20] Production.ERROR: pbx CDR StartTime 2025-04-16 11:13:05 - End Time 2025-04-16 14:13:05 [2025-04-16 14:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921454', 'tblTempUsageDetail_20' ) start [2025-04-16 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921454', 'tblTempUsageDetail_20' ) end [2025-04-16 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921454', 'tblTempVendorCDR_20' ) start [2025-04-16 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921454', 'tblTempVendorCDR_20' ) end [2025-04-16 14:13:20] Production.INFO: ProcessCDR(1,14921454,1,1,2) [2025-04-16 14:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921454', 'tblTempUsageDetail_20' ) start [2025-04-16 14:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921454', 'tblTempUsageDetail_20' ) end [2025-04-16 14:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:13:25] Production.INFO: ==27277== Releasing lock... [2025-04-16 14:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:13:25] Production.INFO: 64 MB #Memory Used# [2025-04-16 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:14:05 [end_date_ymd] => 2025-04-16 14:14:05 [RateCDR] => 1 ) [2025-04-16 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:14:05' and `end` < '2025-04-16 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:14:19] Production.INFO: count ==4778 [2025-04-16 14:14:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:14:05 - End Time 2025-04-16 14:14:05 [2025-04-16 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921459', 'tblTempUsageDetail_20' ) start [2025-04-16 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921459', 'tblTempUsageDetail_20' ) end [2025-04-16 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921459', 'tblTempVendorCDR_20' ) start [2025-04-16 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921459', 'tblTempVendorCDR_20' ) end [2025-04-16 14:14:21] Production.INFO: ProcessCDR(1,14921459,1,1,2) [2025-04-16 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921459', 'tblTempUsageDetail_20' ) start [2025-04-16 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921459', 'tblTempUsageDetail_20' ) end [2025-04-16 14:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:14:26] Production.INFO: ==27356== Releasing lock... [2025-04-16 14:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:14:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:15:05 [end_date_ymd] => 2025-04-16 14:15:05 [RateCDR] => 1 ) [2025-04-16 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:15:05' and `end` < '2025-04-16 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:15:19] Production.INFO: count ==4760 [2025-04-16 14:15:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:15:05 - End Time 2025-04-16 14:15:05 [2025-04-16 14:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921464', 'tblTempUsageDetail_20' ) start [2025-04-16 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921464', 'tblTempUsageDetail_20' ) end [2025-04-16 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921464', 'tblTempVendorCDR_20' ) start [2025-04-16 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921464', 'tblTempVendorCDR_20' ) end [2025-04-16 14:15:21] Production.INFO: ProcessCDR(1,14921464,1,1,2) [2025-04-16 14:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921464', 'tblTempUsageDetail_20' ) start [2025-04-16 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921464', 'tblTempUsageDetail_20' ) end [2025-04-16 14:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:15:26] Production.INFO: ==27427== Releasing lock... [2025-04-16 14:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:15:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:16:05 [end_date_ymd] => 2025-04-16 14:16:05 [RateCDR] => 1 ) [2025-04-16 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:16:05' and `end` < '2025-04-16 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:16:19] Production.INFO: count ==4759 [2025-04-16 14:16:20] Production.ERROR: pbx CDR StartTime 2025-04-16 11:16:05 - End Time 2025-04-16 14:16:05 [2025-04-16 14:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921469', 'tblTempUsageDetail_20' ) start [2025-04-16 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921469', 'tblTempUsageDetail_20' ) end [2025-04-16 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921469', 'tblTempVendorCDR_20' ) start [2025-04-16 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921469', 'tblTempVendorCDR_20' ) end [2025-04-16 14:16:20] Production.INFO: ProcessCDR(1,14921469,1,1,2) [2025-04-16 14:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921469', 'tblTempUsageDetail_20' ) start [2025-04-16 14:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921469', 'tblTempUsageDetail_20' ) end [2025-04-16 14:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:16:25] Production.INFO: ==27497== Releasing lock... [2025-04-16 14:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:16:25] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:17:05 [end_date_ymd] => 2025-04-16 14:17:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 11:17:05' and `end` < '2025-04-16 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-04-16 14:17:19] Production.INFO: count ==4755 [2025-04-16 14:17:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:17:05 - End Time 2025-04-16 14:17:05 [2025-04-16 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921474', 'tblTempUsageDetail_20' ) start [2025-04-16 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921474', 'tblTempUsageDetail_20' ) end [2025-04-16 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921474', 'tblTempVendorCDR_20' ) start [2025-04-16 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921474', 'tblTempVendorCDR_20' ) end [2025-04-16 14:17:21] Production.INFO: ProcessCDR(1,14921474,1,1,2) [2025-04-16 14:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921474', 'tblTempUsageDetail_20' ) start [2025-04-16 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921474', 'tblTempUsageDetail_20' ) end [2025-04-16 14:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:17:26] Production.INFO: ==27571== Releasing lock... [2025-04-16 14:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:17:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:18:05 [end_date_ymd] => 2025-04-16 14:18:05 [RateCDR] => 1 ) [2025-04-16 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:18:05' and `end` < '2025-04-16 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:18:18] Production.INFO: count ==4748 [2025-04-16 14:18:20] Production.ERROR: pbx CDR StartTime 2025-04-16 11:18:05 - End Time 2025-04-16 14:18:05 [2025-04-16 14:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921479', 'tblTempUsageDetail_20' ) start [2025-04-16 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921479', 'tblTempUsageDetail_20' ) end [2025-04-16 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921479', 'tblTempVendorCDR_20' ) start [2025-04-16 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921479', 'tblTempVendorCDR_20' ) end [2025-04-16 14:18:20] Production.INFO: ProcessCDR(1,14921479,1,1,2) [2025-04-16 14:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921479', 'tblTempUsageDetail_20' ) start [2025-04-16 14:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921479', 'tblTempUsageDetail_20' ) end [2025-04-16 14:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:18:25] Production.INFO: ==27654== Releasing lock... [2025-04-16 14:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:18:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:19:05 [end_date_ymd] => 2025-04-16 14:19:05 [RateCDR] => 1 ) [2025-04-16 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:19:05' and `end` < '2025-04-16 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:19:19] Production.INFO: count ==4731 [2025-04-16 14:19:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:19:05 - End Time 2025-04-16 14:19:05 [2025-04-16 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921484', 'tblTempUsageDetail_20' ) start [2025-04-16 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921484', 'tblTempUsageDetail_20' ) end [2025-04-16 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921484', 'tblTempVendorCDR_20' ) start [2025-04-16 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921484', 'tblTempVendorCDR_20' ) end [2025-04-16 14:19:21] Production.INFO: ProcessCDR(1,14921484,1,1,2) [2025-04-16 14:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921484', 'tblTempUsageDetail_20' ) start [2025-04-16 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921484', 'tblTempUsageDetail_20' ) end [2025-04-16 14:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:19:26] Production.INFO: ==27724== Releasing lock... [2025-04-16 14:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:19:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:20:05 [end_date_ymd] => 2025-04-16 14:20:05 [RateCDR] => 1 ) [2025-04-16 14:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:20:05' and `end` < '2025-04-16 14:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:20:19] Production.INFO: count ==4731 [2025-04-16 14:20:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:20:05 - End Time 2025-04-16 14:20:05 [2025-04-16 14:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921489', 'tblTempUsageDetail_20' ) start [2025-04-16 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921489', 'tblTempUsageDetail_20' ) end [2025-04-16 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921489', 'tblTempVendorCDR_20' ) start [2025-04-16 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921489', 'tblTempVendorCDR_20' ) end [2025-04-16 14:20:21] Production.INFO: ProcessCDR(1,14921489,1,1,2) [2025-04-16 14:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921489', 'tblTempUsageDetail_20' ) start [2025-04-16 14:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921489', 'tblTempUsageDetail_20' ) end [2025-04-16 14:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:20:25] Production.INFO: ==27798== Releasing lock... [2025-04-16 14:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:20:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:21:05 [end_date_ymd] => 2025-04-16 14:21:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 11:21:05' and `end` < '2025-04-16 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-04-16 14:21:19] Production.INFO: count ==4737 [2025-04-16 14:21:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:21:05 - End Time 2025-04-16 14:21:05 [2025-04-16 14:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921495', 'tblTempUsageDetail_20' ) start [2025-04-16 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921495', 'tblTempUsageDetail_20' ) end [2025-04-16 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921495', 'tblTempVendorCDR_20' ) start [2025-04-16 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921495', 'tblTempVendorCDR_20' ) end [2025-04-16 14:21:21] Production.INFO: ProcessCDR(1,14921495,1,1,2) [2025-04-16 14:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921495', 'tblTempUsageDetail_20' ) start [2025-04-16 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921495', 'tblTempUsageDetail_20' ) end [2025-04-16 14:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:21:26] Production.INFO: ==27872== Releasing lock... [2025-04-16 14:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:21:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:22:06 [end_date_ymd] => 2025-04-16 14:22:06 [RateCDR] => 1 ) [2025-04-16 14: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-04-16 11:22:06' and `end` < '2025-04-16 14: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-04-16 14:22:20] Production.INFO: count ==4740 [2025-04-16 14:22:22] Production.ERROR: pbx CDR StartTime 2025-04-16 11:22:06 - End Time 2025-04-16 14:22:06 [2025-04-16 14:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921500', 'tblTempUsageDetail_20' ) start [2025-04-16 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921500', 'tblTempUsageDetail_20' ) end [2025-04-16 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921500', 'tblTempVendorCDR_20' ) start [2025-04-16 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921500', 'tblTempVendorCDR_20' ) end [2025-04-16 14:22:22] Production.INFO: ProcessCDR(1,14921500,1,1,2) [2025-04-16 14:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921500', 'tblTempUsageDetail_20' ) start [2025-04-16 14:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921500', 'tblTempUsageDetail_20' ) end [2025-04-16 14:22:28] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:22:28] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:22:28] Production.INFO: ==27944== Releasing lock... [2025-04-16 14:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:22:28] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:23:05 [end_date_ymd] => 2025-04-16 14:23:05 [RateCDR] => 1 ) [2025-04-16 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:23:05' and `end` < '2025-04-16 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:23:19] Production.INFO: count ==4758 [2025-04-16 14:23:20] Production.ERROR: pbx CDR StartTime 2025-04-16 11:23:05 - End Time 2025-04-16 14:23:05 [2025-04-16 14:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921505', 'tblTempUsageDetail_20' ) start [2025-04-16 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921505', 'tblTempUsageDetail_20' ) end [2025-04-16 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921505', 'tblTempVendorCDR_20' ) start [2025-04-16 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921505', 'tblTempVendorCDR_20' ) end [2025-04-16 14:23:21] Production.INFO: ProcessCDR(1,14921505,1,1,2) [2025-04-16 14:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921505', 'tblTempUsageDetail_20' ) start [2025-04-16 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921505', 'tblTempUsageDetail_20' ) end [2025-04-16 14:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:23:26] Production.INFO: ==28014== Releasing lock... [2025-04-16 14:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:23:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:24:06 [end_date_ymd] => 2025-04-16 14:24:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 11:24:06' and `end` < '2025-04-16 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-04-16 14:24:20] Production.INFO: count ==4762 [2025-04-16 14:24:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:24:06 - End Time 2025-04-16 14:24:06 [2025-04-16 14:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921510', 'tblTempUsageDetail_20' ) start [2025-04-16 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921510', 'tblTempUsageDetail_20' ) end [2025-04-16 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921510', 'tblTempVendorCDR_20' ) start [2025-04-16 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921510', 'tblTempVendorCDR_20' ) end [2025-04-16 14:24:22] Production.INFO: ProcessCDR(1,14921510,1,1,2) [2025-04-16 14:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921510', 'tblTempUsageDetail_20' ) start [2025-04-16 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921510', 'tblTempUsageDetail_20' ) end [2025-04-16 14:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:24:27] Production.INFO: ==28125== Releasing lock... [2025-04-16 14:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:24:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:25:05 [end_date_ymd] => 2025-04-16 14:25:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 11:25:05' and `end` < '2025-04-16 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-04-16 14:25:19] Production.INFO: count ==4743 [2025-04-16 14:25:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:25:05 - End Time 2025-04-16 14:25:05 [2025-04-16 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921515', 'tblTempUsageDetail_20' ) start [2025-04-16 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921515', 'tblTempUsageDetail_20' ) end [2025-04-16 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921515', 'tblTempVendorCDR_20' ) start [2025-04-16 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921515', 'tblTempVendorCDR_20' ) end [2025-04-16 14:25:21] Production.INFO: ProcessCDR(1,14921515,1,1,2) [2025-04-16 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921515', 'tblTempUsageDetail_20' ) start [2025-04-16 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921515', 'tblTempUsageDetail_20' ) end [2025-04-16 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:25:26] Production.INFO: ==28203== Releasing lock... [2025-04-16 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:25:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:26:05 [end_date_ymd] => 2025-04-16 14:26:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 11:26:05' and `end` < '2025-04-16 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-04-16 14:26:19] Production.INFO: count ==4739 [2025-04-16 14:26:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:26:05 - End Time 2025-04-16 14:26:05 [2025-04-16 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921520', 'tblTempUsageDetail_20' ) start [2025-04-16 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921520', 'tblTempUsageDetail_20' ) end [2025-04-16 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921520', 'tblTempVendorCDR_20' ) start [2025-04-16 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921520', 'tblTempVendorCDR_20' ) end [2025-04-16 14:26:21] Production.INFO: ProcessCDR(1,14921520,1,1,2) [2025-04-16 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921520', 'tblTempUsageDetail_20' ) start [2025-04-16 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921520', 'tblTempUsageDetail_20' ) end [2025-04-16 14:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:26:26] Production.INFO: ==28276== Releasing lock... [2025-04-16 14:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:26:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 14:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:27:06 [end_date_ymd] => 2025-04-16 14:27:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 11:27:06' and `end` < '2025-04-16 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-04-16 14:27:19] Production.INFO: count ==4731 [2025-04-16 14:27:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:27:06 - End Time 2025-04-16 14:27:06 [2025-04-16 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921525', 'tblTempUsageDetail_20' ) start [2025-04-16 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921525', 'tblTempUsageDetail_20' ) end [2025-04-16 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921525', 'tblTempVendorCDR_20' ) start [2025-04-16 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921525', 'tblTempVendorCDR_20' ) end [2025-04-16 14:27:21] Production.INFO: ProcessCDR(1,14921525,1,1,2) [2025-04-16 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921525', 'tblTempUsageDetail_20' ) start [2025-04-16 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921525', 'tblTempUsageDetail_20' ) end [2025-04-16 14:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:27:27] Production.INFO: ==28347== Releasing lock... [2025-04-16 14:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:27:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:28:05 [end_date_ymd] => 2025-04-16 14:28:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 11:28:05' and `end` < '2025-04-16 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-04-16 14:28:19] Production.INFO: count ==4743 [2025-04-16 14:28:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:28:05 - End Time 2025-04-16 14:28:05 [2025-04-16 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921530', 'tblTempUsageDetail_20' ) start [2025-04-16 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921530', 'tblTempUsageDetail_20' ) end [2025-04-16 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921530', 'tblTempVendorCDR_20' ) start [2025-04-16 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921530', 'tblTempVendorCDR_20' ) end [2025-04-16 14:28:21] Production.INFO: ProcessCDR(1,14921530,1,1,2) [2025-04-16 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921530', 'tblTempUsageDetail_20' ) start [2025-04-16 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921530', 'tblTempUsageDetail_20' ) end [2025-04-16 14:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:28:26] Production.INFO: ==28421== Releasing lock... [2025-04-16 14:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:28:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:29:05 [end_date_ymd] => 2025-04-16 14:29:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 11:29:05' and `end` < '2025-04-16 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-04-16 14:29:19] Production.INFO: count ==4756 [2025-04-16 14:29:20] Production.ERROR: pbx CDR StartTime 2025-04-16 11:29:05 - End Time 2025-04-16 14:29:05 [2025-04-16 14:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921535', 'tblTempUsageDetail_20' ) start [2025-04-16 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921535', 'tblTempUsageDetail_20' ) end [2025-04-16 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921535', 'tblTempVendorCDR_20' ) start [2025-04-16 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921535', 'tblTempVendorCDR_20' ) end [2025-04-16 14:29:21] Production.INFO: ProcessCDR(1,14921535,1,1,2) [2025-04-16 14:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921535', 'tblTempUsageDetail_20' ) start [2025-04-16 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921535', 'tblTempUsageDetail_20' ) end [2025-04-16 14:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:29:26] Production.INFO: ==28498== Releasing lock... [2025-04-16 14:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:29:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:30:06 [end_date_ymd] => 2025-04-16 14:30:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 11:30:06' and `end` < '2025-04-16 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-04-16 14:30:19] Production.INFO: count ==4753 [2025-04-16 14:30:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:30:06 - End Time 2025-04-16 14:30:06 [2025-04-16 14:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921541', 'tblTempUsageDetail_20' ) start [2025-04-16 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921541', 'tblTempUsageDetail_20' ) end [2025-04-16 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921541', 'tblTempVendorCDR_20' ) start [2025-04-16 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921541', 'tblTempVendorCDR_20' ) end [2025-04-16 14:30:21] Production.INFO: ProcessCDR(1,14921541,1,1,2) [2025-04-16 14:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921541', 'tblTempUsageDetail_20' ) start [2025-04-16 14:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921541', 'tblTempUsageDetail_20' ) end [2025-04-16 14:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:30:27] Production.INFO: ==28574== Releasing lock... [2025-04-16 14:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:30:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:31:05 [end_date_ymd] => 2025-04-16 14:31:05 [RateCDR] => 1 ) [2025-04-16 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:31:05' and `end` < '2025-04-16 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:31:19] Production.INFO: count ==4767 [2025-04-16 14:31:20] Production.ERROR: pbx CDR StartTime 2025-04-16 11:31:05 - End Time 2025-04-16 14:31:05 [2025-04-16 14:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921546', 'tblTempUsageDetail_20' ) start [2025-04-16 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921546', 'tblTempUsageDetail_20' ) end [2025-04-16 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921546', 'tblTempVendorCDR_20' ) start [2025-04-16 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921546', 'tblTempVendorCDR_20' ) end [2025-04-16 14:31:21] Production.INFO: ProcessCDR(1,14921546,1,1,2) [2025-04-16 14:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921546', 'tblTempUsageDetail_20' ) start [2025-04-16 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921546', 'tblTempUsageDetail_20' ) end [2025-04-16 14:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:31:26] Production.INFO: ==28649== Releasing lock... [2025-04-16 14:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:31:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:32:06 [end_date_ymd] => 2025-04-16 14:32:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 11:32:06' and `end` < '2025-04-16 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-04-16 14:32:19] Production.INFO: count ==4766 [2025-04-16 14:32:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:32:06 - End Time 2025-04-16 14:32:06 [2025-04-16 14:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921551', 'tblTempUsageDetail_20' ) start [2025-04-16 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921551', 'tblTempUsageDetail_20' ) end [2025-04-16 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921551', 'tblTempVendorCDR_20' ) start [2025-04-16 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921551', 'tblTempVendorCDR_20' ) end [2025-04-16 14:32:21] Production.INFO: ProcessCDR(1,14921551,1,1,2) [2025-04-16 14:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921551', 'tblTempUsageDetail_20' ) start [2025-04-16 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921551', 'tblTempUsageDetail_20' ) end [2025-04-16 14:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:32:27] Production.INFO: ==28726== Releasing lock... [2025-04-16 14:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:32:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:33:05 [end_date_ymd] => 2025-04-16 14:33:05 [RateCDR] => 1 ) [2025-04-16 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:33:05' and `end` < '2025-04-16 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:33:18] Production.INFO: count ==4762 [2025-04-16 14:33:20] Production.ERROR: pbx CDR StartTime 2025-04-16 11:33:05 - End Time 2025-04-16 14:33:05 [2025-04-16 14:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921556', 'tblTempUsageDetail_20' ) start [2025-04-16 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921556', 'tblTempUsageDetail_20' ) end [2025-04-16 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921556', 'tblTempVendorCDR_20' ) start [2025-04-16 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921556', 'tblTempVendorCDR_20' ) end [2025-04-16 14:33:20] Production.INFO: ProcessCDR(1,14921556,1,1,2) [2025-04-16 14:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921556', 'tblTempUsageDetail_20' ) start [2025-04-16 14:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921556', 'tblTempUsageDetail_20' ) end [2025-04-16 14:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:33:25] Production.INFO: ==28802== Releasing lock... [2025-04-16 14:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:33:25] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:34:05 [end_date_ymd] => 2025-04-16 14:34:05 [RateCDR] => 1 ) [2025-04-16 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:34:05' and `end` < '2025-04-16 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:34:19] Production.INFO: count ==4765 [2025-04-16 14:34:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:34:05 - End Time 2025-04-16 14:34:05 [2025-04-16 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921561', 'tblTempUsageDetail_20' ) start [2025-04-16 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921561', 'tblTempUsageDetail_20' ) end [2025-04-16 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921561', 'tblTempVendorCDR_20' ) start [2025-04-16 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921561', 'tblTempVendorCDR_20' ) end [2025-04-16 14:34:21] Production.INFO: ProcessCDR(1,14921561,1,1,2) [2025-04-16 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921561', 'tblTempUsageDetail_20' ) start [2025-04-16 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921561', 'tblTempUsageDetail_20' ) end [2025-04-16 14:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:34:26] Production.INFO: ==28872== Releasing lock... [2025-04-16 14:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:34:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:35:06 [end_date_ymd] => 2025-04-16 14:35:06 [RateCDR] => 1 ) [2025-04-16 14: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-04-16 11:35:06' and `end` < '2025-04-16 14: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-04-16 14:35:20] Production.INFO: count ==4766 [2025-04-16 14:35:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:35:06 - End Time 2025-04-16 14:35:06 [2025-04-16 14:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921566', 'tblTempUsageDetail_20' ) start [2025-04-16 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921566', 'tblTempUsageDetail_20' ) end [2025-04-16 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921566', 'tblTempVendorCDR_20' ) start [2025-04-16 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921566', 'tblTempVendorCDR_20' ) end [2025-04-16 14:35:22] Production.INFO: ProcessCDR(1,14921566,1,1,2) [2025-04-16 14:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921566', 'tblTempUsageDetail_20' ) start [2025-04-16 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921566', 'tblTempUsageDetail_20' ) end [2025-04-16 14:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:35:27] Production.INFO: ==28945== Releasing lock... [2025-04-16 14:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:35:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:36:05 [end_date_ymd] => 2025-04-16 14:36:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 11:36:05' and `end` < '2025-04-16 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-04-16 14:36:19] Production.INFO: count ==4758 [2025-04-16 14:36:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:36:05 - End Time 2025-04-16 14:36:05 [2025-04-16 14:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921571', 'tblTempUsageDetail_20' ) start [2025-04-16 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921571', 'tblTempUsageDetail_20' ) end [2025-04-16 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921571', 'tblTempVendorCDR_20' ) start [2025-04-16 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921571', 'tblTempVendorCDR_20' ) end [2025-04-16 14:36:21] Production.INFO: ProcessCDR(1,14921571,1,1,2) [2025-04-16 14:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921571', 'tblTempUsageDetail_20' ) start [2025-04-16 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921571', 'tblTempUsageDetail_20' ) end [2025-04-16 14:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:36:26] Production.INFO: ==29017== Releasing lock... [2025-04-16 14:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:36:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:37:06 [end_date_ymd] => 2025-04-16 14:37:06 [RateCDR] => 1 ) [2025-04-16 14: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-04-16 11:37:06' and `end` < '2025-04-16 14: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-04-16 14:37:19] Production.INFO: count ==4750 [2025-04-16 14:37:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:37:06 - End Time 2025-04-16 14:37:06 [2025-04-16 14:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921576', 'tblTempUsageDetail_20' ) start [2025-04-16 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921576', 'tblTempUsageDetail_20' ) end [2025-04-16 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921576', 'tblTempVendorCDR_20' ) start [2025-04-16 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921576', 'tblTempVendorCDR_20' ) end [2025-04-16 14:37:21] Production.INFO: ProcessCDR(1,14921576,1,1,2) [2025-04-16 14:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921576', 'tblTempUsageDetail_20' ) start [2025-04-16 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921576', 'tblTempUsageDetail_20' ) end [2025-04-16 14:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:37:26] Production.INFO: ==29090== Releasing lock... [2025-04-16 14:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:37:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:38:05 [end_date_ymd] => 2025-04-16 14:38:05 [RateCDR] => 1 ) [2025-04-16 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:38:05' and `end` < '2025-04-16 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:38:19] Production.INFO: count ==4748 [2025-04-16 14:38:20] Production.ERROR: pbx CDR StartTime 2025-04-16 11:38:05 - End Time 2025-04-16 14:38:05 [2025-04-16 14:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921581', 'tblTempUsageDetail_20' ) start [2025-04-16 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921581', 'tblTempUsageDetail_20' ) end [2025-04-16 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921581', 'tblTempVendorCDR_20' ) start [2025-04-16 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921581', 'tblTempVendorCDR_20' ) end [2025-04-16 14:38:20] Production.INFO: ProcessCDR(1,14921581,1,1,2) [2025-04-16 14:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921581', 'tblTempUsageDetail_20' ) start [2025-04-16 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921581', 'tblTempUsageDetail_20' ) end [2025-04-16 14:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:38:26] Production.INFO: ==29166== Releasing lock... [2025-04-16 14:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:38:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 14:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:39:06 [end_date_ymd] => 2025-04-16 14:39:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 11:39:06' and `end` < '2025-04-16 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-04-16 14:39:20] Production.INFO: count ==4727 [2025-04-16 14:39:22] Production.ERROR: pbx CDR StartTime 2025-04-16 11:39:06 - End Time 2025-04-16 14:39:06 [2025-04-16 14:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921586', 'tblTempUsageDetail_20' ) start [2025-04-16 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921586', 'tblTempUsageDetail_20' ) end [2025-04-16 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921586', 'tblTempVendorCDR_20' ) start [2025-04-16 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921586', 'tblTempVendorCDR_20' ) end [2025-04-16 14:39:22] Production.INFO: ProcessCDR(1,14921586,1,1,2) [2025-04-16 14:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921586', 'tblTempUsageDetail_20' ) start [2025-04-16 14:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921586', 'tblTempUsageDetail_20' ) end [2025-04-16 14:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:39:27] Production.INFO: ==29238== Releasing lock... [2025-04-16 14:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:39:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:40:06 [end_date_ymd] => 2025-04-16 14:40:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 11:40:06' and `end` < '2025-04-16 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-04-16 14:40:20] Production.INFO: count ==4747 [2025-04-16 14:40:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:40:06 - End Time 2025-04-16 14:40:06 [2025-04-16 14:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921592', 'tblTempUsageDetail_20' ) start [2025-04-16 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921592', 'tblTempUsageDetail_20' ) end [2025-04-16 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921592', 'tblTempVendorCDR_20' ) start [2025-04-16 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921592', 'tblTempVendorCDR_20' ) end [2025-04-16 14:40:22] Production.INFO: ProcessCDR(1,14921592,1,1,2) [2025-04-16 14:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921592', 'tblTempUsageDetail_20' ) start [2025-04-16 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921592', 'tblTempUsageDetail_20' ) end [2025-04-16 14:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:40:27] Production.INFO: ==29350== Releasing lock... [2025-04-16 14:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:40:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:41:05 [end_date_ymd] => 2025-04-16 14:41:05 [RateCDR] => 1 ) [2025-04-16 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:41:05' and `end` < '2025-04-16 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:41:18] Production.INFO: count ==4743 [2025-04-16 14:41:20] Production.ERROR: pbx CDR StartTime 2025-04-16 11:41:05 - End Time 2025-04-16 14:41:05 [2025-04-16 14:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921597', 'tblTempUsageDetail_20' ) start [2025-04-16 14:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921597', 'tblTempUsageDetail_20' ) end [2025-04-16 14:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921597', 'tblTempVendorCDR_20' ) start [2025-04-16 14:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921597', 'tblTempVendorCDR_20' ) end [2025-04-16 14:41:20] Production.INFO: ProcessCDR(1,14921597,1,1,2) [2025-04-16 14:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921597', 'tblTempUsageDetail_20' ) start [2025-04-16 14:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921597', 'tblTempUsageDetail_20' ) end [2025-04-16 14:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:41:25] Production.INFO: ==29426== Releasing lock... [2025-04-16 14:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:41:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:42:05 [end_date_ymd] => 2025-04-16 14:42:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 11:42:05' and `end` < '2025-04-16 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-04-16 14:42:19] Production.INFO: count ==4752 [2025-04-16 14:42:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:42:05 - End Time 2025-04-16 14:42:05 [2025-04-16 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921602', 'tblTempUsageDetail_20' ) start [2025-04-16 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921602', 'tblTempUsageDetail_20' ) end [2025-04-16 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921602', 'tblTempVendorCDR_20' ) start [2025-04-16 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921602', 'tblTempVendorCDR_20' ) end [2025-04-16 14:42:21] Production.INFO: ProcessCDR(1,14921602,1,1,2) [2025-04-16 14:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921602', 'tblTempUsageDetail_20' ) start [2025-04-16 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921602', 'tblTempUsageDetail_20' ) end [2025-04-16 14:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:42:26] Production.INFO: ==29497== Releasing lock... [2025-04-16 14:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:42:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:43:05 [end_date_ymd] => 2025-04-16 14:43:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 11:43:05' and `end` < '2025-04-16 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-04-16 14:43:19] Production.INFO: count ==4751 [2025-04-16 14:43:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:43:05 - End Time 2025-04-16 14:43:05 [2025-04-16 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921607', 'tblTempUsageDetail_20' ) start [2025-04-16 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921607', 'tblTempUsageDetail_20' ) end [2025-04-16 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921607', 'tblTempVendorCDR_20' ) start [2025-04-16 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921607', 'tblTempVendorCDR_20' ) end [2025-04-16 14:43:21] Production.INFO: ProcessCDR(1,14921607,1,1,2) [2025-04-16 14:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921607', 'tblTempUsageDetail_20' ) start [2025-04-16 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921607', 'tblTempUsageDetail_20' ) end [2025-04-16 14:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:43:26] Production.INFO: ==29570== Releasing lock... [2025-04-16 14:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:43:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:44:05 [end_date_ymd] => 2025-04-16 14:44:05 [RateCDR] => 1 ) [2025-04-16 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:44:05' and `end` < '2025-04-16 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:44:18] Production.INFO: count ==4740 [2025-04-16 14:44:20] Production.ERROR: pbx CDR StartTime 2025-04-16 11:44:05 - End Time 2025-04-16 14:44:05 [2025-04-16 14:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921612', 'tblTempUsageDetail_20' ) start [2025-04-16 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921612', 'tblTempUsageDetail_20' ) end [2025-04-16 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921612', 'tblTempVendorCDR_20' ) start [2025-04-16 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921612', 'tblTempVendorCDR_20' ) end [2025-04-16 14:44:20] Production.INFO: ProcessCDR(1,14921612,1,1,2) [2025-04-16 14:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921612', 'tblTempUsageDetail_20' ) start [2025-04-16 14:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921612', 'tblTempUsageDetail_20' ) end [2025-04-16 14:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:44:25] Production.INFO: ==29644== Releasing lock... [2025-04-16 14:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:44:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:45:05 [end_date_ymd] => 2025-04-16 14:45:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 11:45:05' and `end` < '2025-04-16 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-04-16 14:45:19] Production.INFO: count ==4750 [2025-04-16 14:45:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:45:05 - End Time 2025-04-16 14:45:05 [2025-04-16 14:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921617', 'tblTempUsageDetail_20' ) start [2025-04-16 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921617', 'tblTempUsageDetail_20' ) end [2025-04-16 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921617', 'tblTempVendorCDR_20' ) start [2025-04-16 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921617', 'tblTempVendorCDR_20' ) end [2025-04-16 14:45:21] Production.INFO: ProcessCDR(1,14921617,1,1,2) [2025-04-16 14:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921617', 'tblTempUsageDetail_20' ) start [2025-04-16 14:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921617', 'tblTempUsageDetail_20' ) end [2025-04-16 14:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:45:26] Production.INFO: ==29719== Releasing lock... [2025-04-16 14:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:45:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:46:05 [end_date_ymd] => 2025-04-16 14:46:05 [RateCDR] => 1 ) [2025-04-16 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:46:05' and `end` < '2025-04-16 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:46:19] Production.INFO: count ==4742 [2025-04-16 14:46:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:46:05 - End Time 2025-04-16 14:46:05 [2025-04-16 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921622', 'tblTempUsageDetail_20' ) start [2025-04-16 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921622', 'tblTempUsageDetail_20' ) end [2025-04-16 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921622', 'tblTempVendorCDR_20' ) start [2025-04-16 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921622', 'tblTempVendorCDR_20' ) end [2025-04-16 14:46:21] Production.INFO: ProcessCDR(1,14921622,1,1,2) [2025-04-16 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921622', 'tblTempUsageDetail_20' ) start [2025-04-16 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921622', 'tblTempUsageDetail_20' ) end [2025-04-16 14:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:46:26] Production.INFO: ==29798== Releasing lock... [2025-04-16 14:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:46:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:47:05 [end_date_ymd] => 2025-04-16 14:47:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 11:47:05' and `end` < '2025-04-16 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-04-16 14:47:19] Production.INFO: count ==4741 [2025-04-16 14:47:20] Production.ERROR: pbx CDR StartTime 2025-04-16 11:47:05 - End Time 2025-04-16 14:47:05 [2025-04-16 14:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921627', 'tblTempUsageDetail_20' ) start [2025-04-16 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921627', 'tblTempUsageDetail_20' ) end [2025-04-16 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921627', 'tblTempVendorCDR_20' ) start [2025-04-16 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921627', 'tblTempVendorCDR_20' ) end [2025-04-16 14:47:21] Production.INFO: ProcessCDR(1,14921627,1,1,2) [2025-04-16 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921627', 'tblTempUsageDetail_20' ) start [2025-04-16 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921627', 'tblTempUsageDetail_20' ) end [2025-04-16 14:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:47:26] Production.INFO: ==29880== Releasing lock... [2025-04-16 14:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:47:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:48:06 [end_date_ymd] => 2025-04-16 14:48:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 11:48:06' and `end` < '2025-04-16 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-04-16 14:48:19] Production.INFO: count ==4754 [2025-04-16 14:48:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:48:06 - End Time 2025-04-16 14:48:06 [2025-04-16 14:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921632', 'tblTempUsageDetail_20' ) start [2025-04-16 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921632', 'tblTempUsageDetail_20' ) end [2025-04-16 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921632', 'tblTempVendorCDR_20' ) start [2025-04-16 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921632', 'tblTempVendorCDR_20' ) end [2025-04-16 14:48:21] Production.INFO: ProcessCDR(1,14921632,1,1,2) [2025-04-16 14:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921632', 'tblTempUsageDetail_20' ) start [2025-04-16 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921632', 'tblTempUsageDetail_20' ) end [2025-04-16 14:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:48:26] Production.INFO: ==29962== Releasing lock... [2025-04-16 14:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:48:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:49:05 [end_date_ymd] => 2025-04-16 14:49:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 11:49:05' and `end` < '2025-04-16 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-04-16 14:49:19] Production.INFO: count ==4768 [2025-04-16 14:49:20] Production.ERROR: pbx CDR StartTime 2025-04-16 11:49:05 - End Time 2025-04-16 14:49:05 [2025-04-16 14:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921637', 'tblTempUsageDetail_20' ) start [2025-04-16 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921637', 'tblTempUsageDetail_20' ) end [2025-04-16 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921637', 'tblTempVendorCDR_20' ) start [2025-04-16 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921637', 'tblTempVendorCDR_20' ) end [2025-04-16 14:49:21] Production.INFO: ProcessCDR(1,14921637,1,1,2) [2025-04-16 14:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921637', 'tblTempUsageDetail_20' ) start [2025-04-16 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921637', 'tblTempUsageDetail_20' ) end [2025-04-16 14:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:49:26] Production.INFO: ==30035== Releasing lock... [2025-04-16 14:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:49:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:50:06 [end_date_ymd] => 2025-04-16 14:50:06 [RateCDR] => 1 ) [2025-04-16 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:50:06' and `end` < '2025-04-16 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:50:20] Production.INFO: count ==4767 [2025-04-16 14:50:22] Production.ERROR: pbx CDR StartTime 2025-04-16 11:50:06 - End Time 2025-04-16 14:50:06 [2025-04-16 14:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921642', 'tblTempUsageDetail_20' ) start [2025-04-16 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921642', 'tblTempUsageDetail_20' ) end [2025-04-16 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921642', 'tblTempVendorCDR_20' ) start [2025-04-16 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921642', 'tblTempVendorCDR_20' ) end [2025-04-16 14:50:22] Production.INFO: ProcessCDR(1,14921642,1,1,2) [2025-04-16 14:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921642', 'tblTempUsageDetail_20' ) start [2025-04-16 14:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921642', 'tblTempUsageDetail_20' ) end [2025-04-16 14:50:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:50:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:50:26] Production.INFO: ==30110== Releasing lock... [2025-04-16 14:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:50:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:51:05 [end_date_ymd] => 2025-04-16 14:51:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 11:51:05' and `end` < '2025-04-16 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-04-16 14:51:19] Production.INFO: count ==4794 [2025-04-16 14:51:20] Production.ERROR: pbx CDR StartTime 2025-04-16 11:51:05 - End Time 2025-04-16 14:51:05 [2025-04-16 14:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921648', 'tblTempUsageDetail_20' ) start [2025-04-16 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921648', 'tblTempUsageDetail_20' ) end [2025-04-16 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921648', 'tblTempVendorCDR_20' ) start [2025-04-16 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921648', 'tblTempVendorCDR_20' ) end [2025-04-16 14:51:21] Production.INFO: ProcessCDR(1,14921648,1,1,2) [2025-04-16 14:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921648', 'tblTempUsageDetail_20' ) start [2025-04-16 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921648', 'tblTempUsageDetail_20' ) end [2025-04-16 14:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:51:26] Production.INFO: ==30189== Releasing lock... [2025-04-16 14:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:51:26] Production.INFO: 64 MB #Memory Used# [2025-04-16 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:52:05 [end_date_ymd] => 2025-04-16 14:52:05 [RateCDR] => 1 ) [2025-04-16 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:52:05' and `end` < '2025-04-16 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:52:19] Production.INFO: count ==4787 [2025-04-16 14:52:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:52:05 - End Time 2025-04-16 14:52:05 [2025-04-16 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921653', 'tblTempUsageDetail_20' ) start [2025-04-16 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921653', 'tblTempUsageDetail_20' ) end [2025-04-16 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921653', 'tblTempVendorCDR_20' ) start [2025-04-16 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921653', 'tblTempVendorCDR_20' ) end [2025-04-16 14:52:21] Production.INFO: ProcessCDR(1,14921653,1,1,2) [2025-04-16 14:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921653', 'tblTempUsageDetail_20' ) start [2025-04-16 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921653', 'tblTempUsageDetail_20' ) end [2025-04-16 14:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:52:26] Production.INFO: ==30270== Releasing lock... [2025-04-16 14:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:52:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:53:04 [end_date_ymd] => 2025-04-16 14:53:04 [RateCDR] => 1 ) [2025-04-16 14:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:53:04' and `end` < '2025-04-16 14:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:53:18] Production.INFO: count ==4776 [2025-04-16 14:53:20] Production.ERROR: pbx CDR StartTime 2025-04-16 11:53:04 - End Time 2025-04-16 14:53:04 [2025-04-16 14:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921658', 'tblTempUsageDetail_20' ) start [2025-04-16 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921658', 'tblTempUsageDetail_20' ) end [2025-04-16 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921658', 'tblTempVendorCDR_20' ) start [2025-04-16 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921658', 'tblTempVendorCDR_20' ) end [2025-04-16 14:53:20] Production.INFO: ProcessCDR(1,14921658,1,1,2) [2025-04-16 14:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921658', 'tblTempUsageDetail_20' ) start [2025-04-16 14:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921658', 'tblTempUsageDetail_20' ) end [2025-04-16 14:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:53:25] Production.INFO: ==30342== Releasing lock... [2025-04-16 14:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:53:25] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:54:05 [end_date_ymd] => 2025-04-16 14:54:05 [RateCDR] => 1 ) [2025-04-16 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:54:05' and `end` < '2025-04-16 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:54:18] Production.INFO: count ==4787 [2025-04-16 14:54:20] Production.ERROR: pbx CDR StartTime 2025-04-16 11:54:05 - End Time 2025-04-16 14:54:05 [2025-04-16 14:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921663', 'tblTempUsageDetail_20' ) start [2025-04-16 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921663', 'tblTempUsageDetail_20' ) end [2025-04-16 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921663', 'tblTempVendorCDR_20' ) start [2025-04-16 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921663', 'tblTempVendorCDR_20' ) end [2025-04-16 14:54:20] Production.INFO: ProcessCDR(1,14921663,1,1,2) [2025-04-16 14:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921663', 'tblTempUsageDetail_20' ) start [2025-04-16 14:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921663', 'tblTempUsageDetail_20' ) end [2025-04-16 14:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:54:25] Production.INFO: ==30416== Releasing lock... [2025-04-16 14:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:54:25] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:55:05 [end_date_ymd] => 2025-04-16 14:55:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 11:55:05' and `end` < '2025-04-16 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-04-16 14:55:18] Production.INFO: count ==4775 [2025-04-16 14:55:20] Production.ERROR: pbx CDR StartTime 2025-04-16 11:55:05 - End Time 2025-04-16 14:55:05 [2025-04-16 14:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921668', 'tblTempUsageDetail_20' ) start [2025-04-16 14:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921668', 'tblTempUsageDetail_20' ) end [2025-04-16 14:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921668', 'tblTempVendorCDR_20' ) start [2025-04-16 14:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921668', 'tblTempVendorCDR_20' ) end [2025-04-16 14:55:20] Production.INFO: ProcessCDR(1,14921668,1,1,2) [2025-04-16 14:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921668', 'tblTempUsageDetail_20' ) start [2025-04-16 14:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921668', 'tblTempUsageDetail_20' ) end [2025-04-16 14:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:55:25] Production.INFO: ==30530== Releasing lock... [2025-04-16 14:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:55:25] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:56:05 [end_date_ymd] => 2025-04-16 14:56:05 [RateCDR] => 1 ) [2025-04-16 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:56:05' and `end` < '2025-04-16 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:56:19] Production.INFO: count ==4772 [2025-04-16 14:56:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:56:05 - End Time 2025-04-16 14:56:05 [2025-04-16 14:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921673', 'tblTempUsageDetail_20' ) start [2025-04-16 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921673', 'tblTempUsageDetail_20' ) end [2025-04-16 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921673', 'tblTempVendorCDR_20' ) start [2025-04-16 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921673', 'tblTempVendorCDR_20' ) end [2025-04-16 14:56:21] Production.INFO: ProcessCDR(1,14921673,1,1,2) [2025-04-16 14:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921673', 'tblTempUsageDetail_20' ) start [2025-04-16 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921673', 'tblTempUsageDetail_20' ) end [2025-04-16 14:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:56:26] Production.INFO: ==30602== Releasing lock... [2025-04-16 14:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:56:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:57:06 [end_date_ymd] => 2025-04-16 14:57:06 [RateCDR] => 1 ) [2025-04-16 14: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-04-16 11:57:06' and `end` < '2025-04-16 14: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-04-16 14:57:20] Production.INFO: count ==4757 [2025-04-16 14:57:22] Production.ERROR: pbx CDR StartTime 2025-04-16 11:57:06 - End Time 2025-04-16 14:57:06 [2025-04-16 14:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921678', 'tblTempUsageDetail_20' ) start [2025-04-16 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921678', 'tblTempUsageDetail_20' ) end [2025-04-16 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921678', 'tblTempVendorCDR_20' ) start [2025-04-16 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921678', 'tblTempVendorCDR_20' ) end [2025-04-16 14:57:22] Production.INFO: ProcessCDR(1,14921678,1,1,2) [2025-04-16 14:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921678', 'tblTempUsageDetail_20' ) start [2025-04-16 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921678', 'tblTempUsageDetail_20' ) end [2025-04-16 14:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:57:27] Production.INFO: ==30674== Releasing lock... [2025-04-16 14:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:57:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:58:05 [end_date_ymd] => 2025-04-16 14:58:05 [RateCDR] => 1 ) [2025-04-16 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 11:58:05' and `end` < '2025-04-16 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 14:58:19] Production.INFO: count ==4730 [2025-04-16 14:58:20] Production.ERROR: pbx CDR StartTime 2025-04-16 11:58:05 - End Time 2025-04-16 14:58:05 [2025-04-16 14:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921683', 'tblTempUsageDetail_20' ) start [2025-04-16 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921683', 'tblTempUsageDetail_20' ) end [2025-04-16 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921683', 'tblTempVendorCDR_20' ) start [2025-04-16 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921683', 'tblTempVendorCDR_20' ) end [2025-04-16 14:58:21] Production.INFO: ProcessCDR(1,14921683,1,1,2) [2025-04-16 14:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921683', 'tblTempUsageDetail_20' ) start [2025-04-16 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921683', 'tblTempUsageDetail_20' ) end [2025-04-16 14:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:58:26] Production.INFO: ==30746== Releasing lock... [2025-04-16 14:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:58:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 11:59:05 [end_date_ymd] => 2025-04-16 14:59:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 11:59:05' and `end` < '2025-04-16 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-04-16 14:59:19] Production.INFO: count ==4712 [2025-04-16 14:59:21] Production.ERROR: pbx CDR StartTime 2025-04-16 11:59:05 - End Time 2025-04-16 14:59:05 [2025-04-16 14:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921688', 'tblTempUsageDetail_20' ) start [2025-04-16 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921688', 'tblTempUsageDetail_20' ) end [2025-04-16 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921688', 'tblTempVendorCDR_20' ) start [2025-04-16 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921688', 'tblTempVendorCDR_20' ) end [2025-04-16 14:59:21] Production.INFO: ProcessCDR(1,14921688,1,1,2) [2025-04-16 14:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 14:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921688', 'tblTempUsageDetail_20' ) start [2025-04-16 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921688', 'tblTempUsageDetail_20' ) end [2025-04-16 14:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 14:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 14:59:26] Production.INFO: ==30827== Releasing lock... [2025-04-16 14:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 14:59:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:00:05 [end_date_ymd] => 2025-04-16 15:00:05 [RateCDR] => 1 ) [2025-04-16 15:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:00:05' and `end` < '2025-04-16 15:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:00:19] Production.INFO: count ==4711 [2025-04-16 15:00:21] Production.ERROR: pbx CDR StartTime 2025-04-16 12:00:05 - End Time 2025-04-16 15:00:05 [2025-04-16 15:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921693', 'tblTempUsageDetail_20' ) start [2025-04-16 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921693', 'tblTempUsageDetail_20' ) end [2025-04-16 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921693', 'tblTempVendorCDR_20' ) start [2025-04-16 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921693', 'tblTempVendorCDR_20' ) end [2025-04-16 15:00:21] Production.INFO: ProcessCDR(1,14921693,1,1,2) [2025-04-16 15:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921693', 'tblTempUsageDetail_20' ) start [2025-04-16 15:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921693', 'tblTempUsageDetail_20' ) end [2025-04-16 15:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:00:26] Production.INFO: ==30900== Releasing lock... [2025-04-16 15:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:00:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:01:06 [end_date_ymd] => 2025-04-16 15:01:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 12:01:06' and `end` < '2025-04-16 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-04-16 15:01:19] Production.INFO: count ==4686 [2025-04-16 15:01:21] Production.ERROR: pbx CDR StartTime 2025-04-16 12:01:06 - End Time 2025-04-16 15:01:06 [2025-04-16 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921699', 'tblTempUsageDetail_20' ) start [2025-04-16 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921699', 'tblTempUsageDetail_20' ) end [2025-04-16 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921699', 'tblTempVendorCDR_20' ) start [2025-04-16 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921699', 'tblTempVendorCDR_20' ) end [2025-04-16 15:01:21] Production.INFO: ProcessCDR(1,14921699,1,1,2) [2025-04-16 15:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921699', 'tblTempUsageDetail_20' ) start [2025-04-16 15:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921699', 'tblTempUsageDetail_20' ) end [2025-04-16 15:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:01:26] Production.INFO: ==31066== Releasing lock... [2025-04-16 15:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:01:26] Production.INFO: 63 MB #Memory Used# [2025-04-16 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:02:05 [end_date_ymd] => 2025-04-16 15:02:05 [RateCDR] => 1 ) [2025-04-16 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:02:05' and `end` < '2025-04-16 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:02:18] Production.INFO: count ==4680 [2025-04-16 15:02:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:02:05 - End Time 2025-04-16 15:02:05 [2025-04-16 15:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921704', 'tblTempUsageDetail_20' ) start [2025-04-16 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921704', 'tblTempUsageDetail_20' ) end [2025-04-16 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921704', 'tblTempVendorCDR_20' ) start [2025-04-16 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921704', 'tblTempVendorCDR_20' ) end [2025-04-16 15:02:20] Production.INFO: ProcessCDR(1,14921704,1,1,2) [2025-04-16 15:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921704', 'tblTempUsageDetail_20' ) start [2025-04-16 15:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921704', 'tblTempUsageDetail_20' ) end [2025-04-16 15:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:02:25] Production.INFO: ==31147== Releasing lock... [2025-04-16 15:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:02:25] Production.INFO: 63 MB #Memory Used# [2025-04-16 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:03:05 [end_date_ymd] => 2025-04-16 15:03:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 12:03:05' and `end` < '2025-04-16 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-04-16 15:03:19] Production.INFO: count ==4687 [2025-04-16 15:03:21] Production.ERROR: pbx CDR StartTime 2025-04-16 12:03:05 - End Time 2025-04-16 15:03:05 [2025-04-16 15:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921709', 'tblTempUsageDetail_20' ) start [2025-04-16 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921709', 'tblTempUsageDetail_20' ) end [2025-04-16 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921709', 'tblTempVendorCDR_20' ) start [2025-04-16 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921709', 'tblTempVendorCDR_20' ) end [2025-04-16 15:03:21] Production.INFO: ProcessCDR(1,14921709,1,1,2) [2025-04-16 15:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921709', 'tblTempUsageDetail_20' ) start [2025-04-16 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921709', 'tblTempUsageDetail_20' ) end [2025-04-16 15:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:03:26] Production.INFO: ==31231== Releasing lock... [2025-04-16 15:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:03:26] Production.INFO: 63 MB #Memory Used# [2025-04-16 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:04:05 [end_date_ymd] => 2025-04-16 15:04:05 [RateCDR] => 1 ) [2025-04-16 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:04:05' and `end` < '2025-04-16 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:04:19] Production.INFO: count ==4702 [2025-04-16 15:04:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:04:05 - End Time 2025-04-16 15:04:05 [2025-04-16 15:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921714', 'tblTempUsageDetail_20' ) start [2025-04-16 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921714', 'tblTempUsageDetail_20' ) end [2025-04-16 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921714', 'tblTempVendorCDR_20' ) start [2025-04-16 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921714', 'tblTempVendorCDR_20' ) end [2025-04-16 15:04:20] Production.INFO: ProcessCDR(1,14921714,1,1,2) [2025-04-16 15:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921714', 'tblTempUsageDetail_20' ) start [2025-04-16 15:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921714', 'tblTempUsageDetail_20' ) end [2025-04-16 15:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:04:26] Production.INFO: ==31304== Releasing lock... [2025-04-16 15:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:04:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:05:06 [end_date_ymd] => 2025-04-16 15:05:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 12:05:06' and `end` < '2025-04-16 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-04-16 15:05:20] Production.INFO: count ==4687 [2025-04-16 15:05:21] Production.ERROR: pbx CDR StartTime 2025-04-16 12:05:06 - End Time 2025-04-16 15:05:06 [2025-04-16 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921719', 'tblTempUsageDetail_20' ) start [2025-04-16 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921719', 'tblTempUsageDetail_20' ) end [2025-04-16 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921719', 'tblTempVendorCDR_20' ) start [2025-04-16 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921719', 'tblTempVendorCDR_20' ) end [2025-04-16 15:05:21] Production.INFO: ProcessCDR(1,14921719,1,1,2) [2025-04-16 15:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921719', 'tblTempUsageDetail_20' ) start [2025-04-16 15:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921719', 'tblTempUsageDetail_20' ) end [2025-04-16 15:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:05:26] Production.INFO: ==31465== Releasing lock... [2025-04-16 15:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:05:26] Production.INFO: 63 MB #Memory Used# [2025-04-16 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:06:05 [end_date_ymd] => 2025-04-16 15:06:05 [RateCDR] => 1 ) [2025-04-16 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:06:05' and `end` < '2025-04-16 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-04-16 15:06:19] Production.INFO: count ==4691 [2025-04-16 15:06:21] Production.ERROR: pbx CDR StartTime 2025-04-16 12:06:05 - End Time 2025-04-16 15:06:05 [2025-04-16 15:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921724', 'tblTempUsageDetail_20' ) start [2025-04-16 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921724', 'tblTempUsageDetail_20' ) end [2025-04-16 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921724', 'tblTempVendorCDR_20' ) start [2025-04-16 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921724', 'tblTempVendorCDR_20' ) end [2025-04-16 15:06:21] Production.INFO: ProcessCDR(1,14921724,1,1,2) [2025-04-16 15:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921724', 'tblTempUsageDetail_20' ) start [2025-04-16 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921724', 'tblTempUsageDetail_20' ) end [2025-04-16 15:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:06:26] Production.INFO: ==31556== Releasing lock... [2025-04-16 15:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:06:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:07:05 [end_date_ymd] => 2025-04-16 15:07:05 [RateCDR] => 1 ) [2025-04-16 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:07:05' and `end` < '2025-04-16 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:07:19] Production.INFO: count ==4695 [2025-04-16 15:07:21] Production.ERROR: pbx CDR StartTime 2025-04-16 12:07:05 - End Time 2025-04-16 15:07:05 [2025-04-16 15:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921729', 'tblTempUsageDetail_20' ) start [2025-04-16 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921729', 'tblTempUsageDetail_20' ) end [2025-04-16 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921729', 'tblTempVendorCDR_20' ) start [2025-04-16 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921729', 'tblTempVendorCDR_20' ) end [2025-04-16 15:07:21] Production.INFO: ProcessCDR(1,14921729,1,1,2) [2025-04-16 15:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921729', 'tblTempUsageDetail_20' ) start [2025-04-16 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921729', 'tblTempUsageDetail_20' ) end [2025-04-16 15:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:07:26] Production.INFO: ==31636== Releasing lock... [2025-04-16 15:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:07:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:08:05 [end_date_ymd] => 2025-04-16 15:08:05 [RateCDR] => 1 ) [2025-04-16 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:08:05' and `end` < '2025-04-16 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:08:19] Production.INFO: count ==4723 [2025-04-16 15:08:21] Production.ERROR: pbx CDR StartTime 2025-04-16 12:08:05 - End Time 2025-04-16 15:08:05 [2025-04-16 15:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921734', 'tblTempUsageDetail_20' ) start [2025-04-16 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921734', 'tblTempUsageDetail_20' ) end [2025-04-16 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921734', 'tblTempVendorCDR_20' ) start [2025-04-16 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921734', 'tblTempVendorCDR_20' ) end [2025-04-16 15:08:21] Production.INFO: ProcessCDR(1,14921734,1,1,2) [2025-04-16 15:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921734', 'tblTempUsageDetail_20' ) start [2025-04-16 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921734', 'tblTempUsageDetail_20' ) end [2025-04-16 15:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:08:26] Production.INFO: ==31805== Releasing lock... [2025-04-16 15:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:08:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 15:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:09:04 [end_date_ymd] => 2025-04-16 15:09:04 [RateCDR] => 1 ) [2025-04-16 15: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-04-16 12:09:04' and `end` < '2025-04-16 15: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-04-16 15:09:18] Production.INFO: count ==4715 [2025-04-16 15:09:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:09:04 - End Time 2025-04-16 15:09:04 [2025-04-16 15:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921739', 'tblTempUsageDetail_20' ) start [2025-04-16 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921739', 'tblTempUsageDetail_20' ) end [2025-04-16 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921739', 'tblTempVendorCDR_20' ) start [2025-04-16 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921739', 'tblTempVendorCDR_20' ) end [2025-04-16 15:09:20] Production.INFO: ProcessCDR(1,14921739,1,1,2) [2025-04-16 15:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921739', 'tblTempUsageDetail_20' ) start [2025-04-16 15:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921739', 'tblTempUsageDetail_20' ) end [2025-04-16 15:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:09:25] Production.INFO: ==31877== Releasing lock... [2025-04-16 15:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:09:25] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:10:06 [end_date_ymd] => 2025-04-16 15:10:06 [RateCDR] => 1 ) [2025-04-16 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:10:06' and `end` < '2025-04-16 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:10:20] Production.INFO: count ==4703 [2025-04-16 15:10:22] Production.ERROR: pbx CDR StartTime 2025-04-16 12:10:06 - End Time 2025-04-16 15:10:06 [2025-04-16 15:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921745', 'tblTempUsageDetail_20' ) start [2025-04-16 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921745', 'tblTempUsageDetail_20' ) end [2025-04-16 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921745', 'tblTempVendorCDR_20' ) start [2025-04-16 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921745', 'tblTempVendorCDR_20' ) end [2025-04-16 15:10:22] Production.INFO: ProcessCDR(1,14921745,1,1,2) [2025-04-16 15:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921745', 'tblTempUsageDetail_20' ) start [2025-04-16 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921745', 'tblTempUsageDetail_20' ) end [2025-04-16 15:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:10:27] Production.INFO: ==31955== Releasing lock... [2025-04-16 15:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:10:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:11:05 [end_date_ymd] => 2025-04-16 15:11:05 [RateCDR] => 1 ) [2025-04-16 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:11:05' and `end` < '2025-04-16 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:11:18] Production.INFO: count ==4665 [2025-04-16 15:11:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:11:05 - End Time 2025-04-16 15:11:05 [2025-04-16 15:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921750', 'tblTempUsageDetail_20' ) start [2025-04-16 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921750', 'tblTempUsageDetail_20' ) end [2025-04-16 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921750', 'tblTempVendorCDR_20' ) start [2025-04-16 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921750', 'tblTempVendorCDR_20' ) end [2025-04-16 15:11:20] Production.INFO: ProcessCDR(1,14921750,1,1,2) [2025-04-16 15:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921750', 'tblTempUsageDetail_20' ) start [2025-04-16 15:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921750', 'tblTempUsageDetail_20' ) end [2025-04-16 15:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:11:25] Production.INFO: ==32071== Releasing lock... [2025-04-16 15:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:11:25] Production.INFO: 63 MB #Memory Used# [2025-04-16 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:12:05 [end_date_ymd] => 2025-04-16 15:12:05 [RateCDR] => 1 ) [2025-04-16 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:12:05' and `end` < '2025-04-16 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:12:19] Production.INFO: count ==4668 [2025-04-16 15:12:21] Production.ERROR: pbx CDR StartTime 2025-04-16 12:12:05 - End Time 2025-04-16 15:12:05 [2025-04-16 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921755', 'tblTempUsageDetail_20' ) start [2025-04-16 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921755', 'tblTempUsageDetail_20' ) end [2025-04-16 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921755', 'tblTempVendorCDR_20' ) start [2025-04-16 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921755', 'tblTempVendorCDR_20' ) end [2025-04-16 15:12:21] Production.INFO: ProcessCDR(1,14921755,1,1,2) [2025-04-16 15:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921755', 'tblTempUsageDetail_20' ) start [2025-04-16 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921755', 'tblTempUsageDetail_20' ) end [2025-04-16 15:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:12:26] Production.INFO: ==32225== Releasing lock... [2025-04-16 15:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:12:26] Production.INFO: 63 MB #Memory Used# [2025-04-16 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:13:05 [end_date_ymd] => 2025-04-16 15:13:05 [RateCDR] => 1 ) [2025-04-16 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:13:05' and `end` < '2025-04-16 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:13:18] Production.INFO: count ==4674 [2025-04-16 15:13:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:13:05 - End Time 2025-04-16 15:13:05 [2025-04-16 15:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921760', 'tblTempUsageDetail_20' ) start [2025-04-16 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921760', 'tblTempUsageDetail_20' ) end [2025-04-16 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921760', 'tblTempVendorCDR_20' ) start [2025-04-16 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921760', 'tblTempVendorCDR_20' ) end [2025-04-16 15:13:20] Production.INFO: ProcessCDR(1,14921760,1,1,2) [2025-04-16 15:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921760', 'tblTempUsageDetail_20' ) start [2025-04-16 15:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921760', 'tblTempUsageDetail_20' ) end [2025-04-16 15:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:13:25] Production.INFO: ==32317== Releasing lock... [2025-04-16 15:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:13:25] Production.INFO: 63 MB #Memory Used# [2025-04-16 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:14:05 [end_date_ymd] => 2025-04-16 15:14:05 [RateCDR] => 1 ) [2025-04-16 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:14:05' and `end` < '2025-04-16 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:14:19] Production.INFO: count ==4672 [2025-04-16 15:14:21] Production.ERROR: pbx CDR StartTime 2025-04-16 12:14:05 - End Time 2025-04-16 15:14:05 [2025-04-16 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921765', 'tblTempUsageDetail_20' ) start [2025-04-16 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921765', 'tblTempUsageDetail_20' ) end [2025-04-16 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921765', 'tblTempVendorCDR_20' ) start [2025-04-16 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921765', 'tblTempVendorCDR_20' ) end [2025-04-16 15:14:21] Production.INFO: ProcessCDR(1,14921765,1,1,2) [2025-04-16 15:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921765', 'tblTempUsageDetail_20' ) start [2025-04-16 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921765', 'tblTempUsageDetail_20' ) end [2025-04-16 15:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:14:26] Production.INFO: ==32390== Releasing lock... [2025-04-16 15:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:14:26] Production.INFO: 63 MB #Memory Used# [2025-04-16 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:15:05 [end_date_ymd] => 2025-04-16 15:15:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 12:15:05' and `end` < '2025-04-16 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-04-16 15:15:19] Production.INFO: count ==4646 [2025-04-16 15:15:21] Production.ERROR: pbx CDR StartTime 2025-04-16 12:15:05 - End Time 2025-04-16 15:15:05 [2025-04-16 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921770', 'tblTempUsageDetail_20' ) start [2025-04-16 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921770', 'tblTempUsageDetail_20' ) end [2025-04-16 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921770', 'tblTempVendorCDR_20' ) start [2025-04-16 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921770', 'tblTempVendorCDR_20' ) end [2025-04-16 15:15:21] Production.INFO: ProcessCDR(1,14921770,1,1,2) [2025-04-16 15:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921770', 'tblTempUsageDetail_20' ) start [2025-04-16 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921770', 'tblTempUsageDetail_20' ) end [2025-04-16 15:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:15:26] Production.INFO: ==32543== Releasing lock... [2025-04-16 15:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:15:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-16 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:16:05 [end_date_ymd] => 2025-04-16 15:16:05 [RateCDR] => 1 ) [2025-04-16 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:16:05' and `end` < '2025-04-16 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:16:18] Production.INFO: count ==4642 [2025-04-16 15:16:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:16:05 - End Time 2025-04-16 15:16:05 [2025-04-16 15:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921775', 'tblTempUsageDetail_20' ) start [2025-04-16 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921775', 'tblTempUsageDetail_20' ) end [2025-04-16 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921775', 'tblTempVendorCDR_20' ) start [2025-04-16 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921775', 'tblTempVendorCDR_20' ) end [2025-04-16 15:16:20] Production.INFO: ProcessCDR(1,14921775,1,1,2) [2025-04-16 15:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921775', 'tblTempUsageDetail_20' ) start [2025-04-16 15:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921775', 'tblTempUsageDetail_20' ) end [2025-04-16 15:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:16:25] Production.INFO: ==32615== Releasing lock... [2025-04-16 15:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:16:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-16 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:17:05 [end_date_ymd] => 2025-04-16 15:17:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 12:17:05' and `end` < '2025-04-16 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-04-16 15:17:19] Production.INFO: count ==4651 [2025-04-16 15:17:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:17:05 - End Time 2025-04-16 15:17:05 [2025-04-16 15:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921780', 'tblTempUsageDetail_20' ) start [2025-04-16 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921780', 'tblTempUsageDetail_20' ) end [2025-04-16 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921780', 'tblTempVendorCDR_20' ) start [2025-04-16 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921780', 'tblTempVendorCDR_20' ) end [2025-04-16 15:17:20] Production.INFO: ProcessCDR(1,14921780,1,1,2) [2025-04-16 15:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921780', 'tblTempUsageDetail_20' ) start [2025-04-16 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921780', 'tblTempUsageDetail_20' ) end [2025-04-16 15:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:17:25] Production.INFO: ==32695== Releasing lock... [2025-04-16 15:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:17:25] Production.INFO: 63 MB #Memory Used# [2025-04-16 15:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:18:04 [end_date_ymd] => 2025-04-16 15:18:04 [RateCDR] => 1 ) [2025-04-16 15:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:18:04' and `end` < '2025-04-16 15:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:18:18] Production.INFO: count ==4649 [2025-04-16 15:18:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:18:04 - End Time 2025-04-16 15:18:04 [2025-04-16 15:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921785', 'tblTempUsageDetail_20' ) start [2025-04-16 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921785', 'tblTempUsageDetail_20' ) end [2025-04-16 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921785', 'tblTempVendorCDR_20' ) start [2025-04-16 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921785', 'tblTempVendorCDR_20' ) end [2025-04-16 15:18:20] Production.INFO: ProcessCDR(1,14921785,1,1,2) [2025-04-16 15:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921785', 'tblTempUsageDetail_20' ) start [2025-04-16 15:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921785', 'tblTempUsageDetail_20' ) end [2025-04-16 15:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:18:25] Production.INFO: ==305== Releasing lock... [2025-04-16 15:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:18:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-16 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:19:05 [end_date_ymd] => 2025-04-16 15:19:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 12:19:05' and `end` < '2025-04-16 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-04-16 15:19:19] Production.INFO: count ==4643 [2025-04-16 15:19:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:19:05 - End Time 2025-04-16 15:19:05 [2025-04-16 15:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921790', 'tblTempUsageDetail_20' ) start [2025-04-16 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921790', 'tblTempUsageDetail_20' ) end [2025-04-16 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921790', 'tblTempVendorCDR_20' ) start [2025-04-16 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921790', 'tblTempVendorCDR_20' ) end [2025-04-16 15:19:21] Production.INFO: ProcessCDR(1,14921790,1,1,2) [2025-04-16 15:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921790', 'tblTempUsageDetail_20' ) start [2025-04-16 15:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921790', 'tblTempUsageDetail_20' ) end [2025-04-16 15:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:19:25] Production.INFO: ==418== Releasing lock... [2025-04-16 15:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:19:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-16 15:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:20:07 [end_date_ymd] => 2025-04-16 15:20:07 [RateCDR] => 1 ) [2025-04-16 15: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-04-16 12:20:07' and `end` < '2025-04-16 15: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-04-16 15:20:20] Production.INFO: count ==4641 [2025-04-16 15:20:22] Production.ERROR: pbx CDR StartTime 2025-04-16 12:20:07 - End Time 2025-04-16 15:20:07 [2025-04-16 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921796', 'tblTempUsageDetail_20' ) start [2025-04-16 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921796', 'tblTempUsageDetail_20' ) end [2025-04-16 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921796', 'tblTempVendorCDR_20' ) start [2025-04-16 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921796', 'tblTempVendorCDR_20' ) end [2025-04-16 15:20:22] Production.INFO: ProcessCDR(1,14921796,1,1,2) [2025-04-16 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921796', 'tblTempUsageDetail_20' ) start [2025-04-16 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921796', 'tblTempUsageDetail_20' ) end [2025-04-16 15:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:20:28] Production.INFO: ==500== Releasing lock... [2025-04-16 15:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:20:28] Production.INFO: 62.75 MB #Memory Used# [2025-04-16 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:21:05 [end_date_ymd] => 2025-04-16 15:21:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 12:21:05' and `end` < '2025-04-16 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-04-16 15:21:18] Production.INFO: count ==4631 [2025-04-16 15:21:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:21:05 - End Time 2025-04-16 15:21:05 [2025-04-16 15:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921801', 'tblTempUsageDetail_20' ) start [2025-04-16 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921801', 'tblTempUsageDetail_20' ) end [2025-04-16 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921801', 'tblTempVendorCDR_20' ) start [2025-04-16 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921801', 'tblTempVendorCDR_20' ) end [2025-04-16 15:21:20] Production.INFO: ProcessCDR(1,14921801,1,1,2) [2025-04-16 15:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921801', 'tblTempUsageDetail_20' ) start [2025-04-16 15:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921801', 'tblTempUsageDetail_20' ) end [2025-04-16 15:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:21:25] Production.INFO: ==600== Releasing lock... [2025-04-16 15:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:21:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-16 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:22:05 [end_date_ymd] => 2025-04-16 15:22:05 [RateCDR] => 1 ) [2025-04-16 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:22:05' and `end` < '2025-04-16 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:22:19] Production.INFO: count ==4635 [2025-04-16 15:22:21] Production.ERROR: pbx CDR StartTime 2025-04-16 12:22:05 - End Time 2025-04-16 15:22:05 [2025-04-16 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921806', 'tblTempUsageDetail_20' ) start [2025-04-16 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921806', 'tblTempUsageDetail_20' ) end [2025-04-16 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921806', 'tblTempVendorCDR_20' ) start [2025-04-16 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921806', 'tblTempVendorCDR_20' ) end [2025-04-16 15:22:21] Production.INFO: ProcessCDR(1,14921806,1,1,2) [2025-04-16 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921806', 'tblTempUsageDetail_20' ) start [2025-04-16 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921806', 'tblTempUsageDetail_20' ) end [2025-04-16 15:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:22:26] Production.INFO: ==700== Releasing lock... [2025-04-16 15:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:22:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-16 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:23:05 [end_date_ymd] => 2025-04-16 15:23:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 12:23:05' and `end` < '2025-04-16 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-04-16 15:23:18] Production.INFO: count ==4638 [2025-04-16 15:23:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:23:05 - End Time 2025-04-16 15:23:05 [2025-04-16 15:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921811', 'tblTempUsageDetail_20' ) start [2025-04-16 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921811', 'tblTempUsageDetail_20' ) end [2025-04-16 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921811', 'tblTempVendorCDR_20' ) start [2025-04-16 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921811', 'tblTempVendorCDR_20' ) end [2025-04-16 15:23:20] Production.INFO: ProcessCDR(1,14921811,1,1,2) [2025-04-16 15:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921811', 'tblTempUsageDetail_20' ) start [2025-04-16 15:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921811', 'tblTempUsageDetail_20' ) end [2025-04-16 15:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:23:25] Production.INFO: ==781== Releasing lock... [2025-04-16 15:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:23:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-16 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:24:05 [end_date_ymd] => 2025-04-16 15:24:05 [RateCDR] => 1 ) [2025-04-16 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:24:05' and `end` < '2025-04-16 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:24:19] Production.INFO: count ==4633 [2025-04-16 15:24:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:24:05 - End Time 2025-04-16 15:24:05 [2025-04-16 15:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921816', 'tblTempUsageDetail_20' ) start [2025-04-16 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921816', 'tblTempUsageDetail_20' ) end [2025-04-16 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921816', 'tblTempVendorCDR_20' ) start [2025-04-16 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921816', 'tblTempVendorCDR_20' ) end [2025-04-16 15:24:21] Production.INFO: ProcessCDR(1,14921816,1,1,2) [2025-04-16 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921816', 'tblTempUsageDetail_20' ) start [2025-04-16 15:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921816', 'tblTempUsageDetail_20' ) end [2025-04-16 15:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:24:25] Production.INFO: ==875== Releasing lock... [2025-04-16 15:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:24:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-16 15:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:25:04 [end_date_ymd] => 2025-04-16 15:25:04 [RateCDR] => 1 ) [2025-04-16 15:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:25:04' and `end` < '2025-04-16 15:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:25:18] Production.INFO: count ==4611 [2025-04-16 15:25:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:25:04 - End Time 2025-04-16 15:25:04 [2025-04-16 15:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921821', 'tblTempUsageDetail_20' ) start [2025-04-16 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921821', 'tblTempUsageDetail_20' ) end [2025-04-16 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921821', 'tblTempVendorCDR_20' ) start [2025-04-16 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921821', 'tblTempVendorCDR_20' ) end [2025-04-16 15:25:20] Production.INFO: ProcessCDR(1,14921821,1,1,2) [2025-04-16 15:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921821', 'tblTempUsageDetail_20' ) start [2025-04-16 15:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921821', 'tblTempUsageDetail_20' ) end [2025-04-16 15:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:25:25] Production.INFO: ==968== Releasing lock... [2025-04-16 15:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:25:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-16 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:26:06 [end_date_ymd] => 2025-04-16 15:26:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 12:26:06' and `end` < '2025-04-16 15: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-04-16 15:26:19] Production.INFO: count ==4601 [2025-04-16 15:26:21] Production.ERROR: pbx CDR StartTime 2025-04-16 12:26:06 - End Time 2025-04-16 15:26:06 [2025-04-16 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921826', 'tblTempUsageDetail_20' ) start [2025-04-16 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921826', 'tblTempUsageDetail_20' ) end [2025-04-16 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921826', 'tblTempVendorCDR_20' ) start [2025-04-16 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921826', 'tblTempVendorCDR_20' ) end [2025-04-16 15:26:21] Production.INFO: ProcessCDR(1,14921826,1,1,2) [2025-04-16 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921826', 'tblTempUsageDetail_20' ) start [2025-04-16 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921826', 'tblTempUsageDetail_20' ) end [2025-04-16 15:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:26:26] Production.INFO: ==1081== Releasing lock... [2025-04-16 15:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:26:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-16 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:27:05 [end_date_ymd] => 2025-04-16 15:27:05 [RateCDR] => 1 ) [2025-04-16 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:27:05' and `end` < '2025-04-16 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:27:18] Production.INFO: count ==4599 [2025-04-16 15:27:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:27:05 - End Time 2025-04-16 15:27:05 [2025-04-16 15:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921831', 'tblTempUsageDetail_20' ) start [2025-04-16 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921831', 'tblTempUsageDetail_20' ) end [2025-04-16 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921831', 'tblTempVendorCDR_20' ) start [2025-04-16 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921831', 'tblTempVendorCDR_20' ) end [2025-04-16 15:27:20] Production.INFO: ProcessCDR(1,14921831,1,1,2) [2025-04-16 15:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921831', 'tblTempUsageDetail_20' ) start [2025-04-16 15:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921831', 'tblTempUsageDetail_20' ) end [2025-04-16 15:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:27:25] Production.INFO: ==1160== Releasing lock... [2025-04-16 15:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:27:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-16 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:28:05 [end_date_ymd] => 2025-04-16 15:28:05 [RateCDR] => 1 ) [2025-04-16 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:28:05' and `end` < '2025-04-16 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:28:19] Production.INFO: count ==4587 [2025-04-16 15:28:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:28:05 - End Time 2025-04-16 15:28:05 [2025-04-16 15:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921836', 'tblTempUsageDetail_20' ) start [2025-04-16 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921836', 'tblTempUsageDetail_20' ) end [2025-04-16 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921836', 'tblTempVendorCDR_20' ) start [2025-04-16 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921836', 'tblTempVendorCDR_20' ) end [2025-04-16 15:28:21] Production.INFO: ProcessCDR(1,14921836,1,1,2) [2025-04-16 15:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921836', 'tblTempUsageDetail_20' ) start [2025-04-16 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921836', 'tblTempUsageDetail_20' ) end [2025-04-16 15:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:28:26] Production.INFO: ==1245== Releasing lock... [2025-04-16 15:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:28:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-16 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:29:05 [end_date_ymd] => 2025-04-16 15:29:05 [RateCDR] => 1 ) [2025-04-16 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:29:05' and `end` < '2025-04-16 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:29:19] Production.INFO: count ==4569 [2025-04-16 15:29:21] Production.ERROR: pbx CDR StartTime 2025-04-16 12:29:05 - End Time 2025-04-16 15:29:05 [2025-04-16 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921841', 'tblTempUsageDetail_20' ) start [2025-04-16 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921841', 'tblTempUsageDetail_20' ) end [2025-04-16 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921841', 'tblTempVendorCDR_20' ) start [2025-04-16 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921841', 'tblTempVendorCDR_20' ) end [2025-04-16 15:29:21] Production.INFO: ProcessCDR(1,14921841,1,1,2) [2025-04-16 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921841', 'tblTempUsageDetail_20' ) start [2025-04-16 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921841', 'tblTempUsageDetail_20' ) end [2025-04-16 15:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:29:26] Production.INFO: ==1334== Releasing lock... [2025-04-16 15:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:29:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-16 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:30:05 [end_date_ymd] => 2025-04-16 15:30:05 [RateCDR] => 1 ) [2025-04-16 15:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:30:05' and `end` < '2025-04-16 15:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:30:19] Production.INFO: count ==4568 [2025-04-16 15:30:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:30:05 - End Time 2025-04-16 15:30:05 [2025-04-16 15:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921847', 'tblTempUsageDetail_20' ) start [2025-04-16 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921847', 'tblTempUsageDetail_20' ) end [2025-04-16 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921847', 'tblTempVendorCDR_20' ) start [2025-04-16 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921847', 'tblTempVendorCDR_20' ) end [2025-04-16 15:30:21] Production.INFO: ProcessCDR(1,14921847,1,1,2) [2025-04-16 15:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921847', 'tblTempUsageDetail_20' ) start [2025-04-16 15:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921847', 'tblTempUsageDetail_20' ) end [2025-04-16 15:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:30:26] Production.INFO: ==1406== Releasing lock... [2025-04-16 15:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:30:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-16 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:31:05 [end_date_ymd] => 2025-04-16 15:31:05 [RateCDR] => 1 ) [2025-04-16 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:31:05' and `end` < '2025-04-16 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:31:19] Production.INFO: count ==4516 [2025-04-16 15:31:21] Production.ERROR: pbx CDR StartTime 2025-04-16 12:31:05 - End Time 2025-04-16 15:31:05 [2025-04-16 15:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921852', 'tblTempUsageDetail_20' ) start [2025-04-16 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921852', 'tblTempUsageDetail_20' ) end [2025-04-16 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921852', 'tblTempVendorCDR_20' ) start [2025-04-16 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921852', 'tblTempVendorCDR_20' ) end [2025-04-16 15:31:21] Production.INFO: ProcessCDR(1,14921852,1,1,2) [2025-04-16 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921852', 'tblTempUsageDetail_20' ) start [2025-04-16 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921852', 'tblTempUsageDetail_20' ) end [2025-04-16 15:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:31:26] Production.INFO: ==1482== Releasing lock... [2025-04-16 15:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:31:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-16 15:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:32:04 [end_date_ymd] => 2025-04-16 15:32:04 [RateCDR] => 1 ) [2025-04-16 15:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:32:04' and `end` < '2025-04-16 15:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:32:18] Production.INFO: count ==4519 [2025-04-16 15:32:19] Production.ERROR: pbx CDR StartTime 2025-04-16 12:32:04 - End Time 2025-04-16 15:32:04 [2025-04-16 15:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921857', 'tblTempUsageDetail_20' ) start [2025-04-16 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921857', 'tblTempUsageDetail_20' ) end [2025-04-16 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921857', 'tblTempVendorCDR_20' ) start [2025-04-16 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921857', 'tblTempVendorCDR_20' ) end [2025-04-16 15:32:20] Production.INFO: ProcessCDR(1,14921857,1,1,2) [2025-04-16 15:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921857', 'tblTempUsageDetail_20' ) start [2025-04-16 15:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921857', 'tblTempUsageDetail_20' ) end [2025-04-16 15:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:32:25] Production.INFO: ==1595== Releasing lock... [2025-04-16 15:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:32:25] Production.INFO: 61.75 MB #Memory Used# [2025-04-16 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:33:05 [end_date_ymd] => 2025-04-16 15:33:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 12:33:05' and `end` < '2025-04-16 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-04-16 15:33:18] Production.INFO: count ==4512 [2025-04-16 15:33:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:33:05 - End Time 2025-04-16 15:33:05 [2025-04-16 15:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921862', 'tblTempUsageDetail_20' ) start [2025-04-16 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921862', 'tblTempUsageDetail_20' ) end [2025-04-16 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921862', 'tblTempVendorCDR_20' ) start [2025-04-16 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921862', 'tblTempVendorCDR_20' ) end [2025-04-16 15:33:20] Production.INFO: ProcessCDR(1,14921862,1,1,2) [2025-04-16 15:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921862', 'tblTempUsageDetail_20' ) start [2025-04-16 15:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921862', 'tblTempUsageDetail_20' ) end [2025-04-16 15:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:33:25] Production.INFO: ==1681== Releasing lock... [2025-04-16 15:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:33:25] Production.INFO: 61.75 MB #Memory Used# [2025-04-16 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:34:05 [end_date_ymd] => 2025-04-16 15:34:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 12:34:05' and `end` < '2025-04-16 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-04-16 15:34:19] Production.INFO: count ==4494 [2025-04-16 15:34:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:34:05 - End Time 2025-04-16 15:34:05 [2025-04-16 15:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921867', 'tblTempUsageDetail_20' ) start [2025-04-16 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921867', 'tblTempUsageDetail_20' ) end [2025-04-16 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921867', 'tblTempVendorCDR_20' ) start [2025-04-16 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921867', 'tblTempVendorCDR_20' ) end [2025-04-16 15:34:20] Production.INFO: ProcessCDR(1,14921867,1,1,2) [2025-04-16 15:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921867', 'tblTempUsageDetail_20' ) start [2025-04-16 15:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921867', 'tblTempUsageDetail_20' ) end [2025-04-16 15:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:34:25] Production.INFO: ==1754== Releasing lock... [2025-04-16 15:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:34:25] Production.INFO: 62 MB #Memory Used# [2025-04-16 15:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:35:04 [end_date_ymd] => 2025-04-16 15:35:04 [RateCDR] => 1 ) [2025-04-16 15:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:35:04' and `end` < '2025-04-16 15:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:35:18] Production.INFO: count ==4462 [2025-04-16 15:35:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:35:04 - End Time 2025-04-16 15:35:04 [2025-04-16 15:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921872', 'tblTempUsageDetail_20' ) start [2025-04-16 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921872', 'tblTempUsageDetail_20' ) end [2025-04-16 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921872', 'tblTempVendorCDR_20' ) start [2025-04-16 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921872', 'tblTempVendorCDR_20' ) end [2025-04-16 15:35:20] Production.INFO: ProcessCDR(1,14921872,1,1,2) [2025-04-16 15:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921872', 'tblTempUsageDetail_20' ) start [2025-04-16 15:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921872', 'tblTempUsageDetail_20' ) end [2025-04-16 15:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:35:25] Production.INFO: ==1856== Releasing lock... [2025-04-16 15:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:35:25] Production.INFO: 61.5 MB #Memory Used# [2025-04-16 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:36:05 [end_date_ymd] => 2025-04-16 15:36:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 12:36:05' and `end` < '2025-04-16 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-04-16 15:36:19] Production.INFO: count ==4465 [2025-04-16 15:36:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:36:05 - End Time 2025-04-16 15:36:05 [2025-04-16 15:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921877', 'tblTempUsageDetail_20' ) start [2025-04-16 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921877', 'tblTempUsageDetail_20' ) end [2025-04-16 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921877', 'tblTempVendorCDR_20' ) start [2025-04-16 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921877', 'tblTempVendorCDR_20' ) end [2025-04-16 15:36:21] Production.INFO: ProcessCDR(1,14921877,1,1,2) [2025-04-16 15:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921877', 'tblTempUsageDetail_20' ) start [2025-04-16 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921877', 'tblTempUsageDetail_20' ) end [2025-04-16 15:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:36:26] Production.INFO: ==1929== Releasing lock... [2025-04-16 15:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:36:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-16 15:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:37:04 [end_date_ymd] => 2025-04-16 15:37:04 [RateCDR] => 1 ) [2025-04-16 15:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:37:04' and `end` < '2025-04-16 15:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:37:18] Production.INFO: count ==4451 [2025-04-16 15:37:19] Production.ERROR: pbx CDR StartTime 2025-04-16 12:37:04 - End Time 2025-04-16 15:37:04 [2025-04-16 15:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921882', 'tblTempUsageDetail_20' ) start [2025-04-16 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921882', 'tblTempUsageDetail_20' ) end [2025-04-16 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921882', 'tblTempVendorCDR_20' ) start [2025-04-16 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921882', 'tblTempVendorCDR_20' ) end [2025-04-16 15:37:20] Production.INFO: ProcessCDR(1,14921882,1,1,2) [2025-04-16 15:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921882', 'tblTempUsageDetail_20' ) start [2025-04-16 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921882', 'tblTempUsageDetail_20' ) end [2025-04-16 15:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:37:23] Production.INFO: ==2002== Releasing lock... [2025-04-16 15:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:37:23] Production.INFO: 61.25 MB #Memory Used# [2025-04-16 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:38:05 [end_date_ymd] => 2025-04-16 15:38:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 12:38:05' and `end` < '2025-04-16 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-04-16 15:38:19] Production.INFO: count ==4446 [2025-04-16 15:38:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:38:05 - End Time 2025-04-16 15:38:05 [2025-04-16 15:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921887', 'tblTempUsageDetail_20' ) start [2025-04-16 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921887', 'tblTempUsageDetail_20' ) end [2025-04-16 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921887', 'tblTempVendorCDR_20' ) start [2025-04-16 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921887', 'tblTempVendorCDR_20' ) end [2025-04-16 15:38:21] Production.INFO: ProcessCDR(1,14921887,1,1,2) [2025-04-16 15:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921887', 'tblTempUsageDetail_20' ) start [2025-04-16 15:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921887', 'tblTempUsageDetail_20' ) end [2025-04-16 15:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:38:26] Production.INFO: ==2078== Releasing lock... [2025-04-16 15:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:38:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-16 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:39:05 [end_date_ymd] => 2025-04-16 15:39:05 [RateCDR] => 1 ) [2025-04-16 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:39:05' and `end` < '2025-04-16 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:39:19] Production.INFO: count ==4441 [2025-04-16 15:39:21] Production.ERROR: pbx CDR StartTime 2025-04-16 12:39:05 - End Time 2025-04-16 15:39:05 [2025-04-16 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921892', 'tblTempUsageDetail_20' ) start [2025-04-16 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921892', 'tblTempUsageDetail_20' ) end [2025-04-16 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921892', 'tblTempVendorCDR_20' ) start [2025-04-16 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921892', 'tblTempVendorCDR_20' ) end [2025-04-16 15:39:21] Production.INFO: ProcessCDR(1,14921892,1,1,2) [2025-04-16 15:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921892', 'tblTempUsageDetail_20' ) start [2025-04-16 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921892', 'tblTempUsageDetail_20' ) end [2025-04-16 15:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:39:26] Production.INFO: ==2159== Releasing lock... [2025-04-16 15:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:39:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-16 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:40:06 [end_date_ymd] => 2025-04-16 15:40:06 [RateCDR] => 1 ) [2025-04-16 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:40:06' and `end` < '2025-04-16 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:40:20] Production.INFO: count ==4455 [2025-04-16 15:40:21] Production.ERROR: pbx CDR StartTime 2025-04-16 12:40:06 - End Time 2025-04-16 15:40:06 [2025-04-16 15:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921898', 'tblTempUsageDetail_20' ) start [2025-04-16 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921898', 'tblTempUsageDetail_20' ) end [2025-04-16 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921898', 'tblTempVendorCDR_20' ) start [2025-04-16 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921898', 'tblTempVendorCDR_20' ) end [2025-04-16 15:40:21] Production.INFO: ProcessCDR(1,14921898,1,1,2) [2025-04-16 15:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921898', 'tblTempUsageDetail_20' ) start [2025-04-16 15:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921898', 'tblTempUsageDetail_20' ) end [2025-04-16 15:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:40:26] Production.INFO: ==2239== Releasing lock... [2025-04-16 15:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:40:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-16 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:41:05 [end_date_ymd] => 2025-04-16 15:41:05 [RateCDR] => 1 ) [2025-04-16 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:41:05' and `end` < '2025-04-16 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:41:19] Production.INFO: count ==4506 [2025-04-16 15:41:21] Production.ERROR: pbx CDR StartTime 2025-04-16 12:41:05 - End Time 2025-04-16 15:41:05 [2025-04-16 15:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921903', 'tblTempUsageDetail_20' ) start [2025-04-16 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921903', 'tblTempUsageDetail_20' ) end [2025-04-16 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921903', 'tblTempVendorCDR_20' ) start [2025-04-16 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921903', 'tblTempVendorCDR_20' ) end [2025-04-16 15:41:21] Production.INFO: ProcessCDR(1,14921903,1,1,2) [2025-04-16 15:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921903', 'tblTempUsageDetail_20' ) start [2025-04-16 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921903', 'tblTempUsageDetail_20' ) end [2025-04-16 15:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:41:26] Production.INFO: ==2316== Releasing lock... [2025-04-16 15:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:41:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-16 15:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:42:04 [end_date_ymd] => 2025-04-16 15:42:04 [RateCDR] => 1 ) [2025-04-16 15: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-04-16 12:42:04' and `end` < '2025-04-16 15: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-04-16 15:42:19] Production.INFO: count ==4529 [2025-04-16 15:42:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:42:04 - End Time 2025-04-16 15:42:04 [2025-04-16 15:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921908', 'tblTempUsageDetail_20' ) start [2025-04-16 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921908', 'tblTempUsageDetail_20' ) end [2025-04-16 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921908', 'tblTempVendorCDR_20' ) start [2025-04-16 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921908', 'tblTempVendorCDR_20' ) end [2025-04-16 15:42:20] Production.INFO: ProcessCDR(1,14921908,1,1,2) [2025-04-16 15:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921908', 'tblTempUsageDetail_20' ) start [2025-04-16 15:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921908', 'tblTempUsageDetail_20' ) end [2025-04-16 15:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:42:26] Production.INFO: ==2423== Releasing lock... [2025-04-16 15:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:42:26] Production.INFO: 62 MB #Memory Used# [2025-04-16 15:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:43:06 [end_date_ymd] => 2025-04-16 15:43:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 12:43:06' and `end` < '2025-04-16 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-04-16 15:43:20] Production.INFO: count ==4529 [2025-04-16 15:43:21] Production.ERROR: pbx CDR StartTime 2025-04-16 12:43:06 - End Time 2025-04-16 15:43:06 [2025-04-16 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921913', 'tblTempUsageDetail_20' ) start [2025-04-16 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921913', 'tblTempUsageDetail_20' ) end [2025-04-16 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921913', 'tblTempVendorCDR_20' ) start [2025-04-16 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921913', 'tblTempVendorCDR_20' ) end [2025-04-16 15:43:21] Production.INFO: ProcessCDR(1,14921913,1,1,2) [2025-04-16 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921913', 'tblTempUsageDetail_20' ) start [2025-04-16 15:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921913', 'tblTempUsageDetail_20' ) end [2025-04-16 15:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:43:27] Production.INFO: ==2503== Releasing lock... [2025-04-16 15:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:43:27] Production.INFO: 62 MB #Memory Used# [2025-04-16 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:44:05 [end_date_ymd] => 2025-04-16 15:44:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 12:44:05' and `end` < '2025-04-16 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-04-16 15:44:19] Production.INFO: count ==4533 [2025-04-16 15:44:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:44:05 - End Time 2025-04-16 15:44:05 [2025-04-16 15:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921918', 'tblTempUsageDetail_20' ) start [2025-04-16 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921918', 'tblTempUsageDetail_20' ) end [2025-04-16 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921918', 'tblTempVendorCDR_20' ) start [2025-04-16 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921918', 'tblTempVendorCDR_20' ) end [2025-04-16 15:44:20] Production.INFO: ProcessCDR(1,14921918,1,1,2) [2025-04-16 15:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921918', 'tblTempUsageDetail_20' ) start [2025-04-16 15:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921918', 'tblTempUsageDetail_20' ) end [2025-04-16 15:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:44:25] Production.INFO: ==2577== Releasing lock... [2025-04-16 15:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:44:25] Production.INFO: 62 MB #Memory Used# [2025-04-16 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:45:05 [end_date_ymd] => 2025-04-16 15:45:05 [RateCDR] => 1 ) [2025-04-16 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:45:05' and `end` < '2025-04-16 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-04-16 15:45:18] Production.INFO: count ==4558 [2025-04-16 15:45:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:45:05 - End Time 2025-04-16 15:45:05 [2025-04-16 15:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921923', 'tblTempUsageDetail_20' ) start [2025-04-16 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921923', 'tblTempUsageDetail_20' ) end [2025-04-16 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921923', 'tblTempVendorCDR_20' ) start [2025-04-16 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921923', 'tblTempVendorCDR_20' ) end [2025-04-16 15:45:20] Production.INFO: ProcessCDR(1,14921923,1,1,2) [2025-04-16 15:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921923', 'tblTempUsageDetail_20' ) start [2025-04-16 15:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921923', 'tblTempUsageDetail_20' ) end [2025-04-16 15:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:45:25] Production.INFO: ==2650== Releasing lock... [2025-04-16 15:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:45:25] Production.INFO: 62 MB #Memory Used# [2025-04-16 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:46:05 [end_date_ymd] => 2025-04-16 15:46:05 [RateCDR] => 1 ) [2025-04-16 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:46:05' and `end` < '2025-04-16 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:46:19] Production.INFO: count ==4543 [2025-04-16 15:46:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:46:05 - End Time 2025-04-16 15:46:05 [2025-04-16 15:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921928', 'tblTempUsageDetail_20' ) start [2025-04-16 15:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921928', 'tblTempUsageDetail_20' ) end [2025-04-16 15:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921928', 'tblTempVendorCDR_20' ) start [2025-04-16 15:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921928', 'tblTempVendorCDR_20' ) end [2025-04-16 15:46:20] Production.INFO: ProcessCDR(1,14921928,1,1,2) [2025-04-16 15:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921928', 'tblTempUsageDetail_20' ) start [2025-04-16 15:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921928', 'tblTempUsageDetail_20' ) end [2025-04-16 15:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:46:26] Production.INFO: ==2732== Releasing lock... [2025-04-16 15:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:46:26] Production.INFO: 62 MB #Memory Used# [2025-04-16 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:47:05 [end_date_ymd] => 2025-04-16 15:47:05 [RateCDR] => 1 ) [2025-04-16 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:47:05' and `end` < '2025-04-16 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:47:19] Production.INFO: count ==4515 [2025-04-16 15:47:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:47:05 - End Time 2025-04-16 15:47:05 [2025-04-16 15:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921933', 'tblTempUsageDetail_20' ) start [2025-04-16 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921933', 'tblTempUsageDetail_20' ) end [2025-04-16 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921933', 'tblTempVendorCDR_20' ) start [2025-04-16 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921933', 'tblTempVendorCDR_20' ) end [2025-04-16 15:47:20] Production.INFO: ProcessCDR(1,14921933,1,1,2) [2025-04-16 15:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921933', 'tblTempUsageDetail_20' ) start [2025-04-16 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921933', 'tblTempUsageDetail_20' ) end [2025-04-16 15:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:47:28] Production.INFO: ==2806== Releasing lock... [2025-04-16 15:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:47:28] Production.INFO: 62 MB #Memory Used# [2025-04-16 15:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:48:04 [end_date_ymd] => 2025-04-16 15:48:04 [RateCDR] => 1 ) [2025-04-16 15: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-04-16 12:48:04' and `end` < '2025-04-16 15: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-04-16 15:48:18] Production.INFO: count ==4490 [2025-04-16 15:48:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:48:04 - End Time 2025-04-16 15:48:04 [2025-04-16 15:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921938', 'tblTempUsageDetail_20' ) start [2025-04-16 15:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921938', 'tblTempUsageDetail_20' ) end [2025-04-16 15:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921938', 'tblTempVendorCDR_20' ) start [2025-04-16 15:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921938', 'tblTempVendorCDR_20' ) end [2025-04-16 15:48:20] Production.INFO: ProcessCDR(1,14921938,1,1,2) [2025-04-16 15:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921938', 'tblTempUsageDetail_20' ) start [2025-04-16 15:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921938', 'tblTempUsageDetail_20' ) end [2025-04-16 15:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:48:25] Production.INFO: ==2889== Releasing lock... [2025-04-16 15:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:48:25] Production.INFO: 61.5 MB #Memory Used# [2025-04-16 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:49:05 [end_date_ymd] => 2025-04-16 15:49:05 [RateCDR] => 1 ) [2025-04-16 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:49:05' and `end` < '2025-04-16 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:49:19] Production.INFO: count ==4489 [2025-04-16 15:49:21] Production.ERROR: pbx CDR StartTime 2025-04-16 12:49:05 - End Time 2025-04-16 15:49:05 [2025-04-16 15:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921943', 'tblTempUsageDetail_20' ) start [2025-04-16 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921943', 'tblTempUsageDetail_20' ) end [2025-04-16 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921943', 'tblTempVendorCDR_20' ) start [2025-04-16 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921943', 'tblTempVendorCDR_20' ) end [2025-04-16 15:49:21] Production.INFO: ProcessCDR(1,14921943,1,1,2) [2025-04-16 15:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921943', 'tblTempUsageDetail_20' ) start [2025-04-16 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921943', 'tblTempUsageDetail_20' ) end [2025-04-16 15:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:49:26] Production.INFO: ==2972== Releasing lock... [2025-04-16 15:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:49:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-16 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:50:06 [end_date_ymd] => 2025-04-16 15:50:06 [RateCDR] => 1 ) [2025-04-16 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:50:06' and `end` < '2025-04-16 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:50:20] Production.INFO: count ==4516 [2025-04-16 15:50:22] Production.ERROR: pbx CDR StartTime 2025-04-16 12:50:06 - End Time 2025-04-16 15:50:06 [2025-04-16 15:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921949', 'tblTempUsageDetail_20' ) start [2025-04-16 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921949', 'tblTempUsageDetail_20' ) end [2025-04-16 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921949', 'tblTempVendorCDR_20' ) start [2025-04-16 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921949', 'tblTempVendorCDR_20' ) end [2025-04-16 15:50:22] Production.INFO: ProcessCDR(1,14921949,1,1,2) [2025-04-16 15:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921949', 'tblTempUsageDetail_20' ) start [2025-04-16 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921949', 'tblTempUsageDetail_20' ) end [2025-04-16 15:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:50:27] Production.INFO: ==3054== Releasing lock... [2025-04-16 15:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:50:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-16 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:51:05 [end_date_ymd] => 2025-04-16 15:51:05 [RateCDR] => 1 ) [2025-04-16 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:51:05' and `end` < '2025-04-16 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:51:19] Production.INFO: count ==4533 [2025-04-16 15:51:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:51:05 - End Time 2025-04-16 15:51:05 [2025-04-16 15:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921954', 'tblTempUsageDetail_20' ) start [2025-04-16 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921954', 'tblTempUsageDetail_20' ) end [2025-04-16 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921954', 'tblTempVendorCDR_20' ) start [2025-04-16 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921954', 'tblTempVendorCDR_20' ) end [2025-04-16 15:51:21] Production.INFO: ProcessCDR(1,14921954,1,1,2) [2025-04-16 15:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921954', 'tblTempUsageDetail_20' ) start [2025-04-16 15:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921954', 'tblTempUsageDetail_20' ) end [2025-04-16 15:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:51:25] Production.INFO: ==3127== Releasing lock... [2025-04-16 15:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:51:25] Production.INFO: 62 MB #Memory Used# [2025-04-16 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:52:05 [end_date_ymd] => 2025-04-16 15:52:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 12:52:05' and `end` < '2025-04-16 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-04-16 15:52:19] Production.INFO: count ==4561 [2025-04-16 15:52:21] Production.ERROR: pbx CDR StartTime 2025-04-16 12:52:05 - End Time 2025-04-16 15:52:05 [2025-04-16 15:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921959', 'tblTempUsageDetail_20' ) start [2025-04-16 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921959', 'tblTempUsageDetail_20' ) end [2025-04-16 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921959', 'tblTempVendorCDR_20' ) start [2025-04-16 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921959', 'tblTempVendorCDR_20' ) end [2025-04-16 15:52:21] Production.INFO: ProcessCDR(1,14921959,1,1,2) [2025-04-16 15:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921959', 'tblTempUsageDetail_20' ) start [2025-04-16 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921959', 'tblTempUsageDetail_20' ) end [2025-04-16 15:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:52:26] Production.INFO: ==3210== Releasing lock... [2025-04-16 15:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:52:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-16 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:53:05 [end_date_ymd] => 2025-04-16 15:53:05 [RateCDR] => 1 ) [2025-04-16 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:53:05' and `end` < '2025-04-16 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:53:18] Production.INFO: count ==4571 [2025-04-16 15:53:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:53:05 - End Time 2025-04-16 15:53:05 [2025-04-16 15:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921964', 'tblTempUsageDetail_20' ) start [2025-04-16 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921964', 'tblTempUsageDetail_20' ) end [2025-04-16 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921964', 'tblTempVendorCDR_20' ) start [2025-04-16 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921964', 'tblTempVendorCDR_20' ) end [2025-04-16 15:53:20] Production.INFO: ProcessCDR(1,14921964,1,1,2) [2025-04-16 15:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921964', 'tblTempUsageDetail_20' ) start [2025-04-16 15:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921964', 'tblTempUsageDetail_20' ) end [2025-04-16 15:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:53:25] Production.INFO: ==3283== Releasing lock... [2025-04-16 15:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:53:25] Production.INFO: 62.25 MB #Memory Used# [2025-04-16 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:54:05 [end_date_ymd] => 2025-04-16 15:54:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 12:54:05' and `end` < '2025-04-16 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-04-16 15:54:19] Production.INFO: count ==4599 [2025-04-16 15:54:21] Production.ERROR: pbx CDR StartTime 2025-04-16 12:54:05 - End Time 2025-04-16 15:54:05 [2025-04-16 15:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921969', 'tblTempUsageDetail_20' ) start [2025-04-16 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921969', 'tblTempUsageDetail_20' ) end [2025-04-16 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921969', 'tblTempVendorCDR_20' ) start [2025-04-16 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921969', 'tblTempVendorCDR_20' ) end [2025-04-16 15:54:21] Production.INFO: ProcessCDR(1,14921969,1,1,2) [2025-04-16 15:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921969', 'tblTempUsageDetail_20' ) start [2025-04-16 15:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921969', 'tblTempUsageDetail_20' ) end [2025-04-16 15:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:54:26] Production.INFO: ==3360== Releasing lock... [2025-04-16 15:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:54:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-16 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:55:05 [end_date_ymd] => 2025-04-16 15:55:05 [RateCDR] => 1 ) [2025-04-16 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:55:05' and `end` < '2025-04-16 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:55:18] Production.INFO: count ==4602 [2025-04-16 15:55:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:55:05 - End Time 2025-04-16 15:55:05 [2025-04-16 15:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921974', 'tblTempUsageDetail_20' ) start [2025-04-16 15:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921974', 'tblTempUsageDetail_20' ) end [2025-04-16 15:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921974', 'tblTempVendorCDR_20' ) start [2025-04-16 15:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921974', 'tblTempVendorCDR_20' ) end [2025-04-16 15:55:20] Production.INFO: ProcessCDR(1,14921974,1,1,2) [2025-04-16 15:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921974', 'tblTempUsageDetail_20' ) start [2025-04-16 15:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921974', 'tblTempUsageDetail_20' ) end [2025-04-16 15:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:55:25] Production.INFO: ==3435== Releasing lock... [2025-04-16 15:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:55:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-16 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:56:05 [end_date_ymd] => 2025-04-16 15:56:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 12:56:05' and `end` < '2025-04-16 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-04-16 15:56:19] Production.INFO: count ==4587 [2025-04-16 15:56:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:56:05 - End Time 2025-04-16 15:56:05 [2025-04-16 15:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921979', 'tblTempUsageDetail_20' ) start [2025-04-16 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921979', 'tblTempUsageDetail_20' ) end [2025-04-16 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921979', 'tblTempVendorCDR_20' ) start [2025-04-16 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921979', 'tblTempVendorCDR_20' ) end [2025-04-16 15:56:20] Production.INFO: ProcessCDR(1,14921979,1,1,2) [2025-04-16 15:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921979', 'tblTempUsageDetail_20' ) start [2025-04-16 15:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921979', 'tblTempUsageDetail_20' ) end [2025-04-16 15:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:56:25] Production.INFO: ==3509== Releasing lock... [2025-04-16 15:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:56:25] Production.INFO: 62.25 MB #Memory Used# [2025-04-16 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:57:05 [end_date_ymd] => 2025-04-16 15:57:05 [RateCDR] => 1 ) [2025-04-16 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:57:05' and `end` < '2025-04-16 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:57:19] Production.INFO: count ==4591 [2025-04-16 15:57:21] Production.ERROR: pbx CDR StartTime 2025-04-16 12:57:05 - End Time 2025-04-16 15:57:05 [2025-04-16 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921984', 'tblTempUsageDetail_20' ) start [2025-04-16 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921984', 'tblTempUsageDetail_20' ) end [2025-04-16 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921984', 'tblTempVendorCDR_20' ) start [2025-04-16 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921984', 'tblTempVendorCDR_20' ) end [2025-04-16 15:57:21] Production.INFO: ProcessCDR(1,14921984,1,1,2) [2025-04-16 15:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921984', 'tblTempUsageDetail_20' ) start [2025-04-16 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921984', 'tblTempUsageDetail_20' ) end [2025-04-16 15:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:57:26] Production.INFO: ==3630== Releasing lock... [2025-04-16 15:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:57:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-16 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:58:05 [end_date_ymd] => 2025-04-16 15:58:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 12:58:05' and `end` < '2025-04-16 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-04-16 15:58:19] Production.INFO: count ==4589 [2025-04-16 15:58:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:58:05 - End Time 2025-04-16 15:58:05 [2025-04-16 15:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921989', 'tblTempUsageDetail_20' ) start [2025-04-16 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921989', 'tblTempUsageDetail_20' ) end [2025-04-16 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921989', 'tblTempVendorCDR_20' ) start [2025-04-16 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921989', 'tblTempVendorCDR_20' ) end [2025-04-16 15:58:20] Production.INFO: ProcessCDR(1,14921989,1,1,2) [2025-04-16 15:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921989', 'tblTempUsageDetail_20' ) start [2025-04-16 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921989', 'tblTempUsageDetail_20' ) end [2025-04-16 15:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:58:26] Production.INFO: ==3704== Releasing lock... [2025-04-16 15:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:58:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-16 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 12:59:05 [end_date_ymd] => 2025-04-16 15:59:05 [RateCDR] => 1 ) [2025-04-16 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 12:59:05' and `end` < '2025-04-16 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 15:59:19] Production.INFO: count ==4577 [2025-04-16 15:59:20] Production.ERROR: pbx CDR StartTime 2025-04-16 12:59:05 - End Time 2025-04-16 15:59:05 [2025-04-16 15:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921994', 'tblTempUsageDetail_20' ) start [2025-04-16 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14921994', 'tblTempUsageDetail_20' ) end [2025-04-16 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921994', 'tblTempVendorCDR_20' ) start [2025-04-16 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14921994', 'tblTempVendorCDR_20' ) end [2025-04-16 15:59:20] Production.INFO: ProcessCDR(1,14921994,1,1,2) [2025-04-16 15:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14921994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14921994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 15:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14921994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14921994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 15:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921994', 'tblTempUsageDetail_20' ) start [2025-04-16 15:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14921994', 'tblTempUsageDetail_20' ) end [2025-04-16 15:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 15:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 15:59:25] Production.INFO: ==3778== Releasing lock... [2025-04-16 15:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 15:59:25] Production.INFO: 62.25 MB #Memory Used# [2025-04-16 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:00:05 [end_date_ymd] => 2025-04-16 16:00:05 [RateCDR] => 1 ) [2025-04-16 16:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:00:05' and `end` < '2025-04-16 16:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:00:19] Production.INFO: count ==4591 [2025-04-16 16:00:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:00:05 - End Time 2025-04-16 16:00:05 [2025-04-16 16:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922000', 'tblTempUsageDetail_20' ) start [2025-04-16 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922000', 'tblTempUsageDetail_20' ) end [2025-04-16 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922000', 'tblTempVendorCDR_20' ) start [2025-04-16 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922000', 'tblTempVendorCDR_20' ) end [2025-04-16 16:00:21] Production.INFO: ProcessCDR(1,14922000,1,1,2) [2025-04-16 16:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922000', 'tblTempUsageDetail_20' ) start [2025-04-16 16:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922000', 'tblTempUsageDetail_20' ) end [2025-04-16 16:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:00:26] Production.INFO: ==3859== Releasing lock... [2025-04-16 16:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:00:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-16 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:01:05 [end_date_ymd] => 2025-04-16 16:01:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:01:05' and `end` < '2025-04-16 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-04-16 16:01:19] Production.INFO: count ==4611 [2025-04-16 16:01:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:01:05 - End Time 2025-04-16 16:01:05 [2025-04-16 16:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922005', 'tblTempUsageDetail_20' ) start [2025-04-16 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922005', 'tblTempUsageDetail_20' ) end [2025-04-16 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922005', 'tblTempVendorCDR_20' ) start [2025-04-16 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922005', 'tblTempVendorCDR_20' ) end [2025-04-16 16:01:21] Production.INFO: ProcessCDR(1,14922005,1,1,2) [2025-04-16 16:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922005', 'tblTempUsageDetail_20' ) start [2025-04-16 16:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922005', 'tblTempUsageDetail_20' ) end [2025-04-16 16:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:01:24] Production.INFO: ==3948== Releasing lock... [2025-04-16 16:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:01:24] Production.INFO: 62.5 MB #Memory Used# [2025-04-16 16:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:02:04 [end_date_ymd] => 2025-04-16 16:02:04 [RateCDR] => 1 ) [2025-04-16 16:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:02:04' and `end` < '2025-04-16 16:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:02:19] Production.INFO: count ==4615 [2025-04-16 16:02:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:02:04 - End Time 2025-04-16 16:02:04 [2025-04-16 16:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922010', 'tblTempUsageDetail_20' ) start [2025-04-16 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922010', 'tblTempUsageDetail_20' ) end [2025-04-16 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922010', 'tblTempVendorCDR_20' ) start [2025-04-16 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922010', 'tblTempVendorCDR_20' ) end [2025-04-16 16:02:20] Production.INFO: ProcessCDR(1,14922010,1,1,2) [2025-04-16 16:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922010', 'tblTempUsageDetail_20' ) start [2025-04-16 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922010', 'tblTempUsageDetail_20' ) end [2025-04-16 16:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:02:26] Production.INFO: ==4030== Releasing lock... [2025-04-16 16:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:02:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-16 16:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:03:06 [end_date_ymd] => 2025-04-16 16:03:06 [RateCDR] => 1 ) [2025-04-16 16: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-04-16 13:03:06' and `end` < '2025-04-16 16: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-04-16 16:03:19] Production.INFO: count ==4637 [2025-04-16 16:03:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:03:06 - End Time 2025-04-16 16:03:06 [2025-04-16 16:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922015', 'tblTempUsageDetail_20' ) start [2025-04-16 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922015', 'tblTempUsageDetail_20' ) end [2025-04-16 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922015', 'tblTempVendorCDR_20' ) start [2025-04-16 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922015', 'tblTempVendorCDR_20' ) end [2025-04-16 16:03:21] Production.INFO: ProcessCDR(1,14922015,1,1,2) [2025-04-16 16:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922015', 'tblTempUsageDetail_20' ) start [2025-04-16 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922015', 'tblTempUsageDetail_20' ) end [2025-04-16 16:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:03:26] Production.INFO: ==4109== Releasing lock... [2025-04-16 16:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:03:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-16 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:04:05 [end_date_ymd] => 2025-04-16 16:04:05 [RateCDR] => 1 ) [2025-04-16 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:04:05' and `end` < '2025-04-16 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:04:19] Production.INFO: count ==4646 [2025-04-16 16:04:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:04:05 - End Time 2025-04-16 16:04:05 [2025-04-16 16:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922020', 'tblTempUsageDetail_20' ) start [2025-04-16 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922020', 'tblTempUsageDetail_20' ) end [2025-04-16 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922020', 'tblTempVendorCDR_20' ) start [2025-04-16 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922020', 'tblTempVendorCDR_20' ) end [2025-04-16 16:04:20] Production.INFO: ProcessCDR(1,14922020,1,1,2) [2025-04-16 16:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922020', 'tblTempUsageDetail_20' ) start [2025-04-16 16:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922020', 'tblTempUsageDetail_20' ) end [2025-04-16 16:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:04:26] Production.INFO: ==4180== Releasing lock... [2025-04-16 16:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:04:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-16 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:05:05 [end_date_ymd] => 2025-04-16 16:05:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:05:05' and `end` < '2025-04-16 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-04-16 16:05:19] Production.INFO: count ==4658 [2025-04-16 16:05:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:05:05 - End Time 2025-04-16 16:05:05 [2025-04-16 16:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922025', 'tblTempUsageDetail_20' ) start [2025-04-16 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922025', 'tblTempUsageDetail_20' ) end [2025-04-16 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922025', 'tblTempVendorCDR_20' ) start [2025-04-16 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922025', 'tblTempVendorCDR_20' ) end [2025-04-16 16:05:21] Production.INFO: ProcessCDR(1,14922025,1,1,2) [2025-04-16 16:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922025', 'tblTempUsageDetail_20' ) start [2025-04-16 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922025', 'tblTempUsageDetail_20' ) end [2025-04-16 16:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:05:26] Production.INFO: ==4255== Releasing lock... [2025-04-16 16:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:05:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-16 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:06:06 [end_date_ymd] => 2025-04-16 16:06:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:06:06' and `end` < '2025-04-16 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-04-16 16:06:19] Production.INFO: count ==4671 [2025-04-16 16:06:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:06:06 - End Time 2025-04-16 16:06:06 [2025-04-16 16:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922030', 'tblTempUsageDetail_20' ) start [2025-04-16 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922030', 'tblTempUsageDetail_20' ) end [2025-04-16 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922030', 'tblTempVendorCDR_20' ) start [2025-04-16 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922030', 'tblTempVendorCDR_20' ) end [2025-04-16 16:06:21] Production.INFO: ProcessCDR(1,14922030,1,1,2) [2025-04-16 16:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922030', 'tblTempUsageDetail_20' ) start [2025-04-16 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922030', 'tblTempUsageDetail_20' ) end [2025-04-16 16:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:06:26] Production.INFO: ==4327== Releasing lock... [2025-04-16 16:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:06:26] Production.INFO: 63 MB #Memory Used# [2025-04-16 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:07:05 [end_date_ymd] => 2025-04-16 16:07:05 [RateCDR] => 1 ) [2025-04-16 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:07:05' and `end` < '2025-04-16 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:07:19] Production.INFO: count ==4672 [2025-04-16 16:07:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:07:05 - End Time 2025-04-16 16:07:05 [2025-04-16 16:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922035', 'tblTempUsageDetail_20' ) start [2025-04-16 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922035', 'tblTempUsageDetail_20' ) end [2025-04-16 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922035', 'tblTempVendorCDR_20' ) start [2025-04-16 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922035', 'tblTempVendorCDR_20' ) end [2025-04-16 16:07:21] Production.INFO: ProcessCDR(1,14922035,1,1,2) [2025-04-16 16:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922035', 'tblTempUsageDetail_20' ) start [2025-04-16 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922035', 'tblTempUsageDetail_20' ) end [2025-04-16 16:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:07:26] Production.INFO: ==4399== Releasing lock... [2025-04-16 16:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:07:26] Production.INFO: 63 MB #Memory Used# [2025-04-16 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:08:05 [end_date_ymd] => 2025-04-16 16:08:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:08:05' and `end` < '2025-04-16 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-04-16 16:08:19] Production.INFO: count ==4675 [2025-04-16 16:08:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:08:05 - End Time 2025-04-16 16:08:05 [2025-04-16 16:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922040', 'tblTempUsageDetail_20' ) start [2025-04-16 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922040', 'tblTempUsageDetail_20' ) end [2025-04-16 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922040', 'tblTempVendorCDR_20' ) start [2025-04-16 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922040', 'tblTempVendorCDR_20' ) end [2025-04-16 16:08:21] Production.INFO: ProcessCDR(1,14922040,1,1,2) [2025-04-16 16:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922040', 'tblTempUsageDetail_20' ) start [2025-04-16 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922040', 'tblTempUsageDetail_20' ) end [2025-04-16 16:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:08:26] Production.INFO: ==4484== Releasing lock... [2025-04-16 16:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:08:26] Production.INFO: 63 MB #Memory Used# [2025-04-16 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:09:05 [end_date_ymd] => 2025-04-16 16:09:05 [RateCDR] => 1 ) [2025-04-16 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:09:05' and `end` < '2025-04-16 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-04-16 16:09:19] Production.INFO: count ==4668 [2025-04-16 16:09:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:09:05 - End Time 2025-04-16 16:09:05 [2025-04-16 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922045', 'tblTempUsageDetail_20' ) start [2025-04-16 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922045', 'tblTempUsageDetail_20' ) end [2025-04-16 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922045', 'tblTempVendorCDR_20' ) start [2025-04-16 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922045', 'tblTempVendorCDR_20' ) end [2025-04-16 16:09:21] Production.INFO: ProcessCDR(1,14922045,1,1,2) [2025-04-16 16:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922045', 'tblTempUsageDetail_20' ) start [2025-04-16 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922045', 'tblTempUsageDetail_20' ) end [2025-04-16 16:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:09:26] Production.INFO: ==4559== Releasing lock... [2025-04-16 16:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:09:26] Production.INFO: 63 MB #Memory Used# [2025-04-16 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:10:06 [end_date_ymd] => 2025-04-16 16:10:06 [RateCDR] => 1 ) [2025-04-16 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:10:06' and `end` < '2025-04-16 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:10:19] Production.INFO: count ==4686 [2025-04-16 16:10:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:10:06 - End Time 2025-04-16 16:10:06 [2025-04-16 16:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922051', 'tblTempUsageDetail_20' ) start [2025-04-16 16:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922051', 'tblTempUsageDetail_20' ) end [2025-04-16 16:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922051', 'tblTempVendorCDR_20' ) start [2025-04-16 16:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922051', 'tblTempVendorCDR_20' ) end [2025-04-16 16:10:21] Production.INFO: ProcessCDR(1,14922051,1,1,2) [2025-04-16 16:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922051', 'tblTempUsageDetail_20' ) start [2025-04-16 16:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922051', 'tblTempUsageDetail_20' ) end [2025-04-16 16:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:10:26] Production.INFO: ==4643== Releasing lock... [2025-04-16 16:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:10:26] Production.INFO: 63 MB #Memory Used# [2025-04-16 16:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:11:04 [end_date_ymd] => 2025-04-16 16:11:04 [RateCDR] => 1 ) [2025-04-16 16:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:11:04' and `end` < '2025-04-16 16: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-04-16 16:11:18] Production.INFO: count ==4707 [2025-04-16 16:11:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:11:04 - End Time 2025-04-16 16:11:04 [2025-04-16 16:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922056', 'tblTempUsageDetail_20' ) start [2025-04-16 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922056', 'tblTempUsageDetail_20' ) end [2025-04-16 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922056', 'tblTempVendorCDR_20' ) start [2025-04-16 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922056', 'tblTempVendorCDR_20' ) end [2025-04-16 16:11:20] Production.INFO: ProcessCDR(1,14922056,1,1,2) [2025-04-16 16:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922056', 'tblTempUsageDetail_20' ) start [2025-04-16 16:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922056', 'tblTempUsageDetail_20' ) end [2025-04-16 16:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:11:25] Production.INFO: ==4719== Releasing lock... [2025-04-16 16:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:11:25] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:12:05 [end_date_ymd] => 2025-04-16 16:12:05 [RateCDR] => 1 ) [2025-04-16 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:12:05' and `end` < '2025-04-16 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:12:19] Production.INFO: count ==4716 [2025-04-16 16:12:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:12:05 - End Time 2025-04-16 16:12:05 [2025-04-16 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922061', 'tblTempUsageDetail_20' ) start [2025-04-16 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922061', 'tblTempUsageDetail_20' ) end [2025-04-16 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922061', 'tblTempVendorCDR_20' ) start [2025-04-16 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922061', 'tblTempVendorCDR_20' ) end [2025-04-16 16:12:21] Production.INFO: ProcessCDR(1,14922061,1,1,2) [2025-04-16 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922061', 'tblTempUsageDetail_20' ) start [2025-04-16 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922061', 'tblTempUsageDetail_20' ) end [2025-04-16 16:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:12:26] Production.INFO: ==4791== Releasing lock... [2025-04-16 16:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:12:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:13:05 [end_date_ymd] => 2025-04-16 16:13:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:13:05' and `end` < '2025-04-16 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-04-16 16:13:19] Production.INFO: count ==4705 [2025-04-16 16:13:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:13:05 - End Time 2025-04-16 16:13:05 [2025-04-16 16:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922066', 'tblTempUsageDetail_20' ) start [2025-04-16 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922066', 'tblTempUsageDetail_20' ) end [2025-04-16 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922066', 'tblTempVendorCDR_20' ) start [2025-04-16 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922066', 'tblTempVendorCDR_20' ) end [2025-04-16 16:13:20] Production.INFO: ProcessCDR(1,14922066,1,1,2) [2025-04-16 16:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922066', 'tblTempUsageDetail_20' ) start [2025-04-16 16:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922066', 'tblTempUsageDetail_20' ) end [2025-04-16 16:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:13:25] Production.INFO: ==4915== Releasing lock... [2025-04-16 16:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:13:25] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:14:05 [end_date_ymd] => 2025-04-16 16:14:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:14:05' and `end` < '2025-04-16 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-04-16 16:14:19] Production.INFO: count ==4688 [2025-04-16 16:14:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:14:05 - End Time 2025-04-16 16:14:05 [2025-04-16 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922071', 'tblTempUsageDetail_20' ) start [2025-04-16 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922071', 'tblTempUsageDetail_20' ) end [2025-04-16 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922071', 'tblTempVendorCDR_20' ) start [2025-04-16 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922071', 'tblTempVendorCDR_20' ) end [2025-04-16 16:14:21] Production.INFO: ProcessCDR(1,14922071,1,1,2) [2025-04-16 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922071', 'tblTempUsageDetail_20' ) start [2025-04-16 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922071', 'tblTempUsageDetail_20' ) end [2025-04-16 16:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:14:26] Production.INFO: ==4989== Releasing lock... [2025-04-16 16:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:14:26] Production.INFO: 63 MB #Memory Used# [2025-04-16 16:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:15:04 [end_date_ymd] => 2025-04-16 16:15:04 [RateCDR] => 1 ) [2025-04-16 16:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:15:04' and `end` < '2025-04-16 16:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:15:18] Production.INFO: count ==4677 [2025-04-16 16:15:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:15:04 - End Time 2025-04-16 16:15:04 [2025-04-16 16:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922076', 'tblTempUsageDetail_20' ) start [2025-04-16 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922076', 'tblTempUsageDetail_20' ) end [2025-04-16 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922076', 'tblTempVendorCDR_20' ) start [2025-04-16 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922076', 'tblTempVendorCDR_20' ) end [2025-04-16 16:15:20] Production.INFO: ProcessCDR(1,14922076,1,1,2) [2025-04-16 16:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922076', 'tblTempUsageDetail_20' ) start [2025-04-16 16:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922076', 'tblTempUsageDetail_20' ) end [2025-04-16 16:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:15:25] Production.INFO: ==5090== Releasing lock... [2025-04-16 16:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:15:25] Production.INFO: 63 MB #Memory Used# [2025-04-16 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:16:05 [end_date_ymd] => 2025-04-16 16:16:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:16:05' and `end` < '2025-04-16 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-04-16 16:16:19] Production.INFO: count ==4659 [2025-04-16 16:16:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:16:05 - End Time 2025-04-16 16:16:05 [2025-04-16 16:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922081', 'tblTempUsageDetail_20' ) start [2025-04-16 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922081', 'tblTempUsageDetail_20' ) end [2025-04-16 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922081', 'tblTempVendorCDR_20' ) start [2025-04-16 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922081', 'tblTempVendorCDR_20' ) end [2025-04-16 16:16:21] Production.INFO: ProcessCDR(1,14922081,1,1,2) [2025-04-16 16:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922081', 'tblTempUsageDetail_20' ) start [2025-04-16 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922081', 'tblTempUsageDetail_20' ) end [2025-04-16 16:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:16:26] Production.INFO: ==5174== Releasing lock... [2025-04-16 16:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:16:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-16 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:17:05 [end_date_ymd] => 2025-04-16 16:17:05 [RateCDR] => 1 ) [2025-04-16 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:17:05' and `end` < '2025-04-16 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:17:18] Production.INFO: count ==4668 [2025-04-16 16:17:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:17:05 - End Time 2025-04-16 16:17:05 [2025-04-16 16:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922086', 'tblTempUsageDetail_20' ) start [2025-04-16 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922086', 'tblTempUsageDetail_20' ) end [2025-04-16 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922086', 'tblTempVendorCDR_20' ) start [2025-04-16 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922086', 'tblTempVendorCDR_20' ) end [2025-04-16 16:17:20] Production.INFO: ProcessCDR(1,14922086,1,1,2) [2025-04-16 16:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922086', 'tblTempUsageDetail_20' ) start [2025-04-16 16:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922086', 'tblTempUsageDetail_20' ) end [2025-04-16 16:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:17:25] Production.INFO: ==5252== Releasing lock... [2025-04-16 16:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:17:25] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:18:05 [end_date_ymd] => 2025-04-16 16:18:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:18:05' and `end` < '2025-04-16 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-04-16 16:18:19] Production.INFO: count ==4667 [2025-04-16 16:18:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:18:05 - End Time 2025-04-16 16:18:05 [2025-04-16 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922091', 'tblTempUsageDetail_20' ) start [2025-04-16 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922091', 'tblTempUsageDetail_20' ) end [2025-04-16 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922091', 'tblTempVendorCDR_20' ) start [2025-04-16 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922091', 'tblTempVendorCDR_20' ) end [2025-04-16 16:18:21] Production.INFO: ProcessCDR(1,14922091,1,1,2) [2025-04-16 16:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922091', 'tblTempUsageDetail_20' ) start [2025-04-16 16:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922091', 'tblTempUsageDetail_20' ) end [2025-04-16 16:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:18:24] Production.INFO: ==5325== Releasing lock... [2025-04-16 16:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:18:24] Production.INFO: 63 MB #Memory Used# [2025-04-16 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:19:05 [end_date_ymd] => 2025-04-16 16:19:05 [RateCDR] => 1 ) [2025-04-16 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:19:05' and `end` < '2025-04-16 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:19:19] Production.INFO: count ==4666 [2025-04-16 16:19:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:19:05 - End Time 2025-04-16 16:19:05 [2025-04-16 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922096', 'tblTempUsageDetail_20' ) start [2025-04-16 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922096', 'tblTempUsageDetail_20' ) end [2025-04-16 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922096', 'tblTempVendorCDR_20' ) start [2025-04-16 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922096', 'tblTempVendorCDR_20' ) end [2025-04-16 16:19:21] Production.INFO: ProcessCDR(1,14922096,1,1,2) [2025-04-16 16:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922096', 'tblTempUsageDetail_20' ) start [2025-04-16 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922096', 'tblTempUsageDetail_20' ) end [2025-04-16 16:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:19:26] Production.INFO: ==5398== Releasing lock... [2025-04-16 16:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:19:26] Production.INFO: 63 MB #Memory Used# [2025-04-16 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:20:06 [end_date_ymd] => 2025-04-16 16:20:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:20:06' and `end` < '2025-04-16 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-04-16 16:20:19] Production.INFO: count ==4653 [2025-04-16 16:20:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:20:06 - End Time 2025-04-16 16:20:06 [2025-04-16 16:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922101', 'tblTempUsageDetail_20' ) start [2025-04-16 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922101', 'tblTempUsageDetail_20' ) end [2025-04-16 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922101', 'tblTempVendorCDR_20' ) start [2025-04-16 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922101', 'tblTempVendorCDR_20' ) end [2025-04-16 16:20:21] Production.INFO: ProcessCDR(1,14922101,1,1,2) [2025-04-16 16:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922101', 'tblTempUsageDetail_20' ) start [2025-04-16 16:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922101', 'tblTempUsageDetail_20' ) end [2025-04-16 16:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:20:26] Production.INFO: ==5476== Releasing lock... [2025-04-16 16:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:20:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-16 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:21:05 [end_date_ymd] => 2025-04-16 16:21:05 [RateCDR] => 1 ) [2025-04-16 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:21:05' and `end` < '2025-04-16 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:21:19] Production.INFO: count ==4640 [2025-04-16 16:21:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:21:05 - End Time 2025-04-16 16:21:05 [2025-04-16 16:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922107', 'tblTempUsageDetail_20' ) start [2025-04-16 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922107', 'tblTempUsageDetail_20' ) end [2025-04-16 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922107', 'tblTempVendorCDR_20' ) start [2025-04-16 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922107', 'tblTempVendorCDR_20' ) end [2025-04-16 16:21:20] Production.INFO: ProcessCDR(1,14922107,1,1,2) [2025-04-16 16:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922107', 'tblTempUsageDetail_20' ) start [2025-04-16 16:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922107', 'tblTempUsageDetail_20' ) end [2025-04-16 16:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:21:25] Production.INFO: ==5551== Releasing lock... [2025-04-16 16:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:21:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-16 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:22:05 [end_date_ymd] => 2025-04-16 16:22:05 [RateCDR] => 1 ) [2025-04-16 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:22:05' and `end` < '2025-04-16 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:22:19] Production.INFO: count ==4698 [2025-04-16 16:22:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:22:05 - End Time 2025-04-16 16:22:05 [2025-04-16 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922112', 'tblTempUsageDetail_20' ) start [2025-04-16 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922112', 'tblTempUsageDetail_20' ) end [2025-04-16 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922112', 'tblTempVendorCDR_20' ) start [2025-04-16 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922112', 'tblTempVendorCDR_20' ) end [2025-04-16 16:22:21] Production.INFO: ProcessCDR(1,14922112,1,1,2) [2025-04-16 16:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922112', 'tblTempUsageDetail_20' ) start [2025-04-16 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922112', 'tblTempUsageDetail_20' ) end [2025-04-16 16:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:22:26] Production.INFO: ==5630== Releasing lock... [2025-04-16 16:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:22:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 16:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:23:06 [end_date_ymd] => 2025-04-16 16:23:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:23:06' and `end` < '2025-04-16 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-04-16 16:23:20] Production.INFO: count ==4718 [2025-04-16 16:23:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:23:06 - End Time 2025-04-16 16:23:06 [2025-04-16 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922117', 'tblTempUsageDetail_20' ) start [2025-04-16 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922117', 'tblTempUsageDetail_20' ) end [2025-04-16 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922117', 'tblTempVendorCDR_20' ) start [2025-04-16 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922117', 'tblTempVendorCDR_20' ) end [2025-04-16 16:23:21] Production.INFO: ProcessCDR(1,14922117,1,1,2) [2025-04-16 16:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922117', 'tblTempUsageDetail_20' ) start [2025-04-16 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922117', 'tblTempUsageDetail_20' ) end [2025-04-16 16:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:23:26] Production.INFO: ==5707== Releasing lock... [2025-04-16 16:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:23:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:24:05 [end_date_ymd] => 2025-04-16 16:24:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:24:05' and `end` < '2025-04-16 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-04-16 16:24:19] Production.INFO: count ==4721 [2025-04-16 16:24:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:24:05 - End Time 2025-04-16 16:24:05 [2025-04-16 16:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922122', 'tblTempUsageDetail_20' ) start [2025-04-16 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922122', 'tblTempUsageDetail_20' ) end [2025-04-16 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922122', 'tblTempVendorCDR_20' ) start [2025-04-16 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922122', 'tblTempVendorCDR_20' ) end [2025-04-16 16:24:21] Production.INFO: ProcessCDR(1,14922122,1,1,2) [2025-04-16 16:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922122', 'tblTempUsageDetail_20' ) start [2025-04-16 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922122', 'tblTempUsageDetail_20' ) end [2025-04-16 16:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:24:26] Production.INFO: ==5783== Releasing lock... [2025-04-16 16:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:24:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:25:05 [end_date_ymd] => 2025-04-16 16:25:05 [RateCDR] => 1 ) [2025-04-16 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:25:05' and `end` < '2025-04-16 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:25:19] Production.INFO: count ==4748 [2025-04-16 16:25:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:25:05 - End Time 2025-04-16 16:25:05 [2025-04-16 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922127', 'tblTempUsageDetail_20' ) start [2025-04-16 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922127', 'tblTempUsageDetail_20' ) end [2025-04-16 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922127', 'tblTempVendorCDR_20' ) start [2025-04-16 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922127', 'tblTempVendorCDR_20' ) end [2025-04-16 16:25:21] Production.INFO: ProcessCDR(1,14922127,1,1,2) [2025-04-16 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922127', 'tblTempUsageDetail_20' ) start [2025-04-16 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922127', 'tblTempUsageDetail_20' ) end [2025-04-16 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:25:26] Production.INFO: ==5859== Releasing lock... [2025-04-16 16:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:25:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 16:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:26:06 [end_date_ymd] => 2025-04-16 16:26:06 [RateCDR] => 1 ) [2025-04-16 16:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:26:06' and `end` < '2025-04-16 16:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:26:20] Production.INFO: count ==4751 [2025-04-16 16:26:22] Production.ERROR: pbx CDR StartTime 2025-04-16 13:26:06 - End Time 2025-04-16 16:26:06 [2025-04-16 16:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922132', 'tblTempUsageDetail_20' ) start [2025-04-16 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922132', 'tblTempUsageDetail_20' ) end [2025-04-16 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922132', 'tblTempVendorCDR_20' ) start [2025-04-16 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922132', 'tblTempVendorCDR_20' ) end [2025-04-16 16:26:22] Production.INFO: ProcessCDR(1,14922132,1,1,2) [2025-04-16 16:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922132', 'tblTempUsageDetail_20' ) start [2025-04-16 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922132', 'tblTempUsageDetail_20' ) end [2025-04-16 16:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:26:26] Production.INFO: ==5940== Releasing lock... [2025-04-16 16:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:26:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:27:05 [end_date_ymd] => 2025-04-16 16:27:05 [RateCDR] => 1 ) [2025-04-16 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:27:05' and `end` < '2025-04-16 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:27:18] Production.INFO: count ==4750 [2025-04-16 16:27:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:27:05 - End Time 2025-04-16 16:27:05 [2025-04-16 16:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922137', 'tblTempUsageDetail_20' ) start [2025-04-16 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922137', 'tblTempUsageDetail_20' ) end [2025-04-16 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922137', 'tblTempVendorCDR_20' ) start [2025-04-16 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922137', 'tblTempVendorCDR_20' ) end [2025-04-16 16:27:20] Production.INFO: ProcessCDR(1,14922137,1,1,2) [2025-04-16 16:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922137', 'tblTempUsageDetail_20' ) start [2025-04-16 16:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922137', 'tblTempUsageDetail_20' ) end [2025-04-16 16:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:27:25] Production.INFO: ==6015== Releasing lock... [2025-04-16 16:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:27:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:28:05 [end_date_ymd] => 2025-04-16 16:28:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:28:05' and `end` < '2025-04-16 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-04-16 16:28:19] Production.INFO: count ==4745 [2025-04-16 16:28:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:28:05 - End Time 2025-04-16 16:28:05 [2025-04-16 16:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922142', 'tblTempUsageDetail_20' ) start [2025-04-16 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922142', 'tblTempUsageDetail_20' ) end [2025-04-16 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922142', 'tblTempVendorCDR_20' ) start [2025-04-16 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922142', 'tblTempVendorCDR_20' ) end [2025-04-16 16:28:21] Production.INFO: ProcessCDR(1,14922142,1,1,2) [2025-04-16 16:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922142', 'tblTempUsageDetail_20' ) start [2025-04-16 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922142', 'tblTempUsageDetail_20' ) end [2025-04-16 16:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:28:26] Production.INFO: ==6133== Releasing lock... [2025-04-16 16:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:28:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:29:05 [end_date_ymd] => 2025-04-16 16:29:05 [RateCDR] => 1 ) [2025-04-16 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:29:05' and `end` < '2025-04-16 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:29:18] Production.INFO: count ==4740 [2025-04-16 16:29:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:29:05 - End Time 2025-04-16 16:29:05 [2025-04-16 16:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922147', 'tblTempUsageDetail_20' ) start [2025-04-16 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922147', 'tblTempUsageDetail_20' ) end [2025-04-16 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922147', 'tblTempVendorCDR_20' ) start [2025-04-16 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922147', 'tblTempVendorCDR_20' ) end [2025-04-16 16:29:20] Production.INFO: ProcessCDR(1,14922147,1,1,2) [2025-04-16 16:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922147', 'tblTempUsageDetail_20' ) start [2025-04-16 16:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922147', 'tblTempUsageDetail_20' ) end [2025-04-16 16:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:29:25] Production.INFO: ==6209== Releasing lock... [2025-04-16 16:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:29:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:30:06 [end_date_ymd] => 2025-04-16 16:30:06 [RateCDR] => 1 ) [2025-04-16 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:30:06' and `end` < '2025-04-16 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:30:20] Production.INFO: count ==4733 [2025-04-16 16:30:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:30:06 - End Time 2025-04-16 16:30:06 [2025-04-16 16:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922153', 'tblTempUsageDetail_20' ) start [2025-04-16 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922153', 'tblTempUsageDetail_20' ) end [2025-04-16 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922153', 'tblTempVendorCDR_20' ) start [2025-04-16 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922153', 'tblTempVendorCDR_20' ) end [2025-04-16 16:30:21] Production.INFO: ProcessCDR(1,14922153,1,1,2) [2025-04-16 16:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922153', 'tblTempUsageDetail_20' ) start [2025-04-16 16:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922153', 'tblTempUsageDetail_20' ) end [2025-04-16 16:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:30:25] Production.INFO: ==6286== Releasing lock... [2025-04-16 16:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:30:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:31:05 [end_date_ymd] => 2025-04-16 16:31:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:31:05' and `end` < '2025-04-16 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-04-16 16:31:18] Production.INFO: count ==4747 [2025-04-16 16:31:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:31:05 - End Time 2025-04-16 16:31:05 [2025-04-16 16:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922158', 'tblTempUsageDetail_20' ) start [2025-04-16 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922158', 'tblTempUsageDetail_20' ) end [2025-04-16 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922158', 'tblTempVendorCDR_20' ) start [2025-04-16 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922158', 'tblTempVendorCDR_20' ) end [2025-04-16 16:31:20] Production.INFO: ProcessCDR(1,14922158,1,1,2) [2025-04-16 16:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922158', 'tblTempUsageDetail_20' ) start [2025-04-16 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922158', 'tblTempUsageDetail_20' ) end [2025-04-16 16:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:31:26] Production.INFO: ==6368== Releasing lock... [2025-04-16 16:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:31:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:32:05 [end_date_ymd] => 2025-04-16 16:32:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:32:05' and `end` < '2025-04-16 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-04-16 16:32:19] Production.INFO: count ==4736 [2025-04-16 16:32:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:32:05 - End Time 2025-04-16 16:32:05 [2025-04-16 16:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922163', 'tblTempUsageDetail_20' ) start [2025-04-16 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922163', 'tblTempUsageDetail_20' ) end [2025-04-16 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922163', 'tblTempVendorCDR_20' ) start [2025-04-16 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922163', 'tblTempVendorCDR_20' ) end [2025-04-16 16:32:21] Production.INFO: ProcessCDR(1,14922163,1,1,2) [2025-04-16 16:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922163', 'tblTempUsageDetail_20' ) start [2025-04-16 16:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922163', 'tblTempUsageDetail_20' ) end [2025-04-16 16:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:32:24] Production.INFO: ==6447== Releasing lock... [2025-04-16 16:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:32:24] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:33:05 [end_date_ymd] => 2025-04-16 16:33:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:33:05' and `end` < '2025-04-16 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-04-16 16:33:19] Production.INFO: count ==4728 [2025-04-16 16:33:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:33:05 - End Time 2025-04-16 16:33:05 [2025-04-16 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922168', 'tblTempUsageDetail_20' ) start [2025-04-16 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922168', 'tblTempUsageDetail_20' ) end [2025-04-16 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922168', 'tblTempVendorCDR_20' ) start [2025-04-16 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922168', 'tblTempVendorCDR_20' ) end [2025-04-16 16:33:21] Production.INFO: ProcessCDR(1,14922168,1,1,2) [2025-04-16 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922168', 'tblTempUsageDetail_20' ) start [2025-04-16 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922168', 'tblTempUsageDetail_20' ) end [2025-04-16 16:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:33:26] Production.INFO: ==6522== Releasing lock... [2025-04-16 16:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:33:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:34:05 [end_date_ymd] => 2025-04-16 16:34:05 [RateCDR] => 1 ) [2025-04-16 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:34:05' and `end` < '2025-04-16 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:34:19] Production.INFO: count ==4722 [2025-04-16 16:34:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:34:05 - End Time 2025-04-16 16:34:05 [2025-04-16 16:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922173', 'tblTempUsageDetail_20' ) start [2025-04-16 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922173', 'tblTempUsageDetail_20' ) end [2025-04-16 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922173', 'tblTempVendorCDR_20' ) start [2025-04-16 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922173', 'tblTempVendorCDR_20' ) end [2025-04-16 16:34:21] Production.INFO: ProcessCDR(1,14922173,1,1,2) [2025-04-16 16:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922173', 'tblTempUsageDetail_20' ) start [2025-04-16 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922173', 'tblTempUsageDetail_20' ) end [2025-04-16 16:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:34:26] Production.INFO: ==6597== Releasing lock... [2025-04-16 16:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:34:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:35:05 [end_date_ymd] => 2025-04-16 16:35:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:35:05' and `end` < '2025-04-16 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-04-16 16:35:19] Production.INFO: count ==4724 [2025-04-16 16:35:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:35:05 - End Time 2025-04-16 16:35:05 [2025-04-16 16:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922178', 'tblTempUsageDetail_20' ) start [2025-04-16 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922178', 'tblTempUsageDetail_20' ) end [2025-04-16 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922178', 'tblTempVendorCDR_20' ) start [2025-04-16 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922178', 'tblTempVendorCDR_20' ) end [2025-04-16 16:35:21] Production.INFO: ProcessCDR(1,14922178,1,1,2) [2025-04-16 16:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922178', 'tblTempUsageDetail_20' ) start [2025-04-16 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922178', 'tblTempUsageDetail_20' ) end [2025-04-16 16:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:35:26] Production.INFO: ==6677== Releasing lock... [2025-04-16 16:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:35:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:36:05 [end_date_ymd] => 2025-04-16 16:36:05 [RateCDR] => 1 ) [2025-04-16 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:36:05' and `end` < '2025-04-16 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:36:19] Production.INFO: count ==4722 [2025-04-16 16:36:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:36:05 - End Time 2025-04-16 16:36:05 [2025-04-16 16:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922183', 'tblTempUsageDetail_20' ) start [2025-04-16 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922183', 'tblTempUsageDetail_20' ) end [2025-04-16 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922183', 'tblTempVendorCDR_20' ) start [2025-04-16 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922183', 'tblTempVendorCDR_20' ) end [2025-04-16 16:36:20] Production.INFO: ProcessCDR(1,14922183,1,1,2) [2025-04-16 16:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922183', 'tblTempUsageDetail_20' ) start [2025-04-16 16:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922183', 'tblTempUsageDetail_20' ) end [2025-04-16 16:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:36:25] Production.INFO: ==6754== Releasing lock... [2025-04-16 16:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:36:25] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:37:05 [end_date_ymd] => 2025-04-16 16:37:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:37:05' and `end` < '2025-04-16 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-04-16 16:37:19] Production.INFO: count ==4710 [2025-04-16 16:37:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:37:05 - End Time 2025-04-16 16:37:05 [2025-04-16 16:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922188', 'tblTempUsageDetail_20' ) start [2025-04-16 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922188', 'tblTempUsageDetail_20' ) end [2025-04-16 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922188', 'tblTempVendorCDR_20' ) start [2025-04-16 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922188', 'tblTempVendorCDR_20' ) end [2025-04-16 16:37:20] Production.INFO: ProcessCDR(1,14922188,1,1,2) [2025-04-16 16:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922188', 'tblTempUsageDetail_20' ) start [2025-04-16 16:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922188', 'tblTempUsageDetail_20' ) end [2025-04-16 16:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:37:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:37:25] Production.INFO: ==6825== Releasing lock... [2025-04-16 16:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:37:25] Production.INFO: 63.25 MB #Memory Used# [2025-04-16 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:38:05 [end_date_ymd] => 2025-04-16 16:38:05 [RateCDR] => 1 ) [2025-04-16 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:38:05' and `end` < '2025-04-16 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:38:18] Production.INFO: count ==4728 [2025-04-16 16:38:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:38:05 - End Time 2025-04-16 16:38:05 [2025-04-16 16:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922193', 'tblTempUsageDetail_20' ) start [2025-04-16 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922193', 'tblTempUsageDetail_20' ) end [2025-04-16 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922193', 'tblTempVendorCDR_20' ) start [2025-04-16 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922193', 'tblTempVendorCDR_20' ) end [2025-04-16 16:38:20] Production.INFO: ProcessCDR(1,14922193,1,1,2) [2025-04-16 16:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922193', 'tblTempUsageDetail_20' ) start [2025-04-16 16:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922193', 'tblTempUsageDetail_20' ) end [2025-04-16 16:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:38:25] Production.INFO: ==6899== Releasing lock... [2025-04-16 16:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:38:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:39:05 [end_date_ymd] => 2025-04-16 16:39:05 [RateCDR] => 1 ) [2025-04-16 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:39:05' and `end` < '2025-04-16 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:39:19] Production.INFO: count ==4739 [2025-04-16 16:39:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:39:05 - End Time 2025-04-16 16:39:05 [2025-04-16 16:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922198', 'tblTempUsageDetail_20' ) start [2025-04-16 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922198', 'tblTempUsageDetail_20' ) end [2025-04-16 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922198', 'tblTempVendorCDR_20' ) start [2025-04-16 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922198', 'tblTempVendorCDR_20' ) end [2025-04-16 16:39:20] Production.INFO: ProcessCDR(1,14922198,1,1,2) [2025-04-16 16:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922198', 'tblTempUsageDetail_20' ) start [2025-04-16 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922198', 'tblTempUsageDetail_20' ) end [2025-04-16 16:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:39:25] Production.INFO: ==6971== Releasing lock... [2025-04-16 16:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:39:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:40:06 [end_date_ymd] => 2025-04-16 16:40:06 [RateCDR] => 1 ) [2025-04-16 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:40:06' and `end` < '2025-04-16 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:40:20] Production.INFO: count ==4738 [2025-04-16 16:40:22] Production.ERROR: pbx CDR StartTime 2025-04-16 13:40:06 - End Time 2025-04-16 16:40:06 [2025-04-16 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922204', 'tblTempUsageDetail_20' ) start [2025-04-16 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922204', 'tblTempUsageDetail_20' ) end [2025-04-16 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922204', 'tblTempVendorCDR_20' ) start [2025-04-16 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922204', 'tblTempVendorCDR_20' ) end [2025-04-16 16:40:22] Production.INFO: ProcessCDR(1,14922204,1,1,2) [2025-04-16 16:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922204', 'tblTempUsageDetail_20' ) start [2025-04-16 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922204', 'tblTempUsageDetail_20' ) end [2025-04-16 16:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:40:27] Production.INFO: ==7048== Releasing lock... [2025-04-16 16:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:40:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:41:05 [end_date_ymd] => 2025-04-16 16:41:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:41:05' and `end` < '2025-04-16 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-04-16 16:41:19] Production.INFO: count ==4749 [2025-04-16 16:41:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:41:05 - End Time 2025-04-16 16:41:05 [2025-04-16 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922209', 'tblTempUsageDetail_20' ) start [2025-04-16 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922209', 'tblTempUsageDetail_20' ) end [2025-04-16 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922209', 'tblTempVendorCDR_20' ) start [2025-04-16 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922209', 'tblTempVendorCDR_20' ) end [2025-04-16 16:41:21] Production.INFO: ProcessCDR(1,14922209,1,1,2) [2025-04-16 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922209', 'tblTempUsageDetail_20' ) start [2025-04-16 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922209', 'tblTempUsageDetail_20' ) end [2025-04-16 16:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:41:26] Production.INFO: ==7132== Releasing lock... [2025-04-16 16:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:41:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:42:05 [end_date_ymd] => 2025-04-16 16:42:05 [RateCDR] => 1 ) [2025-04-16 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:42:05' and `end` < '2025-04-16 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:42:19] Production.INFO: count ==4797 [2025-04-16 16:42:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:42:05 - End Time 2025-04-16 16:42:05 [2025-04-16 16:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922214', 'tblTempUsageDetail_20' ) start [2025-04-16 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922214', 'tblTempUsageDetail_20' ) end [2025-04-16 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922214', 'tblTempVendorCDR_20' ) start [2025-04-16 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922214', 'tblTempVendorCDR_20' ) end [2025-04-16 16:42:20] Production.INFO: ProcessCDR(1,14922214,1,1,2) [2025-04-16 16:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922214', 'tblTempUsageDetail_20' ) start [2025-04-16 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922214', 'tblTempUsageDetail_20' ) end [2025-04-16 16:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:42:25] Production.INFO: ==7211== Releasing lock... [2025-04-16 16:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:42:25] Production.INFO: 64 MB #Memory Used# [2025-04-16 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:43:05 [end_date_ymd] => 2025-04-16 16:43:05 [RateCDR] => 1 ) [2025-04-16 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:43:05' and `end` < '2025-04-16 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:43:19] Production.INFO: count ==4801 [2025-04-16 16:43:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:43:05 - End Time 2025-04-16 16:43:05 [2025-04-16 16:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922219', 'tblTempUsageDetail_20' ) start [2025-04-16 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922219', 'tblTempUsageDetail_20' ) end [2025-04-16 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922219', 'tblTempVendorCDR_20' ) start [2025-04-16 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922219', 'tblTempVendorCDR_20' ) end [2025-04-16 16:43:20] Production.INFO: ProcessCDR(1,14922219,1,1,2) [2025-04-16 16:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922219', 'tblTempUsageDetail_20' ) start [2025-04-16 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922219', 'tblTempUsageDetail_20' ) end [2025-04-16 16:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:43:26] Production.INFO: ==7290== Releasing lock... [2025-04-16 16:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:43:26] Production.INFO: 64 MB #Memory Used# [2025-04-16 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:44:05 [end_date_ymd] => 2025-04-16 16:44:05 [RateCDR] => 1 ) [2025-04-16 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:44:05' and `end` < '2025-04-16 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:44:19] Production.INFO: count ==4795 [2025-04-16 16:44:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:44:05 - End Time 2025-04-16 16:44:05 [2025-04-16 16:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922224', 'tblTempUsageDetail_20' ) start [2025-04-16 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922224', 'tblTempUsageDetail_20' ) end [2025-04-16 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922224', 'tblTempVendorCDR_20' ) start [2025-04-16 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922224', 'tblTempVendorCDR_20' ) end [2025-04-16 16:44:20] Production.INFO: ProcessCDR(1,14922224,1,1,2) [2025-04-16 16:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922224', 'tblTempUsageDetail_20' ) start [2025-04-16 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922224', 'tblTempUsageDetail_20' ) end [2025-04-16 16:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:44:26] Production.INFO: ==7404== Releasing lock... [2025-04-16 16:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:44:26] Production.INFO: 64 MB #Memory Used# [2025-04-16 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:45:05 [end_date_ymd] => 2025-04-16 16:45:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:45:05' and `end` < '2025-04-16 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-04-16 16:45:19] Production.INFO: count ==4798 [2025-04-16 16:45:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:45:05 - End Time 2025-04-16 16:45:05 [2025-04-16 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922229', 'tblTempUsageDetail_20' ) start [2025-04-16 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922229', 'tblTempUsageDetail_20' ) end [2025-04-16 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922229', 'tblTempVendorCDR_20' ) start [2025-04-16 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922229', 'tblTempVendorCDR_20' ) end [2025-04-16 16:45:21] Production.INFO: ProcessCDR(1,14922229,1,1,2) [2025-04-16 16:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922229', 'tblTempUsageDetail_20' ) start [2025-04-16 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922229', 'tblTempUsageDetail_20' ) end [2025-04-16 16:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:45:27] Production.INFO: ==7478== Releasing lock... [2025-04-16 16:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:45:27] Production.INFO: 64 MB #Memory Used# [2025-04-16 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:46:05 [end_date_ymd] => 2025-04-16 16:46:05 [RateCDR] => 1 ) [2025-04-16 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:46:05' and `end` < '2025-04-16 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:46:18] Production.INFO: count ==4795 [2025-04-16 16:46:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:46:05 - End Time 2025-04-16 16:46:05 [2025-04-16 16:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922234', 'tblTempUsageDetail_20' ) start [2025-04-16 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922234', 'tblTempUsageDetail_20' ) end [2025-04-16 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922234', 'tblTempVendorCDR_20' ) start [2025-04-16 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922234', 'tblTempVendorCDR_20' ) end [2025-04-16 16:46:20] Production.INFO: ProcessCDR(1,14922234,1,1,2) [2025-04-16 16:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922234', 'tblTempUsageDetail_20' ) start [2025-04-16 16:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922234', 'tblTempUsageDetail_20' ) end [2025-04-16 16:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:46:25] Production.INFO: ==7559== Releasing lock... [2025-04-16 16:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:46:25] Production.INFO: 64.25 MB #Memory Used# [2025-04-16 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:47:05 [end_date_ymd] => 2025-04-16 16:47:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:47:05' and `end` < '2025-04-16 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-04-16 16:47:19] Production.INFO: count ==4798 [2025-04-16 16:47:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:47:05 - End Time 2025-04-16 16:47:05 [2025-04-16 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922239', 'tblTempUsageDetail_20' ) start [2025-04-16 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922239', 'tblTempUsageDetail_20' ) end [2025-04-16 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922239', 'tblTempVendorCDR_20' ) start [2025-04-16 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922239', 'tblTempVendorCDR_20' ) end [2025-04-16 16:47:21] Production.INFO: ProcessCDR(1,14922239,1,1,2) [2025-04-16 16:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922239', 'tblTempUsageDetail_20' ) start [2025-04-16 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922239', 'tblTempUsageDetail_20' ) end [2025-04-16 16:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:47:26] Production.INFO: ==7630== Releasing lock... [2025-04-16 16:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:47:26] Production.INFO: 64 MB #Memory Used# [2025-04-16 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:48:05 [end_date_ymd] => 2025-04-16 16:48:05 [RateCDR] => 1 ) [2025-04-16 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:48:05' and `end` < '2025-04-16 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:48:19] Production.INFO: count ==4787 [2025-04-16 16:48:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:48:05 - End Time 2025-04-16 16:48:05 [2025-04-16 16:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922244', 'tblTempUsageDetail_20' ) start [2025-04-16 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922244', 'tblTempUsageDetail_20' ) end [2025-04-16 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922244', 'tblTempVendorCDR_20' ) start [2025-04-16 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922244', 'tblTempVendorCDR_20' ) end [2025-04-16 16:48:21] Production.INFO: ProcessCDR(1,14922244,1,1,2) [2025-04-16 16:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922244', 'tblTempUsageDetail_20' ) start [2025-04-16 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922244', 'tblTempUsageDetail_20' ) end [2025-04-16 16:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:48:26] Production.INFO: ==7704== Releasing lock... [2025-04-16 16:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:48:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-16 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:49:05 [end_date_ymd] => 2025-04-16 16:49:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:49:05' and `end` < '2025-04-16 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-04-16 16:49:19] Production.INFO: count ==4753 [2025-04-16 16:49:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:49:05 - End Time 2025-04-16 16:49:05 [2025-04-16 16:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922249', 'tblTempUsageDetail_20' ) start [2025-04-16 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922249', 'tblTempUsageDetail_20' ) end [2025-04-16 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922249', 'tblTempVendorCDR_20' ) start [2025-04-16 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922249', 'tblTempVendorCDR_20' ) end [2025-04-16 16:49:21] Production.INFO: ProcessCDR(1,14922249,1,1,2) [2025-04-16 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922249', 'tblTempUsageDetail_20' ) start [2025-04-16 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922249', 'tblTempUsageDetail_20' ) end [2025-04-16 16:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:49:26] Production.INFO: ==7785== Releasing lock... [2025-04-16 16:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:49:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-16 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:50:06 [end_date_ymd] => 2025-04-16 16:50:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:50:06' and `end` < '2025-04-16 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-04-16 16:50:19] Production.INFO: count ==4680 [2025-04-16 16:50:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:50:06 - End Time 2025-04-16 16:50:06 [2025-04-16 16:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922255', 'tblTempUsageDetail_20' ) start [2025-04-16 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922255', 'tblTempUsageDetail_20' ) end [2025-04-16 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922255', 'tblTempVendorCDR_20' ) start [2025-04-16 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922255', 'tblTempVendorCDR_20' ) end [2025-04-16 16:50:21] Production.INFO: ProcessCDR(1,14922255,1,1,2) [2025-04-16 16:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922255', 'tblTempUsageDetail_20' ) start [2025-04-16 16:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922255', 'tblTempUsageDetail_20' ) end [2025-04-16 16:50:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:50:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:50:26] Production.INFO: ==7862== Releasing lock... [2025-04-16 16:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:50:26] Production.INFO: 63 MB #Memory Used# [2025-04-16 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:51:05 [end_date_ymd] => 2025-04-16 16:51:05 [RateCDR] => 1 ) [2025-04-16 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:51:05' and `end` < '2025-04-16 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:51:19] Production.INFO: count ==4636 [2025-04-16 16:51:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:51:05 - End Time 2025-04-16 16:51:05 [2025-04-16 16:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922260', 'tblTempUsageDetail_20' ) start [2025-04-16 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922260', 'tblTempUsageDetail_20' ) end [2025-04-16 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922260', 'tblTempVendorCDR_20' ) start [2025-04-16 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922260', 'tblTempVendorCDR_20' ) end [2025-04-16 16:51:21] Production.INFO: ProcessCDR(1,14922260,1,1,2) [2025-04-16 16:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922260', 'tblTempUsageDetail_20' ) start [2025-04-16 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922260', 'tblTempUsageDetail_20' ) end [2025-04-16 16:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:51:26] Production.INFO: ==7950== Releasing lock... [2025-04-16 16:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:51:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-16 16:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:52:04 [end_date_ymd] => 2025-04-16 16:52:04 [RateCDR] => 1 ) [2025-04-16 16:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:52:04' and `end` < '2025-04-16 16:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:52:18] Production.INFO: count ==4638 [2025-04-16 16:52:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:52:04 - End Time 2025-04-16 16:52:04 [2025-04-16 16:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922265', 'tblTempUsageDetail_20' ) start [2025-04-16 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922265', 'tblTempUsageDetail_20' ) end [2025-04-16 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922265', 'tblTempVendorCDR_20' ) start [2025-04-16 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922265', 'tblTempVendorCDR_20' ) end [2025-04-16 16:52:20] Production.INFO: ProcessCDR(1,14922265,1,1,2) [2025-04-16 16:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922265', 'tblTempUsageDetail_20' ) start [2025-04-16 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922265', 'tblTempUsageDetail_20' ) end [2025-04-16 16:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:52:25] Production.INFO: ==8035== Releasing lock... [2025-04-16 16:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:52:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-16 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:53:05 [end_date_ymd] => 2025-04-16 16:53:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:53:05' and `end` < '2025-04-16 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-04-16 16:53:18] Production.INFO: count ==4606 [2025-04-16 16:53:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:53:05 - End Time 2025-04-16 16:53:05 [2025-04-16 16:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922270', 'tblTempUsageDetail_20' ) start [2025-04-16 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922270', 'tblTempUsageDetail_20' ) end [2025-04-16 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922270', 'tblTempVendorCDR_20' ) start [2025-04-16 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922270', 'tblTempVendorCDR_20' ) end [2025-04-16 16:53:20] Production.INFO: ProcessCDR(1,14922270,1,1,2) [2025-04-16 16:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922270', 'tblTempUsageDetail_20' ) start [2025-04-16 16:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922270', 'tblTempUsageDetail_20' ) end [2025-04-16 16:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:53:25] Production.INFO: ==8119== Releasing lock... [2025-04-16 16:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:53:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-16 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:54:06 [end_date_ymd] => 2025-04-16 16:54:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:54:06' and `end` < '2025-04-16 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-04-16 16:54:20] Production.INFO: count ==4587 [2025-04-16 16:54:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:54:06 - End Time 2025-04-16 16:54:06 [2025-04-16 16:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922275', 'tblTempUsageDetail_20' ) start [2025-04-16 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922275', 'tblTempUsageDetail_20' ) end [2025-04-16 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922275', 'tblTempVendorCDR_20' ) start [2025-04-16 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922275', 'tblTempVendorCDR_20' ) end [2025-04-16 16:54:22] Production.INFO: ProcessCDR(1,14922275,1,1,2) [2025-04-16 16:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922275', 'tblTempUsageDetail_20' ) start [2025-04-16 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922275', 'tblTempUsageDetail_20' ) end [2025-04-16 16:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:54:27] Production.INFO: ==8210== Releasing lock... [2025-04-16 16:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:54:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-16 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:55:05 [end_date_ymd] => 2025-04-16 16:55:05 [RateCDR] => 1 ) [2025-04-16 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:55:05' and `end` < '2025-04-16 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:55:19] Production.INFO: count ==4571 [2025-04-16 16:55:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:55:05 - End Time 2025-04-16 16:55:05 [2025-04-16 16:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922280', 'tblTempUsageDetail_20' ) start [2025-04-16 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922280', 'tblTempUsageDetail_20' ) end [2025-04-16 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922280', 'tblTempVendorCDR_20' ) start [2025-04-16 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922280', 'tblTempVendorCDR_20' ) end [2025-04-16 16:55:20] Production.INFO: ProcessCDR(1,14922280,1,1,2) [2025-04-16 16:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922280', 'tblTempUsageDetail_20' ) start [2025-04-16 16:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922280', 'tblTempUsageDetail_20' ) end [2025-04-16 16:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:55:25] Production.INFO: ==8292== Releasing lock... [2025-04-16 16:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:55:25] Production.INFO: 62.25 MB #Memory Used# [2025-04-16 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:56:05 [end_date_ymd] => 2025-04-16 16:56:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:56:05' and `end` < '2025-04-16 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-04-16 16:56:19] Production.INFO: count ==4597 [2025-04-16 16:56:21] Production.ERROR: pbx CDR StartTime 2025-04-16 13:56:05 - End Time 2025-04-16 16:56:05 [2025-04-16 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922285', 'tblTempUsageDetail_20' ) start [2025-04-16 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922285', 'tblTempUsageDetail_20' ) end [2025-04-16 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922285', 'tblTempVendorCDR_20' ) start [2025-04-16 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922285', 'tblTempVendorCDR_20' ) end [2025-04-16 16:56:21] Production.INFO: ProcessCDR(1,14922285,1,1,2) [2025-04-16 16:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922285', 'tblTempUsageDetail_20' ) start [2025-04-16 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922285', 'tblTempUsageDetail_20' ) end [2025-04-16 16:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:56:26] Production.INFO: ==8377== Releasing lock... [2025-04-16 16:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:56:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-16 16:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:57:04 [end_date_ymd] => 2025-04-16 16:57:04 [RateCDR] => 1 ) [2025-04-16 16: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-04-16 13:57:04' and `end` < '2025-04-16 16: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-04-16 16:57:18] Production.INFO: count ==4599 [2025-04-16 16:57:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:57:04 - End Time 2025-04-16 16:57:04 [2025-04-16 16:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922290', 'tblTempUsageDetail_20' ) start [2025-04-16 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922290', 'tblTempUsageDetail_20' ) end [2025-04-16 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922290', 'tblTempVendorCDR_20' ) start [2025-04-16 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922290', 'tblTempVendorCDR_20' ) end [2025-04-16 16:57:20] Production.INFO: ProcessCDR(1,14922290,1,1,2) [2025-04-16 16:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922290', 'tblTempUsageDetail_20' ) start [2025-04-16 16:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922290', 'tblTempUsageDetail_20' ) end [2025-04-16 16:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:57:25] Production.INFO: ==8466== Releasing lock... [2025-04-16 16:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:57:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-16 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:58:05 [end_date_ymd] => 2025-04-16 16:58:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 13:58:05' and `end` < '2025-04-16 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-04-16 16:58:19] Production.INFO: count ==4583 [2025-04-16 16:58:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:58:05 - End Time 2025-04-16 16:58:05 [2025-04-16 16:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922295', 'tblTempUsageDetail_20' ) start [2025-04-16 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922295', 'tblTempUsageDetail_20' ) end [2025-04-16 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922295', 'tblTempVendorCDR_20' ) start [2025-04-16 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922295', 'tblTempVendorCDR_20' ) end [2025-04-16 16:58:20] Production.INFO: ProcessCDR(1,14922295,1,1,2) [2025-04-16 16:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922295', 'tblTempUsageDetail_20' ) start [2025-04-16 16:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922295', 'tblTempUsageDetail_20' ) end [2025-04-16 16:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:58:25] Production.INFO: ==8550== Releasing lock... [2025-04-16 16:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:58:25] Production.INFO: 62.25 MB #Memory Used# [2025-04-16 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 13:59:05 [end_date_ymd] => 2025-04-16 16:59:05 [RateCDR] => 1 ) [2025-04-16 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 13:59:05' and `end` < '2025-04-16 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 16:59:19] Production.INFO: count ==4579 [2025-04-16 16:59:20] Production.ERROR: pbx CDR StartTime 2025-04-16 13:59:05 - End Time 2025-04-16 16:59:05 [2025-04-16 16:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922300', 'tblTempUsageDetail_20' ) start [2025-04-16 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922300', 'tblTempUsageDetail_20' ) end [2025-04-16 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922300', 'tblTempVendorCDR_20' ) start [2025-04-16 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922300', 'tblTempVendorCDR_20' ) end [2025-04-16 16:59:20] Production.INFO: ProcessCDR(1,14922300,1,1,2) [2025-04-16 16:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 16:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 16:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922300', 'tblTempUsageDetail_20' ) start [2025-04-16 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922300', 'tblTempUsageDetail_20' ) end [2025-04-16 16:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 16:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 16:59:26] Production.INFO: ==8671== Releasing lock... [2025-04-16 16:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 16:59:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-16 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:00:06 [end_date_ymd] => 2025-04-16 17:00:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 14:00:06' and `end` < '2025-04-16 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-04-16 17:00:19] Production.INFO: count ==4585 [2025-04-16 17:00:21] Production.ERROR: pbx CDR StartTime 2025-04-16 14:00:06 - End Time 2025-04-16 17:00:06 [2025-04-16 17:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922306', 'tblTempUsageDetail_20' ) start [2025-04-16 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922306', 'tblTempUsageDetail_20' ) end [2025-04-16 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922306', 'tblTempVendorCDR_20' ) start [2025-04-16 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922306', 'tblTempVendorCDR_20' ) end [2025-04-16 17:00:21] Production.INFO: ProcessCDR(1,14922306,1,1,2) [2025-04-16 17:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922306', 'tblTempUsageDetail_20' ) start [2025-04-16 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922306', 'tblTempUsageDetail_20' ) end [2025-04-16 17:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:00:26] Production.INFO: ==8765== Releasing lock... [2025-04-16 17:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:00:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-16 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:01:05 [end_date_ymd] => 2025-04-16 17:01:05 [RateCDR] => 1 ) [2025-04-16 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:01:05' and `end` < '2025-04-16 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:01:19] Production.INFO: count ==4597 [2025-04-16 17:01:21] Production.ERROR: pbx CDR StartTime 2025-04-16 14:01:05 - End Time 2025-04-16 17:01:05 [2025-04-16 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922311', 'tblTempUsageDetail_20' ) start [2025-04-16 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922311', 'tblTempUsageDetail_20' ) end [2025-04-16 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922311', 'tblTempVendorCDR_20' ) start [2025-04-16 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922311', 'tblTempVendorCDR_20' ) end [2025-04-16 17:01:21] Production.INFO: ProcessCDR(1,14922311,1,1,2) [2025-04-16 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922311', 'tblTempUsageDetail_20' ) start [2025-04-16 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922311', 'tblTempUsageDetail_20' ) end [2025-04-16 17:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:01:26] Production.INFO: ==8864== Releasing lock... [2025-04-16 17:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:01:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-16 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:02:05 [end_date_ymd] => 2025-04-16 17:02:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 14:02:05' and `end` < '2025-04-16 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-04-16 17:02:19] Production.INFO: count ==4586 [2025-04-16 17:02:21] Production.ERROR: pbx CDR StartTime 2025-04-16 14:02:05 - End Time 2025-04-16 17:02:05 [2025-04-16 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922316', 'tblTempUsageDetail_20' ) start [2025-04-16 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922316', 'tblTempUsageDetail_20' ) end [2025-04-16 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922316', 'tblTempVendorCDR_20' ) start [2025-04-16 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922316', 'tblTempVendorCDR_20' ) end [2025-04-16 17:02:21] Production.INFO: ProcessCDR(1,14922316,1,1,2) [2025-04-16 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922316', 'tblTempUsageDetail_20' ) start [2025-04-16 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922316', 'tblTempUsageDetail_20' ) end [2025-04-16 17:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:02:26] Production.INFO: ==8948== Releasing lock... [2025-04-16 17:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:02:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-16 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:03:06 [end_date_ymd] => 2025-04-16 17:03:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 14:03:06' and `end` < '2025-04-16 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-04-16 17:03:19] Production.INFO: count ==4547 [2025-04-16 17:03:21] Production.ERROR: pbx CDR StartTime 2025-04-16 14:03:06 - End Time 2025-04-16 17:03:06 [2025-04-16 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922321', 'tblTempUsageDetail_20' ) start [2025-04-16 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922321', 'tblTempUsageDetail_20' ) end [2025-04-16 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922321', 'tblTempVendorCDR_20' ) start [2025-04-16 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922321', 'tblTempVendorCDR_20' ) end [2025-04-16 17:03:21] Production.INFO: ProcessCDR(1,14922321,1,1,2) [2025-04-16 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922321', 'tblTempUsageDetail_20' ) start [2025-04-16 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922321', 'tblTempUsageDetail_20' ) end [2025-04-16 17:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:03:27] Production.INFO: ==9036== Releasing lock... [2025-04-16 17:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:03:27] Production.INFO: 62 MB #Memory Used# [2025-04-16 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:04:05 [end_date_ymd] => 2025-04-16 17:04:05 [RateCDR] => 1 ) [2025-04-16 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:04:05' and `end` < '2025-04-16 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:04:19] Production.INFO: count ==4537 [2025-04-16 17:04:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:04:05 - End Time 2025-04-16 17:04:05 [2025-04-16 17:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922326', 'tblTempUsageDetail_20' ) start [2025-04-16 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922326', 'tblTempUsageDetail_20' ) end [2025-04-16 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922326', 'tblTempVendorCDR_20' ) start [2025-04-16 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922326', 'tblTempVendorCDR_20' ) end [2025-04-16 17:04:20] Production.INFO: ProcessCDR(1,14922326,1,1,2) [2025-04-16 17:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922326', 'tblTempUsageDetail_20' ) start [2025-04-16 17:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922326', 'tblTempUsageDetail_20' ) end [2025-04-16 17:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:04:25] Production.INFO: ==9120== Releasing lock... [2025-04-16 17:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:04:25] Production.INFO: 62 MB #Memory Used# [2025-04-16 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:05:05 [end_date_ymd] => 2025-04-16 17:05:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 14:05:05' and `end` < '2025-04-16 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-04-16 17:05:19] Production.INFO: count ==4535 [2025-04-16 17:05:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:05:05 - End Time 2025-04-16 17:05:05 [2025-04-16 17:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922331', 'tblTempUsageDetail_20' ) start [2025-04-16 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922331', 'tblTempUsageDetail_20' ) end [2025-04-16 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922331', 'tblTempVendorCDR_20' ) start [2025-04-16 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922331', 'tblTempVendorCDR_20' ) end [2025-04-16 17:05:21] Production.INFO: ProcessCDR(1,14922331,1,1,2) [2025-04-16 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922331', 'tblTempUsageDetail_20' ) start [2025-04-16 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922331', 'tblTempUsageDetail_20' ) end [2025-04-16 17:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:05:26] Production.INFO: ==9206== Releasing lock... [2025-04-16 17:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:05:26] Production.INFO: 62 MB #Memory Used# [2025-04-16 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:06:05 [end_date_ymd] => 2025-04-16 17:06:05 [RateCDR] => 1 ) [2025-04-16 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:06:05' and `end` < '2025-04-16 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:06:19] Production.INFO: count ==4521 [2025-04-16 17:06:21] Production.ERROR: pbx CDR StartTime 2025-04-16 14:06:05 - End Time 2025-04-16 17:06:05 [2025-04-16 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922336', 'tblTempUsageDetail_20' ) start [2025-04-16 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922336', 'tblTempUsageDetail_20' ) end [2025-04-16 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922336', 'tblTempVendorCDR_20' ) start [2025-04-16 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922336', 'tblTempVendorCDR_20' ) end [2025-04-16 17:06:21] Production.INFO: ProcessCDR(1,14922336,1,1,2) [2025-04-16 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922336', 'tblTempUsageDetail_20' ) start [2025-04-16 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922336', 'tblTempUsageDetail_20' ) end [2025-04-16 17:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:06:26] Production.INFO: ==9287== Releasing lock... [2025-04-16 17:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:06:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-16 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:07:05 [end_date_ymd] => 2025-04-16 17:07:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 14:07:05' and `end` < '2025-04-16 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-04-16 17:07:19] Production.INFO: count ==4512 [2025-04-16 17:07:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:07:05 - End Time 2025-04-16 17:07:05 [2025-04-16 17:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922341', 'tblTempUsageDetail_20' ) start [2025-04-16 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922341', 'tblTempUsageDetail_20' ) end [2025-04-16 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922341', 'tblTempVendorCDR_20' ) start [2025-04-16 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922341', 'tblTempVendorCDR_20' ) end [2025-04-16 17:07:21] Production.INFO: ProcessCDR(1,14922341,1,1,2) [2025-04-16 17:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922341', 'tblTempUsageDetail_20' ) start [2025-04-16 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922341', 'tblTempUsageDetail_20' ) end [2025-04-16 17:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:07:26] Production.INFO: ==9376== Releasing lock... [2025-04-16 17:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:07:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-16 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:08:06 [end_date_ymd] => 2025-04-16 17:08:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 14:08:06' and `end` < '2025-04-16 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-04-16 17:08:19] Production.INFO: count ==4503 [2025-04-16 17:08:21] Production.ERROR: pbx CDR StartTime 2025-04-16 14:08:06 - End Time 2025-04-16 17:08:06 [2025-04-16 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922346', 'tblTempUsageDetail_20' ) start [2025-04-16 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922346', 'tblTempUsageDetail_20' ) end [2025-04-16 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922346', 'tblTempVendorCDR_20' ) start [2025-04-16 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922346', 'tblTempVendorCDR_20' ) end [2025-04-16 17:08:21] Production.INFO: ProcessCDR(1,14922346,1,1,2) [2025-04-16 17:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922346', 'tblTempUsageDetail_20' ) start [2025-04-16 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922346', 'tblTempUsageDetail_20' ) end [2025-04-16 17:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:08:26] Production.INFO: ==9464== Releasing lock... [2025-04-16 17:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:08:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-16 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:09:05 [end_date_ymd] => 2025-04-16 17:09:05 [RateCDR] => 1 ) [2025-04-16 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:09:05' and `end` < '2025-04-16 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:09:19] Production.INFO: count ==4503 [2025-04-16 17:09:21] Production.ERROR: pbx CDR StartTime 2025-04-16 14:09:05 - End Time 2025-04-16 17:09:05 [2025-04-16 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922351', 'tblTempUsageDetail_20' ) start [2025-04-16 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922351', 'tblTempUsageDetail_20' ) end [2025-04-16 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922351', 'tblTempVendorCDR_20' ) start [2025-04-16 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922351', 'tblTempVendorCDR_20' ) end [2025-04-16 17:09:21] Production.INFO: ProcessCDR(1,14922351,1,1,2) [2025-04-16 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922351', 'tblTempUsageDetail_20' ) start [2025-04-16 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922351', 'tblTempUsageDetail_20' ) end [2025-04-16 17:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:09:26] Production.INFO: ==9553== Releasing lock... [2025-04-16 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:09:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-16 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:10:06 [end_date_ymd] => 2025-04-16 17:10:06 [RateCDR] => 1 ) [2025-04-16 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:10:06' and `end` < '2025-04-16 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:10:19] Production.INFO: count ==4527 [2025-04-16 17:10:21] Production.ERROR: pbx CDR StartTime 2025-04-16 14:10:06 - End Time 2025-04-16 17:10:06 [2025-04-16 17:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922357', 'tblTempUsageDetail_20' ) start [2025-04-16 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922357', 'tblTempUsageDetail_20' ) end [2025-04-16 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922357', 'tblTempVendorCDR_20' ) start [2025-04-16 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922357', 'tblTempVendorCDR_20' ) end [2025-04-16 17:10:21] Production.INFO: ProcessCDR(1,14922357,1,1,2) [2025-04-16 17:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922357', 'tblTempUsageDetail_20' ) start [2025-04-16 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922357', 'tblTempUsageDetail_20' ) end [2025-04-16 17:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:10:26] Production.INFO: ==9642== Releasing lock... [2025-04-16 17:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:10:26] Production.INFO: 62 MB #Memory Used# [2025-04-16 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:11:05 [end_date_ymd] => 2025-04-16 17:11:05 [RateCDR] => 1 ) [2025-04-16 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:11:05' and `end` < '2025-04-16 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:11:19] Production.INFO: count ==4477 [2025-04-16 17:11:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:11:05 - End Time 2025-04-16 17:11:05 [2025-04-16 17:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922362', 'tblTempUsageDetail_20' ) start [2025-04-16 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922362', 'tblTempUsageDetail_20' ) end [2025-04-16 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922362', 'tblTempVendorCDR_20' ) start [2025-04-16 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922362', 'tblTempVendorCDR_20' ) end [2025-04-16 17:11:20] Production.INFO: ProcessCDR(1,14922362,1,1,2) [2025-04-16 17:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922362', 'tblTempUsageDetail_20' ) start [2025-04-16 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922362', 'tblTempUsageDetail_20' ) end [2025-04-16 17:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:11:26] Production.INFO: ==9722== Releasing lock... [2025-04-16 17:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:11:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-16 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:12:05 [end_date_ymd] => 2025-04-16 17:12:05 [RateCDR] => 1 ) [2025-04-16 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:12:05' and `end` < '2025-04-16 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:12:18] Production.INFO: count ==4457 [2025-04-16 17:12:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:12:05 - End Time 2025-04-16 17:12:05 [2025-04-16 17:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922367', 'tblTempUsageDetail_20' ) start [2025-04-16 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922367', 'tblTempUsageDetail_20' ) end [2025-04-16 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922367', 'tblTempVendorCDR_20' ) start [2025-04-16 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922367', 'tblTempVendorCDR_20' ) end [2025-04-16 17:12:20] Production.INFO: ProcessCDR(1,14922367,1,1,2) [2025-04-16 17:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922367', 'tblTempUsageDetail_20' ) start [2025-04-16 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922367', 'tblTempUsageDetail_20' ) end [2025-04-16 17:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:12:25] Production.INFO: ==9814== Releasing lock... [2025-04-16 17:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:12:25] Production.INFO: 61.25 MB #Memory Used# [2025-04-16 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:13:05 [end_date_ymd] => 2025-04-16 17:13:05 [RateCDR] => 1 ) [2025-04-16 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:13:05' and `end` < '2025-04-16 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:13:19] Production.INFO: count ==4452 [2025-04-16 17:13:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:13:05 - End Time 2025-04-16 17:13:05 [2025-04-16 17:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922372', 'tblTempUsageDetail_20' ) start [2025-04-16 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922372', 'tblTempUsageDetail_20' ) end [2025-04-16 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922372', 'tblTempVendorCDR_20' ) start [2025-04-16 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922372', 'tblTempVendorCDR_20' ) end [2025-04-16 17:13:20] Production.INFO: ProcessCDR(1,14922372,1,1,2) [2025-04-16 17:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922372', 'tblTempUsageDetail_20' ) start [2025-04-16 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922372', 'tblTempUsageDetail_20' ) end [2025-04-16 17:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:13:25] Production.INFO: ==9904== Releasing lock... [2025-04-16 17:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:13:25] Production.INFO: 61.25 MB #Memory Used# [2025-04-16 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:14:05 [end_date_ymd] => 2025-04-16 17:14:05 [RateCDR] => 1 ) [2025-04-16 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:14:05' and `end` < '2025-04-16 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:14:18] Production.INFO: count ==4448 [2025-04-16 17:14:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:14:05 - End Time 2025-04-16 17:14:05 [2025-04-16 17:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922377', 'tblTempUsageDetail_20' ) start [2025-04-16 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922377', 'tblTempUsageDetail_20' ) end [2025-04-16 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922377', 'tblTempVendorCDR_20' ) start [2025-04-16 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922377', 'tblTempVendorCDR_20' ) end [2025-04-16 17:14:20] Production.INFO: ProcessCDR(1,14922377,1,1,2) [2025-04-16 17:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922377', 'tblTempUsageDetail_20' ) start [2025-04-16 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922377', 'tblTempUsageDetail_20' ) end [2025-04-16 17:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:14:25] Production.INFO: ==10026== Releasing lock... [2025-04-16 17:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:14:25] Production.INFO: 61.25 MB #Memory Used# [2025-04-16 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:15:05 [end_date_ymd] => 2025-04-16 17:15:05 [RateCDR] => 1 ) [2025-04-16 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:15:05' and `end` < '2025-04-16 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:15:19] Production.INFO: count ==4458 [2025-04-16 17:15:21] Production.ERROR: pbx CDR StartTime 2025-04-16 14:15:05 - End Time 2025-04-16 17:15:05 [2025-04-16 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922382', 'tblTempUsageDetail_20' ) start [2025-04-16 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922382', 'tblTempUsageDetail_20' ) end [2025-04-16 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922382', 'tblTempVendorCDR_20' ) start [2025-04-16 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922382', 'tblTempVendorCDR_20' ) end [2025-04-16 17:15:21] Production.INFO: ProcessCDR(1,14922382,1,1,2) [2025-04-16 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922382', 'tblTempUsageDetail_20' ) start [2025-04-16 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922382', 'tblTempUsageDetail_20' ) end [2025-04-16 17:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:15:26] Production.INFO: ==10117== Releasing lock... [2025-04-16 17:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:15:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-16 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:16:05 [end_date_ymd] => 2025-04-16 17:16:05 [RateCDR] => 1 ) [2025-04-16 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:16:05' and `end` < '2025-04-16 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:16:18] Production.INFO: count ==4448 [2025-04-16 17:16:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:16:05 - End Time 2025-04-16 17:16:05 [2025-04-16 17:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922387', 'tblTempUsageDetail_20' ) start [2025-04-16 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922387', 'tblTempUsageDetail_20' ) end [2025-04-16 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922387', 'tblTempVendorCDR_20' ) start [2025-04-16 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922387', 'tblTempVendorCDR_20' ) end [2025-04-16 17:16:20] Production.INFO: ProcessCDR(1,14922387,1,1,2) [2025-04-16 17:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922387', 'tblTempUsageDetail_20' ) start [2025-04-16 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922387', 'tblTempUsageDetail_20' ) end [2025-04-16 17:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:16:25] Production.INFO: ==10196== Releasing lock... [2025-04-16 17:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:16:25] Production.INFO: 61.25 MB #Memory Used# [2025-04-16 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:17:05 [end_date_ymd] => 2025-04-16 17:17:05 [RateCDR] => 1 ) [2025-04-16 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:17:05' and `end` < '2025-04-16 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:17:18] Production.INFO: count ==4442 [2025-04-16 17:17:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:17:05 - End Time 2025-04-16 17:17:05 [2025-04-16 17:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922392', 'tblTempUsageDetail_20' ) start [2025-04-16 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922392', 'tblTempUsageDetail_20' ) end [2025-04-16 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922392', 'tblTempVendorCDR_20' ) start [2025-04-16 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922392', 'tblTempVendorCDR_20' ) end [2025-04-16 17:17:20] Production.INFO: ProcessCDR(1,14922392,1,1,2) [2025-04-16 17:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922392', 'tblTempUsageDetail_20' ) start [2025-04-16 17:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922392', 'tblTempUsageDetail_20' ) end [2025-04-16 17:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:17:23] Production.INFO: ==10284== Releasing lock... [2025-04-16 17:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:17:23] Production.INFO: 61.5 MB #Memory Used# [2025-04-16 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:18:05 [end_date_ymd] => 2025-04-16 17:18:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 14:18:05' and `end` < '2025-04-16 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-04-16 17:18:19] Production.INFO: count ==4439 [2025-04-16 17:18:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:18:05 - End Time 2025-04-16 17:18:05 [2025-04-16 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922397', 'tblTempUsageDetail_20' ) start [2025-04-16 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922397', 'tblTempUsageDetail_20' ) end [2025-04-16 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922397', 'tblTempVendorCDR_20' ) start [2025-04-16 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922397', 'tblTempVendorCDR_20' ) end [2025-04-16 17:18:20] Production.INFO: ProcessCDR(1,14922397,1,1,2) [2025-04-16 17:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922397', 'tblTempUsageDetail_20' ) start [2025-04-16 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922397', 'tblTempUsageDetail_20' ) end [2025-04-16 17:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:18:25] Production.INFO: ==10372== Releasing lock... [2025-04-16 17:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:18:25] Production.INFO: 61.25 MB #Memory Used# [2025-04-16 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:19:05 [end_date_ymd] => 2025-04-16 17:19:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 14:19:05' and `end` < '2025-04-16 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-04-16 17:19:19] Production.INFO: count ==4428 [2025-04-16 17:19:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:19:05 - End Time 2025-04-16 17:19:05 [2025-04-16 17:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922402', 'tblTempUsageDetail_20' ) start [2025-04-16 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922402', 'tblTempUsageDetail_20' ) end [2025-04-16 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922402', 'tblTempVendorCDR_20' ) start [2025-04-16 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922402', 'tblTempVendorCDR_20' ) end [2025-04-16 17:19:20] Production.INFO: ProcessCDR(1,14922402,1,1,2) [2025-04-16 17:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922402', 'tblTempUsageDetail_20' ) start [2025-04-16 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922402', 'tblTempUsageDetail_20' ) end [2025-04-16 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:19:26] Production.INFO: ==10463== Releasing lock... [2025-04-16 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:19:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-16 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:20:05 [end_date_ymd] => 2025-04-16 17:20:05 [RateCDR] => 1 ) [2025-04-16 17:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:20:05' and `end` < '2025-04-16 17:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:20:19] Production.INFO: count ==4420 [2025-04-16 17:20:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:20:05 - End Time 2025-04-16 17:20:05 [2025-04-16 17:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922408', 'tblTempUsageDetail_20' ) start [2025-04-16 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922408', 'tblTempUsageDetail_20' ) end [2025-04-16 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922408', 'tblTempVendorCDR_20' ) start [2025-04-16 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922408', 'tblTempVendorCDR_20' ) end [2025-04-16 17:20:20] Production.INFO: ProcessCDR(1,14922408,1,1,2) [2025-04-16 17:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922408', 'tblTempUsageDetail_20' ) start [2025-04-16 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922408', 'tblTempUsageDetail_20' ) end [2025-04-16 17:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:20:24] Production.INFO: ==10552== Releasing lock... [2025-04-16 17:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:20:24] Production.INFO: 61 MB #Memory Used# [2025-04-16 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:21:05 [end_date_ymd] => 2025-04-16 17:21:05 [RateCDR] => 1 ) [2025-04-16 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:21:05' and `end` < '2025-04-16 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:21:19] Production.INFO: count ==4396 [2025-04-16 17:21:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:21:05 - End Time 2025-04-16 17:21:05 [2025-04-16 17:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922413', 'tblTempUsageDetail_20' ) start [2025-04-16 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922413', 'tblTempUsageDetail_20' ) end [2025-04-16 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922413', 'tblTempVendorCDR_20' ) start [2025-04-16 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922413', 'tblTempVendorCDR_20' ) end [2025-04-16 17:21:20] Production.INFO: ProcessCDR(1,14922413,1,1,2) [2025-04-16 17:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922413', 'tblTempUsageDetail_20' ) start [2025-04-16 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922413', 'tblTempUsageDetail_20' ) end [2025-04-16 17:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:21:24] Production.INFO: ==10639== Releasing lock... [2025-04-16 17:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:21:24] Production.INFO: 61 MB #Memory Used# [2025-04-16 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:22:06 [end_date_ymd] => 2025-04-16 17:22:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 14:22:06' and `end` < '2025-04-16 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-04-16 17:22:19] Production.INFO: count ==4396 [2025-04-16 17:22:21] Production.ERROR: pbx CDR StartTime 2025-04-16 14:22:06 - End Time 2025-04-16 17:22:06 [2025-04-16 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922418', 'tblTempUsageDetail_20' ) start [2025-04-16 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922418', 'tblTempUsageDetail_20' ) end [2025-04-16 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922418', 'tblTempVendorCDR_20' ) start [2025-04-16 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922418', 'tblTempVendorCDR_20' ) end [2025-04-16 17:22:21] Production.INFO: ProcessCDR(1,14922418,1,1,2) [2025-04-16 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922418', 'tblTempUsageDetail_20' ) start [2025-04-16 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922418', 'tblTempUsageDetail_20' ) end [2025-04-16 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:22:26] Production.INFO: ==10731== Releasing lock... [2025-04-16 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:22:26] Production.INFO: 61 MB #Memory Used# [2025-04-16 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:23:05 [end_date_ymd] => 2025-04-16 17:23:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 14:23:05' and `end` < '2025-04-16 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-04-16 17:23:19] Production.INFO: count ==4381 [2025-04-16 17:23:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:23:05 - End Time 2025-04-16 17:23:05 [2025-04-16 17:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922423', 'tblTempUsageDetail_20' ) start [2025-04-16 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922423', 'tblTempUsageDetail_20' ) end [2025-04-16 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922423', 'tblTempVendorCDR_20' ) start [2025-04-16 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922423', 'tblTempVendorCDR_20' ) end [2025-04-16 17:23:20] Production.INFO: ProcessCDR(1,14922423,1,1,2) [2025-04-16 17:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922423', 'tblTempUsageDetail_20' ) start [2025-04-16 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922423', 'tblTempUsageDetail_20' ) end [2025-04-16 17:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:23:25] Production.INFO: ==10813== Releasing lock... [2025-04-16 17:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:23:25] Production.INFO: 60.75 MB #Memory Used# [2025-04-16 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:24:05 [end_date_ymd] => 2025-04-16 17:24:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 14:24:05' and `end` < '2025-04-16 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-04-16 17:24:18] Production.INFO: count ==4378 [2025-04-16 17:24:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:24:05 - End Time 2025-04-16 17:24:05 [2025-04-16 17:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922428', 'tblTempUsageDetail_20' ) start [2025-04-16 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922428', 'tblTempUsageDetail_20' ) end [2025-04-16 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922428', 'tblTempVendorCDR_20' ) start [2025-04-16 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922428', 'tblTempVendorCDR_20' ) end [2025-04-16 17:24:20] Production.INFO: ProcessCDR(1,14922428,1,1,2) [2025-04-16 17:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922428', 'tblTempUsageDetail_20' ) start [2025-04-16 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922428', 'tblTempUsageDetail_20' ) end [2025-04-16 17:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:24:25] Production.INFO: ==10901== Releasing lock... [2025-04-16 17:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:24:25] Production.INFO: 60.75 MB #Memory Used# [2025-04-16 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:25:05 [end_date_ymd] => 2025-04-16 17:25:05 [RateCDR] => 1 ) [2025-04-16 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:25:05' and `end` < '2025-04-16 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:25:18] Production.INFO: count ==4382 [2025-04-16 17:25:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:25:05 - End Time 2025-04-16 17:25:05 [2025-04-16 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922433', 'tblTempUsageDetail_20' ) start [2025-04-16 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922433', 'tblTempUsageDetail_20' ) end [2025-04-16 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922433', 'tblTempVendorCDR_20' ) start [2025-04-16 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922433', 'tblTempVendorCDR_20' ) end [2025-04-16 17:25:20] Production.INFO: ProcessCDR(1,14922433,1,1,2) [2025-04-16 17:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922433', 'tblTempUsageDetail_20' ) start [2025-04-16 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922433', 'tblTempUsageDetail_20' ) end [2025-04-16 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:25:25] Production.INFO: ==10981== Releasing lock... [2025-04-16 17:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:25:25] Production.INFO: 60.75 MB #Memory Used# [2025-04-16 17:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:26:06 [end_date_ymd] => 2025-04-16 17:26:06 [RateCDR] => 1 ) [2025-04-16 17: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-04-16 14:26:06' and `end` < '2025-04-16 17: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-04-16 17:26:19] Production.INFO: count ==4369 [2025-04-16 17:26:21] Production.ERROR: pbx CDR StartTime 2025-04-16 14:26:06 - End Time 2025-04-16 17:26:06 [2025-04-16 17:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922438', 'tblTempUsageDetail_20' ) start [2025-04-16 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922438', 'tblTempUsageDetail_20' ) end [2025-04-16 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922438', 'tblTempVendorCDR_20' ) start [2025-04-16 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922438', 'tblTempVendorCDR_20' ) end [2025-04-16 17:26:21] Production.INFO: ProcessCDR(1,14922438,1,1,2) [2025-04-16 17:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922438', 'tblTempUsageDetail_20' ) start [2025-04-16 17:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922438', 'tblTempUsageDetail_20' ) end [2025-04-16 17:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:26:24] Production.INFO: ==11066== Releasing lock... [2025-04-16 17:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:26:24] Production.INFO: 61 MB #Memory Used# [2025-04-16 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:27:05 [end_date_ymd] => 2025-04-16 17:27:05 [RateCDR] => 1 ) [2025-04-16 17: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-04-16 14:27:05' and `end` < '2025-04-16 17: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-04-16 17:27:19] Production.INFO: count ==4353 [2025-04-16 17:27:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:27:05 - End Time 2025-04-16 17:27:05 [2025-04-16 17:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922443', 'tblTempUsageDetail_20' ) start [2025-04-16 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922443', 'tblTempUsageDetail_20' ) end [2025-04-16 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922443', 'tblTempVendorCDR_20' ) start [2025-04-16 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922443', 'tblTempVendorCDR_20' ) end [2025-04-16 17:27:20] Production.INFO: ProcessCDR(1,14922443,1,1,2) [2025-04-16 17:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922443', 'tblTempUsageDetail_20' ) start [2025-04-16 17:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922443', 'tblTempUsageDetail_20' ) end [2025-04-16 17:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:27:24] Production.INFO: ==11155== Releasing lock... [2025-04-16 17:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:27:24] Production.INFO: 60.5 MB #Memory Used# [2025-04-16 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:28:05 [end_date_ymd] => 2025-04-16 17:28:05 [RateCDR] => 1 ) [2025-04-16 17: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-04-16 14:28:05' and `end` < '2025-04-16 17: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-04-16 17:28:19] Production.INFO: count ==4352 [2025-04-16 17:28:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:28:05 - End Time 2025-04-16 17:28:05 [2025-04-16 17:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922448', 'tblTempUsageDetail_20' ) start [2025-04-16 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922448', 'tblTempUsageDetail_20' ) end [2025-04-16 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922448', 'tblTempVendorCDR_20' ) start [2025-04-16 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922448', 'tblTempVendorCDR_20' ) end [2025-04-16 17:28:20] Production.INFO: ProcessCDR(1,14922448,1,1,2) [2025-04-16 17:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922448', 'tblTempUsageDetail_20' ) start [2025-04-16 17:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922448', 'tblTempUsageDetail_20' ) end [2025-04-16 17:28:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:28:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:28:25] Production.INFO: ==11241== Releasing lock... [2025-04-16 17:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:28:25] Production.INFO: 60.5 MB #Memory Used# [2025-04-16 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:29:05 [end_date_ymd] => 2025-04-16 17:29:05 [RateCDR] => 1 ) [2025-04-16 17: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-04-16 14:29:05' and `end` < '2025-04-16 17: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-04-16 17:29:18] Production.INFO: count ==4392 [2025-04-16 17:29:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:29:05 - End Time 2025-04-16 17:29:05 [2025-04-16 17:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922453', 'tblTempUsageDetail_20' ) start [2025-04-16 17:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922453', 'tblTempUsageDetail_20' ) end [2025-04-16 17:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922453', 'tblTempVendorCDR_20' ) start [2025-04-16 17:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922453', 'tblTempVendorCDR_20' ) end [2025-04-16 17:29:20] Production.INFO: ProcessCDR(1,14922453,1,1,2) [2025-04-16 17:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922453', 'tblTempUsageDetail_20' ) start [2025-04-16 17:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922453', 'tblTempUsageDetail_20' ) end [2025-04-16 17:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:29:25] Production.INFO: ==11330== Releasing lock... [2025-04-16 17:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:29:25] Production.INFO: 60.75 MB #Memory Used# [2025-04-16 17:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:30:07 [end_date_ymd] => 2025-04-16 17:30:07 [RateCDR] => 1 ) [2025-04-16 17: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-04-16 14:30:07' and `end` < '2025-04-16 17: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-04-16 17:30:20] Production.INFO: count ==4400 [2025-04-16 17:30:22] Production.ERROR: pbx CDR StartTime 2025-04-16 14:30:07 - End Time 2025-04-16 17:30:07 [2025-04-16 17:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922459', 'tblTempUsageDetail_20' ) start [2025-04-16 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922459', 'tblTempUsageDetail_20' ) end [2025-04-16 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922459', 'tblTempVendorCDR_20' ) start [2025-04-16 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922459', 'tblTempVendorCDR_20' ) end [2025-04-16 17:30:22] Production.INFO: ProcessCDR(1,14922459,1,1,2) [2025-04-16 17:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922459', 'tblTempUsageDetail_20' ) start [2025-04-16 17:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922459', 'tblTempUsageDetail_20' ) end [2025-04-16 17:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:30:27] Production.INFO: ==11450== Releasing lock... [2025-04-16 17:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:30:27] Production.INFO: 61 MB #Memory Used# [2025-04-16 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:31:05 [end_date_ymd] => 2025-04-16 17:31:05 [RateCDR] => 1 ) [2025-04-16 17: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-04-16 14:31:05' and `end` < '2025-04-16 17: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-04-16 17:31:18] Production.INFO: count ==4337 [2025-04-16 17:31:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:31:05 - End Time 2025-04-16 17:31:05 [2025-04-16 17:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922464', 'tblTempUsageDetail_20' ) start [2025-04-16 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922464', 'tblTempUsageDetail_20' ) end [2025-04-16 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922464', 'tblTempVendorCDR_20' ) start [2025-04-16 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922464', 'tblTempVendorCDR_20' ) end [2025-04-16 17:31:20] Production.INFO: ProcessCDR(1,14922464,1,1,2) [2025-04-16 17:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922464', 'tblTempUsageDetail_20' ) start [2025-04-16 17:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922464', 'tblTempUsageDetail_20' ) end [2025-04-16 17:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:31:25] Production.INFO: ==11541== Releasing lock... [2025-04-16 17:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:31:25] Production.INFO: 60.5 MB #Memory Used# [2025-04-16 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:32:05 [end_date_ymd] => 2025-04-16 17:32:05 [RateCDR] => 1 ) [2025-04-16 17:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:32:05' and `end` < '2025-04-16 17:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:32:19] Production.INFO: count ==4324 [2025-04-16 17:32:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:32:05 - End Time 2025-04-16 17:32:05 [2025-04-16 17:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922469', 'tblTempUsageDetail_20' ) start [2025-04-16 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922469', 'tblTempUsageDetail_20' ) end [2025-04-16 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922469', 'tblTempVendorCDR_20' ) start [2025-04-16 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922469', 'tblTempVendorCDR_20' ) end [2025-04-16 17:32:20] Production.INFO: ProcessCDR(1,14922469,1,1,2) [2025-04-16 17:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922469', 'tblTempUsageDetail_20' ) start [2025-04-16 17:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922469', 'tblTempUsageDetail_20' ) end [2025-04-16 17:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:32:24] Production.INFO: ==11621== Releasing lock... [2025-04-16 17:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:32:24] Production.INFO: 60.25 MB #Memory Used# [2025-04-16 17:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:33:04 [end_date_ymd] => 2025-04-16 17:33:04 [RateCDR] => 1 ) [2025-04-16 17:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:33:04' and `end` < '2025-04-16 17:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:33:18] Production.INFO: count ==4322 [2025-04-16 17:33:19] Production.ERROR: pbx CDR StartTime 2025-04-16 14:33:04 - End Time 2025-04-16 17:33:04 [2025-04-16 17:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922474', 'tblTempUsageDetail_20' ) start [2025-04-16 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922474', 'tblTempUsageDetail_20' ) end [2025-04-16 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922474', 'tblTempVendorCDR_20' ) start [2025-04-16 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922474', 'tblTempVendorCDR_20' ) end [2025-04-16 17:33:19] Production.INFO: ProcessCDR(1,14922474,1,1,2) [2025-04-16 17:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922474', 'tblTempUsageDetail_20' ) start [2025-04-16 17:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922474', 'tblTempUsageDetail_20' ) end [2025-04-16 17:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:33:24] Production.INFO: ==11714== Releasing lock... [2025-04-16 17:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:33:24] Production.INFO: 60.25 MB #Memory Used# [2025-04-16 17:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:34:06 [end_date_ymd] => 2025-04-16 17:34:06 [RateCDR] => 1 ) [2025-04-16 17:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:34:06' and `end` < '2025-04-16 17:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:34:19] Production.INFO: count ==4314 [2025-04-16 17:34:21] Production.ERROR: pbx CDR StartTime 2025-04-16 14:34:06 - End Time 2025-04-16 17:34:06 [2025-04-16 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922479', 'tblTempUsageDetail_20' ) start [2025-04-16 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922479', 'tblTempUsageDetail_20' ) end [2025-04-16 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922479', 'tblTempVendorCDR_20' ) start [2025-04-16 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922479', 'tblTempVendorCDR_20' ) end [2025-04-16 17:34:21] Production.INFO: ProcessCDR(1,14922479,1,1,2) [2025-04-16 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922479', 'tblTempUsageDetail_20' ) start [2025-04-16 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922479', 'tblTempUsageDetail_20' ) end [2025-04-16 17:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:34:24] Production.INFO: ==11797== Releasing lock... [2025-04-16 17:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:34:24] Production.INFO: 60.25 MB #Memory Used# [2025-04-16 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:35:05 [end_date_ymd] => 2025-04-16 17:35:05 [RateCDR] => 1 ) [2025-04-16 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:35:05' and `end` < '2025-04-16 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:35:18] Production.INFO: count ==4317 [2025-04-16 17:35:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:35:05 - End Time 2025-04-16 17:35:05 [2025-04-16 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922484', 'tblTempUsageDetail_20' ) start [2025-04-16 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922484', 'tblTempUsageDetail_20' ) end [2025-04-16 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922484', 'tblTempVendorCDR_20' ) start [2025-04-16 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922484', 'tblTempVendorCDR_20' ) end [2025-04-16 17:35:20] Production.INFO: ProcessCDR(1,14922484,1,1,2) [2025-04-16 17:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922484', 'tblTempUsageDetail_20' ) start [2025-04-16 17:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922484', 'tblTempUsageDetail_20' ) end [2025-04-16 17:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:35:23] Production.INFO: ==11891== Releasing lock... [2025-04-16 17:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:35:23] Production.INFO: 60.25 MB #Memory Used# [2025-04-16 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:36:05 [end_date_ymd] => 2025-04-16 17:36:05 [RateCDR] => 1 ) [2025-04-16 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:36:05' and `end` < '2025-04-16 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:36:19] Production.INFO: count ==4306 [2025-04-16 17:36:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:36:05 - End Time 2025-04-16 17:36:05 [2025-04-16 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922489', 'tblTempUsageDetail_20' ) start [2025-04-16 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922489', 'tblTempUsageDetail_20' ) end [2025-04-16 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922489', 'tblTempVendorCDR_20' ) start [2025-04-16 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922489', 'tblTempVendorCDR_20' ) end [2025-04-16 17:36:20] Production.INFO: ProcessCDR(1,14922489,1,1,2) [2025-04-16 17:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922489', 'tblTempUsageDetail_20' ) start [2025-04-16 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922489', 'tblTempUsageDetail_20' ) end [2025-04-16 17:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:36:24] Production.INFO: ==11975== Releasing lock... [2025-04-16 17:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:36:24] Production.INFO: 60.25 MB #Memory Used# [2025-04-16 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:37:05 [end_date_ymd] => 2025-04-16 17:37:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 14:37:05' and `end` < '2025-04-16 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-04-16 17:37:18] Production.INFO: count ==4303 [2025-04-16 17:37:19] Production.ERROR: pbx CDR StartTime 2025-04-16 14:37:05 - End Time 2025-04-16 17:37:05 [2025-04-16 17:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922494', 'tblTempUsageDetail_20' ) start [2025-04-16 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922494', 'tblTempUsageDetail_20' ) end [2025-04-16 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922494', 'tblTempVendorCDR_20' ) start [2025-04-16 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922494', 'tblTempVendorCDR_20' ) end [2025-04-16 17:37:19] Production.INFO: ProcessCDR(1,14922494,1,1,2) [2025-04-16 17:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922494', 'tblTempUsageDetail_20' ) start [2025-04-16 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922494', 'tblTempUsageDetail_20' ) end [2025-04-16 17:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:37:24] Production.INFO: ==12054== Releasing lock... [2025-04-16 17:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:37:24] Production.INFO: 60.25 MB #Memory Used# [2025-04-16 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:38:05 [end_date_ymd] => 2025-04-16 17:38:05 [RateCDR] => 1 ) [2025-04-16 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:38:05' and `end` < '2025-04-16 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:38:18] Production.INFO: count ==4295 [2025-04-16 17:38:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:38:05 - End Time 2025-04-16 17:38:05 [2025-04-16 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922499', 'tblTempUsageDetail_20' ) start [2025-04-16 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922499', 'tblTempUsageDetail_20' ) end [2025-04-16 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922499', 'tblTempVendorCDR_20' ) start [2025-04-16 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922499', 'tblTempVendorCDR_20' ) end [2025-04-16 17:38:20] Production.INFO: ProcessCDR(1,14922499,1,1,2) [2025-04-16 17:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922499', 'tblTempUsageDetail_20' ) start [2025-04-16 17:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922499', 'tblTempUsageDetail_20' ) end [2025-04-16 17:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:38:24] Production.INFO: ==12141== Releasing lock... [2025-04-16 17:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:38:24] Production.INFO: 60.25 MB #Memory Used# [2025-04-16 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:39:05 [end_date_ymd] => 2025-04-16 17:39:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 14:39:05' and `end` < '2025-04-16 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-04-16 17:39:19] Production.INFO: count ==4288 [2025-04-16 17:39:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:39:05 - End Time 2025-04-16 17:39:05 [2025-04-16 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922504', 'tblTempUsageDetail_20' ) start [2025-04-16 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922504', 'tblTempUsageDetail_20' ) end [2025-04-16 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922504', 'tblTempVendorCDR_20' ) start [2025-04-16 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922504', 'tblTempVendorCDR_20' ) end [2025-04-16 17:39:20] Production.INFO: ProcessCDR(1,14922504,1,1,2) [2025-04-16 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922504', 'tblTempUsageDetail_20' ) start [2025-04-16 17:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922504', 'tblTempUsageDetail_20' ) end [2025-04-16 17:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:39:24] Production.INFO: ==12222== Releasing lock... [2025-04-16 17:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:39:24] Production.INFO: 60 MB #Memory Used# [2025-04-16 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:40:06 [end_date_ymd] => 2025-04-16 17:40:06 [RateCDR] => 1 ) [2025-04-16 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:40:06' and `end` < '2025-04-16 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:40:19] Production.INFO: count ==4265 [2025-04-16 17:40:21] Production.ERROR: pbx CDR StartTime 2025-04-16 14:40:06 - End Time 2025-04-16 17:40:06 [2025-04-16 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922510', 'tblTempUsageDetail_20' ) start [2025-04-16 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922510', 'tblTempUsageDetail_20' ) end [2025-04-16 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922510', 'tblTempVendorCDR_20' ) start [2025-04-16 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922510', 'tblTempVendorCDR_20' ) end [2025-04-16 17:40:21] Production.INFO: ProcessCDR(1,14922510,1,1,2) [2025-04-16 17:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922510', 'tblTempUsageDetail_20' ) start [2025-04-16 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922510', 'tblTempUsageDetail_20' ) end [2025-04-16 17:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:40:26] Production.INFO: ==12305== Releasing lock... [2025-04-16 17:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:40:26] Production.INFO: 60 MB #Memory Used# [2025-04-16 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:41:05 [end_date_ymd] => 2025-04-16 17:41:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 14:41:05' and `end` < '2025-04-16 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-04-16 17:41:19] Production.INFO: count ==4200 [2025-04-16 17:41:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:41:05 - End Time 2025-04-16 17:41:05 [2025-04-16 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922515', 'tblTempUsageDetail_20' ) start [2025-04-16 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922515', 'tblTempUsageDetail_20' ) end [2025-04-16 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922515', 'tblTempVendorCDR_20' ) start [2025-04-16 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922515', 'tblTempVendorCDR_20' ) end [2025-04-16 17:41:21] Production.INFO: ProcessCDR(1,14922515,1,1,2) [2025-04-16 17:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922515', 'tblTempUsageDetail_20' ) start [2025-04-16 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922515', 'tblTempUsageDetail_20' ) end [2025-04-16 17:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:41:25] Production.INFO: ==12391== Releasing lock... [2025-04-16 17:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:41:25] Production.INFO: 59.5 MB #Memory Used# [2025-04-16 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:42:05 [end_date_ymd] => 2025-04-16 17:42:05 [RateCDR] => 1 ) [2025-04-16 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:42:05' and `end` < '2025-04-16 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:42:18] Production.INFO: count ==4185 [2025-04-16 17:42:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:42:05 - End Time 2025-04-16 17:42:05 [2025-04-16 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922520', 'tblTempUsageDetail_20' ) start [2025-04-16 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922520', 'tblTempUsageDetail_20' ) end [2025-04-16 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922520', 'tblTempVendorCDR_20' ) start [2025-04-16 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922520', 'tblTempVendorCDR_20' ) end [2025-04-16 17:42:20] Production.INFO: ProcessCDR(1,14922520,1,1,2) [2025-04-16 17:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922520', 'tblTempUsageDetail_20' ) start [2025-04-16 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922520', 'tblTempUsageDetail_20' ) end [2025-04-16 17:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:42:24] Production.INFO: ==12478== Releasing lock... [2025-04-16 17:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:42:24] Production.INFO: 59.5 MB #Memory Used# [2025-04-16 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:43:05 [end_date_ymd] => 2025-04-16 17:43:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 14:43:05' and `end` < '2025-04-16 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-04-16 17:43:19] Production.INFO: count ==4182 [2025-04-16 17:43:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:43:05 - End Time 2025-04-16 17:43:05 [2025-04-16 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922525', 'tblTempUsageDetail_20' ) start [2025-04-16 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922525', 'tblTempUsageDetail_20' ) end [2025-04-16 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922525', 'tblTempVendorCDR_20' ) start [2025-04-16 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922525', 'tblTempVendorCDR_20' ) end [2025-04-16 17:43:20] Production.INFO: ProcessCDR(1,14922525,1,1,2) [2025-04-16 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922525', 'tblTempUsageDetail_20' ) start [2025-04-16 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922525', 'tblTempUsageDetail_20' ) end [2025-04-16 17:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:43:23] Production.INFO: ==12568== Releasing lock... [2025-04-16 17:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:43:23] Production.INFO: 59.25 MB #Memory Used# [2025-04-16 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:44:05 [end_date_ymd] => 2025-04-16 17:44:05 [RateCDR] => 1 ) [2025-04-16 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:44:05' and `end` < '2025-04-16 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:44:18] Production.INFO: count ==4178 [2025-04-16 17:44:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:44:05 - End Time 2025-04-16 17:44:05 [2025-04-16 17:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922530', 'tblTempUsageDetail_20' ) start [2025-04-16 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922530', 'tblTempUsageDetail_20' ) end [2025-04-16 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922530', 'tblTempVendorCDR_20' ) start [2025-04-16 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922530', 'tblTempVendorCDR_20' ) end [2025-04-16 17:44:20] Production.INFO: ProcessCDR(1,14922530,1,1,2) [2025-04-16 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922530', 'tblTempUsageDetail_20' ) start [2025-04-16 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922530', 'tblTempUsageDetail_20' ) end [2025-04-16 17:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:44:25] Production.INFO: ==12649== Releasing lock... [2025-04-16 17:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:44:25] Production.INFO: 59.25 MB #Memory Used# [2025-04-16 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:45:05 [end_date_ymd] => 2025-04-16 17:45:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 14:45:05' and `end` < '2025-04-16 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-04-16 17:45:19] Production.INFO: count ==4163 [2025-04-16 17:45:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:45:05 - End Time 2025-04-16 17:45:05 [2025-04-16 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922535', 'tblTempUsageDetail_20' ) start [2025-04-16 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922535', 'tblTempUsageDetail_20' ) end [2025-04-16 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922535', 'tblTempVendorCDR_20' ) start [2025-04-16 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922535', 'tblTempVendorCDR_20' ) end [2025-04-16 17:45:20] Production.INFO: ProcessCDR(1,14922535,1,1,2) [2025-04-16 17:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922535', 'tblTempUsageDetail_20' ) start [2025-04-16 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922535', 'tblTempUsageDetail_20' ) end [2025-04-16 17:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:45:25] Production.INFO: ==12780== Releasing lock... [2025-04-16 17:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:45:25] Production.INFO: 59.5 MB #Memory Used# [2025-04-16 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:46:05 [end_date_ymd] => 2025-04-16 17:46:05 [RateCDR] => 1 ) [2025-04-16 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:46:05' and `end` < '2025-04-16 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:46:18] Production.INFO: count ==4162 [2025-04-16 17:46:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:46:05 - End Time 2025-04-16 17:46:05 [2025-04-16 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922540', 'tblTempUsageDetail_20' ) start [2025-04-16 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922540', 'tblTempUsageDetail_20' ) end [2025-04-16 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922540', 'tblTempVendorCDR_20' ) start [2025-04-16 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922540', 'tblTempVendorCDR_20' ) end [2025-04-16 17:46:20] Production.INFO: ProcessCDR(1,14922540,1,1,2) [2025-04-16 17:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922540', 'tblTempUsageDetail_20' ) start [2025-04-16 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922540', 'tblTempUsageDetail_20' ) end [2025-04-16 17:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:46:25] Production.INFO: ==12872== Releasing lock... [2025-04-16 17:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:46:25] Production.INFO: 59.25 MB #Memory Used# [2025-04-16 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:47:05 [end_date_ymd] => 2025-04-16 17:47:05 [RateCDR] => 1 ) [2025-04-16 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:47:05' and `end` < '2025-04-16 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:47:18] Production.INFO: count ==4149 [2025-04-16 17:47:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:47:05 - End Time 2025-04-16 17:47:05 [2025-04-16 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922545', 'tblTempUsageDetail_20' ) start [2025-04-16 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922545', 'tblTempUsageDetail_20' ) end [2025-04-16 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922545', 'tblTempVendorCDR_20' ) start [2025-04-16 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922545', 'tblTempVendorCDR_20' ) end [2025-04-16 17:47:20] Production.INFO: ProcessCDR(1,14922545,1,1,2) [2025-04-16 17:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922545', 'tblTempUsageDetail_20' ) start [2025-04-16 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922545', 'tblTempUsageDetail_20' ) end [2025-04-16 17:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:47:25] Production.INFO: ==12955== Releasing lock... [2025-04-16 17:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:47:25] Production.INFO: 59 MB #Memory Used# [2025-04-16 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:48:05 [end_date_ymd] => 2025-04-16 17:48:05 [RateCDR] => 1 ) [2025-04-16 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:48:05' and `end` < '2025-04-16 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:48:18] Production.INFO: count ==4143 [2025-04-16 17:48:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:48:05 - End Time 2025-04-16 17:48:05 [2025-04-16 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922550', 'tblTempUsageDetail_20' ) start [2025-04-16 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922550', 'tblTempUsageDetail_20' ) end [2025-04-16 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922550', 'tblTempVendorCDR_20' ) start [2025-04-16 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922550', 'tblTempVendorCDR_20' ) end [2025-04-16 17:48:20] Production.INFO: ProcessCDR(1,14922550,1,1,2) [2025-04-16 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922550', 'tblTempUsageDetail_20' ) start [2025-04-16 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922550', 'tblTempUsageDetail_20' ) end [2025-04-16 17:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:48:25] Production.INFO: ==13041== Releasing lock... [2025-04-16 17:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:48:25] Production.INFO: 59 MB #Memory Used# [2025-04-16 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:49:05 [end_date_ymd] => 2025-04-16 17:49:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 14:49:05' and `end` < '2025-04-16 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-04-16 17:49:18] Production.INFO: count ==4111 [2025-04-16 17:49:19] Production.ERROR: pbx CDR StartTime 2025-04-16 14:49:05 - End Time 2025-04-16 17:49:05 [2025-04-16 17:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922555', 'tblTempUsageDetail_20' ) start [2025-04-16 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922555', 'tblTempUsageDetail_20' ) end [2025-04-16 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922555', 'tblTempVendorCDR_20' ) start [2025-04-16 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922555', 'tblTempVendorCDR_20' ) end [2025-04-16 17:49:20] Production.INFO: ProcessCDR(1,14922555,1,1,2) [2025-04-16 17:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922555', 'tblTempUsageDetail_20' ) start [2025-04-16 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922555', 'tblTempUsageDetail_20' ) end [2025-04-16 17:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:49:24] Production.INFO: ==13131== Releasing lock... [2025-04-16 17:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:49:24] Production.INFO: 58.75 MB #Memory Used# [2025-04-16 17:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:50:07 [end_date_ymd] => 2025-04-16 17:50:07 [RateCDR] => 1 ) [2025-04-16 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-04-16 14:50:07' and `end` < '2025-04-16 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-04-16 17:50:20] Production.INFO: count ==4117 [2025-04-16 17:50:22] Production.ERROR: pbx CDR StartTime 2025-04-16 14:50:07 - End Time 2025-04-16 17:50:07 [2025-04-16 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922561', 'tblTempUsageDetail_20' ) start [2025-04-16 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922561', 'tblTempUsageDetail_20' ) end [2025-04-16 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922561', 'tblTempVendorCDR_20' ) start [2025-04-16 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922561', 'tblTempVendorCDR_20' ) end [2025-04-16 17:50:22] Production.INFO: ProcessCDR(1,14922561,1,1,2) [2025-04-16 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922561', 'tblTempUsageDetail_20' ) start [2025-04-16 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922561', 'tblTempUsageDetail_20' ) end [2025-04-16 17:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:50:27] Production.INFO: ==13214== Releasing lock... [2025-04-16 17:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:50:27] Production.INFO: 58.75 MB #Memory Used# [2025-04-16 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:51:05 [end_date_ymd] => 2025-04-16 17:51:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 14:51:05' and `end` < '2025-04-16 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-04-16 17:51:18] Production.INFO: count ==4061 [2025-04-16 17:51:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:51:05 - End Time 2025-04-16 17:51:05 [2025-04-16 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922566', 'tblTempUsageDetail_20' ) start [2025-04-16 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922566', 'tblTempUsageDetail_20' ) end [2025-04-16 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922566', 'tblTempVendorCDR_20' ) start [2025-04-16 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922566', 'tblTempVendorCDR_20' ) end [2025-04-16 17:51:20] Production.INFO: ProcessCDR(1,14922566,1,1,2) [2025-04-16 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922566', 'tblTempUsageDetail_20' ) start [2025-04-16 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922566', 'tblTempUsageDetail_20' ) end [2025-04-16 17:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:51:25] Production.INFO: ==13302== Releasing lock... [2025-04-16 17:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:51:25] Production.INFO: 58.75 MB #Memory Used# [2025-04-16 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:52:05 [end_date_ymd] => 2025-04-16 17:52:05 [RateCDR] => 1 ) [2025-04-16 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:52:05' and `end` < '2025-04-16 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:52:19] Production.INFO: count ==4034 [2025-04-16 17:52:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:52:05 - End Time 2025-04-16 17:52:05 [2025-04-16 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922571', 'tblTempUsageDetail_20' ) start [2025-04-16 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922571', 'tblTempUsageDetail_20' ) end [2025-04-16 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922571', 'tblTempVendorCDR_20' ) start [2025-04-16 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922571', 'tblTempVendorCDR_20' ) end [2025-04-16 17:52:20] Production.INFO: ProcessCDR(1,14922571,1,1,2) [2025-04-16 17:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922571', 'tblTempUsageDetail_20' ) start [2025-04-16 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922571', 'tblTempUsageDetail_20' ) end [2025-04-16 17:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:52:25] Production.INFO: ==13387== Releasing lock... [2025-04-16 17:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:52:25] Production.INFO: 58.25 MB #Memory Used# [2025-04-16 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:53:05 [end_date_ymd] => 2025-04-16 17:53:05 [RateCDR] => 1 ) [2025-04-16 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:53:05' and `end` < '2025-04-16 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:53:18] Production.INFO: count ==4029 [2025-04-16 17:53:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:53:05 - End Time 2025-04-16 17:53:05 [2025-04-16 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922576', 'tblTempUsageDetail_20' ) start [2025-04-16 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922576', 'tblTempUsageDetail_20' ) end [2025-04-16 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922576', 'tblTempVendorCDR_20' ) start [2025-04-16 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922576', 'tblTempVendorCDR_20' ) end [2025-04-16 17:53:20] Production.INFO: ProcessCDR(1,14922576,1,1,2) [2025-04-16 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922576', 'tblTempUsageDetail_20' ) start [2025-04-16 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922576', 'tblTempUsageDetail_20' ) end [2025-04-16 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:53:25] Production.INFO: ==13469== Releasing lock... [2025-04-16 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:53:25] Production.INFO: 58 MB #Memory Used# [2025-04-16 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:54:05 [end_date_ymd] => 2025-04-16 17:54:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 14:54:05' and `end` < '2025-04-16 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-04-16 17:54:18] Production.INFO: count ==4026 [2025-04-16 17:54:19] Production.ERROR: pbx CDR StartTime 2025-04-16 14:54:05 - End Time 2025-04-16 17:54:05 [2025-04-16 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922581', 'tblTempUsageDetail_20' ) start [2025-04-16 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922581', 'tblTempUsageDetail_20' ) end [2025-04-16 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922581', 'tblTempVendorCDR_20' ) start [2025-04-16 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922581', 'tblTempVendorCDR_20' ) end [2025-04-16 17:54:19] Production.INFO: ProcessCDR(1,14922581,1,1,2) [2025-04-16 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922581', 'tblTempUsageDetail_20' ) start [2025-04-16 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922581', 'tblTempUsageDetail_20' ) end [2025-04-16 17:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:54:24] Production.INFO: ==13553== Releasing lock... [2025-04-16 17:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:54:24] Production.INFO: 58 MB #Memory Used# [2025-04-16 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:55:05 [end_date_ymd] => 2025-04-16 17:55:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 14:55:05' and `end` < '2025-04-16 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-04-16 17:55:20] Production.INFO: count ==4025 [2025-04-16 17:55:21] Production.ERROR: pbx CDR StartTime 2025-04-16 14:55:05 - End Time 2025-04-16 17:55:05 [2025-04-16 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922586', 'tblTempUsageDetail_20' ) start [2025-04-16 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922586', 'tblTempUsageDetail_20' ) end [2025-04-16 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922586', 'tblTempVendorCDR_20' ) start [2025-04-16 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922586', 'tblTempVendorCDR_20' ) end [2025-04-16 17:55:21] Production.INFO: ProcessCDR(1,14922586,1,1,2) [2025-04-16 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922586', 'tblTempUsageDetail_20' ) start [2025-04-16 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922586', 'tblTempUsageDetail_20' ) end [2025-04-16 17:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:55:26] Production.INFO: ==13633== Releasing lock... [2025-04-16 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:55:26] Production.INFO: 58 MB #Memory Used# [2025-04-16 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:56:05 [end_date_ymd] => 2025-04-16 17:56:05 [RateCDR] => 1 ) [2025-04-16 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:56:05' and `end` < '2025-04-16 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:56:19] Production.INFO: count ==4020 [2025-04-16 17:56:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:56:05 - End Time 2025-04-16 17:56:05 [2025-04-16 17:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922591', 'tblTempUsageDetail_20' ) start [2025-04-16 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922591', 'tblTempUsageDetail_20' ) end [2025-04-16 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922591', 'tblTempVendorCDR_20' ) start [2025-04-16 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922591', 'tblTempVendorCDR_20' ) end [2025-04-16 17:56:20] Production.INFO: ProcessCDR(1,14922591,1,1,2) [2025-04-16 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922591', 'tblTempUsageDetail_20' ) start [2025-04-16 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922591', 'tblTempUsageDetail_20' ) end [2025-04-16 17:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:56:25] Production.INFO: ==13718== Releasing lock... [2025-04-16 17:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:56:25] Production.INFO: 58 MB #Memory Used# [2025-04-16 17:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:57:04 [end_date_ymd] => 2025-04-16 17:57:04 [RateCDR] => 1 ) [2025-04-16 17:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:57:04' and `end` < '2025-04-16 17:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:57:17] Production.INFO: count ==3993 [2025-04-16 17:57:19] Production.ERROR: pbx CDR StartTime 2025-04-16 14:57:04 - End Time 2025-04-16 17:57:04 [2025-04-16 17:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922596', 'tblTempUsageDetail_20' ) start [2025-04-16 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922596', 'tblTempUsageDetail_20' ) end [2025-04-16 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922596', 'tblTempVendorCDR_20' ) start [2025-04-16 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922596', 'tblTempVendorCDR_20' ) end [2025-04-16 17:57:19] Production.INFO: ProcessCDR(1,14922596,1,1,2) [2025-04-16 17:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922596', 'tblTempUsageDetail_20' ) start [2025-04-16 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922596', 'tblTempUsageDetail_20' ) end [2025-04-16 17:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:57:24] Production.INFO: ==13799== Releasing lock... [2025-04-16 17:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:57:24] Production.INFO: 57.75 MB #Memory Used# [2025-04-16 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:58:05 [end_date_ymd] => 2025-04-16 17:58:05 [RateCDR] => 1 ) [2025-04-16 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 14:58:05' and `end` < '2025-04-16 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 17:58:18] Production.INFO: count ==3986 [2025-04-16 17:58:20] Production.ERROR: pbx CDR StartTime 2025-04-16 14:58:05 - End Time 2025-04-16 17:58:05 [2025-04-16 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922601', 'tblTempUsageDetail_20' ) start [2025-04-16 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922601', 'tblTempUsageDetail_20' ) end [2025-04-16 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922601', 'tblTempVendorCDR_20' ) start [2025-04-16 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922601', 'tblTempVendorCDR_20' ) end [2025-04-16 17:58:20] Production.INFO: ProcessCDR(1,14922601,1,1,2) [2025-04-16 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922601', 'tblTempUsageDetail_20' ) start [2025-04-16 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922601', 'tblTempUsageDetail_20' ) end [2025-04-16 17:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:58:25] Production.INFO: ==13886== Releasing lock... [2025-04-16 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:58:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-16 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 14:59:05 [end_date_ymd] => 2025-04-16 17:59:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 14:59:05' and `end` < '2025-04-16 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-04-16 17:59:18] Production.INFO: count ==3988 [2025-04-16 17:59:19] Production.ERROR: pbx CDR StartTime 2025-04-16 14:59:05 - End Time 2025-04-16 17:59:05 [2025-04-16 17:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922606', 'tblTempUsageDetail_20' ) start [2025-04-16 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922606', 'tblTempUsageDetail_20' ) end [2025-04-16 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922606', 'tblTempVendorCDR_20' ) start [2025-04-16 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922606', 'tblTempVendorCDR_20' ) end [2025-04-16 17:59:19] Production.INFO: ProcessCDR(1,14922606,1,1,2) [2025-04-16 17:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922606', 'tblTempUsageDetail_20' ) start [2025-04-16 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922606', 'tblTempUsageDetail_20' ) end [2025-04-16 17:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 17:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 17:59:24] Production.INFO: ==13968== Releasing lock... [2025-04-16 17:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 17:59:24] Production.INFO: 57.75 MB #Memory Used# [2025-04-16 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:00:06 [end_date_ymd] => 2025-04-16 18:00:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:00:06' and `end` < '2025-04-16 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-04-16 18:00:19] Production.INFO: count ==3987 [2025-04-16 18:00:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:00:06 - End Time 2025-04-16 18:00:06 [2025-04-16 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922612', 'tblTempUsageDetail_20' ) start [2025-04-16 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922612', 'tblTempUsageDetail_20' ) end [2025-04-16 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922612', 'tblTempVendorCDR_20' ) start [2025-04-16 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922612', 'tblTempVendorCDR_20' ) end [2025-04-16 18:00:20] Production.INFO: ProcessCDR(1,14922612,1,1,2) [2025-04-16 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922612', 'tblTempUsageDetail_20' ) start [2025-04-16 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922612', 'tblTempUsageDetail_20' ) end [2025-04-16 18:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:00:25] Production.INFO: ==14055== Releasing lock... [2025-04-16 18:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:00:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-16 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:01:06 [end_date_ymd] => 2025-04-16 18:01:06 [RateCDR] => 1 ) [2025-04-16 18: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-04-16 15:01:06' and `end` < '2025-04-16 18: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-04-16 18:01:19] Production.INFO: count ==3933 [2025-04-16 18:01:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:01:06 - End Time 2025-04-16 18:01:06 [2025-04-16 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922617', 'tblTempUsageDetail_20' ) start [2025-04-16 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922617', 'tblTempUsageDetail_20' ) end [2025-04-16 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922617', 'tblTempVendorCDR_20' ) start [2025-04-16 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922617', 'tblTempVendorCDR_20' ) end [2025-04-16 18:01:20] Production.INFO: ProcessCDR(1,14922617,1,1,2) [2025-04-16 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922617', 'tblTempUsageDetail_20' ) start [2025-04-16 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922617', 'tblTempUsageDetail_20' ) end [2025-04-16 18:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:01:24] Production.INFO: ==14199== Releasing lock... [2025-04-16 18:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:01:24] Production.INFO: 57.25 MB #Memory Used# [2025-04-16 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:02:05 [end_date_ymd] => 2025-04-16 18:02:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:02:05' and `end` < '2025-04-16 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-04-16 18:02:18] Production.INFO: count ==3913 [2025-04-16 18:02:19] Production.ERROR: pbx CDR StartTime 2025-04-16 15:02:05 - End Time 2025-04-16 18:02:05 [2025-04-16 18:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922622', 'tblTempUsageDetail_20' ) start [2025-04-16 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922622', 'tblTempUsageDetail_20' ) end [2025-04-16 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922622', 'tblTempVendorCDR_20' ) start [2025-04-16 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922622', 'tblTempVendorCDR_20' ) end [2025-04-16 18:02:20] Production.INFO: ProcessCDR(1,14922622,1,1,2) [2025-04-16 18:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922622', 'tblTempUsageDetail_20' ) start [2025-04-16 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922622', 'tblTempUsageDetail_20' ) end [2025-04-16 18:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:02:24] Production.INFO: ==14295== Releasing lock... [2025-04-16 18:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:02:24] Production.INFO: 57.5 MB #Memory Used# [2025-04-16 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:03:05 [end_date_ymd] => 2025-04-16 18:03:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:03:05' and `end` < '2025-04-16 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-04-16 18:03:19] Production.INFO: count ==3902 [2025-04-16 18:03:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:03:05 - End Time 2025-04-16 18:03:05 [2025-04-16 18:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922627', 'tblTempUsageDetail_20' ) start [2025-04-16 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922627', 'tblTempUsageDetail_20' ) end [2025-04-16 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922627', 'tblTempVendorCDR_20' ) start [2025-04-16 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922627', 'tblTempVendorCDR_20' ) end [2025-04-16 18:03:20] Production.INFO: ProcessCDR(1,14922627,1,1,2) [2025-04-16 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922627', 'tblTempUsageDetail_20' ) start [2025-04-16 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922627', 'tblTempUsageDetail_20' ) end [2025-04-16 18:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:03:25] Production.INFO: ==14375== Releasing lock... [2025-04-16 18:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:03:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-16 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:04:05 [end_date_ymd] => 2025-04-16 18:04:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:04:05' and `end` < '2025-04-16 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-04-16 18:04:18] Production.INFO: count ==3892 [2025-04-16 18:04:19] Production.ERROR: pbx CDR StartTime 2025-04-16 15:04:05 - End Time 2025-04-16 18:04:05 [2025-04-16 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922632', 'tblTempUsageDetail_20' ) start [2025-04-16 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922632', 'tblTempUsageDetail_20' ) end [2025-04-16 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922632', 'tblTempVendorCDR_20' ) start [2025-04-16 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922632', 'tblTempVendorCDR_20' ) end [2025-04-16 18:04:20] Production.INFO: ProcessCDR(1,14922632,1,1,2) [2025-04-16 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922632', 'tblTempUsageDetail_20' ) start [2025-04-16 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922632', 'tblTempUsageDetail_20' ) end [2025-04-16 18:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:04:24] Production.INFO: ==14460== Releasing lock... [2025-04-16 18:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:04:24] Production.INFO: 57.75 MB #Memory Used# [2025-04-16 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:05:05 [end_date_ymd] => 2025-04-16 18:05:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:05:05' and `end` < '2025-04-16 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-04-16 18:05:19] Production.INFO: count ==3871 [2025-04-16 18:05:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:05:05 - End Time 2025-04-16 18:05:05 [2025-04-16 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922637', 'tblTempUsageDetail_20' ) start [2025-04-16 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922637', 'tblTempUsageDetail_20' ) end [2025-04-16 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922637', 'tblTempVendorCDR_20' ) start [2025-04-16 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922637', 'tblTempVendorCDR_20' ) end [2025-04-16 18:05:20] Production.INFO: ProcessCDR(1,14922637,1,1,2) [2025-04-16 18:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922637', 'tblTempUsageDetail_20' ) start [2025-04-16 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922637', 'tblTempUsageDetail_20' ) end [2025-04-16 18:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:05:25] Production.INFO: ==14549== Releasing lock... [2025-04-16 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:05:25] Production.INFO: 57 MB #Memory Used# [2025-04-16 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:06:05 [end_date_ymd] => 2025-04-16 18:06:05 [RateCDR] => 1 ) [2025-04-16 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 15:06:05' and `end` < '2025-04-16 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 18:06:18] Production.INFO: count ==3874 [2025-04-16 18:06:19] Production.ERROR: pbx CDR StartTime 2025-04-16 15:06:05 - End Time 2025-04-16 18:06:05 [2025-04-16 18:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922642', 'tblTempUsageDetail_20' ) start [2025-04-16 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922642', 'tblTempUsageDetail_20' ) end [2025-04-16 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922642', 'tblTempVendorCDR_20' ) start [2025-04-16 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922642', 'tblTempVendorCDR_20' ) end [2025-04-16 18:06:20] Production.INFO: ProcessCDR(1,14922642,1,1,2) [2025-04-16 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922642', 'tblTempUsageDetail_20' ) start [2025-04-16 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922642', 'tblTempUsageDetail_20' ) end [2025-04-16 18:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:06:23] Production.INFO: ==14635== Releasing lock... [2025-04-16 18:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:06:23] Production.INFO: 57 MB #Memory Used# [2025-04-16 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:07:05 [end_date_ymd] => 2025-04-16 18:07:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:07:05' and `end` < '2025-04-16 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-04-16 18:07:18] Production.INFO: count ==3864 [2025-04-16 18:07:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:07:05 - End Time 2025-04-16 18:07:05 [2025-04-16 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922647', 'tblTempUsageDetail_20' ) start [2025-04-16 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922647', 'tblTempUsageDetail_20' ) end [2025-04-16 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922647', 'tblTempVendorCDR_20' ) start [2025-04-16 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922647', 'tblTempVendorCDR_20' ) end [2025-04-16 18:07:20] Production.INFO: ProcessCDR(1,14922647,1,1,2) [2025-04-16 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922647', 'tblTempUsageDetail_20' ) start [2025-04-16 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922647', 'tblTempUsageDetail_20' ) end [2025-04-16 18:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:07:25] Production.INFO: ==14713== Releasing lock... [2025-04-16 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:07:25] Production.INFO: 56.75 MB #Memory Used# [2025-04-16 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:08:05 [end_date_ymd] => 2025-04-16 18:08:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:08:05' and `end` < '2025-04-16 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-04-16 18:08:19] Production.INFO: count ==3862 [2025-04-16 18:08:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:08:05 - End Time 2025-04-16 18:08:05 [2025-04-16 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922652', 'tblTempUsageDetail_20' ) start [2025-04-16 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922652', 'tblTempUsageDetail_20' ) end [2025-04-16 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922652', 'tblTempVendorCDR_20' ) start [2025-04-16 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922652', 'tblTempVendorCDR_20' ) end [2025-04-16 18:08:20] Production.INFO: ProcessCDR(1,14922652,1,1,2) [2025-04-16 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922652', 'tblTempUsageDetail_20' ) start [2025-04-16 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922652', 'tblTempUsageDetail_20' ) end [2025-04-16 18:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:08:25] Production.INFO: ==14793== Releasing lock... [2025-04-16 18:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:08:25] Production.INFO: 56.75 MB #Memory Used# [2025-04-16 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:09:05 [end_date_ymd] => 2025-04-16 18:09:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:09:05' and `end` < '2025-04-16 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-04-16 18:09:18] Production.INFO: count ==3869 [2025-04-16 18:09:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:09:05 - End Time 2025-04-16 18:09:05 [2025-04-16 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922657', 'tblTempUsageDetail_20' ) start [2025-04-16 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922657', 'tblTempUsageDetail_20' ) end [2025-04-16 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922657', 'tblTempVendorCDR_20' ) start [2025-04-16 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922657', 'tblTempVendorCDR_20' ) end [2025-04-16 18:09:20] Production.INFO: ProcessCDR(1,14922657,1,1,2) [2025-04-16 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922657', 'tblTempUsageDetail_20' ) start [2025-04-16 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922657', 'tblTempUsageDetail_20' ) end [2025-04-16 18:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:09:23] Production.INFO: ==14885== Releasing lock... [2025-04-16 18:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:09:23] Production.INFO: 57 MB #Memory Used# [2025-04-16 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:10:05 [end_date_ymd] => 2025-04-16 18:10:05 [RateCDR] => 1 ) [2025-04-16 18:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 15:10:05' and `end` < '2025-04-16 18:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 18:10:19] Production.INFO: count ==3871 [2025-04-16 18:10:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:10:05 - End Time 2025-04-16 18:10:05 [2025-04-16 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922663', 'tblTempUsageDetail_20' ) start [2025-04-16 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922663', 'tblTempUsageDetail_20' ) end [2025-04-16 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922663', 'tblTempVendorCDR_20' ) start [2025-04-16 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922663', 'tblTempVendorCDR_20' ) end [2025-04-16 18:10:20] Production.INFO: ProcessCDR(1,14922663,1,1,2) [2025-04-16 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922663', 'tblTempUsageDetail_20' ) start [2025-04-16 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922663', 'tblTempUsageDetail_20' ) end [2025-04-16 18:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:10:25] Production.INFO: ==14969== Releasing lock... [2025-04-16 18:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:10:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-16 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:11:05 [end_date_ymd] => 2025-04-16 18:11:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:11:05' and `end` < '2025-04-16 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-04-16 18:11:18] Production.INFO: count ==3849 [2025-04-16 18:11:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:11:05 - End Time 2025-04-16 18:11:05 [2025-04-16 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922668', 'tblTempUsageDetail_20' ) start [2025-04-16 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922668', 'tblTempUsageDetail_20' ) end [2025-04-16 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922668', 'tblTempVendorCDR_20' ) start [2025-04-16 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922668', 'tblTempVendorCDR_20' ) end [2025-04-16 18:11:20] Production.INFO: ProcessCDR(1,14922668,1,1,2) [2025-04-16 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922668', 'tblTempUsageDetail_20' ) start [2025-04-16 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922668', 'tblTempUsageDetail_20' ) end [2025-04-16 18:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:11:25] Production.INFO: ==15051== Releasing lock... [2025-04-16 18:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:11:25] Production.INFO: 56.75 MB #Memory Used# [2025-04-16 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:12:05 [end_date_ymd] => 2025-04-16 18:12:05 [RateCDR] => 1 ) [2025-04-16 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 15:12:05' and `end` < '2025-04-16 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 18:12:18] Production.INFO: count ==3847 [2025-04-16 18:12:19] Production.ERROR: pbx CDR StartTime 2025-04-16 15:12:05 - End Time 2025-04-16 18:12:05 [2025-04-16 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922673', 'tblTempUsageDetail_20' ) start [2025-04-16 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922673', 'tblTempUsageDetail_20' ) end [2025-04-16 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922673', 'tblTempVendorCDR_20' ) start [2025-04-16 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922673', 'tblTempVendorCDR_20' ) end [2025-04-16 18:12:19] Production.INFO: ProcessCDR(1,14922673,1,1,2) [2025-04-16 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922673', 'tblTempUsageDetail_20' ) start [2025-04-16 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922673', 'tblTempUsageDetail_20' ) end [2025-04-16 18:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:12:25] Production.INFO: ==15139== Releasing lock... [2025-04-16 18:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:12:25] Production.INFO: 56.75 MB #Memory Used# [2025-04-16 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:13:05 [end_date_ymd] => 2025-04-16 18:13:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:13:05' and `end` < '2025-04-16 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-04-16 18:13:18] Production.INFO: count ==3846 [2025-04-16 18:13:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:13:05 - End Time 2025-04-16 18:13:05 [2025-04-16 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922678', 'tblTempUsageDetail_20' ) start [2025-04-16 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922678', 'tblTempUsageDetail_20' ) end [2025-04-16 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922678', 'tblTempVendorCDR_20' ) start [2025-04-16 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922678', 'tblTempVendorCDR_20' ) end [2025-04-16 18:13:20] Production.INFO: ProcessCDR(1,14922678,1,1,2) [2025-04-16 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922678', 'tblTempUsageDetail_20' ) start [2025-04-16 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922678', 'tblTempUsageDetail_20' ) end [2025-04-16 18:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:13:25] Production.INFO: ==15226== Releasing lock... [2025-04-16 18:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:13:25] Production.INFO: 56.75 MB #Memory Used# [2025-04-16 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:14:06 [end_date_ymd] => 2025-04-16 18:14:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:14:06' and `end` < '2025-04-16 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-04-16 18:14:19] Production.INFO: count ==3839 [2025-04-16 18:14:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:14:06 - End Time 2025-04-16 18:14:06 [2025-04-16 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922683', 'tblTempUsageDetail_20' ) start [2025-04-16 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922683', 'tblTempUsageDetail_20' ) end [2025-04-16 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922683', 'tblTempVendorCDR_20' ) start [2025-04-16 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922683', 'tblTempVendorCDR_20' ) end [2025-04-16 18:14:20] Production.INFO: ProcessCDR(1,14922683,1,1,2) [2025-04-16 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922683', 'tblTempUsageDetail_20' ) start [2025-04-16 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922683', 'tblTempUsageDetail_20' ) end [2025-04-16 18:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:14:26] Production.INFO: ==15314== Releasing lock... [2025-04-16 18:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:14:26] Production.INFO: 56.75 MB #Memory Used# [2025-04-16 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:15:05 [end_date_ymd] => 2025-04-16 18:15:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:15:05' and `end` < '2025-04-16 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-04-16 18:15:18] Production.INFO: count ==3824 [2025-04-16 18:15:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:15:05 - End Time 2025-04-16 18:15:05 [2025-04-16 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922688', 'tblTempUsageDetail_20' ) start [2025-04-16 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922688', 'tblTempUsageDetail_20' ) end [2025-04-16 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922688', 'tblTempVendorCDR_20' ) start [2025-04-16 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922688', 'tblTempVendorCDR_20' ) end [2025-04-16 18:15:20] Production.INFO: ProcessCDR(1,14922688,1,1,2) [2025-04-16 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922688', 'tblTempUsageDetail_20' ) start [2025-04-16 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922688', 'tblTempUsageDetail_20' ) end [2025-04-16 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:15:25] Production.INFO: ==15397== Releasing lock... [2025-04-16 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:15:25] Production.INFO: 56.5 MB #Memory Used# [2025-04-16 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:16:05 [end_date_ymd] => 2025-04-16 18:16:05 [RateCDR] => 1 ) [2025-04-16 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 15:16:05' and `end` < '2025-04-16 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 18:16:18] Production.INFO: count ==3815 [2025-04-16 18:16:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:16:05 - End Time 2025-04-16 18:16:05 [2025-04-16 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922693', 'tblTempUsageDetail_20' ) start [2025-04-16 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922693', 'tblTempUsageDetail_20' ) end [2025-04-16 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922693', 'tblTempVendorCDR_20' ) start [2025-04-16 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922693', 'tblTempVendorCDR_20' ) end [2025-04-16 18:16:20] Production.INFO: ProcessCDR(1,14922693,1,1,2) [2025-04-16 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922693', 'tblTempUsageDetail_20' ) start [2025-04-16 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922693', 'tblTempUsageDetail_20' ) end [2025-04-16 18:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:16:23] Production.INFO: ==15526== Releasing lock... [2025-04-16 18:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:16:23] Production.INFO: 56.5 MB #Memory Used# [2025-04-16 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:17:05 [end_date_ymd] => 2025-04-16 18:17:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:17:05' and `end` < '2025-04-16 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-04-16 18:17:18] Production.INFO: count ==3802 [2025-04-16 18:17:19] Production.ERROR: pbx CDR StartTime 2025-04-16 15:17:05 - End Time 2025-04-16 18:17:05 [2025-04-16 18:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922698', 'tblTempUsageDetail_20' ) start [2025-04-16 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922698', 'tblTempUsageDetail_20' ) end [2025-04-16 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922698', 'tblTempVendorCDR_20' ) start [2025-04-16 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922698', 'tblTempVendorCDR_20' ) end [2025-04-16 18:17:20] Production.INFO: ProcessCDR(1,14922698,1,1,2) [2025-04-16 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922698', 'tblTempUsageDetail_20' ) start [2025-04-16 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922698', 'tblTempUsageDetail_20' ) end [2025-04-16 18:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:17:25] Production.INFO: ==15610== Releasing lock... [2025-04-16 18:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:17:25] Production.INFO: 57.5 MB #Memory Used# [2025-04-16 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:18:05 [end_date_ymd] => 2025-04-16 18:18:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:18:05' and `end` < '2025-04-16 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-04-16 18:18:19] Production.INFO: count ==3795 [2025-04-16 18:18:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:18:05 - End Time 2025-04-16 18:18:05 [2025-04-16 18:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922703', 'tblTempUsageDetail_20' ) start [2025-04-16 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922703', 'tblTempUsageDetail_20' ) end [2025-04-16 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922703', 'tblTempVendorCDR_20' ) start [2025-04-16 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922703', 'tblTempVendorCDR_20' ) end [2025-04-16 18:18:20] Production.INFO: ProcessCDR(1,14922703,1,1,2) [2025-04-16 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922703', 'tblTempUsageDetail_20' ) start [2025-04-16 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922703', 'tblTempUsageDetail_20' ) end [2025-04-16 18:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:18:25] Production.INFO: ==15692== Releasing lock... [2025-04-16 18:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:18:25] Production.INFO: 56.25 MB #Memory Used# [2025-04-16 18:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:19:04 [end_date_ymd] => 2025-04-16 18:19:04 [RateCDR] => 1 ) [2025-04-16 18:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 15:19:04' and `end` < '2025-04-16 18:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 18:19:17] Production.INFO: count ==3787 [2025-04-16 18:19:19] Production.ERROR: pbx CDR StartTime 2025-04-16 15:19:04 - End Time 2025-04-16 18:19:04 [2025-04-16 18:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922708', 'tblTempUsageDetail_20' ) start [2025-04-16 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922708', 'tblTempUsageDetail_20' ) end [2025-04-16 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922708', 'tblTempVendorCDR_20' ) start [2025-04-16 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922708', 'tblTempVendorCDR_20' ) end [2025-04-16 18:19:19] Production.INFO: ProcessCDR(1,14922708,1,1,2) [2025-04-16 18:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922708', 'tblTempUsageDetail_20' ) start [2025-04-16 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922708', 'tblTempUsageDetail_20' ) end [2025-04-16 18:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:19:24] Production.INFO: ==15777== Releasing lock... [2025-04-16 18:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:19:24] Production.INFO: 57 MB #Memory Used# [2025-04-16 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:20:06 [end_date_ymd] => 2025-04-16 18:20:06 [RateCDR] => 1 ) [2025-04-16 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 15:20:06' and `end` < '2025-04-16 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 18:20:19] Production.INFO: count ==3785 [2025-04-16 18:20:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:20:06 - End Time 2025-04-16 18:20:06 [2025-04-16 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922714', 'tblTempUsageDetail_20' ) start [2025-04-16 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922714', 'tblTempUsageDetail_20' ) end [2025-04-16 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922714', 'tblTempVendorCDR_20' ) start [2025-04-16 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922714', 'tblTempVendorCDR_20' ) end [2025-04-16 18:20:20] Production.INFO: ProcessCDR(1,14922714,1,1,2) [2025-04-16 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922714', 'tblTempUsageDetail_20' ) start [2025-04-16 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922714', 'tblTempUsageDetail_20' ) end [2025-04-16 18:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:20:25] Production.INFO: ==15862== Releasing lock... [2025-04-16 18:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:20:25] Production.INFO: 56.25 MB #Memory Used# [2025-04-16 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:21:05 [end_date_ymd] => 2025-04-16 18:21:05 [RateCDR] => 1 ) [2025-04-16 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 15:21:05' and `end` < '2025-04-16 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 18:21:18] Production.INFO: count ==3755 [2025-04-16 18:21:19] Production.ERROR: pbx CDR StartTime 2025-04-16 15:21:05 - End Time 2025-04-16 18:21:05 [2025-04-16 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922719', 'tblTempUsageDetail_20' ) start [2025-04-16 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922719', 'tblTempUsageDetail_20' ) end [2025-04-16 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922719', 'tblTempVendorCDR_20' ) start [2025-04-16 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922719', 'tblTempVendorCDR_20' ) end [2025-04-16 18:21:19] Production.INFO: ProcessCDR(1,14922719,1,1,2) [2025-04-16 18:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922719', 'tblTempUsageDetail_20' ) start [2025-04-16 18:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922719', 'tblTempUsageDetail_20' ) end [2025-04-16 18:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:21:22] Production.INFO: ==15947== Releasing lock... [2025-04-16 18:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:21:22] Production.INFO: 56.5 MB #Memory Used# [2025-04-16 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:22:05 [end_date_ymd] => 2025-04-16 18:22:05 [RateCDR] => 1 ) [2025-04-16 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 15:22:05' and `end` < '2025-04-16 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 18:22:19] Production.INFO: count ==3746 [2025-04-16 18:22:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:22:05 - End Time 2025-04-16 18:22:05 [2025-04-16 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922724', 'tblTempUsageDetail_20' ) start [2025-04-16 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922724', 'tblTempUsageDetail_20' ) end [2025-04-16 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922724', 'tblTempVendorCDR_20' ) start [2025-04-16 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922724', 'tblTempVendorCDR_20' ) end [2025-04-16 18:22:20] Production.INFO: ProcessCDR(1,14922724,1,1,2) [2025-04-16 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922724', 'tblTempUsageDetail_20' ) start [2025-04-16 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922724', 'tblTempUsageDetail_20' ) end [2025-04-16 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:22:25] Production.INFO: ==16034== Releasing lock... [2025-04-16 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:22:25] Production.INFO: 56 MB #Memory Used# [2025-04-16 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:23:05 [end_date_ymd] => 2025-04-16 18:23:05 [RateCDR] => 1 ) [2025-04-16 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 15:23:05' and `end` < '2025-04-16 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 18:23:19] Production.INFO: count ==3738 [2025-04-16 18:23:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:23:05 - End Time 2025-04-16 18:23:05 [2025-04-16 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922729', 'tblTempUsageDetail_20' ) start [2025-04-16 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922729', 'tblTempUsageDetail_20' ) end [2025-04-16 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922729', 'tblTempVendorCDR_20' ) start [2025-04-16 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922729', 'tblTempVendorCDR_20' ) end [2025-04-16 18:23:20] Production.INFO: ProcessCDR(1,14922729,1,1,2) [2025-04-16 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922729', 'tblTempUsageDetail_20' ) start [2025-04-16 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922729', 'tblTempUsageDetail_20' ) end [2025-04-16 18:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:23:25] Production.INFO: ==16120== Releasing lock... [2025-04-16 18:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:23:25] Production.INFO: 56 MB #Memory Used# [2025-04-16 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:24:05 [end_date_ymd] => 2025-04-16 18:24:05 [RateCDR] => 1 ) [2025-04-16 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 15:24:05' and `end` < '2025-04-16 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 18:24:18] Production.INFO: count ==3732 [2025-04-16 18:24:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:24:05 - End Time 2025-04-16 18:24:05 [2025-04-16 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922734', 'tblTempUsageDetail_20' ) start [2025-04-16 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922734', 'tblTempUsageDetail_20' ) end [2025-04-16 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922734', 'tblTempVendorCDR_20' ) start [2025-04-16 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922734', 'tblTempVendorCDR_20' ) end [2025-04-16 18:24:20] Production.INFO: ProcessCDR(1,14922734,1,1,2) [2025-04-16 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922734', 'tblTempUsageDetail_20' ) start [2025-04-16 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922734', 'tblTempUsageDetail_20' ) end [2025-04-16 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:24:25] Production.INFO: ==16202== Releasing lock... [2025-04-16 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:24:25] Production.INFO: 56.75 MB #Memory Used# [2025-04-16 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:25:06 [end_date_ymd] => 2025-04-16 18:25:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:25:06' and `end` < '2025-04-16 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-04-16 18:25:20] Production.INFO: count ==3733 [2025-04-16 18:25:21] Production.ERROR: pbx CDR StartTime 2025-04-16 15:25:06 - End Time 2025-04-16 18:25:06 [2025-04-16 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922739', 'tblTempUsageDetail_20' ) start [2025-04-16 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922739', 'tblTempUsageDetail_20' ) end [2025-04-16 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922739', 'tblTempVendorCDR_20' ) start [2025-04-16 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922739', 'tblTempVendorCDR_20' ) end [2025-04-16 18:25:21] Production.INFO: ProcessCDR(1,14922739,1,1,2) [2025-04-16 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:25:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922739', 'tblTempUsageDetail_20' ) start [2025-04-16 18:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922739', 'tblTempUsageDetail_20' ) end [2025-04-16 18:25:37] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:25:38] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:25:38] Production.INFO: ==16288== Releasing lock... [2025-04-16 18:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:25:38] Production.INFO: 55.75 MB #Memory Used# [2025-04-16 18:26:13] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:26:13 [end_date_ymd] => 2025-04-16 18:26:13 [RateCDR] => 1 ) [2025-04-16 18:26:13] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 15:26:13' and `end` < '2025-04-16 18:26:13' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 18:26:26] Production.INFO: count ==3731 [2025-04-16 18:27:11] Production.ERROR: pbx CDR StartTime 2025-04-16 15:26:13 - End Time 2025-04-16 18:26:13 [2025-04-16 18:27:11] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:27:11] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922744', 'tblTempUsageDetail_20' ) start [2025-04-16 18:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922744', 'tblTempUsageDetail_20' ) end [2025-04-16 18:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922744', 'tblTempVendorCDR_20' ) start [2025-04-16 18:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922744', 'tblTempVendorCDR_20' ) end [2025-04-16 18:27:16] Production.INFO: ProcessCDR(1,14922744,1,1,2) [2025-04-16 18:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:27:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:27:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922744', 'tblTempUsageDetail_20' ) start [2025-04-16 18:27:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922744', 'tblTempUsageDetail_20' ) end [2025-04-16 18:27:52] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:27:52] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:27:56] Production.INFO: ==16367== Releasing lock... [2025-04-16 18:27:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:27:56] Production.INFO: 55.75 MB #Memory Used# [2025-04-16 18:28:21] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:28:20 [end_date_ymd] => 2025-04-16 18:28:20 [RateCDR] => 1 ) [2025-04-16 18:28:21] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 15:28:20' and `end` < '2025-04-16 18:28:20' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 18:28:34] Production.INFO: count ==3736 [2025-04-16 18:28:58] Production.ERROR: pbx CDR StartTime 2025-04-16 15:28:20 - End Time 2025-04-16 18:28:20 [2025-04-16 18:28:58] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:28:58] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922751', 'tblTempUsageDetail_20' ) start [2025-04-16 18:28:58] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922751', 'tblTempUsageDetail_20' ) end [2025-04-16 18:28:58] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922751', 'tblTempVendorCDR_20' ) start [2025-04-16 18:28:58] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922751', 'tblTempVendorCDR_20' ) end [2025-04-16 18:28:58] Production.INFO: ProcessCDR(1,14922751,1,1,2) [2025-04-16 18:28:58] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:29:04] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:29:04] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:29:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:29:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922751', 'tblTempUsageDetail_20' ) start [2025-04-16 18:29:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922751', 'tblTempUsageDetail_20' ) end [2025-04-16 18:29:51] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:29:51] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:29:54] Production.INFO: ==16530== Releasing lock... [2025-04-16 18:29:54] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:29:54] Production.INFO: 56 MB #Memory Used# [2025-04-16 18:30:23] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:30:23 [end_date_ymd] => 2025-04-16 18:30:23 [RateCDR] => 1 ) [2025-04-16 18:30:23] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 15:30:23' and `end` < '2025-04-16 18:30:23' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 18:30:36] Production.INFO: count ==3722 [2025-04-16 18:30:59] Production.ERROR: pbx CDR StartTime 2025-04-16 15:30:23 - End Time 2025-04-16 18:30:23 [2025-04-16 18:30:59] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:30:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922760', 'tblTempUsageDetail_20' ) start [2025-04-16 18:30:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922760', 'tblTempUsageDetail_20' ) end [2025-04-16 18:30:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922760', 'tblTempVendorCDR_20' ) start [2025-04-16 18:31:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922760', 'tblTempVendorCDR_20' ) end [2025-04-16 18:31:00] Production.INFO: ProcessCDR(1,14922760,1,1,2) [2025-04-16 18:31:00] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:31:10] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:31:10] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:31:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:31:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922760', 'tblTempUsageDetail_20' ) start [2025-04-16 18:31:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922760', 'tblTempUsageDetail_20' ) end [2025-04-16 18:31:39] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:31:40] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:31:40] Production.INFO: ==16693== Releasing lock... [2025-04-16 18:31:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:31:40] Production.INFO: 56.75 MB #Memory Used# [2025-04-16 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:32:05 [end_date_ymd] => 2025-04-16 18:32:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:32:05' and `end` < '2025-04-16 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-04-16 18:32:18] Production.INFO: count ==3720 [2025-04-16 18:32:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:32:05 - End Time 2025-04-16 18:32:05 [2025-04-16 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922769', 'tblTempUsageDetail_20' ) start [2025-04-16 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922769', 'tblTempUsageDetail_20' ) end [2025-04-16 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922769', 'tblTempVendorCDR_20' ) start [2025-04-16 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922769', 'tblTempVendorCDR_20' ) end [2025-04-16 18:32:20] Production.INFO: ProcessCDR(1,14922769,1,1,2) [2025-04-16 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922769', 'tblTempUsageDetail_20' ) start [2025-04-16 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922769', 'tblTempUsageDetail_20' ) end [2025-04-16 18:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:32:25] Production.INFO: ==16897== Releasing lock... [2025-04-16 18:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:32:25] Production.INFO: 56 MB #Memory Used# [2025-04-16 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:33:05 [end_date_ymd] => 2025-04-16 18:33:05 [RateCDR] => 1 ) [2025-04-16 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 15:33:05' and `end` < '2025-04-16 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 18:33:19] Production.INFO: count ==3720 [2025-04-16 18:33:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:33:05 - End Time 2025-04-16 18:33:05 [2025-04-16 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922774', 'tblTempUsageDetail_20' ) start [2025-04-16 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922774', 'tblTempUsageDetail_20' ) end [2025-04-16 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922774', 'tblTempVendorCDR_20' ) start [2025-04-16 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922774', 'tblTempVendorCDR_20' ) end [2025-04-16 18:33:20] Production.INFO: ProcessCDR(1,14922774,1,1,2) [2025-04-16 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922774', 'tblTempUsageDetail_20' ) start [2025-04-16 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922774', 'tblTempUsageDetail_20' ) end [2025-04-16 18:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:33:25] Production.INFO: ==16977== Releasing lock... [2025-04-16 18:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:33:25] Production.INFO: 56 MB #Memory Used# [2025-04-16 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:34:05 [end_date_ymd] => 2025-04-16 18:34:05 [RateCDR] => 1 ) [2025-04-16 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 15:34:05' and `end` < '2025-04-16 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 18:34:18] Production.INFO: count ==3711 [2025-04-16 18:34:19] Production.ERROR: pbx CDR StartTime 2025-04-16 15:34:05 - End Time 2025-04-16 18:34:05 [2025-04-16 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922779', 'tblTempUsageDetail_20' ) start [2025-04-16 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922779', 'tblTempUsageDetail_20' ) end [2025-04-16 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922779', 'tblTempVendorCDR_20' ) start [2025-04-16 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922779', 'tblTempVendorCDR_20' ) end [2025-04-16 18:34:19] Production.INFO: ProcessCDR(1,14922779,1,1,2) [2025-04-16 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922779', 'tblTempUsageDetail_20' ) start [2025-04-16 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922779', 'tblTempUsageDetail_20' ) end [2025-04-16 18:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:34:23] Production.INFO: ==17063== Releasing lock... [2025-04-16 18:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:34:23] Production.INFO: 56 MB #Memory Used# [2025-04-16 18:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:35:05 [end_date_ymd] => 2025-04-16 18:35:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:35:05' and `end` < '2025-04-16 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 18:35:19] Production.INFO: count ==3702 [2025-04-16 18:35:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:35:05 - End Time 2025-04-16 18:35:05 [2025-04-16 18:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922784', 'tblTempUsageDetail_20' ) start [2025-04-16 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922784', 'tblTempUsageDetail_20' ) end [2025-04-16 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922784', 'tblTempVendorCDR_20' ) start [2025-04-16 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922784', 'tblTempVendorCDR_20' ) end [2025-04-16 18:35:20] Production.INFO: ProcessCDR(1,14922784,1,1,2) [2025-04-16 18:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922784', 'tblTempUsageDetail_20' ) start [2025-04-16 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922784', 'tblTempUsageDetail_20' ) end [2025-04-16 18:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:35:25] Production.INFO: ==17144== Releasing lock... [2025-04-16 18:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:35:25] Production.INFO: 55.75 MB #Memory Used# [2025-04-16 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:36:05 [end_date_ymd] => 2025-04-16 18:36:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:36:05' and `end` < '2025-04-16 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-04-16 18:36:18] Production.INFO: count ==3688 [2025-04-16 18:36:19] Production.ERROR: pbx CDR StartTime 2025-04-16 15:36:05 - End Time 2025-04-16 18:36:05 [2025-04-16 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922789', 'tblTempUsageDetail_20' ) start [2025-04-16 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922789', 'tblTempUsageDetail_20' ) end [2025-04-16 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922789', 'tblTempVendorCDR_20' ) start [2025-04-16 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922789', 'tblTempVendorCDR_20' ) end [2025-04-16 18:36:19] Production.INFO: ProcessCDR(1,14922789,1,1,2) [2025-04-16 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922789', 'tblTempUsageDetail_20' ) start [2025-04-16 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922789', 'tblTempUsageDetail_20' ) end [2025-04-16 18:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:36:23] Production.INFO: ==17223== Releasing lock... [2025-04-16 18:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:36:23] Production.INFO: 56.25 MB #Memory Used# [2025-04-16 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:37:05 [end_date_ymd] => 2025-04-16 18:37:05 [RateCDR] => 1 ) [2025-04-16 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 15:37:05' and `end` < '2025-04-16 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 18:37:18] Production.INFO: count ==3679 [2025-04-16 18:37:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:37:05 - End Time 2025-04-16 18:37:05 [2025-04-16 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922794', 'tblTempUsageDetail_20' ) start [2025-04-16 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922794', 'tblTempUsageDetail_20' ) end [2025-04-16 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922794', 'tblTempVendorCDR_20' ) start [2025-04-16 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922794', 'tblTempVendorCDR_20' ) end [2025-04-16 18:37:20] Production.INFO: ProcessCDR(1,14922794,1,1,2) [2025-04-16 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922794', 'tblTempUsageDetail_20' ) start [2025-04-16 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922794', 'tblTempUsageDetail_20' ) end [2025-04-16 18:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:37:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:37:25] Production.INFO: ==17300== Releasing lock... [2025-04-16 18:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:37:25] Production.INFO: 55.5 MB #Memory Used# [2025-04-16 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:38:05 [end_date_ymd] => 2025-04-16 18:38:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:38:05' and `end` < '2025-04-16 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-04-16 18:38:19] Production.INFO: count ==3665 [2025-04-16 18:38:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:38:05 - End Time 2025-04-16 18:38:05 [2025-04-16 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922799', 'tblTempUsageDetail_20' ) start [2025-04-16 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922799', 'tblTempUsageDetail_20' ) end [2025-04-16 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922799', 'tblTempVendorCDR_20' ) start [2025-04-16 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922799', 'tblTempVendorCDR_20' ) end [2025-04-16 18:38:20] Production.INFO: ProcessCDR(1,14922799,1,1,2) [2025-04-16 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922799', 'tblTempUsageDetail_20' ) start [2025-04-16 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922799', 'tblTempUsageDetail_20' ) end [2025-04-16 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:38:24] Production.INFO: ==17384== Releasing lock... [2025-04-16 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:38:24] Production.INFO: 55.5 MB #Memory Used# [2025-04-16 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:39:05 [end_date_ymd] => 2025-04-16 18:39:05 [RateCDR] => 1 ) [2025-04-16 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 15:39:05' and `end` < '2025-04-16 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 18:39:18] Production.INFO: count ==3650 [2025-04-16 18:39:19] Production.ERROR: pbx CDR StartTime 2025-04-16 15:39:05 - End Time 2025-04-16 18:39:05 [2025-04-16 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922804', 'tblTempUsageDetail_20' ) start [2025-04-16 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922804', 'tblTempUsageDetail_20' ) end [2025-04-16 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922804', 'tblTempVendorCDR_20' ) start [2025-04-16 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922804', 'tblTempVendorCDR_20' ) end [2025-04-16 18:39:20] Production.INFO: ProcessCDR(1,14922804,1,1,2) [2025-04-16 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922804', 'tblTempUsageDetail_20' ) start [2025-04-16 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922804', 'tblTempUsageDetail_20' ) end [2025-04-16 18:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:39:23] Production.INFO: ==17460== Releasing lock... [2025-04-16 18:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:39:23] Production.INFO: 55.5 MB #Memory Used# [2025-04-16 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:40:06 [end_date_ymd] => 2025-04-16 18:40:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:40:06' and `end` < '2025-04-16 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-04-16 18:40:20] Production.INFO: count ==3632 [2025-04-16 18:40:21] Production.ERROR: pbx CDR StartTime 2025-04-16 15:40:06 - End Time 2025-04-16 18:40:06 [2025-04-16 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922810', 'tblTempUsageDetail_20' ) start [2025-04-16 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922810', 'tblTempUsageDetail_20' ) end [2025-04-16 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922810', 'tblTempVendorCDR_20' ) start [2025-04-16 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922810', 'tblTempVendorCDR_20' ) end [2025-04-16 18:40:21] Production.INFO: ProcessCDR(1,14922810,1,1,2) [2025-04-16 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922810', 'tblTempUsageDetail_20' ) start [2025-04-16 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922810', 'tblTempUsageDetail_20' ) end [2025-04-16 18:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:40:24] Production.INFO: ==17545== Releasing lock... [2025-04-16 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:40:24] Production.INFO: 55 MB #Memory Used# [2025-04-16 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:41:05 [end_date_ymd] => 2025-04-16 18:41:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:41:05' and `end` < '2025-04-16 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-04-16 18:41:18] Production.INFO: count ==3537 [2025-04-16 18:41:19] Production.ERROR: pbx CDR StartTime 2025-04-16 15:41:05 - End Time 2025-04-16 18:41:05 [2025-04-16 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922815', 'tblTempUsageDetail_20' ) start [2025-04-16 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922815', 'tblTempUsageDetail_20' ) end [2025-04-16 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922815', 'tblTempVendorCDR_20' ) start [2025-04-16 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922815', 'tblTempVendorCDR_20' ) end [2025-04-16 18:41:19] Production.INFO: ProcessCDR(1,14922815,1,1,2) [2025-04-16 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922815', 'tblTempUsageDetail_20' ) start [2025-04-16 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922815', 'tblTempUsageDetail_20' ) end [2025-04-16 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:41:23] Production.INFO: ==17631== Releasing lock... [2025-04-16 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:41:23] Production.INFO: 54.5 MB #Memory Used# [2025-04-16 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:42:06 [end_date_ymd] => 2025-04-16 18:42:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:42:06' and `end` < '2025-04-16 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-04-16 18:42:19] Production.INFO: count ==3498 [2025-04-16 18:42:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:42:06 - End Time 2025-04-16 18:42:06 [2025-04-16 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922820', 'tblTempUsageDetail_20' ) start [2025-04-16 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922820', 'tblTempUsageDetail_20' ) end [2025-04-16 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922820', 'tblTempVendorCDR_20' ) start [2025-04-16 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922820', 'tblTempVendorCDR_20' ) end [2025-04-16 18:42:20] Production.INFO: ProcessCDR(1,14922820,1,1,2) [2025-04-16 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922820', 'tblTempUsageDetail_20' ) start [2025-04-16 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922820', 'tblTempUsageDetail_20' ) end [2025-04-16 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:42:24] Production.INFO: ==17714== Releasing lock... [2025-04-16 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:42:24] Production.INFO: 54 MB #Memory Used# [2025-04-16 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:43:05 [end_date_ymd] => 2025-04-16 18:43:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:43:05' and `end` < '2025-04-16 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-04-16 18:43:18] Production.INFO: count ==3483 [2025-04-16 18:43:19] Production.ERROR: pbx CDR StartTime 2025-04-16 15:43:05 - End Time 2025-04-16 18:43:05 [2025-04-16 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922825', 'tblTempUsageDetail_20' ) start [2025-04-16 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922825', 'tblTempUsageDetail_20' ) end [2025-04-16 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922825', 'tblTempVendorCDR_20' ) start [2025-04-16 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922825', 'tblTempVendorCDR_20' ) end [2025-04-16 18:43:20] Production.INFO: ProcessCDR(1,14922825,1,1,2) [2025-04-16 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922825', 'tblTempUsageDetail_20' ) start [2025-04-16 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922825', 'tblTempUsageDetail_20' ) end [2025-04-16 18:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:43:24] Production.INFO: ==17797== Releasing lock... [2025-04-16 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:43:24] Production.INFO: 55 MB #Memory Used# [2025-04-16 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:44:06 [end_date_ymd] => 2025-04-16 18:44:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:44:06' and `end` < '2025-04-16 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-04-16 18:44:19] Production.INFO: count ==3457 [2025-04-16 18:44:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:44:06 - End Time 2025-04-16 18:44:06 [2025-04-16 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922830', 'tblTempUsageDetail_20' ) start [2025-04-16 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922830', 'tblTempUsageDetail_20' ) end [2025-04-16 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922830', 'tblTempVendorCDR_20' ) start [2025-04-16 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922830', 'tblTempVendorCDR_20' ) end [2025-04-16 18:44:20] Production.INFO: ProcessCDR(1,14922830,1,1,2) [2025-04-16 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922830', 'tblTempUsageDetail_20' ) start [2025-04-16 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922830', 'tblTempUsageDetail_20' ) end [2025-04-16 18:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:44:25] Production.INFO: ==17879== Releasing lock... [2025-04-16 18:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:44:25] Production.INFO: 54 MB #Memory Used# [2025-04-16 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:45:05 [end_date_ymd] => 2025-04-16 18:45:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:45:05' and `end` < '2025-04-16 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-04-16 18:45:19] Production.INFO: count ==3448 [2025-04-16 18:45:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:45:05 - End Time 2025-04-16 18:45:05 [2025-04-16 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922835', 'tblTempUsageDetail_20' ) start [2025-04-16 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922835', 'tblTempUsageDetail_20' ) end [2025-04-16 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922835', 'tblTempVendorCDR_20' ) start [2025-04-16 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922835', 'tblTempVendorCDR_20' ) end [2025-04-16 18:45:20] Production.INFO: ProcessCDR(1,14922835,1,1,2) [2025-04-16 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922835', 'tblTempUsageDetail_20' ) start [2025-04-16 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922835', 'tblTempUsageDetail_20' ) end [2025-04-16 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:45:24] Production.INFO: ==17957== Releasing lock... [2025-04-16 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:45:24] Production.INFO: 54 MB #Memory Used# [2025-04-16 18:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:46:06 [end_date_ymd] => 2025-04-16 18:46:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:46:06' and `end` < '2025-04-16 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-04-16 18:46:19] Production.INFO: count ==3447 [2025-04-16 18:46:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:46:06 - End Time 2025-04-16 18:46:06 [2025-04-16 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922840', 'tblTempUsageDetail_20' ) start [2025-04-16 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922840', 'tblTempUsageDetail_20' ) end [2025-04-16 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922840', 'tblTempVendorCDR_20' ) start [2025-04-16 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922840', 'tblTempVendorCDR_20' ) end [2025-04-16 18:46:20] Production.INFO: ProcessCDR(1,14922840,1,1,2) [2025-04-16 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922840', 'tblTempUsageDetail_20' ) start [2025-04-16 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922840', 'tblTempUsageDetail_20' ) end [2025-04-16 18:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:46:24] Production.INFO: ==18039== Releasing lock... [2025-04-16 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:46:24] Production.INFO: 53.75 MB #Memory Used# [2025-04-16 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:47:05 [end_date_ymd] => 2025-04-16 18:47:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:47:05' and `end` < '2025-04-16 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-04-16 18:47:18] Production.INFO: count ==3437 [2025-04-16 18:47:19] Production.ERROR: pbx CDR StartTime 2025-04-16 15:47:05 - End Time 2025-04-16 18:47:05 [2025-04-16 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922845', 'tblTempUsageDetail_20' ) start [2025-04-16 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922845', 'tblTempUsageDetail_20' ) end [2025-04-16 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922845', 'tblTempVendorCDR_20' ) start [2025-04-16 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922845', 'tblTempVendorCDR_20' ) end [2025-04-16 18:47:19] Production.INFO: ProcessCDR(1,14922845,1,1,2) [2025-04-16 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922845', 'tblTempUsageDetail_20' ) start [2025-04-16 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922845', 'tblTempUsageDetail_20' ) end [2025-04-16 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:47:24] Production.INFO: ==18153== Releasing lock... [2025-04-16 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:47:24] Production.INFO: 53.75 MB #Memory Used# [2025-04-16 18:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:48:06 [end_date_ymd] => 2025-04-16 18:48:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:48:06' and `end` < '2025-04-16 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-04-16 18:48:19] Production.INFO: count ==3391 [2025-04-16 18:48:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:48:06 - End Time 2025-04-16 18:48:06 [2025-04-16 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922850', 'tblTempUsageDetail_20' ) start [2025-04-16 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922850', 'tblTempUsageDetail_20' ) end [2025-04-16 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922850', 'tblTempVendorCDR_20' ) start [2025-04-16 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922850', 'tblTempVendorCDR_20' ) end [2025-04-16 18:48:20] Production.INFO: ProcessCDR(1,14922850,1,1,2) [2025-04-16 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922850', 'tblTempUsageDetail_20' ) start [2025-04-16 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922850', 'tblTempUsageDetail_20' ) end [2025-04-16 18:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:48:25] Production.INFO: ==18242== Releasing lock... [2025-04-16 18:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:48:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-16 18:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:49:04 [end_date_ymd] => 2025-04-16 18:49:04 [RateCDR] => 1 ) [2025-04-16 18:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 15:49:04' and `end` < '2025-04-16 18:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 18:49:17] Production.INFO: count ==3361 [2025-04-16 18:49:19] Production.ERROR: pbx CDR StartTime 2025-04-16 15:49:04 - End Time 2025-04-16 18:49:04 [2025-04-16 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922855', 'tblTempUsageDetail_20' ) start [2025-04-16 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922855', 'tblTempUsageDetail_20' ) end [2025-04-16 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922855', 'tblTempVendorCDR_20' ) start [2025-04-16 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922855', 'tblTempVendorCDR_20' ) end [2025-04-16 18:49:19] Production.INFO: ProcessCDR(1,14922855,1,1,2) [2025-04-16 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922855', 'tblTempUsageDetail_20' ) start [2025-04-16 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922855', 'tblTempUsageDetail_20' ) end [2025-04-16 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:49:24] Production.INFO: ==18319== Releasing lock... [2025-04-16 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:49:24] Production.INFO: 53 MB #Memory Used# [2025-04-16 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:50:06 [end_date_ymd] => 2025-04-16 18:50:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:50:06' and `end` < '2025-04-16 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-04-16 18:50:19] Production.INFO: count ==3329 [2025-04-16 18:50:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:50:06 - End Time 2025-04-16 18:50:06 [2025-04-16 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922860', 'tblTempUsageDetail_20' ) start [2025-04-16 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922860', 'tblTempUsageDetail_20' ) end [2025-04-16 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922860', 'tblTempVendorCDR_20' ) start [2025-04-16 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922860', 'tblTempVendorCDR_20' ) end [2025-04-16 18:50:20] Production.INFO: ProcessCDR(1,14922860,1,1,2) [2025-04-16 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922860', 'tblTempUsageDetail_20' ) start [2025-04-16 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922860', 'tblTempUsageDetail_20' ) end [2025-04-16 18:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:50:23] Production.INFO: ==18398== Releasing lock... [2025-04-16 18:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:50:23] Production.INFO: 53.5 MB #Memory Used# [2025-04-16 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:51:05 [end_date_ymd] => 2025-04-16 18:51:05 [RateCDR] => 1 ) [2025-04-16 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 15:51:05' and `end` < '2025-04-16 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 18:51:19] Production.INFO: count ==3246 [2025-04-16 18:51:19] Production.ERROR: pbx CDR StartTime 2025-04-16 15:51:05 - End Time 2025-04-16 18:51:05 [2025-04-16 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922866', 'tblTempUsageDetail_20' ) start [2025-04-16 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922866', 'tblTempUsageDetail_20' ) end [2025-04-16 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922866', 'tblTempVendorCDR_20' ) start [2025-04-16 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922866', 'tblTempVendorCDR_20' ) end [2025-04-16 18:51:20] Production.INFO: ProcessCDR(1,14922866,1,1,2) [2025-04-16 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922866', 'tblTempUsageDetail_20' ) start [2025-04-16 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922866', 'tblTempUsageDetail_20' ) end [2025-04-16 18:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:51:25] Production.INFO: ==18484== Releasing lock... [2025-04-16 18:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:51:25] Production.INFO: 52.25 MB #Memory Used# [2025-04-16 18:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:52:06 [end_date_ymd] => 2025-04-16 18:52:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:52:06' and `end` < '2025-04-16 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-04-16 18:52:19] Production.INFO: count ==3220 [2025-04-16 18:52:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:52:06 - End Time 2025-04-16 18:52:06 [2025-04-16 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922871', 'tblTempUsageDetail_20' ) start [2025-04-16 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922871', 'tblTempUsageDetail_20' ) end [2025-04-16 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922871', 'tblTempVendorCDR_20' ) start [2025-04-16 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922871', 'tblTempVendorCDR_20' ) end [2025-04-16 18:52:20] Production.INFO: ProcessCDR(1,14922871,1,1,2) [2025-04-16 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922871', 'tblTempUsageDetail_20' ) start [2025-04-16 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922871', 'tblTempUsageDetail_20' ) end [2025-04-16 18:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:52:25] Production.INFO: ==18569== Releasing lock... [2025-04-16 18:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:52:25] Production.INFO: 52 MB #Memory Used# [2025-04-16 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:53:05 [end_date_ymd] => 2025-04-16 18:53:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:53:05' and `end` < '2025-04-16 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-04-16 18:53:18] Production.INFO: count ==3189 [2025-04-16 18:53:19] Production.ERROR: pbx CDR StartTime 2025-04-16 15:53:05 - End Time 2025-04-16 18:53:05 [2025-04-16 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922876', 'tblTempUsageDetail_20' ) start [2025-04-16 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922876', 'tblTempUsageDetail_20' ) end [2025-04-16 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922876', 'tblTempVendorCDR_20' ) start [2025-04-16 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922876', 'tblTempVendorCDR_20' ) end [2025-04-16 18:53:19] Production.INFO: ProcessCDR(1,14922876,1,1,2) [2025-04-16 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922876', 'tblTempUsageDetail_20' ) start [2025-04-16 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922876', 'tblTempUsageDetail_20' ) end [2025-04-16 18:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:53:24] Production.INFO: ==18646== Releasing lock... [2025-04-16 18:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:53:24] Production.INFO: 52.75 MB #Memory Used# [2025-04-16 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:54:05 [end_date_ymd] => 2025-04-16 18:54:05 [RateCDR] => 1 ) [2025-04-16 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 15:54:05' and `end` < '2025-04-16 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 18:54:18] Production.INFO: count ==3177 [2025-04-16 18:54:19] Production.ERROR: pbx CDR StartTime 2025-04-16 15:54:05 - End Time 2025-04-16 18:54:05 [2025-04-16 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922881', 'tblTempUsageDetail_20' ) start [2025-04-16 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922881', 'tblTempUsageDetail_20' ) end [2025-04-16 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922881', 'tblTempVendorCDR_20' ) start [2025-04-16 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922881', 'tblTempVendorCDR_20' ) end [2025-04-16 18:54:19] Production.INFO: ProcessCDR(1,14922881,1,1,2) [2025-04-16 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922881', 'tblTempUsageDetail_20' ) start [2025-04-16 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922881', 'tblTempUsageDetail_20' ) end [2025-04-16 18:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:54:24] Production.INFO: ==18727== Releasing lock... [2025-04-16 18:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:54:24] Production.INFO: 51.75 MB #Memory Used# [2025-04-16 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:55:05 [end_date_ymd] => 2025-04-16 18:55:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:55:05' and `end` < '2025-04-16 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-04-16 18:55:18] Production.INFO: count ==3160 [2025-04-16 18:55:19] Production.ERROR: pbx CDR StartTime 2025-04-16 15:55:05 - End Time 2025-04-16 18:55:05 [2025-04-16 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922886', 'tblTempUsageDetail_20' ) start [2025-04-16 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922886', 'tblTempUsageDetail_20' ) end [2025-04-16 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922886', 'tblTempVendorCDR_20' ) start [2025-04-16 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922886', 'tblTempVendorCDR_20' ) end [2025-04-16 18:55:19] Production.INFO: ProcessCDR(1,14922886,1,1,2) [2025-04-16 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922886', 'tblTempUsageDetail_20' ) start [2025-04-16 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922886', 'tblTempUsageDetail_20' ) end [2025-04-16 18:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:55:22] Production.INFO: ==18810== Releasing lock... [2025-04-16 18:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:55:22] Production.INFO: 52.5 MB #Memory Used# [2025-04-16 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:56:05 [end_date_ymd] => 2025-04-16 18:56:05 [RateCDR] => 1 ) [2025-04-16 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 15:56:05' and `end` < '2025-04-16 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 18:56:18] Production.INFO: count ==3156 [2025-04-16 18:56:19] Production.ERROR: pbx CDR StartTime 2025-04-16 15:56:05 - End Time 2025-04-16 18:56:05 [2025-04-16 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922891', 'tblTempUsageDetail_20' ) start [2025-04-16 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922891', 'tblTempUsageDetail_20' ) end [2025-04-16 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922891', 'tblTempVendorCDR_20' ) start [2025-04-16 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922891', 'tblTempVendorCDR_20' ) end [2025-04-16 18:56:19] Production.INFO: ProcessCDR(1,14922891,1,1,2) [2025-04-16 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922891', 'tblTempUsageDetail_20' ) start [2025-04-16 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922891', 'tblTempUsageDetail_20' ) end [2025-04-16 18:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:56:24] Production.INFO: ==18893== Releasing lock... [2025-04-16 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:56:24] Production.INFO: 52.25 MB #Memory Used# [2025-04-16 18:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:57:06 [end_date_ymd] => 2025-04-16 18:57:06 [RateCDR] => 1 ) [2025-04-16 18: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-04-16 15:57:06' and `end` < '2025-04-16 18: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-04-16 18:57:19] Production.INFO: count ==3151 [2025-04-16 18:57:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:57:06 - End Time 2025-04-16 18:57:06 [2025-04-16 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922896', 'tblTempUsageDetail_20' ) start [2025-04-16 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922896', 'tblTempUsageDetail_20' ) end [2025-04-16 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922896', 'tblTempVendorCDR_20' ) start [2025-04-16 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922896', 'tblTempVendorCDR_20' ) end [2025-04-16 18:57:20] Production.INFO: ProcessCDR(1,14922896,1,1,2) [2025-04-16 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922896', 'tblTempUsageDetail_20' ) start [2025-04-16 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922896', 'tblTempUsageDetail_20' ) end [2025-04-16 18:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:57:25] Production.INFO: ==18983== Releasing lock... [2025-04-16 18:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:57:25] Production.INFO: 52.5 MB #Memory Used# [2025-04-16 18:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:58:06 [end_date_ymd] => 2025-04-16 18:58:06 [RateCDR] => 1 ) [2025-04-16 18: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-04-16 15:58:06' and `end` < '2025-04-16 18: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-04-16 18:58:19] Production.INFO: count ==3143 [2025-04-16 18:58:20] Production.ERROR: pbx CDR StartTime 2025-04-16 15:58:06 - End Time 2025-04-16 18:58:06 [2025-04-16 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922901', 'tblTempUsageDetail_20' ) start [2025-04-16 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922901', 'tblTempUsageDetail_20' ) end [2025-04-16 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922901', 'tblTempVendorCDR_20' ) start [2025-04-16 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922901', 'tblTempVendorCDR_20' ) end [2025-04-16 18:58:20] Production.INFO: ProcessCDR(1,14922901,1,1,2) [2025-04-16 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922901', 'tblTempUsageDetail_20' ) start [2025-04-16 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922901', 'tblTempUsageDetail_20' ) end [2025-04-16 18:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:58:25] Production.INFO: ==19065== Releasing lock... [2025-04-16 18:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:58:25] Production.INFO: 52.25 MB #Memory Used# [2025-04-16 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 15:59:05 [end_date_ymd] => 2025-04-16 18:59:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 15:59:05' and `end` < '2025-04-16 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-04-16 18:59:18] Production.INFO: count ==3133 [2025-04-16 18:59:19] Production.ERROR: pbx CDR StartTime 2025-04-16 15:59:05 - End Time 2025-04-16 18:59:05 [2025-04-16 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922906', 'tblTempUsageDetail_20' ) start [2025-04-16 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922906', 'tblTempUsageDetail_20' ) end [2025-04-16 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922906', 'tblTempVendorCDR_20' ) start [2025-04-16 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922906', 'tblTempVendorCDR_20' ) end [2025-04-16 18:59:19] Production.INFO: ProcessCDR(1,14922906,1,1,2) [2025-04-16 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922906', 'tblTempUsageDetail_20' ) start [2025-04-16 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922906', 'tblTempUsageDetail_20' ) end [2025-04-16 18:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 18:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 18:59:24] Production.INFO: ==19146== Releasing lock... [2025-04-16 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 18:59:24] Production.INFO: 51.25 MB #Memory Used# [2025-04-16 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:00:06 [end_date_ymd] => 2025-04-16 19:00:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:00:06' and `end` < '2025-04-16 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-04-16 19:00:19] Production.INFO: count ==3127 [2025-04-16 19:00:20] Production.ERROR: pbx CDR StartTime 2025-04-16 16:00:06 - End Time 2025-04-16 19:00:06 [2025-04-16 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922912', 'tblTempUsageDetail_20' ) start [2025-04-16 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922912', 'tblTempUsageDetail_20' ) end [2025-04-16 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922912', 'tblTempVendorCDR_20' ) start [2025-04-16 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922912', 'tblTempVendorCDR_20' ) end [2025-04-16 19:00:20] Production.INFO: ProcessCDR(1,14922912,1,1,2) [2025-04-16 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922912', 'tblTempUsageDetail_20' ) start [2025-04-16 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922912', 'tblTempUsageDetail_20' ) end [2025-04-16 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:00:25] Production.INFO: ==19227== Releasing lock... [2025-04-16 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:00:25] Production.INFO: 52 MB #Memory Used# [2025-04-16 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:01:05 [end_date_ymd] => 2025-04-16 19:01:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:01:05' and `end` < '2025-04-16 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-04-16 19:01:19] Production.INFO: count ==3088 [2025-04-16 19:01:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:01:05 - End Time 2025-04-16 19:01:05 [2025-04-16 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922917', 'tblTempUsageDetail_20' ) start [2025-04-16 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922917', 'tblTempUsageDetail_20' ) end [2025-04-16 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922917', 'tblTempVendorCDR_20' ) start [2025-04-16 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922917', 'tblTempVendorCDR_20' ) end [2025-04-16 19:01:20] Production.INFO: ProcessCDR(1,14922917,1,1,2) [2025-04-16 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922917', 'tblTempUsageDetail_20' ) start [2025-04-16 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922917', 'tblTempUsageDetail_20' ) end [2025-04-16 19:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:01:24] Production.INFO: ==19402== Releasing lock... [2025-04-16 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:01:24] Production.INFO: 51 MB #Memory Used# [2025-04-16 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:02:05 [end_date_ymd] => 2025-04-16 19:02:05 [RateCDR] => 1 ) [2025-04-16 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 16:02:05' and `end` < '2025-04-16 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 19:02:18] Production.INFO: count ==3075 [2025-04-16 19:02:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:02:05 - End Time 2025-04-16 19:02:05 [2025-04-16 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922922', 'tblTempUsageDetail_20' ) start [2025-04-16 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922922', 'tblTempUsageDetail_20' ) end [2025-04-16 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922922', 'tblTempVendorCDR_20' ) start [2025-04-16 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922922', 'tblTempVendorCDR_20' ) end [2025-04-16 19:02:19] Production.INFO: ProcessCDR(1,14922922,1,1,2) [2025-04-16 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922922', 'tblTempUsageDetail_20' ) start [2025-04-16 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922922', 'tblTempUsageDetail_20' ) end [2025-04-16 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:02:24] Production.INFO: ==19483== Releasing lock... [2025-04-16 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:02:24] Production.INFO: 51 MB #Memory Used# [2025-04-16 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:03:05 [end_date_ymd] => 2025-04-16 19:03:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:03:05' and `end` < '2025-04-16 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-04-16 19:03:18] Production.INFO: count ==3054 [2025-04-16 19:03:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:03:05 - End Time 2025-04-16 19:03:05 [2025-04-16 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922927', 'tblTempUsageDetail_20' ) start [2025-04-16 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922927', 'tblTempUsageDetail_20' ) end [2025-04-16 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922927', 'tblTempVendorCDR_20' ) start [2025-04-16 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922927', 'tblTempVendorCDR_20' ) end [2025-04-16 19:03:19] Production.INFO: ProcessCDR(1,14922927,1,1,2) [2025-04-16 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922927', 'tblTempUsageDetail_20' ) start [2025-04-16 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922927', 'tblTempUsageDetail_20' ) end [2025-04-16 19:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:03:24] Production.INFO: ==19604== Releasing lock... [2025-04-16 19:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:03:24] Production.INFO: 50.75 MB #Memory Used# [2025-04-16 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:04:05 [end_date_ymd] => 2025-04-16 19:04:05 [RateCDR] => 1 ) [2025-04-16 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 16:04:05' and `end` < '2025-04-16 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 19:04:18] Production.INFO: count ==3041 [2025-04-16 19:04:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:04:05 - End Time 2025-04-16 19:04:05 [2025-04-16 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922932', 'tblTempUsageDetail_20' ) start [2025-04-16 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922932', 'tblTempUsageDetail_20' ) end [2025-04-16 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922932', 'tblTempVendorCDR_20' ) start [2025-04-16 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922932', 'tblTempVendorCDR_20' ) end [2025-04-16 19:04:19] Production.INFO: ProcessCDR(1,14922932,1,1,2) [2025-04-16 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922932', 'tblTempUsageDetail_20' ) start [2025-04-16 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922932', 'tblTempUsageDetail_20' ) end [2025-04-16 19:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:04:23] Production.INFO: ==19685== Releasing lock... [2025-04-16 19:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:04:23] Production.INFO: 50.75 MB #Memory Used# [2025-04-16 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:05:05 [end_date_ymd] => 2025-04-16 19:05:05 [RateCDR] => 1 ) [2025-04-16 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 16:05:05' and `end` < '2025-04-16 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 19:05:18] Production.INFO: count ==3026 [2025-04-16 19:05:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:05:05 - End Time 2025-04-16 19:05:05 [2025-04-16 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922937', 'tblTempUsageDetail_20' ) start [2025-04-16 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922937', 'tblTempUsageDetail_20' ) end [2025-04-16 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922937', 'tblTempVendorCDR_20' ) start [2025-04-16 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922937', 'tblTempVendorCDR_20' ) end [2025-04-16 19:05:19] Production.INFO: ProcessCDR(1,14922937,1,1,2) [2025-04-16 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922937', 'tblTempUsageDetail_20' ) start [2025-04-16 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922937', 'tblTempUsageDetail_20' ) end [2025-04-16 19:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:05:22] Production.INFO: ==19850== Releasing lock... [2025-04-16 19:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:05:22] Production.INFO: 50.5 MB #Memory Used# [2025-04-16 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:06:05 [end_date_ymd] => 2025-04-16 19:06:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:06:05' and `end` < '2025-04-16 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-04-16 19:06:18] Production.INFO: count ==3014 [2025-04-16 19:06:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:06:05 - End Time 2025-04-16 19:06:05 [2025-04-16 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922942', 'tblTempUsageDetail_20' ) start [2025-04-16 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922942', 'tblTempUsageDetail_20' ) end [2025-04-16 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922942', 'tblTempVendorCDR_20' ) start [2025-04-16 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922942', 'tblTempVendorCDR_20' ) end [2025-04-16 19:06:19] Production.INFO: ProcessCDR(1,14922942,1,1,2) [2025-04-16 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922942', 'tblTempUsageDetail_20' ) start [2025-04-16 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922942', 'tblTempUsageDetail_20' ) end [2025-04-16 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:06:24] Production.INFO: ==19936== Releasing lock... [2025-04-16 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:06:24] Production.INFO: 50.5 MB #Memory Used# [2025-04-16 19:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:07:06 [end_date_ymd] => 2025-04-16 19:07:06 [RateCDR] => 1 ) [2025-04-16 19: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-04-16 16:07:06' and `end` < '2025-04-16 19: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-04-16 19:07:19] Production.INFO: count ==3002 [2025-04-16 19:07:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:07:06 - End Time 2025-04-16 19:07:06 [2025-04-16 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922947', 'tblTempUsageDetail_20' ) start [2025-04-16 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922947', 'tblTempUsageDetail_20' ) end [2025-04-16 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922947', 'tblTempVendorCDR_20' ) start [2025-04-16 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922947', 'tblTempVendorCDR_20' ) end [2025-04-16 19:07:20] Production.INFO: ProcessCDR(1,14922947,1,1,2) [2025-04-16 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922947', 'tblTempUsageDetail_20' ) start [2025-04-16 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922947', 'tblTempUsageDetail_20' ) end [2025-04-16 19:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:07:25] Production.INFO: ==20022== Releasing lock... [2025-04-16 19:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:07:25] Production.INFO: 50.5 MB #Memory Used# [2025-04-16 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:08:05 [end_date_ymd] => 2025-04-16 19:08:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:08:05' and `end` < '2025-04-16 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-04-16 19:08:18] Production.INFO: count ==2980 [2025-04-16 19:08:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:08:05 - End Time 2025-04-16 19:08:05 [2025-04-16 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922952', 'tblTempUsageDetail_20' ) start [2025-04-16 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922952', 'tblTempUsageDetail_20' ) end [2025-04-16 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922952', 'tblTempVendorCDR_20' ) start [2025-04-16 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922952', 'tblTempVendorCDR_20' ) end [2025-04-16 19:08:19] Production.INFO: ProcessCDR(1,14922952,1,1,2) [2025-04-16 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922952', 'tblTempUsageDetail_20' ) start [2025-04-16 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922952', 'tblTempUsageDetail_20' ) end [2025-04-16 19:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:08:22] Production.INFO: ==20181== Releasing lock... [2025-04-16 19:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:08:22] Production.INFO: 50.5 MB #Memory Used# [2025-04-16 19:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:09:06 [end_date_ymd] => 2025-04-16 19:09:06 [RateCDR] => 1 ) [2025-04-16 19: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-04-16 16:09:06' and `end` < '2025-04-16 19: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-04-16 19:09:19] Production.INFO: count ==2972 [2025-04-16 19:09:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:09:06 - End Time 2025-04-16 19:09:06 [2025-04-16 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922957', 'tblTempUsageDetail_20' ) start [2025-04-16 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922957', 'tblTempUsageDetail_20' ) end [2025-04-16 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922957', 'tblTempVendorCDR_20' ) start [2025-04-16 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922957', 'tblTempVendorCDR_20' ) end [2025-04-16 19:09:19] Production.INFO: ProcessCDR(1,14922957,1,1,2) [2025-04-16 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922957', 'tblTempUsageDetail_20' ) start [2025-04-16 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922957', 'tblTempUsageDetail_20' ) end [2025-04-16 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:09:23] Production.INFO: ==20266== Releasing lock... [2025-04-16 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:09:23] Production.INFO: 50 MB #Memory Used# [2025-04-16 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:10:06 [end_date_ymd] => 2025-04-16 19:10:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:10:06' and `end` < '2025-04-16 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-04-16 19:10:19] Production.INFO: count ==2964 [2025-04-16 19:10:20] Production.ERROR: pbx CDR StartTime 2025-04-16 16:10:06 - End Time 2025-04-16 19:10:06 [2025-04-16 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922962', 'tblTempUsageDetail_20' ) start [2025-04-16 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922962', 'tblTempUsageDetail_20' ) end [2025-04-16 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922962', 'tblTempVendorCDR_20' ) start [2025-04-16 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922962', 'tblTempVendorCDR_20' ) end [2025-04-16 19:10:20] Production.INFO: ProcessCDR(1,14922962,1,1,2) [2025-04-16 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922962', 'tblTempUsageDetail_20' ) start [2025-04-16 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922962', 'tblTempUsageDetail_20' ) end [2025-04-16 19:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:10:23] Production.INFO: ==20350== Releasing lock... [2025-04-16 19:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:10:23] Production.INFO: 50.25 MB #Memory Used# [2025-04-16 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:11:05 [end_date_ymd] => 2025-04-16 19:11:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:11:05' and `end` < '2025-04-16 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-04-16 19:11:18] Production.INFO: count ==2864 [2025-04-16 19:11:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:11:05 - End Time 2025-04-16 19:11:05 [2025-04-16 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922968', 'tblTempUsageDetail_20' ) start [2025-04-16 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922968', 'tblTempUsageDetail_20' ) end [2025-04-16 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922968', 'tblTempVendorCDR_20' ) start [2025-04-16 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922968', 'tblTempVendorCDR_20' ) end [2025-04-16 19:11:19] Production.INFO: ProcessCDR(1,14922968,1,1,2) [2025-04-16 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922968', 'tblTempUsageDetail_20' ) start [2025-04-16 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922968', 'tblTempUsageDetail_20' ) end [2025-04-16 19:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:11:23] Production.INFO: ==20437== Releasing lock... [2025-04-16 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:11:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-16 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:12:05 [end_date_ymd] => 2025-04-16 19:12:05 [RateCDR] => 1 ) [2025-04-16 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 16:12:05' and `end` < '2025-04-16 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 19:12:18] Production.INFO: count ==2849 [2025-04-16 19:12:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:12:05 - End Time 2025-04-16 19:12:05 [2025-04-16 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922973', 'tblTempUsageDetail_20' ) start [2025-04-16 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922973', 'tblTempUsageDetail_20' ) end [2025-04-16 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922973', 'tblTempVendorCDR_20' ) start [2025-04-16 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922973', 'tblTempVendorCDR_20' ) end [2025-04-16 19:12:19] Production.INFO: ProcessCDR(1,14922973,1,1,2) [2025-04-16 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922973', 'tblTempUsageDetail_20' ) start [2025-04-16 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922973', 'tblTempUsageDetail_20' ) end [2025-04-16 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:12:24] Production.INFO: ==20594== Releasing lock... [2025-04-16 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:12:24] Production.INFO: 49.5 MB #Memory Used# [2025-04-16 19:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:13:06 [end_date_ymd] => 2025-04-16 19:13:06 [RateCDR] => 1 ) [2025-04-16 19: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-04-16 16:13:06' and `end` < '2025-04-16 19: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-04-16 19:13:19] Production.INFO: count ==2849 [2025-04-16 19:13:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:13:06 - End Time 2025-04-16 19:13:06 [2025-04-16 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922978', 'tblTempUsageDetail_20' ) start [2025-04-16 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922978', 'tblTempUsageDetail_20' ) end [2025-04-16 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922978', 'tblTempVendorCDR_20' ) start [2025-04-16 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922978', 'tblTempVendorCDR_20' ) end [2025-04-16 19:13:19] Production.INFO: ProcessCDR(1,14922978,1,1,2) [2025-04-16 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922978', 'tblTempUsageDetail_20' ) start [2025-04-16 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922978', 'tblTempUsageDetail_20' ) end [2025-04-16 19:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:13:25] Production.INFO: ==20677== Releasing lock... [2025-04-16 19:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:13:25] Production.INFO: 49.75 MB #Memory Used# [2025-04-16 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:14:05 [end_date_ymd] => 2025-04-16 19:14:05 [RateCDR] => 1 ) [2025-04-16 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 16:14:05' and `end` < '2025-04-16 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-04-16 19:14:18] Production.INFO: count ==2845 [2025-04-16 19:14:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:14:05 - End Time 2025-04-16 19:14:05 [2025-04-16 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922983', 'tblTempUsageDetail_20' ) start [2025-04-16 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922983', 'tblTempUsageDetail_20' ) end [2025-04-16 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922983', 'tblTempVendorCDR_20' ) start [2025-04-16 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922983', 'tblTempVendorCDR_20' ) end [2025-04-16 19:14:19] Production.INFO: ProcessCDR(1,14922983,1,1,2) [2025-04-16 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922983', 'tblTempUsageDetail_20' ) start [2025-04-16 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922983', 'tblTempUsageDetail_20' ) end [2025-04-16 19:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:14:24] Production.INFO: ==20759== Releasing lock... [2025-04-16 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:14:24] Production.INFO: 49.5 MB #Memory Used# [2025-04-16 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:15:05 [end_date_ymd] => 2025-04-16 19:15:05 [RateCDR] => 1 ) [2025-04-16 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 16:15:05' and `end` < '2025-04-16 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 19:15:18] Production.INFO: count ==2821 [2025-04-16 19:15:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:15:05 - End Time 2025-04-16 19:15:05 [2025-04-16 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922988', 'tblTempUsageDetail_20' ) start [2025-04-16 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922988', 'tblTempUsageDetail_20' ) end [2025-04-16 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922988', 'tblTempVendorCDR_20' ) start [2025-04-16 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922988', 'tblTempVendorCDR_20' ) end [2025-04-16 19:15:19] Production.INFO: ProcessCDR(1,14922988,1,1,2) [2025-04-16 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922988', 'tblTempUsageDetail_20' ) start [2025-04-16 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922988', 'tblTempUsageDetail_20' ) end [2025-04-16 19:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:15:24] Production.INFO: ==20922== Releasing lock... [2025-04-16 19:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:15:24] Production.INFO: 49.25 MB #Memory Used# [2025-04-16 19:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:16:04 [end_date_ymd] => 2025-04-16 19:16:04 [RateCDR] => 1 ) [2025-04-16 19:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 16:16:04' and `end` < '2025-04-16 19:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 19:16:17] Production.INFO: count ==2796 [2025-04-16 19:16:18] Production.ERROR: pbx CDR StartTime 2025-04-16 16:16:04 - End Time 2025-04-16 19:16:04 [2025-04-16 19:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922993', 'tblTempUsageDetail_20' ) start [2025-04-16 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922993', 'tblTempUsageDetail_20' ) end [2025-04-16 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922993', 'tblTempVendorCDR_20' ) start [2025-04-16 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922993', 'tblTempVendorCDR_20' ) end [2025-04-16 19:16:18] Production.INFO: ProcessCDR(1,14922993,1,1,2) [2025-04-16 19:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922993', 'tblTempUsageDetail_20' ) start [2025-04-16 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922993', 'tblTempUsageDetail_20' ) end [2025-04-16 19:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:16:23] Production.INFO: ==21004== Releasing lock... [2025-04-16 19:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:16:23] Production.INFO: 49 MB #Memory Used# [2025-04-16 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:17:05 [end_date_ymd] => 2025-04-16 19:17:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:17:05' and `end` < '2025-04-16 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-04-16 19:17:18] Production.INFO: count ==2772 [2025-04-16 19:17:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:17:05 - End Time 2025-04-16 19:17:05 [2025-04-16 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922998', 'tblTempUsageDetail_20' ) start [2025-04-16 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14922998', 'tblTempUsageDetail_20' ) end [2025-04-16 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922998', 'tblTempVendorCDR_20' ) start [2025-04-16 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14922998', 'tblTempVendorCDR_20' ) end [2025-04-16 19:17:19] Production.INFO: ProcessCDR(1,14922998,1,1,2) [2025-04-16 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14922998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14922998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14922998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14922998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922998', 'tblTempUsageDetail_20' ) start [2025-04-16 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14922998', 'tblTempUsageDetail_20' ) end [2025-04-16 19:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:17:24] Production.INFO: ==21083== Releasing lock... [2025-04-16 19:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:17:24] Production.INFO: 49 MB #Memory Used# [2025-04-16 19:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:18:06 [end_date_ymd] => 2025-04-16 19:18:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:18:06' and `end` < '2025-04-16 19: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-04-16 19:18:19] Production.INFO: count ==2754 [2025-04-16 19:18:20] Production.ERROR: pbx CDR StartTime 2025-04-16 16:18:06 - End Time 2025-04-16 19:18:06 [2025-04-16 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923003', 'tblTempUsageDetail_20' ) start [2025-04-16 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923003', 'tblTempUsageDetail_20' ) end [2025-04-16 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923003', 'tblTempVendorCDR_20' ) start [2025-04-16 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923003', 'tblTempVendorCDR_20' ) end [2025-04-16 19:18:20] Production.INFO: ProcessCDR(1,14923003,1,1,2) [2025-04-16 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923003', 'tblTempUsageDetail_20' ) start [2025-04-16 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923003', 'tblTempUsageDetail_20' ) end [2025-04-16 19:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:18:24] Production.INFO: ==21203== Releasing lock... [2025-04-16 19:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:18:24] Production.INFO: 48.75 MB #Memory Used# [2025-04-16 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:19:05 [end_date_ymd] => 2025-04-16 19:19:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:19:05' and `end` < '2025-04-16 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-04-16 19:19:18] Production.INFO: count ==2742 [2025-04-16 19:19:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:19:05 - End Time 2025-04-16 19:19:05 [2025-04-16 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923008', 'tblTempUsageDetail_20' ) start [2025-04-16 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923008', 'tblTempUsageDetail_20' ) end [2025-04-16 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923008', 'tblTempVendorCDR_20' ) start [2025-04-16 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923008', 'tblTempVendorCDR_20' ) end [2025-04-16 19:19:19] Production.INFO: ProcessCDR(1,14923008,1,1,2) [2025-04-16 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923008', 'tblTempUsageDetail_20' ) start [2025-04-16 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923008', 'tblTempUsageDetail_20' ) end [2025-04-16 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:19:23] Production.INFO: ==21281== Releasing lock... [2025-04-16 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:19:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-16 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:20:06 [end_date_ymd] => 2025-04-16 19:20:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:20:06' and `end` < '2025-04-16 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-04-16 19:20:19] Production.INFO: count ==2724 [2025-04-16 19:20:20] Production.ERROR: pbx CDR StartTime 2025-04-16 16:20:06 - End Time 2025-04-16 19:20:06 [2025-04-16 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923013', 'tblTempUsageDetail_20' ) start [2025-04-16 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923013', 'tblTempUsageDetail_20' ) end [2025-04-16 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923013', 'tblTempVendorCDR_20' ) start [2025-04-16 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923013', 'tblTempVendorCDR_20' ) end [2025-04-16 19:20:20] Production.INFO: ProcessCDR(1,14923013,1,1,2) [2025-04-16 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923013', 'tblTempUsageDetail_20' ) start [2025-04-16 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923013', 'tblTempUsageDetail_20' ) end [2025-04-16 19:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:20:24] Production.INFO: ==21367== Releasing lock... [2025-04-16 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:20:24] Production.INFO: 48.75 MB #Memory Used# [2025-04-16 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:21:05 [end_date_ymd] => 2025-04-16 19:21:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:21:05' and `end` < '2025-04-16 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-04-16 19:21:18] Production.INFO: count ==2667 [2025-04-16 19:21:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:21:05 - End Time 2025-04-16 19:21:05 [2025-04-16 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923019', 'tblTempUsageDetail_20' ) start [2025-04-16 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923019', 'tblTempUsageDetail_20' ) end [2025-04-16 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923019', 'tblTempVendorCDR_20' ) start [2025-04-16 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923019', 'tblTempVendorCDR_20' ) end [2025-04-16 19:21:19] Production.INFO: ProcessCDR(1,14923019,1,1,2) [2025-04-16 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923019', 'tblTempUsageDetail_20' ) start [2025-04-16 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923019', 'tblTempUsageDetail_20' ) end [2025-04-16 19:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:21:24] Production.INFO: ==21455== Releasing lock... [2025-04-16 19:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:21:24] Production.INFO: 47.75 MB #Memory Used# [2025-04-16 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:22:05 [end_date_ymd] => 2025-04-16 19:22:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:22:05' and `end` < '2025-04-16 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 19:22:19] Production.INFO: count ==2654 [2025-04-16 19:22:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:22:05 - End Time 2025-04-16 19:22:05 [2025-04-16 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923024', 'tblTempUsageDetail_20' ) start [2025-04-16 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923024', 'tblTempUsageDetail_20' ) end [2025-04-16 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923024', 'tblTempVendorCDR_20' ) start [2025-04-16 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923024', 'tblTempVendorCDR_20' ) end [2025-04-16 19:22:19] Production.INFO: ProcessCDR(1,14923024,1,1,2) [2025-04-16 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923024', 'tblTempUsageDetail_20' ) start [2025-04-16 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923024', 'tblTempUsageDetail_20' ) end [2025-04-16 19:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:22:24] Production.INFO: ==21536== Releasing lock... [2025-04-16 19:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:22:24] Production.INFO: 48 MB #Memory Used# [2025-04-16 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:23:05 [end_date_ymd] => 2025-04-16 19:23:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:23:05' and `end` < '2025-04-16 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-04-16 19:23:18] Production.INFO: count ==2640 [2025-04-16 19:23:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:23:05 - End Time 2025-04-16 19:23:05 [2025-04-16 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923029', 'tblTempUsageDetail_20' ) start [2025-04-16 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923029', 'tblTempUsageDetail_20' ) end [2025-04-16 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923029', 'tblTempVendorCDR_20' ) start [2025-04-16 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923029', 'tblTempVendorCDR_20' ) end [2025-04-16 19:23:19] Production.INFO: ProcessCDR(1,14923029,1,1,2) [2025-04-16 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923029', 'tblTempUsageDetail_20' ) start [2025-04-16 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923029', 'tblTempUsageDetail_20' ) end [2025-04-16 19:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:23:24] Production.INFO: ==21614== Releasing lock... [2025-04-16 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:23:24] Production.INFO: 48 MB #Memory Used# [2025-04-16 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:24:05 [end_date_ymd] => 2025-04-16 19:24:05 [RateCDR] => 1 ) [2025-04-16 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 16:24:05' and `end` < '2025-04-16 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 19:24:18] Production.INFO: count ==2622 [2025-04-16 19:24:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:24:05 - End Time 2025-04-16 19:24:05 [2025-04-16 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923034', 'tblTempUsageDetail_20' ) start [2025-04-16 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923034', 'tblTempUsageDetail_20' ) end [2025-04-16 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923034', 'tblTempVendorCDR_20' ) start [2025-04-16 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923034', 'tblTempVendorCDR_20' ) end [2025-04-16 19:24:19] Production.INFO: ProcessCDR(1,14923034,1,1,2) [2025-04-16 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923034', 'tblTempUsageDetail_20' ) start [2025-04-16 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923034', 'tblTempUsageDetail_20' ) end [2025-04-16 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:24:24] Production.INFO: ==21699== Releasing lock... [2025-04-16 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:24:24] Production.INFO: 47.75 MB #Memory Used# [2025-04-16 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:25:05 [end_date_ymd] => 2025-04-16 19:25:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:25:05' and `end` < '2025-04-16 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-04-16 19:25:18] Production.INFO: count ==2610 [2025-04-16 19:25:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:25:05 - End Time 2025-04-16 19:25:05 [2025-04-16 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923039', 'tblTempUsageDetail_20' ) start [2025-04-16 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923039', 'tblTempUsageDetail_20' ) end [2025-04-16 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923039', 'tblTempVendorCDR_20' ) start [2025-04-16 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923039', 'tblTempVendorCDR_20' ) end [2025-04-16 19:25:19] Production.INFO: ProcessCDR(1,14923039,1,1,2) [2025-04-16 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923039', 'tblTempUsageDetail_20' ) start [2025-04-16 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923039', 'tblTempUsageDetail_20' ) end [2025-04-16 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:25:23] Production.INFO: ==21780== Releasing lock... [2025-04-16 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:25:23] Production.INFO: 47.75 MB #Memory Used# [2025-04-16 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:26:05 [end_date_ymd] => 2025-04-16 19:26:05 [RateCDR] => 1 ) [2025-04-16 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 16:26:05' and `end` < '2025-04-16 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 19:26:18] Production.INFO: count ==2602 [2025-04-16 19:26:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:26:05 - End Time 2025-04-16 19:26:05 [2025-04-16 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923044', 'tblTempUsageDetail_20' ) start [2025-04-16 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923044', 'tblTempUsageDetail_20' ) end [2025-04-16 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923044', 'tblTempVendorCDR_20' ) start [2025-04-16 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923044', 'tblTempVendorCDR_20' ) end [2025-04-16 19:26:19] Production.INFO: ProcessCDR(1,14923044,1,1,2) [2025-04-16 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923044', 'tblTempUsageDetail_20' ) start [2025-04-16 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923044', 'tblTempUsageDetail_20' ) end [2025-04-16 19:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:26:22] Production.INFO: ==21862== Releasing lock... [2025-04-16 19:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:26:22] Production.INFO: 47.75 MB #Memory Used# [2025-04-16 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:27:05 [end_date_ymd] => 2025-04-16 19:27:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:27:05' and `end` < '2025-04-16 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-04-16 19:27:18] Production.INFO: count ==2597 [2025-04-16 19:27:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:27:05 - End Time 2025-04-16 19:27:05 [2025-04-16 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923049', 'tblTempUsageDetail_20' ) start [2025-04-16 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923049', 'tblTempUsageDetail_20' ) end [2025-04-16 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923049', 'tblTempVendorCDR_20' ) start [2025-04-16 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923049', 'tblTempVendorCDR_20' ) end [2025-04-16 19:27:19] Production.INFO: ProcessCDR(1,14923049,1,1,2) [2025-04-16 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923049', 'tblTempUsageDetail_20' ) start [2025-04-16 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923049', 'tblTempUsageDetail_20' ) end [2025-04-16 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:27:22] Production.INFO: ==21948== Releasing lock... [2025-04-16 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:27:22] Production.INFO: 47.5 MB #Memory Used# [2025-04-16 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:28:05 [end_date_ymd] => 2025-04-16 19:28:05 [RateCDR] => 1 ) [2025-04-16 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 16:28:05' and `end` < '2025-04-16 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 19:28:18] Production.INFO: count ==2584 [2025-04-16 19:28:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:28:05 - End Time 2025-04-16 19:28:05 [2025-04-16 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923054', 'tblTempUsageDetail_20' ) start [2025-04-16 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923054', 'tblTempUsageDetail_20' ) end [2025-04-16 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923054', 'tblTempVendorCDR_20' ) start [2025-04-16 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923054', 'tblTempVendorCDR_20' ) end [2025-04-16 19:28:19] Production.INFO: ProcessCDR(1,14923054,1,1,2) [2025-04-16 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923054', 'tblTempUsageDetail_20' ) start [2025-04-16 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923054', 'tblTempUsageDetail_20' ) end [2025-04-16 19:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:28:22] Production.INFO: ==22038== Releasing lock... [2025-04-16 19:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:28:22] Production.INFO: 47.5 MB #Memory Used# [2025-04-16 19:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:29:04 [end_date_ymd] => 2025-04-16 19:29:04 [RateCDR] => 1 ) [2025-04-16 19:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 16:29:04' and `end` < '2025-04-16 19:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 19:29:17] Production.INFO: count ==2571 [2025-04-16 19:29:18] Production.ERROR: pbx CDR StartTime 2025-04-16 16:29:04 - End Time 2025-04-16 19:29:04 [2025-04-16 19:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923059', 'tblTempUsageDetail_20' ) start [2025-04-16 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923059', 'tblTempUsageDetail_20' ) end [2025-04-16 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923059', 'tblTempVendorCDR_20' ) start [2025-04-16 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923059', 'tblTempVendorCDR_20' ) end [2025-04-16 19:29:18] Production.INFO: ProcessCDR(1,14923059,1,1,2) [2025-04-16 19:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923059', 'tblTempUsageDetail_20' ) start [2025-04-16 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923059', 'tblTempUsageDetail_20' ) end [2025-04-16 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:29:23] Production.INFO: ==22121== Releasing lock... [2025-04-16 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:29:23] Production.INFO: 47.25 MB #Memory Used# [2025-04-16 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:30:06 [end_date_ymd] => 2025-04-16 19:30:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:30:06' and `end` < '2025-04-16 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-04-16 19:30:19] Production.INFO: count ==2571 [2025-04-16 19:30:20] Production.ERROR: pbx CDR StartTime 2025-04-16 16:30:06 - End Time 2025-04-16 19:30:06 [2025-04-16 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923065', 'tblTempUsageDetail_20' ) start [2025-04-16 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923065', 'tblTempUsageDetail_20' ) end [2025-04-16 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923065', 'tblTempVendorCDR_20' ) start [2025-04-16 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923065', 'tblTempVendorCDR_20' ) end [2025-04-16 19:30:20] Production.INFO: ProcessCDR(1,14923065,1,1,2) [2025-04-16 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923065', 'tblTempUsageDetail_20' ) start [2025-04-16 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923065', 'tblTempUsageDetail_20' ) end [2025-04-16 19:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:30:23] Production.INFO: ==22207== Releasing lock... [2025-04-16 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:30:23] Production.INFO: 47.5 MB #Memory Used# [2025-04-16 19:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:31:06 [end_date_ymd] => 2025-04-16 19:31:06 [RateCDR] => 1 ) [2025-04-16 19:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 16:31:06' and `end` < '2025-04-16 19:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 19:31:18] Production.INFO: count ==2484 [2025-04-16 19:31:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:31:06 - End Time 2025-04-16 19:31:06 [2025-04-16 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923070', 'tblTempUsageDetail_20' ) start [2025-04-16 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923070', 'tblTempUsageDetail_20' ) end [2025-04-16 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923070', 'tblTempVendorCDR_20' ) start [2025-04-16 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923070', 'tblTempVendorCDR_20' ) end [2025-04-16 19:31:19] Production.INFO: ProcessCDR(1,14923070,1,1,2) [2025-04-16 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923070', 'tblTempUsageDetail_20' ) start [2025-04-16 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923070', 'tblTempUsageDetail_20' ) end [2025-04-16 19:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:31:24] Production.INFO: ==22292== Releasing lock... [2025-04-16 19:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:31:24] Production.INFO: 46.75 MB #Memory Used# [2025-04-16 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:32:05 [end_date_ymd] => 2025-04-16 19:32:05 [RateCDR] => 1 ) [2025-04-16 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 16:32:05' and `end` < '2025-04-16 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 19:32:18] Production.INFO: count ==2484 [2025-04-16 19:32:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:32:05 - End Time 2025-04-16 19:32:05 [2025-04-16 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923075', 'tblTempUsageDetail_20' ) start [2025-04-16 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923075', 'tblTempUsageDetail_20' ) end [2025-04-16 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923075', 'tblTempVendorCDR_20' ) start [2025-04-16 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923075', 'tblTempVendorCDR_20' ) end [2025-04-16 19:32:19] Production.INFO: ProcessCDR(1,14923075,1,1,2) [2025-04-16 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923075', 'tblTempUsageDetail_20' ) start [2025-04-16 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923075', 'tblTempUsageDetail_20' ) end [2025-04-16 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:32:23] Production.INFO: ==22373== Releasing lock... [2025-04-16 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:32:23] Production.INFO: 47 MB #Memory Used# [2025-04-16 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:33:05 [end_date_ymd] => 2025-04-16 19:33:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:33:05' and `end` < '2025-04-16 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-04-16 19:33:18] Production.INFO: count ==2473 [2025-04-16 19:33:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:33:05 - End Time 2025-04-16 19:33:05 [2025-04-16 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923080', 'tblTempUsageDetail_20' ) start [2025-04-16 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923080', 'tblTempUsageDetail_20' ) end [2025-04-16 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923080', 'tblTempVendorCDR_20' ) start [2025-04-16 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923080', 'tblTempVendorCDR_20' ) end [2025-04-16 19:33:19] Production.INFO: ProcessCDR(1,14923080,1,1,2) [2025-04-16 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923080', 'tblTempUsageDetail_20' ) start [2025-04-16 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923080', 'tblTempUsageDetail_20' ) end [2025-04-16 19:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:33:24] Production.INFO: ==22490== Releasing lock... [2025-04-16 19:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:33:24] Production.INFO: 46.75 MB #Memory Used# [2025-04-16 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:34:05 [end_date_ymd] => 2025-04-16 19:34:05 [RateCDR] => 1 ) [2025-04-16 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 16:34:05' and `end` < '2025-04-16 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 19:34:19] Production.INFO: count ==2448 [2025-04-16 19:34:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:34:05 - End Time 2025-04-16 19:34:05 [2025-04-16 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923085', 'tblTempUsageDetail_20' ) start [2025-04-16 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923085', 'tblTempUsageDetail_20' ) end [2025-04-16 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923085', 'tblTempVendorCDR_20' ) start [2025-04-16 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923085', 'tblTempVendorCDR_20' ) end [2025-04-16 19:34:19] Production.INFO: ProcessCDR(1,14923085,1,1,2) [2025-04-16 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923085', 'tblTempUsageDetail_20' ) start [2025-04-16 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923085', 'tblTempUsageDetail_20' ) end [2025-04-16 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:34:23] Production.INFO: ==22565== Releasing lock... [2025-04-16 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:34:23] Production.INFO: 46.25 MB #Memory Used# [2025-04-16 19:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:35:06 [end_date_ymd] => 2025-04-16 19:35:06 [RateCDR] => 1 ) [2025-04-16 19: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-04-16 16:35:06' and `end` < '2025-04-16 19: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-04-16 19:35:19] Production.INFO: count ==2416 [2025-04-16 19:35:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:35:06 - End Time 2025-04-16 19:35:06 [2025-04-16 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923090', 'tblTempUsageDetail_20' ) start [2025-04-16 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923090', 'tblTempUsageDetail_20' ) end [2025-04-16 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923090', 'tblTempVendorCDR_20' ) start [2025-04-16 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923090', 'tblTempVendorCDR_20' ) end [2025-04-16 19:35:19] Production.INFO: ProcessCDR(1,14923090,1,1,2) [2025-04-16 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923090', 'tblTempUsageDetail_20' ) start [2025-04-16 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923090', 'tblTempUsageDetail_20' ) end [2025-04-16 19:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:35:24] Production.INFO: ==22638== Releasing lock... [2025-04-16 19:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:35:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-16 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:36:05 [end_date_ymd] => 2025-04-16 19:36:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:36:05' and `end` < '2025-04-16 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-04-16 19:36:18] Production.INFO: count ==2396 [2025-04-16 19:36:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:36:05 - End Time 2025-04-16 19:36:05 [2025-04-16 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923095', 'tblTempUsageDetail_20' ) start [2025-04-16 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923095', 'tblTempUsageDetail_20' ) end [2025-04-16 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923095', 'tblTempVendorCDR_20' ) start [2025-04-16 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923095', 'tblTempVendorCDR_20' ) end [2025-04-16 19:36:19] Production.INFO: ProcessCDR(1,14923095,1,1,2) [2025-04-16 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923095', 'tblTempUsageDetail_20' ) start [2025-04-16 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923095', 'tblTempUsageDetail_20' ) end [2025-04-16 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:36:22] Production.INFO: ==22708== Releasing lock... [2025-04-16 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:36:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-16 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:37:05 [end_date_ymd] => 2025-04-16 19:37:05 [RateCDR] => 1 ) [2025-04-16 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 16:37:05' and `end` < '2025-04-16 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 19:37:19] Production.INFO: count ==2383 [2025-04-16 19:37:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:37:05 - End Time 2025-04-16 19:37:05 [2025-04-16 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923100', 'tblTempUsageDetail_20' ) start [2025-04-16 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923100', 'tblTempUsageDetail_20' ) end [2025-04-16 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923100', 'tblTempVendorCDR_20' ) start [2025-04-16 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923100', 'tblTempVendorCDR_20' ) end [2025-04-16 19:37:19] Production.INFO: ProcessCDR(1,14923100,1,1,2) [2025-04-16 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923100', 'tblTempUsageDetail_20' ) start [2025-04-16 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923100', 'tblTempUsageDetail_20' ) end [2025-04-16 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:37:24] Production.INFO: ==22779== Releasing lock... [2025-04-16 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:37:24] Production.INFO: 46 MB #Memory Used# [2025-04-16 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:38:05 [end_date_ymd] => 2025-04-16 19:38:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:38:05' and `end` < '2025-04-16 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-04-16 19:38:18] Production.INFO: count ==2346 [2025-04-16 19:38:18] Production.ERROR: pbx CDR StartTime 2025-04-16 16:38:05 - End Time 2025-04-16 19:38:05 [2025-04-16 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923105', 'tblTempUsageDetail_20' ) start [2025-04-16 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923105', 'tblTempUsageDetail_20' ) end [2025-04-16 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923105', 'tblTempVendorCDR_20' ) start [2025-04-16 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923105', 'tblTempVendorCDR_20' ) end [2025-04-16 19:38:19] Production.INFO: ProcessCDR(1,14923105,1,1,2) [2025-04-16 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923105', 'tblTempUsageDetail_20' ) start [2025-04-16 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923105', 'tblTempUsageDetail_20' ) end [2025-04-16 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:38:22] Production.INFO: ==22853== Releasing lock... [2025-04-16 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:38:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-16 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:39:05 [end_date_ymd] => 2025-04-16 19:39:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:39:05' and `end` < '2025-04-16 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-04-16 19:39:18] Production.INFO: count ==2321 [2025-04-16 19:39:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:39:05 - End Time 2025-04-16 19:39:05 [2025-04-16 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923110', 'tblTempUsageDetail_20' ) start [2025-04-16 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923110', 'tblTempUsageDetail_20' ) end [2025-04-16 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923110', 'tblTempVendorCDR_20' ) start [2025-04-16 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923110', 'tblTempVendorCDR_20' ) end [2025-04-16 19:39:19] Production.INFO: ProcessCDR(1,14923110,1,1,2) [2025-04-16 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923110', 'tblTempUsageDetail_20' ) start [2025-04-16 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923110', 'tblTempUsageDetail_20' ) end [2025-04-16 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:39:23] Production.INFO: ==22932== Releasing lock... [2025-04-16 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:39:23] Production.INFO: 45.5 MB #Memory Used# [2025-04-16 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:40:06 [end_date_ymd] => 2025-04-16 19:40:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:40:06' and `end` < '2025-04-16 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-04-16 19:40:19] Production.INFO: count ==2296 [2025-04-16 19:40:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:40:06 - End Time 2025-04-16 19:40:06 [2025-04-16 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923116', 'tblTempUsageDetail_20' ) start [2025-04-16 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923116', 'tblTempUsageDetail_20' ) end [2025-04-16 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923116', 'tblTempVendorCDR_20' ) start [2025-04-16 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923116', 'tblTempVendorCDR_20' ) end [2025-04-16 19:40:20] Production.INFO: ProcessCDR(1,14923116,1,1,2) [2025-04-16 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923116', 'tblTempUsageDetail_20' ) start [2025-04-16 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923116', 'tblTempUsageDetail_20' ) end [2025-04-16 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:40:24] Production.INFO: ==23003== Releasing lock... [2025-04-16 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:40:24] Production.INFO: 45.25 MB #Memory Used# [2025-04-16 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:41:05 [end_date_ymd] => 2025-04-16 19:41:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:41:05' and `end` < '2025-04-16 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-04-16 19:41:18] Production.INFO: count ==2188 [2025-04-16 19:41:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:41:05 - End Time 2025-04-16 19:41:05 [2025-04-16 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923121', 'tblTempUsageDetail_20' ) start [2025-04-16 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923121', 'tblTempUsageDetail_20' ) end [2025-04-16 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923121', 'tblTempVendorCDR_20' ) start [2025-04-16 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923121', 'tblTempVendorCDR_20' ) end [2025-04-16 19:41:19] Production.INFO: ProcessCDR(1,14923121,1,1,2) [2025-04-16 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923121', 'tblTempUsageDetail_20' ) start [2025-04-16 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923121', 'tblTempUsageDetail_20' ) end [2025-04-16 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:41:23] Production.INFO: ==23077== Releasing lock... [2025-04-16 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:41:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-16 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:42:05 [end_date_ymd] => 2025-04-16 19:42:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:42:05' and `end` < '2025-04-16 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-04-16 19:42:18] Production.INFO: count ==2178 [2025-04-16 19:42:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:42:05 - End Time 2025-04-16 19:42:05 [2025-04-16 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923126', 'tblTempUsageDetail_20' ) start [2025-04-16 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923126', 'tblTempUsageDetail_20' ) end [2025-04-16 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923126', 'tblTempVendorCDR_20' ) start [2025-04-16 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923126', 'tblTempVendorCDR_20' ) end [2025-04-16 19:42:19] Production.INFO: ProcessCDR(1,14923126,1,1,2) [2025-04-16 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923126', 'tblTempUsageDetail_20' ) start [2025-04-16 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923126', 'tblTempUsageDetail_20' ) end [2025-04-16 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:42:23] Production.INFO: ==23151== Releasing lock... [2025-04-16 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:42:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-16 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:43:05 [end_date_ymd] => 2025-04-16 19:43:05 [RateCDR] => 1 ) [2025-04-16 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 16:43:05' and `end` < '2025-04-16 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 19:43:18] Production.INFO: count ==2166 [2025-04-16 19:43:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:43:05 - End Time 2025-04-16 19:43:05 [2025-04-16 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923131', 'tblTempUsageDetail_20' ) start [2025-04-16 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923131', 'tblTempUsageDetail_20' ) end [2025-04-16 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923131', 'tblTempVendorCDR_20' ) start [2025-04-16 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923131', 'tblTempVendorCDR_20' ) end [2025-04-16 19:43:19] Production.INFO: ProcessCDR(1,14923131,1,1,2) [2025-04-16 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923131', 'tblTempUsageDetail_20' ) start [2025-04-16 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923131', 'tblTempUsageDetail_20' ) end [2025-04-16 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:43:22] Production.INFO: ==23222== Releasing lock... [2025-04-16 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:43:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-16 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:44:05 [end_date_ymd] => 2025-04-16 19:44:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:44:05' and `end` < '2025-04-16 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-04-16 19:44:18] Production.INFO: count ==2154 [2025-04-16 19:44:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:44:05 - End Time 2025-04-16 19:44:05 [2025-04-16 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923136', 'tblTempUsageDetail_20' ) start [2025-04-16 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923136', 'tblTempUsageDetail_20' ) end [2025-04-16 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923136', 'tblTempVendorCDR_20' ) start [2025-04-16 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923136', 'tblTempVendorCDR_20' ) end [2025-04-16 19:44:19] Production.INFO: ProcessCDR(1,14923136,1,1,2) [2025-04-16 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923136', 'tblTempUsageDetail_20' ) start [2025-04-16 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923136', 'tblTempUsageDetail_20' ) end [2025-04-16 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:44:22] Production.INFO: ==23298== Releasing lock... [2025-04-16 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:44:22] Production.INFO: 45 MB #Memory Used# [2025-04-16 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:45:05 [end_date_ymd] => 2025-04-16 19:45:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:45:05' and `end` < '2025-04-16 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-04-16 19:45:18] Production.INFO: count ==2145 [2025-04-16 19:45:18] Production.ERROR: pbx CDR StartTime 2025-04-16 16:45:05 - End Time 2025-04-16 19:45:05 [2025-04-16 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923141', 'tblTempUsageDetail_20' ) start [2025-04-16 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923141', 'tblTempUsageDetail_20' ) end [2025-04-16 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923141', 'tblTempVendorCDR_20' ) start [2025-04-16 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923141', 'tblTempVendorCDR_20' ) end [2025-04-16 19:45:18] Production.INFO: ProcessCDR(1,14923141,1,1,2) [2025-04-16 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923141', 'tblTempUsageDetail_20' ) start [2025-04-16 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923141', 'tblTempUsageDetail_20' ) end [2025-04-16 19:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:45:21] Production.INFO: ==23371== Releasing lock... [2025-04-16 19:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:45:21] Production.INFO: 44 MB #Memory Used# [2025-04-16 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:46:05 [end_date_ymd] => 2025-04-16 19:46:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:46:05' and `end` < '2025-04-16 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-04-16 19:46:18] Production.INFO: count ==2123 [2025-04-16 19:46:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:46:05 - End Time 2025-04-16 19:46:05 [2025-04-16 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923146', 'tblTempUsageDetail_20' ) start [2025-04-16 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923146', 'tblTempUsageDetail_20' ) end [2025-04-16 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923146', 'tblTempVendorCDR_20' ) start [2025-04-16 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923146', 'tblTempVendorCDR_20' ) end [2025-04-16 19:46:19] Production.INFO: ProcessCDR(1,14923146,1,1,2) [2025-04-16 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923146', 'tblTempUsageDetail_20' ) start [2025-04-16 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923146', 'tblTempUsageDetail_20' ) end [2025-04-16 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:46:22] Production.INFO: ==23444== Releasing lock... [2025-04-16 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:46:22] Production.INFO: 44 MB #Memory Used# [2025-04-16 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:47:05 [end_date_ymd] => 2025-04-16 19:47:05 [RateCDR] => 1 ) [2025-04-16 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 16:47:05' and `end` < '2025-04-16 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 19:47:18] Production.INFO: count ==2116 [2025-04-16 19:47:18] Production.ERROR: pbx CDR StartTime 2025-04-16 16:47:05 - End Time 2025-04-16 19:47:05 [2025-04-16 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923151', 'tblTempUsageDetail_20' ) start [2025-04-16 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923151', 'tblTempUsageDetail_20' ) end [2025-04-16 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923151', 'tblTempVendorCDR_20' ) start [2025-04-16 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923151', 'tblTempVendorCDR_20' ) end [2025-04-16 19:47:18] Production.INFO: ProcessCDR(1,14923151,1,1,2) [2025-04-16 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923151', 'tblTempUsageDetail_20' ) start [2025-04-16 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923151', 'tblTempUsageDetail_20' ) end [2025-04-16 19:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:47:23] Production.INFO: ==23514== Releasing lock... [2025-04-16 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:47:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-16 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:48:05 [end_date_ymd] => 2025-04-16 19:48:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:48:05' and `end` < '2025-04-16 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-04-16 19:48:18] Production.INFO: count ==2097 [2025-04-16 19:48:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:48:05 - End Time 2025-04-16 19:48:05 [2025-04-16 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923156', 'tblTempUsageDetail_20' ) start [2025-04-16 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923156', 'tblTempUsageDetail_20' ) end [2025-04-16 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923156', 'tblTempVendorCDR_20' ) start [2025-04-16 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923156', 'tblTempVendorCDR_20' ) end [2025-04-16 19:48:19] Production.INFO: ProcessCDR(1,14923156,1,1,2) [2025-04-16 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923156', 'tblTempUsageDetail_20' ) start [2025-04-16 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923156', 'tblTempUsageDetail_20' ) end [2025-04-16 19:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:48:24] Production.INFO: ==23587== Releasing lock... [2025-04-16 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:48:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-16 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:49:05 [end_date_ymd] => 2025-04-16 19:49:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:49:05' and `end` < '2025-04-16 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-04-16 19:49:18] Production.INFO: count ==2096 [2025-04-16 19:49:18] Production.ERROR: pbx CDR StartTime 2025-04-16 16:49:05 - End Time 2025-04-16 19:49:05 [2025-04-16 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923161', 'tblTempUsageDetail_20' ) start [2025-04-16 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923161', 'tblTempUsageDetail_20' ) end [2025-04-16 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923161', 'tblTempVendorCDR_20' ) start [2025-04-16 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923161', 'tblTempVendorCDR_20' ) end [2025-04-16 19:49:18] Production.INFO: ProcessCDR(1,14923161,1,1,2) [2025-04-16 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923161', 'tblTempUsageDetail_20' ) start [2025-04-16 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923161', 'tblTempUsageDetail_20' ) end [2025-04-16 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:49:22] Production.INFO: ==23700== Releasing lock... [2025-04-16 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:49:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-16 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:50:05 [end_date_ymd] => 2025-04-16 19:50:05 [RateCDR] => 1 ) [2025-04-16 19:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 16:50:05' and `end` < '2025-04-16 19:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 19:50:18] Production.INFO: count ==2099 [2025-04-16 19:50:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:50:05 - End Time 2025-04-16 19:50:05 [2025-04-16 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923166', 'tblTempUsageDetail_20' ) start [2025-04-16 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923166', 'tblTempUsageDetail_20' ) end [2025-04-16 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923166', 'tblTempVendorCDR_20' ) start [2025-04-16 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923166', 'tblTempVendorCDR_20' ) end [2025-04-16 19:50:19] Production.INFO: ProcessCDR(1,14923166,1,1,2) [2025-04-16 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923166', 'tblTempUsageDetail_20' ) start [2025-04-16 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923166', 'tblTempUsageDetail_20' ) end [2025-04-16 19:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:50:22] Production.INFO: ==23774== Releasing lock... [2025-04-16 19:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:50:22] Production.INFO: 44 MB #Memory Used# [2025-04-16 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:51:05 [end_date_ymd] => 2025-04-16 19:51:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:51:05' and `end` < '2025-04-16 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-04-16 19:51:18] Production.INFO: count ==2014 [2025-04-16 19:51:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:51:05 - End Time 2025-04-16 19:51:05 [2025-04-16 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923172', 'tblTempUsageDetail_20' ) start [2025-04-16 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923172', 'tblTempUsageDetail_20' ) end [2025-04-16 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923172', 'tblTempVendorCDR_20' ) start [2025-04-16 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923172', 'tblTempVendorCDR_20' ) end [2025-04-16 19:51:19] Production.INFO: ProcessCDR(1,14923172,1,1,2) [2025-04-16 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923172', 'tblTempUsageDetail_20' ) start [2025-04-16 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923172', 'tblTempUsageDetail_20' ) end [2025-04-16 19:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:51:24] Production.INFO: ==23856== Releasing lock... [2025-04-16 19:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:51:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-16 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:52:05 [end_date_ymd] => 2025-04-16 19:52:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:52:05' and `end` < '2025-04-16 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-04-16 19:52:18] Production.INFO: count ==2007 [2025-04-16 19:52:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:52:05 - End Time 2025-04-16 19:52:05 [2025-04-16 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923177', 'tblTempUsageDetail_20' ) start [2025-04-16 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923177', 'tblTempUsageDetail_20' ) end [2025-04-16 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923177', 'tblTempVendorCDR_20' ) start [2025-04-16 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923177', 'tblTempVendorCDR_20' ) end [2025-04-16 19:52:19] Production.INFO: ProcessCDR(1,14923177,1,1,2) [2025-04-16 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923177', 'tblTempUsageDetail_20' ) start [2025-04-16 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923177', 'tblTempUsageDetail_20' ) end [2025-04-16 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:52:22] Production.INFO: ==23929== Releasing lock... [2025-04-16 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:52:22] Production.INFO: 43 MB #Memory Used# [2025-04-16 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:53:05 [end_date_ymd] => 2025-04-16 19:53:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:53:05' and `end` < '2025-04-16 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-04-16 19:53:18] Production.INFO: count ==2003 [2025-04-16 19:53:18] Production.ERROR: pbx CDR StartTime 2025-04-16 16:53:05 - End Time 2025-04-16 19:53:05 [2025-04-16 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923182', 'tblTempUsageDetail_20' ) start [2025-04-16 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923182', 'tblTempUsageDetail_20' ) end [2025-04-16 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923182', 'tblTempVendorCDR_20' ) start [2025-04-16 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923182', 'tblTempVendorCDR_20' ) end [2025-04-16 19:53:18] Production.INFO: ProcessCDR(1,14923182,1,1,2) [2025-04-16 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923182', 'tblTempUsageDetail_20' ) start [2025-04-16 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923182', 'tblTempUsageDetail_20' ) end [2025-04-16 19:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:53:23] Production.INFO: ==23999== Releasing lock... [2025-04-16 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:53:23] Production.INFO: 43 MB #Memory Used# [2025-04-16 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:54:05 [end_date_ymd] => 2025-04-16 19:54:05 [RateCDR] => 1 ) [2025-04-16 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 16:54:05' and `end` < '2025-04-16 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 19:54:18] Production.INFO: count ==1974 [2025-04-16 19:54:18] Production.ERROR: pbx CDR StartTime 2025-04-16 16:54:05 - End Time 2025-04-16 19:54:05 [2025-04-16 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923187', 'tblTempUsageDetail_20' ) start [2025-04-16 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923187', 'tblTempUsageDetail_20' ) end [2025-04-16 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923187', 'tblTempVendorCDR_20' ) start [2025-04-16 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923187', 'tblTempVendorCDR_20' ) end [2025-04-16 19:54:18] Production.INFO: ProcessCDR(1,14923187,1,1,2) [2025-04-16 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923187', 'tblTempUsageDetail_20' ) start [2025-04-16 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923187', 'tblTempUsageDetail_20' ) end [2025-04-16 19:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:54:23] Production.INFO: ==24073== Releasing lock... [2025-04-16 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:54:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-16 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:55:05 [end_date_ymd] => 2025-04-16 19:55:05 [RateCDR] => 1 ) [2025-04-16 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 16:55:05' and `end` < '2025-04-16 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 19:55:17] Production.INFO: count ==1967 [2025-04-16 19:55:18] Production.ERROR: pbx CDR StartTime 2025-04-16 16:55:05 - End Time 2025-04-16 19:55:05 [2025-04-16 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923192', 'tblTempUsageDetail_20' ) start [2025-04-16 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923192', 'tblTempUsageDetail_20' ) end [2025-04-16 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923192', 'tblTempVendorCDR_20' ) start [2025-04-16 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923192', 'tblTempVendorCDR_20' ) end [2025-04-16 19:55:18] Production.INFO: ProcessCDR(1,14923192,1,1,2) [2025-04-16 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923192', 'tblTempUsageDetail_20' ) start [2025-04-16 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923192', 'tblTempUsageDetail_20' ) end [2025-04-16 19:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:55:21] Production.INFO: ==24145== Releasing lock... [2025-04-16 19:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:55:21] Production.INFO: 42.5 MB #Memory Used# [2025-04-16 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:56:05 [end_date_ymd] => 2025-04-16 19:56:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:56:05' and `end` < '2025-04-16 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-04-16 19:56:18] Production.INFO: count ==1954 [2025-04-16 19:56:18] Production.ERROR: pbx CDR StartTime 2025-04-16 16:56:05 - End Time 2025-04-16 19:56:05 [2025-04-16 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923197', 'tblTempUsageDetail_20' ) start [2025-04-16 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923197', 'tblTempUsageDetail_20' ) end [2025-04-16 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923197', 'tblTempVendorCDR_20' ) start [2025-04-16 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923197', 'tblTempVendorCDR_20' ) end [2025-04-16 19:56:18] Production.INFO: ProcessCDR(1,14923197,1,1,2) [2025-04-16 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923197', 'tblTempUsageDetail_20' ) start [2025-04-16 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923197', 'tblTempUsageDetail_20' ) end [2025-04-16 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:56:22] Production.INFO: ==24219== Releasing lock... [2025-04-16 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:56:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-16 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:57:05 [end_date_ymd] => 2025-04-16 19:57:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:57:05' and `end` < '2025-04-16 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-04-16 19:57:18] Production.INFO: count ==1948 [2025-04-16 19:57:18] Production.ERROR: pbx CDR StartTime 2025-04-16 16:57:05 - End Time 2025-04-16 19:57:05 [2025-04-16 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923202', 'tblTempUsageDetail_20' ) start [2025-04-16 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923202', 'tblTempUsageDetail_20' ) end [2025-04-16 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923202', 'tblTempVendorCDR_20' ) start [2025-04-16 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923202', 'tblTempVendorCDR_20' ) end [2025-04-16 19:57:18] Production.INFO: ProcessCDR(1,14923202,1,1,2) [2025-04-16 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923202', 'tblTempUsageDetail_20' ) start [2025-04-16 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923202', 'tblTempUsageDetail_20' ) end [2025-04-16 19:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:57:23] Production.INFO: ==24303== Releasing lock... [2025-04-16 19:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:57:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-16 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:58:05 [end_date_ymd] => 2025-04-16 19:58:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 16:58:05' and `end` < '2025-04-16 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-04-16 19:58:18] Production.INFO: count ==1940 [2025-04-16 19:58:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:58:05 - End Time 2025-04-16 19:58:05 [2025-04-16 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923207', 'tblTempUsageDetail_20' ) start [2025-04-16 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923207', 'tblTempUsageDetail_20' ) end [2025-04-16 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923207', 'tblTempVendorCDR_20' ) start [2025-04-16 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923207', 'tblTempVendorCDR_20' ) end [2025-04-16 19:58:19] Production.INFO: ProcessCDR(1,14923207,1,1,2) [2025-04-16 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923207', 'tblTempUsageDetail_20' ) start [2025-04-16 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923207', 'tblTempUsageDetail_20' ) end [2025-04-16 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:58:22] Production.INFO: ==24383== Releasing lock... [2025-04-16 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:58:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-16 19:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 16:59:06 [end_date_ymd] => 2025-04-16 19:59:06 [RateCDR] => 1 ) [2025-04-16 19: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-04-16 16:59:06' and `end` < '2025-04-16 19: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-04-16 19:59:19] Production.INFO: count ==1909 [2025-04-16 19:59:19] Production.ERROR: pbx CDR StartTime 2025-04-16 16:59:06 - End Time 2025-04-16 19:59:06 [2025-04-16 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923212', 'tblTempUsageDetail_20' ) start [2025-04-16 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923212', 'tblTempUsageDetail_20' ) end [2025-04-16 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923212', 'tblTempVendorCDR_20' ) start [2025-04-16 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923212', 'tblTempVendorCDR_20' ) end [2025-04-16 19:59:19] Production.INFO: ProcessCDR(1,14923212,1,1,2) [2025-04-16 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923212', 'tblTempUsageDetail_20' ) start [2025-04-16 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923212', 'tblTempUsageDetail_20' ) end [2025-04-16 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 19:59:22] Production.INFO: ==24456== Releasing lock... [2025-04-16 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 19:59:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-16 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:00:06 [end_date_ymd] => 2025-04-16 20:00:06 [RateCDR] => 1 ) [2025-04-16 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 17:00:06' and `end` < '2025-04-16 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 20:00:19] Production.INFO: count ==1902 [2025-04-16 20:00:19] Production.ERROR: pbx CDR StartTime 2025-04-16 17:00:06 - End Time 2025-04-16 20:00:06 [2025-04-16 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923218', 'tblTempUsageDetail_20' ) start [2025-04-16 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923218', 'tblTempUsageDetail_20' ) end [2025-04-16 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923218', 'tblTempVendorCDR_20' ) start [2025-04-16 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923218', 'tblTempVendorCDR_20' ) end [2025-04-16 20:00:19] Production.INFO: ProcessCDR(1,14923218,1,1,2) [2025-04-16 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923218', 'tblTempUsageDetail_20' ) start [2025-04-16 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923218', 'tblTempUsageDetail_20' ) end [2025-04-16 20:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:00:22] Production.INFO: ==24529== Releasing lock... [2025-04-16 20:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:00:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-16 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:01:05 [end_date_ymd] => 2025-04-16 20:01:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:01:05' and `end` < '2025-04-16 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-04-16 20:01:18] Production.INFO: count ==1811 [2025-04-16 20:01:19] Production.ERROR: pbx CDR StartTime 2025-04-16 17:01:05 - End Time 2025-04-16 20:01:05 [2025-04-16 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923223', 'tblTempUsageDetail_20' ) start [2025-04-16 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923223', 'tblTempUsageDetail_20' ) end [2025-04-16 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923223', 'tblTempVendorCDR_20' ) start [2025-04-16 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923223', 'tblTempVendorCDR_20' ) end [2025-04-16 20:01:19] Production.INFO: ProcessCDR(1,14923223,1,1,2) [2025-04-16 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923223', 'tblTempUsageDetail_20' ) start [2025-04-16 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923223', 'tblTempUsageDetail_20' ) end [2025-04-16 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:01:22] Production.INFO: ==24652== Releasing lock... [2025-04-16 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:01:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-16 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:02:05 [end_date_ymd] => 2025-04-16 20:02:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:02:05' and `end` < '2025-04-16 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-04-16 20:02:18] Production.INFO: count ==1803 [2025-04-16 20:02:19] Production.ERROR: pbx CDR StartTime 2025-04-16 17:02:05 - End Time 2025-04-16 20:02:05 [2025-04-16 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923228', 'tblTempUsageDetail_20' ) start [2025-04-16 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923228', 'tblTempUsageDetail_20' ) end [2025-04-16 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923228', 'tblTempVendorCDR_20' ) start [2025-04-16 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923228', 'tblTempVendorCDR_20' ) end [2025-04-16 20:02:19] Production.INFO: ProcessCDR(1,14923228,1,1,2) [2025-04-16 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923228', 'tblTempUsageDetail_20' ) start [2025-04-16 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923228', 'tblTempUsageDetail_20' ) end [2025-04-16 20:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:02:22] Production.INFO: ==24725== Releasing lock... [2025-04-16 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:02:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-16 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:03:05 [end_date_ymd] => 2025-04-16 20:03:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:03:05' and `end` < '2025-04-16 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-04-16 20:03:18] Production.INFO: count ==1794 [2025-04-16 20:03:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:03:05 - End Time 2025-04-16 20:03:05 [2025-04-16 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923233', 'tblTempUsageDetail_20' ) start [2025-04-16 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923233', 'tblTempUsageDetail_20' ) end [2025-04-16 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923233', 'tblTempVendorCDR_20' ) start [2025-04-16 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923233', 'tblTempVendorCDR_20' ) end [2025-04-16 20:03:18] Production.INFO: ProcessCDR(1,14923233,1,1,2) [2025-04-16 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923233', 'tblTempUsageDetail_20' ) start [2025-04-16 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923233', 'tblTempUsageDetail_20' ) end [2025-04-16 20:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:03:22] Production.INFO: ==24799== Releasing lock... [2025-04-16 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:03:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-16 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:04:05 [end_date_ymd] => 2025-04-16 20:04:05 [RateCDR] => 1 ) [2025-04-16 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 17:04:05' and `end` < '2025-04-16 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 20:04:18] Production.INFO: count ==1788 [2025-04-16 20:04:19] Production.ERROR: pbx CDR StartTime 2025-04-16 17:04:05 - End Time 2025-04-16 20:04:05 [2025-04-16 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923238', 'tblTempUsageDetail_20' ) start [2025-04-16 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923238', 'tblTempUsageDetail_20' ) end [2025-04-16 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923238', 'tblTempVendorCDR_20' ) start [2025-04-16 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923238', 'tblTempVendorCDR_20' ) end [2025-04-16 20:04:19] Production.INFO: ProcessCDR(1,14923238,1,1,2) [2025-04-16 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923238', 'tblTempUsageDetail_20' ) start [2025-04-16 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923238', 'tblTempUsageDetail_20' ) end [2025-04-16 20:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:04:23] Production.INFO: ==24913== Releasing lock... [2025-04-16 20:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:04:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-16 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:05:05 [end_date_ymd] => 2025-04-16 20:05:05 [RateCDR] => 1 ) [2025-04-16 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 17:05:05' and `end` < '2025-04-16 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-04-16 20:05:18] Production.INFO: count ==1784 [2025-04-16 20:05:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:05:05 - End Time 2025-04-16 20:05:05 [2025-04-16 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923243', 'tblTempUsageDetail_20' ) start [2025-04-16 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923243', 'tblTempUsageDetail_20' ) end [2025-04-16 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923243', 'tblTempVendorCDR_20' ) start [2025-04-16 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923243', 'tblTempVendorCDR_20' ) end [2025-04-16 20:05:18] Production.INFO: ProcessCDR(1,14923243,1,1,2) [2025-04-16 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923243', 'tblTempUsageDetail_20' ) start [2025-04-16 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923243', 'tblTempUsageDetail_20' ) end [2025-04-16 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:05:22] Production.INFO: ==24992== Releasing lock... [2025-04-16 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:05:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-16 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:06:05 [end_date_ymd] => 2025-04-16 20:06:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:06:05' and `end` < '2025-04-16 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-04-16 20:06:18] Production.INFO: count ==1781 [2025-04-16 20:06:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:06:05 - End Time 2025-04-16 20:06:05 [2025-04-16 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923248', 'tblTempUsageDetail_20' ) start [2025-04-16 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923248', 'tblTempUsageDetail_20' ) end [2025-04-16 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923248', 'tblTempVendorCDR_20' ) start [2025-04-16 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923248', 'tblTempVendorCDR_20' ) end [2025-04-16 20:06:18] Production.INFO: ProcessCDR(1,14923248,1,1,2) [2025-04-16 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923248', 'tblTempUsageDetail_20' ) start [2025-04-16 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923248', 'tblTempUsageDetail_20' ) end [2025-04-16 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:06:22] Production.INFO: ==25068== Releasing lock... [2025-04-16 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:06:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-16 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:07:05 [end_date_ymd] => 2025-04-16 20:07:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:07:05' and `end` < '2025-04-16 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-04-16 20:07:18] Production.INFO: count ==1775 [2025-04-16 20:07:19] Production.ERROR: pbx CDR StartTime 2025-04-16 17:07:05 - End Time 2025-04-16 20:07:05 [2025-04-16 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923253', 'tblTempUsageDetail_20' ) start [2025-04-16 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923253', 'tblTempUsageDetail_20' ) end [2025-04-16 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923253', 'tblTempVendorCDR_20' ) start [2025-04-16 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923253', 'tblTempVendorCDR_20' ) end [2025-04-16 20:07:19] Production.INFO: ProcessCDR(1,14923253,1,1,2) [2025-04-16 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923253', 'tblTempUsageDetail_20' ) start [2025-04-16 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923253', 'tblTempUsageDetail_20' ) end [2025-04-16 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:07:22] Production.INFO: ==25146== Releasing lock... [2025-04-16 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:07:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-16 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:08:05 [end_date_ymd] => 2025-04-16 20:08:05 [RateCDR] => 1 ) [2025-04-16 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 17:08:05' and `end` < '2025-04-16 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 20:08:17] Production.INFO: count ==1764 [2025-04-16 20:08:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:08:05 - End Time 2025-04-16 20:08:05 [2025-04-16 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923258', 'tblTempUsageDetail_20' ) start [2025-04-16 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923258', 'tblTempUsageDetail_20' ) end [2025-04-16 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923258', 'tblTempVendorCDR_20' ) start [2025-04-16 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923258', 'tblTempVendorCDR_20' ) end [2025-04-16 20:08:18] Production.INFO: ProcessCDR(1,14923258,1,1,2) [2025-04-16 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923258', 'tblTempUsageDetail_20' ) start [2025-04-16 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923258', 'tblTempUsageDetail_20' ) end [2025-04-16 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:08:22] Production.INFO: ==25221== Releasing lock... [2025-04-16 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:08:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-16 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:09:05 [end_date_ymd] => 2025-04-16 20:09:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:09:05' and `end` < '2025-04-16 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-04-16 20:09:18] Production.INFO: count ==1748 [2025-04-16 20:09:19] Production.ERROR: pbx CDR StartTime 2025-04-16 17:09:05 - End Time 2025-04-16 20:09:05 [2025-04-16 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923263', 'tblTempUsageDetail_20' ) start [2025-04-16 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923263', 'tblTempUsageDetail_20' ) end [2025-04-16 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923263', 'tblTempVendorCDR_20' ) start [2025-04-16 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923263', 'tblTempVendorCDR_20' ) end [2025-04-16 20:09:19] Production.INFO: ProcessCDR(1,14923263,1,1,2) [2025-04-16 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923263', 'tblTempUsageDetail_20' ) start [2025-04-16 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923263', 'tblTempUsageDetail_20' ) end [2025-04-16 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:09:22] Production.INFO: ==25292== Releasing lock... [2025-04-16 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:09:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-16 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:10:05 [end_date_ymd] => 2025-04-16 20:10:05 [RateCDR] => 1 ) [2025-04-16 20:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 17:10:05' and `end` < '2025-04-16 20:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 20:10:18] Production.INFO: count ==1745 [2025-04-16 20:10:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:10:05 - End Time 2025-04-16 20:10:05 [2025-04-16 20:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923268', 'tblTempUsageDetail_20' ) start [2025-04-16 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923268', 'tblTempUsageDetail_20' ) end [2025-04-16 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923268', 'tblTempVendorCDR_20' ) start [2025-04-16 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923268', 'tblTempVendorCDR_20' ) end [2025-04-16 20:10:18] Production.INFO: ProcessCDR(1,14923268,1,1,2) [2025-04-16 20:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923268', 'tblTempUsageDetail_20' ) start [2025-04-16 20:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923268', 'tblTempUsageDetail_20' ) end [2025-04-16 20:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:10:21] Production.INFO: ==25365== Releasing lock... [2025-04-16 20:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:10:21] Production.INFO: 41.25 MB #Memory Used# [2025-04-16 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:11:05 [end_date_ymd] => 2025-04-16 20:11:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:11:05' and `end` < '2025-04-16 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-04-16 20:11:18] Production.INFO: count ==1728 [2025-04-16 20:11:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:11:05 - End Time 2025-04-16 20:11:05 [2025-04-16 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923274', 'tblTempUsageDetail_20' ) start [2025-04-16 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923274', 'tblTempUsageDetail_20' ) end [2025-04-16 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923274', 'tblTempVendorCDR_20' ) start [2025-04-16 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923274', 'tblTempVendorCDR_20' ) end [2025-04-16 20:11:18] Production.INFO: ProcessCDR(1,14923274,1,1,2) [2025-04-16 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923274', 'tblTempUsageDetail_20' ) start [2025-04-16 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923274', 'tblTempUsageDetail_20' ) end [2025-04-16 20:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:11:23] Production.INFO: ==25440== Releasing lock... [2025-04-16 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:11:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-16 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:12:05 [end_date_ymd] => 2025-04-16 20:12:05 [RateCDR] => 1 ) [2025-04-16 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 17:12:05' and `end` < '2025-04-16 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 20:12:18] Production.INFO: count ==1723 [2025-04-16 20:12:19] Production.ERROR: pbx CDR StartTime 2025-04-16 17:12:05 - End Time 2025-04-16 20:12:05 [2025-04-16 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923279', 'tblTempUsageDetail_20' ) start [2025-04-16 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923279', 'tblTempUsageDetail_20' ) end [2025-04-16 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923279', 'tblTempVendorCDR_20' ) start [2025-04-16 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923279', 'tblTempVendorCDR_20' ) end [2025-04-16 20:12:19] Production.INFO: ProcessCDR(1,14923279,1,1,2) [2025-04-16 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923279', 'tblTempUsageDetail_20' ) start [2025-04-16 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923279', 'tblTempUsageDetail_20' ) end [2025-04-16 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:12:22] Production.INFO: ==25517== Releasing lock... [2025-04-16 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:12:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-16 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:13:05 [end_date_ymd] => 2025-04-16 20:13:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:13:05' and `end` < '2025-04-16 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-04-16 20:13:18] Production.INFO: count ==1716 [2025-04-16 20:13:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:13:05 - End Time 2025-04-16 20:13:05 [2025-04-16 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923284', 'tblTempUsageDetail_20' ) start [2025-04-16 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923284', 'tblTempUsageDetail_20' ) end [2025-04-16 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923284', 'tblTempVendorCDR_20' ) start [2025-04-16 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923284', 'tblTempVendorCDR_20' ) end [2025-04-16 20:13:18] Production.INFO: ProcessCDR(1,14923284,1,1,2) [2025-04-16 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923284', 'tblTempUsageDetail_20' ) start [2025-04-16 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923284', 'tblTempUsageDetail_20' ) end [2025-04-16 20:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:13:21] Production.INFO: ==25592== Releasing lock... [2025-04-16 20:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:13:21] Production.INFO: 41 MB #Memory Used# [2025-04-16 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:14:05 [end_date_ymd] => 2025-04-16 20:14:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:14:05' and `end` < '2025-04-16 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-04-16 20:14:18] Production.INFO: count ==1712 [2025-04-16 20:14:19] Production.ERROR: pbx CDR StartTime 2025-04-16 17:14:05 - End Time 2025-04-16 20:14:05 [2025-04-16 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923289', 'tblTempUsageDetail_20' ) start [2025-04-16 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923289', 'tblTempUsageDetail_20' ) end [2025-04-16 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923289', 'tblTempVendorCDR_20' ) start [2025-04-16 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923289', 'tblTempVendorCDR_20' ) end [2025-04-16 20:14:19] Production.INFO: ProcessCDR(1,14923289,1,1,2) [2025-04-16 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923289', 'tblTempUsageDetail_20' ) start [2025-04-16 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923289', 'tblTempUsageDetail_20' ) end [2025-04-16 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:14:22] Production.INFO: ==25665== Releasing lock... [2025-04-16 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:14:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-16 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:15:05 [end_date_ymd] => 2025-04-16 20:15:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:15:05' and `end` < '2025-04-16 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-04-16 20:15:18] Production.INFO: count ==1722 [2025-04-16 20:15:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:15:05 - End Time 2025-04-16 20:15:05 [2025-04-16 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923294', 'tblTempUsageDetail_20' ) start [2025-04-16 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923294', 'tblTempUsageDetail_20' ) end [2025-04-16 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923294', 'tblTempVendorCDR_20' ) start [2025-04-16 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923294', 'tblTempVendorCDR_20' ) end [2025-04-16 20:15:18] Production.INFO: ProcessCDR(1,14923294,1,1,2) [2025-04-16 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923294', 'tblTempUsageDetail_20' ) start [2025-04-16 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923294', 'tblTempUsageDetail_20' ) end [2025-04-16 20:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:15:21] Production.INFO: ==25735== Releasing lock... [2025-04-16 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:15:21] Production.INFO: 40.75 MB #Memory Used# [2025-04-16 20:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:16:06 [end_date_ymd] => 2025-04-16 20:16:06 [RateCDR] => 1 ) [2025-04-16 20:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 17:16:06' and `end` < '2025-04-16 20:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 20:16:18] Production.INFO: count ==1720 [2025-04-16 20:16:19] Production.ERROR: pbx CDR StartTime 2025-04-16 17:16:06 - End Time 2025-04-16 20:16:06 [2025-04-16 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923299', 'tblTempUsageDetail_20' ) start [2025-04-16 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923299', 'tblTempUsageDetail_20' ) end [2025-04-16 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923299', 'tblTempVendorCDR_20' ) start [2025-04-16 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923299', 'tblTempVendorCDR_20' ) end [2025-04-16 20:16:19] Production.INFO: ProcessCDR(1,14923299,1,1,2) [2025-04-16 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923299', 'tblTempUsageDetail_20' ) start [2025-04-16 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923299', 'tblTempUsageDetail_20' ) end [2025-04-16 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:16:22] Production.INFO: ==25808== Releasing lock... [2025-04-16 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:16:22] Production.INFO: 41 MB #Memory Used# [2025-04-16 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:17:05 [end_date_ymd] => 2025-04-16 20:17:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:17:05' and `end` < '2025-04-16 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-04-16 20:17:18] Production.INFO: count ==1730 [2025-04-16 20:17:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:17:05 - End Time 2025-04-16 20:17:05 [2025-04-16 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923304', 'tblTempUsageDetail_20' ) start [2025-04-16 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923304', 'tblTempUsageDetail_20' ) end [2025-04-16 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923304', 'tblTempVendorCDR_20' ) start [2025-04-16 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923304', 'tblTempVendorCDR_20' ) end [2025-04-16 20:17:18] Production.INFO: ProcessCDR(1,14923304,1,1,2) [2025-04-16 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923304', 'tblTempUsageDetail_20' ) start [2025-04-16 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923304', 'tblTempUsageDetail_20' ) end [2025-04-16 20:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:17:23] Production.INFO: ==25878== Releasing lock... [2025-04-16 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:17:23] Production.INFO: 41 MB #Memory Used# [2025-04-16 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:18:05 [end_date_ymd] => 2025-04-16 20:18:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:18:05' and `end` < '2025-04-16 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-04-16 20:18:18] Production.INFO: count ==1723 [2025-04-16 20:18:19] Production.ERROR: pbx CDR StartTime 2025-04-16 17:18:05 - End Time 2025-04-16 20:18:05 [2025-04-16 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923309', 'tblTempUsageDetail_20' ) start [2025-04-16 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923309', 'tblTempUsageDetail_20' ) end [2025-04-16 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923309', 'tblTempVendorCDR_20' ) start [2025-04-16 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923309', 'tblTempVendorCDR_20' ) end [2025-04-16 20:18:19] Production.INFO: ProcessCDR(1,14923309,1,1,2) [2025-04-16 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923309', 'tblTempUsageDetail_20' ) start [2025-04-16 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923309', 'tblTempUsageDetail_20' ) end [2025-04-16 20:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:18:22] Production.INFO: ==25955== Releasing lock... [2025-04-16 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:18:22] Production.INFO: 41 MB #Memory Used# [2025-04-16 20:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:19:04 [end_date_ymd] => 2025-04-16 20:19:04 [RateCDR] => 1 ) [2025-04-16 20:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 17:19:04' and `end` < '2025-04-16 20:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 20:19:17] Production.INFO: count ==1718 [2025-04-16 20:19:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:19:04 - End Time 2025-04-16 20:19:04 [2025-04-16 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923314', 'tblTempUsageDetail_20' ) start [2025-04-16 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923314', 'tblTempUsageDetail_20' ) end [2025-04-16 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923314', 'tblTempVendorCDR_20' ) start [2025-04-16 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923314', 'tblTempVendorCDR_20' ) end [2025-04-16 20:19:18] Production.INFO: ProcessCDR(1,14923314,1,1,2) [2025-04-16 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923314', 'tblTempUsageDetail_20' ) start [2025-04-16 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923314', 'tblTempUsageDetail_20' ) end [2025-04-16 20:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:19:21] Production.INFO: ==26033== Releasing lock... [2025-04-16 20:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:19:21] Production.INFO: 41 MB #Memory Used# [2025-04-16 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:20:05 [end_date_ymd] => 2025-04-16 20:20:05 [RateCDR] => 1 ) [2025-04-16 20:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 17:20:05' and `end` < '2025-04-16 20:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 20:20:18] Production.INFO: count ==1705 [2025-04-16 20:20:19] Production.ERROR: pbx CDR StartTime 2025-04-16 17:20:05 - End Time 2025-04-16 20:20:05 [2025-04-16 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923320', 'tblTempUsageDetail_20' ) start [2025-04-16 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923320', 'tblTempUsageDetail_20' ) end [2025-04-16 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923320', 'tblTempVendorCDR_20' ) start [2025-04-16 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923320', 'tblTempVendorCDR_20' ) end [2025-04-16 20:20:19] Production.INFO: ProcessCDR(1,14923320,1,1,2) [2025-04-16 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923320', 'tblTempUsageDetail_20' ) start [2025-04-16 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923320', 'tblTempUsageDetail_20' ) end [2025-04-16 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:20:22] Production.INFO: ==26149== Releasing lock... [2025-04-16 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:20:22] Production.INFO: 41 MB #Memory Used# [2025-04-16 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:21:05 [end_date_ymd] => 2025-04-16 20:21:05 [RateCDR] => 1 ) [2025-04-16 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 17:21:05' and `end` < '2025-04-16 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 20:21:17] Production.INFO: count ==1647 [2025-04-16 20:21:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:21:05 - End Time 2025-04-16 20:21:05 [2025-04-16 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923325', 'tblTempUsageDetail_20' ) start [2025-04-16 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923325', 'tblTempUsageDetail_20' ) end [2025-04-16 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923325', 'tblTempVendorCDR_20' ) start [2025-04-16 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923325', 'tblTempVendorCDR_20' ) end [2025-04-16 20:21:18] Production.INFO: ProcessCDR(1,14923325,1,1,2) [2025-04-16 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923325', 'tblTempUsageDetail_20' ) start [2025-04-16 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923325', 'tblTempUsageDetail_20' ) end [2025-04-16 20:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:21:21] Production.INFO: ==26222== Releasing lock... [2025-04-16 20:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:21:21] Production.INFO: 40.5 MB #Memory Used# [2025-04-16 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:22:05 [end_date_ymd] => 2025-04-16 20:22:05 [RateCDR] => 1 ) [2025-04-16 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 17:22:05' and `end` < '2025-04-16 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 20:22:18] Production.INFO: count ==1642 [2025-04-16 20:22:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:22:05 - End Time 2025-04-16 20:22:05 [2025-04-16 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923330', 'tblTempUsageDetail_20' ) start [2025-04-16 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923330', 'tblTempUsageDetail_20' ) end [2025-04-16 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923330', 'tblTempVendorCDR_20' ) start [2025-04-16 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923330', 'tblTempVendorCDR_20' ) end [2025-04-16 20:22:18] Production.INFO: ProcessCDR(1,14923330,1,1,2) [2025-04-16 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923330', 'tblTempUsageDetail_20' ) start [2025-04-16 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923330', 'tblTempUsageDetail_20' ) end [2025-04-16 20:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:22:21] Production.INFO: ==26292== Releasing lock... [2025-04-16 20:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:22:21] Production.INFO: 40 MB #Memory Used# [2025-04-16 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:23:05 [end_date_ymd] => 2025-04-16 20:23:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:23:05' and `end` < '2025-04-16 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-04-16 20:23:18] Production.INFO: count ==1626 [2025-04-16 20:23:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:23:05 - End Time 2025-04-16 20:23:05 [2025-04-16 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923335', 'tblTempUsageDetail_20' ) start [2025-04-16 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923335', 'tblTempUsageDetail_20' ) end [2025-04-16 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923335', 'tblTempVendorCDR_20' ) start [2025-04-16 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923335', 'tblTempVendorCDR_20' ) end [2025-04-16 20:23:18] Production.INFO: ProcessCDR(1,14923335,1,1,2) [2025-04-16 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923335', 'tblTempUsageDetail_20' ) start [2025-04-16 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923335', 'tblTempUsageDetail_20' ) end [2025-04-16 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:23:22] Production.INFO: ==26367== Releasing lock... [2025-04-16 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:23:22] Production.INFO: 40 MB #Memory Used# [2025-04-16 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:24:05 [end_date_ymd] => 2025-04-16 20:24:05 [RateCDR] => 1 ) [2025-04-16 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 17:24:05' and `end` < '2025-04-16 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 20:24:18] Production.INFO: count ==1626 [2025-04-16 20:24:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:24:05 - End Time 2025-04-16 20:24:05 [2025-04-16 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923340', 'tblTempUsageDetail_20' ) start [2025-04-16 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923340', 'tblTempUsageDetail_20' ) end [2025-04-16 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923340', 'tblTempVendorCDR_20' ) start [2025-04-16 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923340', 'tblTempVendorCDR_20' ) end [2025-04-16 20:24:18] Production.INFO: ProcessCDR(1,14923340,1,1,2) [2025-04-16 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923340', 'tblTempUsageDetail_20' ) start [2025-04-16 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923340', 'tblTempUsageDetail_20' ) end [2025-04-16 20:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:24:21] Production.INFO: ==26441== Releasing lock... [2025-04-16 20:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:24:21] Production.INFO: 40 MB #Memory Used# [2025-04-16 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:25:05 [end_date_ymd] => 2025-04-16 20:25:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:25:05' and `end` < '2025-04-16 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-04-16 20:25:18] Production.INFO: count ==1623 [2025-04-16 20:25:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:25:05 - End Time 2025-04-16 20:25:05 [2025-04-16 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923345', 'tblTempUsageDetail_20' ) start [2025-04-16 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923345', 'tblTempUsageDetail_20' ) end [2025-04-16 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923345', 'tblTempVendorCDR_20' ) start [2025-04-16 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923345', 'tblTempVendorCDR_20' ) end [2025-04-16 20:25:18] Production.INFO: ProcessCDR(1,14923345,1,1,2) [2025-04-16 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923345', 'tblTempUsageDetail_20' ) start [2025-04-16 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923345', 'tblTempUsageDetail_20' ) end [2025-04-16 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:25:22] Production.INFO: ==26514== Releasing lock... [2025-04-16 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:25:22] Production.INFO: 40 MB #Memory Used# [2025-04-16 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:26:05 [end_date_ymd] => 2025-04-16 20:26:05 [RateCDR] => 1 ) [2025-04-16 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 17:26:05' and `end` < '2025-04-16 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 20:26:18] Production.INFO: count ==1599 [2025-04-16 20:26:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:26:05 - End Time 2025-04-16 20:26:05 [2025-04-16 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923350', 'tblTempUsageDetail_20' ) start [2025-04-16 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923350', 'tblTempUsageDetail_20' ) end [2025-04-16 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923350', 'tblTempVendorCDR_20' ) start [2025-04-16 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923350', 'tblTempVendorCDR_20' ) end [2025-04-16 20:26:18] Production.INFO: ProcessCDR(1,14923350,1,1,2) [2025-04-16 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923350', 'tblTempUsageDetail_20' ) start [2025-04-16 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923350', 'tblTempUsageDetail_20' ) end [2025-04-16 20:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:26:21] Production.INFO: ==26590== Releasing lock... [2025-04-16 20:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:26:21] Production.INFO: 40 MB #Memory Used# [2025-04-16 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:27:05 [end_date_ymd] => 2025-04-16 20:27:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:27:05' and `end` < '2025-04-16 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-04-16 20:27:18] Production.INFO: count ==1559 [2025-04-16 20:27:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:27:05 - End Time 2025-04-16 20:27:05 [2025-04-16 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923355', 'tblTempUsageDetail_20' ) start [2025-04-16 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923355', 'tblTempUsageDetail_20' ) end [2025-04-16 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923355', 'tblTempVendorCDR_20' ) start [2025-04-16 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923355', 'tblTempVendorCDR_20' ) end [2025-04-16 20:27:18] Production.INFO: ProcessCDR(1,14923355,1,1,2) [2025-04-16 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923355', 'tblTempUsageDetail_20' ) start [2025-04-16 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923355', 'tblTempUsageDetail_20' ) end [2025-04-16 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:27:22] Production.INFO: ==26663== Releasing lock... [2025-04-16 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:27:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-16 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:28:05 [end_date_ymd] => 2025-04-16 20:28:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:28:05' and `end` < '2025-04-16 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-04-16 20:28:18] Production.INFO: count ==1553 [2025-04-16 20:28:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:28:05 - End Time 2025-04-16 20:28:05 [2025-04-16 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923360', 'tblTempUsageDetail_20' ) start [2025-04-16 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923360', 'tblTempUsageDetail_20' ) end [2025-04-16 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923360', 'tblTempVendorCDR_20' ) start [2025-04-16 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923360', 'tblTempVendorCDR_20' ) end [2025-04-16 20:28:18] Production.INFO: ProcessCDR(1,14923360,1,1,2) [2025-04-16 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923360', 'tblTempUsageDetail_20' ) start [2025-04-16 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923360', 'tblTempUsageDetail_20' ) end [2025-04-16 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:28:23] Production.INFO: ==26738== Releasing lock... [2025-04-16 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:28:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-16 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:29:05 [end_date_ymd] => 2025-04-16 20:29:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:29:05' and `end` < '2025-04-16 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-04-16 20:29:18] Production.INFO: count ==1546 [2025-04-16 20:29:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:29:05 - End Time 2025-04-16 20:29:05 [2025-04-16 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923365', 'tblTempUsageDetail_20' ) start [2025-04-16 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923365', 'tblTempUsageDetail_20' ) end [2025-04-16 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923365', 'tblTempVendorCDR_20' ) start [2025-04-16 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923365', 'tblTempVendorCDR_20' ) end [2025-04-16 20:29:18] Production.INFO: ProcessCDR(1,14923365,1,1,2) [2025-04-16 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923365', 'tblTempUsageDetail_20' ) start [2025-04-16 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923365', 'tblTempUsageDetail_20' ) end [2025-04-16 20:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:29:24] Production.INFO: ==26811== Releasing lock... [2025-04-16 20:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:29:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-16 20:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:30:07 [end_date_ymd] => 2025-04-16 20:30:07 [RateCDR] => 1 ) [2025-04-16 20: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-04-16 17:30:07' and `end` < '2025-04-16 20: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-04-16 20:30:19] Production.INFO: count ==1536 [2025-04-16 20:30:20] Production.ERROR: pbx CDR StartTime 2025-04-16 17:30:07 - End Time 2025-04-16 20:30:07 [2025-04-16 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923371', 'tblTempUsageDetail_20' ) start [2025-04-16 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923371', 'tblTempUsageDetail_20' ) end [2025-04-16 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923371', 'tblTempVendorCDR_20' ) start [2025-04-16 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923371', 'tblTempVendorCDR_20' ) end [2025-04-16 20:30:20] Production.INFO: ProcessCDR(1,14923371,1,1,2) [2025-04-16 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923371', 'tblTempUsageDetail_20' ) start [2025-04-16 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923371', 'tblTempUsageDetail_20' ) end [2025-04-16 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:30:23] Production.INFO: ==26885== Releasing lock... [2025-04-16 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:30:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-16 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:31:05 [end_date_ymd] => 2025-04-16 20:31:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:31:05' and `end` < '2025-04-16 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-04-16 20:31:18] Production.INFO: count ==1472 [2025-04-16 20:31:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:31:05 - End Time 2025-04-16 20:31:05 [2025-04-16 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923376', 'tblTempUsageDetail_20' ) start [2025-04-16 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923376', 'tblTempUsageDetail_20' ) end [2025-04-16 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923376', 'tblTempVendorCDR_20' ) start [2025-04-16 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923376', 'tblTempVendorCDR_20' ) end [2025-04-16 20:31:18] Production.INFO: ProcessCDR(1,14923376,1,1,2) [2025-04-16 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923376', 'tblTempUsageDetail_20' ) start [2025-04-16 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923376', 'tblTempUsageDetail_20' ) end [2025-04-16 20:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:31:21] Production.INFO: ==26961== Releasing lock... [2025-04-16 20:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:31:21] Production.INFO: 39 MB #Memory Used# [2025-04-16 20:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:32:05 [end_date_ymd] => 2025-04-16 20:32:05 [RateCDR] => 1 ) [2025-04-16 20: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-04-16 17:32:05' and `end` < '2025-04-16 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-04-16 20:32:18] Production.INFO: count ==1470 [2025-04-16 20:32:19] Production.ERROR: pbx CDR StartTime 2025-04-16 17:32:05 - End Time 2025-04-16 20:32:05 [2025-04-16 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923381', 'tblTempUsageDetail_20' ) start [2025-04-16 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923381', 'tblTempUsageDetail_20' ) end [2025-04-16 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923381', 'tblTempVendorCDR_20' ) start [2025-04-16 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923381', 'tblTempVendorCDR_20' ) end [2025-04-16 20:32:19] Production.INFO: ProcessCDR(1,14923381,1,1,2) [2025-04-16 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923381', 'tblTempUsageDetail_20' ) start [2025-04-16 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923381', 'tblTempUsageDetail_20' ) end [2025-04-16 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:32:22] Production.INFO: ==27041== Releasing lock... [2025-04-16 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:32:22] Production.INFO: 39 MB #Memory Used# [2025-04-16 20:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:33:04 [end_date_ymd] => 2025-04-16 20:33:04 [RateCDR] => 1 ) [2025-04-16 20:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 17:33:04' and `end` < '2025-04-16 20:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 20:33:17] Production.INFO: count ==1470 [2025-04-16 20:33:17] Production.ERROR: pbx CDR StartTime 2025-04-16 17:33:04 - End Time 2025-04-16 20:33:04 [2025-04-16 20:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923386', 'tblTempUsageDetail_20' ) start [2025-04-16 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923386', 'tblTempUsageDetail_20' ) end [2025-04-16 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923386', 'tblTempVendorCDR_20' ) start [2025-04-16 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923386', 'tblTempVendorCDR_20' ) end [2025-04-16 20:33:17] Production.INFO: ProcessCDR(1,14923386,1,1,2) [2025-04-16 20:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923386', 'tblTempUsageDetail_20' ) start [2025-04-16 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923386', 'tblTempUsageDetail_20' ) end [2025-04-16 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:33:22] Production.INFO: ==27112== Releasing lock... [2025-04-16 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:33:22] Production.INFO: 39 MB #Memory Used# [2025-04-16 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:34:05 [end_date_ymd] => 2025-04-16 20:34:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:34:05' and `end` < '2025-04-16 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-04-16 20:34:18] Production.INFO: count ==1456 [2025-04-16 20:34:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:34:05 - End Time 2025-04-16 20:34:05 [2025-04-16 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923391', 'tblTempUsageDetail_20' ) start [2025-04-16 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923391', 'tblTempUsageDetail_20' ) end [2025-04-16 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923391', 'tblTempVendorCDR_20' ) start [2025-04-16 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923391', 'tblTempVendorCDR_20' ) end [2025-04-16 20:34:18] Production.INFO: ProcessCDR(1,14923391,1,1,2) [2025-04-16 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923391', 'tblTempUsageDetail_20' ) start [2025-04-16 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923391', 'tblTempUsageDetail_20' ) end [2025-04-16 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:34:23] Production.INFO: ==27188== Releasing lock... [2025-04-16 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:34:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-16 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:35:05 [end_date_ymd] => 2025-04-16 20:35:05 [RateCDR] => 1 ) [2025-04-16 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 17:35:05' and `end` < '2025-04-16 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 20:35:17] Production.INFO: count ==1457 [2025-04-16 20:35:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:35:05 - End Time 2025-04-16 20:35:05 [2025-04-16 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923396', 'tblTempUsageDetail_20' ) start [2025-04-16 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923396', 'tblTempUsageDetail_20' ) end [2025-04-16 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923396', 'tblTempVendorCDR_20' ) start [2025-04-16 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923396', 'tblTempVendorCDR_20' ) end [2025-04-16 20:35:18] Production.INFO: ProcessCDR(1,14923396,1,1,2) [2025-04-16 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923396', 'tblTempUsageDetail_20' ) start [2025-04-16 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923396', 'tblTempUsageDetail_20' ) end [2025-04-16 20:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:35:21] Production.INFO: ==27298== Releasing lock... [2025-04-16 20:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:35:21] Production.INFO: 39 MB #Memory Used# [2025-04-16 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:36:05 [end_date_ymd] => 2025-04-16 20:36:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:36:05' and `end` < '2025-04-16 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-04-16 20:36:18] Production.INFO: count ==1457 [2025-04-16 20:36:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:36:05 - End Time 2025-04-16 20:36:05 [2025-04-16 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923401', 'tblTempUsageDetail_20' ) start [2025-04-16 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923401', 'tblTempUsageDetail_20' ) end [2025-04-16 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923401', 'tblTempVendorCDR_20' ) start [2025-04-16 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923401', 'tblTempVendorCDR_20' ) end [2025-04-16 20:36:18] Production.INFO: ProcessCDR(1,14923401,1,1,2) [2025-04-16 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923401', 'tblTempUsageDetail_20' ) start [2025-04-16 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923401', 'tblTempUsageDetail_20' ) end [2025-04-16 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:36:22] Production.INFO: ==27372== Releasing lock... [2025-04-16 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:36:22] Production.INFO: 39 MB #Memory Used# [2025-04-16 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:37:05 [end_date_ymd] => 2025-04-16 20:37:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:37:05' and `end` < '2025-04-16 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-04-16 20:37:18] Production.INFO: count ==1454 [2025-04-16 20:37:19] Production.ERROR: pbx CDR StartTime 2025-04-16 17:37:05 - End Time 2025-04-16 20:37:05 [2025-04-16 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923406', 'tblTempUsageDetail_20' ) start [2025-04-16 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923406', 'tblTempUsageDetail_20' ) end [2025-04-16 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923406', 'tblTempVendorCDR_20' ) start [2025-04-16 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923406', 'tblTempVendorCDR_20' ) end [2025-04-16 20:37:19] Production.INFO: ProcessCDR(1,14923406,1,1,2) [2025-04-16 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923406', 'tblTempUsageDetail_20' ) start [2025-04-16 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923406', 'tblTempUsageDetail_20' ) end [2025-04-16 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:37:22] Production.INFO: ==27450== Releasing lock... [2025-04-16 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:37:22] Production.INFO: 39 MB #Memory Used# [2025-04-16 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:38:05 [end_date_ymd] => 2025-04-16 20:38:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:38:05' and `end` < '2025-04-16 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-04-16 20:38:17] Production.INFO: count ==1435 [2025-04-16 20:38:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:38:05 - End Time 2025-04-16 20:38:05 [2025-04-16 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923411', 'tblTempUsageDetail_20' ) start [2025-04-16 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923411', 'tblTempUsageDetail_20' ) end [2025-04-16 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923411', 'tblTempVendorCDR_20' ) start [2025-04-16 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923411', 'tblTempVendorCDR_20' ) end [2025-04-16 20:38:18] Production.INFO: ProcessCDR(1,14923411,1,1,2) [2025-04-16 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923411', 'tblTempUsageDetail_20' ) start [2025-04-16 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923411', 'tblTempUsageDetail_20' ) end [2025-04-16 20:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:38:21] Production.INFO: ==27522== Releasing lock... [2025-04-16 20:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:38:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-16 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:39:05 [end_date_ymd] => 2025-04-16 20:39:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:39:05' and `end` < '2025-04-16 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-04-16 20:39:18] Production.INFO: count ==1434 [2025-04-16 20:39:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:39:05 - End Time 2025-04-16 20:39:05 [2025-04-16 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923416', 'tblTempUsageDetail_20' ) start [2025-04-16 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923416', 'tblTempUsageDetail_20' ) end [2025-04-16 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923416', 'tblTempVendorCDR_20' ) start [2025-04-16 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923416', 'tblTempVendorCDR_20' ) end [2025-04-16 20:39:18] Production.INFO: ProcessCDR(1,14923416,1,1,2) [2025-04-16 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923416', 'tblTempUsageDetail_20' ) start [2025-04-16 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923416', 'tblTempUsageDetail_20' ) end [2025-04-16 20:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:39:21] Production.INFO: ==27595== Releasing lock... [2025-04-16 20:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:39:21] Production.INFO: 38.75 MB #Memory Used# [2025-04-16 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:40:05 [end_date_ymd] => 2025-04-16 20:40:05 [RateCDR] => 1 ) [2025-04-16 20:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 17:40:05' and `end` < '2025-04-16 20:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 20:40:18] Production.INFO: count ==1436 [2025-04-16 20:40:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:40:05 - End Time 2025-04-16 20:40:05 [2025-04-16 20:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923422', 'tblTempUsageDetail_20' ) start [2025-04-16 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923422', 'tblTempUsageDetail_20' ) end [2025-04-16 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923422', 'tblTempVendorCDR_20' ) start [2025-04-16 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923422', 'tblTempVendorCDR_20' ) end [2025-04-16 20:40:18] Production.INFO: ProcessCDR(1,14923422,1,1,2) [2025-04-16 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923422', 'tblTempUsageDetail_20' ) start [2025-04-16 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923422', 'tblTempUsageDetail_20' ) end [2025-04-16 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:40:22] Production.INFO: ==27670== Releasing lock... [2025-04-16 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:40:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-16 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:41:05 [end_date_ymd] => 2025-04-16 20:41:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:41:05' and `end` < '2025-04-16 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-04-16 20:41:18] Production.INFO: count ==1423 [2025-04-16 20:41:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:41:05 - End Time 2025-04-16 20:41:05 [2025-04-16 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923427', 'tblTempUsageDetail_20' ) start [2025-04-16 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923427', 'tblTempUsageDetail_20' ) end [2025-04-16 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923427', 'tblTempVendorCDR_20' ) start [2025-04-16 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923427', 'tblTempVendorCDR_20' ) end [2025-04-16 20:41:18] Production.INFO: ProcessCDR(1,14923427,1,1,2) [2025-04-16 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923427', 'tblTempUsageDetail_20' ) start [2025-04-16 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923427', 'tblTempUsageDetail_20' ) end [2025-04-16 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:41:22] Production.INFO: ==27744== Releasing lock... [2025-04-16 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:41:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-16 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:42:05 [end_date_ymd] => 2025-04-16 20:42:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:42:05' and `end` < '2025-04-16 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-04-16 20:42:18] Production.INFO: count ==1420 [2025-04-16 20:42:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:42:05 - End Time 2025-04-16 20:42:05 [2025-04-16 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923432', 'tblTempUsageDetail_20' ) start [2025-04-16 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923432', 'tblTempUsageDetail_20' ) end [2025-04-16 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923432', 'tblTempVendorCDR_20' ) start [2025-04-16 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923432', 'tblTempVendorCDR_20' ) end [2025-04-16 20:42:18] Production.INFO: ProcessCDR(1,14923432,1,1,2) [2025-04-16 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923432', 'tblTempUsageDetail_20' ) start [2025-04-16 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923432', 'tblTempUsageDetail_20' ) end [2025-04-16 20:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:42:21] Production.INFO: ==27817== Releasing lock... [2025-04-16 20:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:42:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-16 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:43:05 [end_date_ymd] => 2025-04-16 20:43:05 [RateCDR] => 1 ) [2025-04-16 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 17:43:05' and `end` < '2025-04-16 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-04-16 20:43:18] Production.INFO: count ==1420 [2025-04-16 20:43:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:43:05 - End Time 2025-04-16 20:43:05 [2025-04-16 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923437', 'tblTempUsageDetail_20' ) start [2025-04-16 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923437', 'tblTempUsageDetail_20' ) end [2025-04-16 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923437', 'tblTempVendorCDR_20' ) start [2025-04-16 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923437', 'tblTempVendorCDR_20' ) end [2025-04-16 20:43:18] Production.INFO: ProcessCDR(1,14923437,1,1,2) [2025-04-16 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923437', 'tblTempUsageDetail_20' ) start [2025-04-16 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923437', 'tblTempUsageDetail_20' ) end [2025-04-16 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:43:22] Production.INFO: ==27892== Releasing lock... [2025-04-16 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:43:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-16 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:44:05 [end_date_ymd] => 2025-04-16 20:44:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:44:05' and `end` < '2025-04-16 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-04-16 20:44:18] Production.INFO: count ==1418 [2025-04-16 20:44:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:44:05 - End Time 2025-04-16 20:44:05 [2025-04-16 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923442', 'tblTempUsageDetail_20' ) start [2025-04-16 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923442', 'tblTempUsageDetail_20' ) end [2025-04-16 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923442', 'tblTempVendorCDR_20' ) start [2025-04-16 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923442', 'tblTempVendorCDR_20' ) end [2025-04-16 20:44:18] Production.INFO: ProcessCDR(1,14923442,1,1,2) [2025-04-16 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923442', 'tblTempUsageDetail_20' ) start [2025-04-16 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923442', 'tblTempUsageDetail_20' ) end [2025-04-16 20:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:44:21] Production.INFO: ==27965== Releasing lock... [2025-04-16 20:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:44:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-16 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:45:05 [end_date_ymd] => 2025-04-16 20:45:05 [RateCDR] => 1 ) [2025-04-16 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 17:45:05' and `end` < '2025-04-16 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 20:45:18] Production.INFO: count ==1410 [2025-04-16 20:45:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:45:05 - End Time 2025-04-16 20:45:05 [2025-04-16 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923447', 'tblTempUsageDetail_20' ) start [2025-04-16 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923447', 'tblTempUsageDetail_20' ) end [2025-04-16 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923447', 'tblTempVendorCDR_20' ) start [2025-04-16 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923447', 'tblTempVendorCDR_20' ) end [2025-04-16 20:45:18] Production.INFO: ProcessCDR(1,14923447,1,1,2) [2025-04-16 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923447', 'tblTempUsageDetail_20' ) start [2025-04-16 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923447', 'tblTempUsageDetail_20' ) end [2025-04-16 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:45:23] Production.INFO: ==28037== Releasing lock... [2025-04-16 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:45:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-16 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:46:05 [end_date_ymd] => 2025-04-16 20:46:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:46:05' and `end` < '2025-04-16 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-04-16 20:46:18] Production.INFO: count ==1406 [2025-04-16 20:46:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:46:05 - End Time 2025-04-16 20:46:05 [2025-04-16 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923452', 'tblTempUsageDetail_20' ) start [2025-04-16 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923452', 'tblTempUsageDetail_20' ) end [2025-04-16 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923452', 'tblTempVendorCDR_20' ) start [2025-04-16 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923452', 'tblTempVendorCDR_20' ) end [2025-04-16 20:46:18] Production.INFO: ProcessCDR(1,14923452,1,1,2) [2025-04-16 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923452', 'tblTempUsageDetail_20' ) start [2025-04-16 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923452', 'tblTempUsageDetail_20' ) end [2025-04-16 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:46:22] Production.INFO: ==28116== Releasing lock... [2025-04-16 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:46:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-16 20:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:47:04 [end_date_ymd] => 2025-04-16 20:47:04 [RateCDR] => 1 ) [2025-04-16 20:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 17:47:04' and `end` < '2025-04-16 20:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 20:47:17] Production.INFO: count ==1403 [2025-04-16 20:47:17] Production.ERROR: pbx CDR StartTime 2025-04-16 17:47:04 - End Time 2025-04-16 20:47:04 [2025-04-16 20:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923457', 'tblTempUsageDetail_20' ) start [2025-04-16 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923457', 'tblTempUsageDetail_20' ) end [2025-04-16 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923457', 'tblTempVendorCDR_20' ) start [2025-04-16 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923457', 'tblTempVendorCDR_20' ) end [2025-04-16 20:47:17] Production.INFO: ProcessCDR(1,14923457,1,1,2) [2025-04-16 20:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923457', 'tblTempUsageDetail_20' ) start [2025-04-16 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923457', 'tblTempUsageDetail_20' ) end [2025-04-16 20:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:47:21] Production.INFO: ==28191== Releasing lock... [2025-04-16 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:47:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-16 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:48:05 [end_date_ymd] => 2025-04-16 20:48:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:48:05' and `end` < '2025-04-16 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-04-16 20:48:18] Production.INFO: count ==1401 [2025-04-16 20:48:19] Production.ERROR: pbx CDR StartTime 2025-04-16 17:48:05 - End Time 2025-04-16 20:48:05 [2025-04-16 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923462', 'tblTempUsageDetail_20' ) start [2025-04-16 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923462', 'tblTempUsageDetail_20' ) end [2025-04-16 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923462', 'tblTempVendorCDR_20' ) start [2025-04-16 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923462', 'tblTempVendorCDR_20' ) end [2025-04-16 20:48:19] Production.INFO: ProcessCDR(1,14923462,1,1,2) [2025-04-16 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923462', 'tblTempUsageDetail_20' ) start [2025-04-16 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923462', 'tblTempUsageDetail_20' ) end [2025-04-16 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:48:22] Production.INFO: ==28270== Releasing lock... [2025-04-16 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:48:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-16 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:49:05 [end_date_ymd] => 2025-04-16 20:49:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:49:05' and `end` < '2025-04-16 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-04-16 20:49:18] Production.INFO: count ==1399 [2025-04-16 20:49:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:49:05 - End Time 2025-04-16 20:49:05 [2025-04-16 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923467', 'tblTempUsageDetail_20' ) start [2025-04-16 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923467', 'tblTempUsageDetail_20' ) end [2025-04-16 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923467', 'tblTempVendorCDR_20' ) start [2025-04-16 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923467', 'tblTempVendorCDR_20' ) end [2025-04-16 20:49:18] Production.INFO: ProcessCDR(1,14923467,1,1,2) [2025-04-16 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923467', 'tblTempUsageDetail_20' ) start [2025-04-16 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923467', 'tblTempUsageDetail_20' ) end [2025-04-16 20:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:49:21] Production.INFO: ==28347== Releasing lock... [2025-04-16 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:49:21] Production.INFO: 38.25 MB #Memory Used# [2025-04-16 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:50:06 [end_date_ymd] => 2025-04-16 20:50:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:50:06' and `end` < '2025-04-16 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-04-16 20:50:19] Production.INFO: count ==1379 [2025-04-16 20:50:19] Production.ERROR: pbx CDR StartTime 2025-04-16 17:50:06 - End Time 2025-04-16 20:50:06 [2025-04-16 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923473', 'tblTempUsageDetail_20' ) start [2025-04-16 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923473', 'tblTempUsageDetail_20' ) end [2025-04-16 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923473', 'tblTempVendorCDR_20' ) start [2025-04-16 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923473', 'tblTempVendorCDR_20' ) end [2025-04-16 20:50:19] Production.INFO: ProcessCDR(1,14923473,1,1,2) [2025-04-16 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923473', 'tblTempUsageDetail_20' ) start [2025-04-16 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923473', 'tblTempUsageDetail_20' ) end [2025-04-16 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:50:22] Production.INFO: ==28419== Releasing lock... [2025-04-16 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:50:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-16 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:51:05 [end_date_ymd] => 2025-04-16 20:51:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:51:05' and `end` < '2025-04-16 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-04-16 20:51:17] Production.INFO: count ==1320 [2025-04-16 20:51:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:51:05 - End Time 2025-04-16 20:51:05 [2025-04-16 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923478', 'tblTempUsageDetail_20' ) start [2025-04-16 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923478', 'tblTempUsageDetail_20' ) end [2025-04-16 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923478', 'tblTempVendorCDR_20' ) start [2025-04-16 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923478', 'tblTempVendorCDR_20' ) end [2025-04-16 20:51:18] Production.INFO: ProcessCDR(1,14923478,1,1,2) [2025-04-16 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923478', 'tblTempUsageDetail_20' ) start [2025-04-16 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923478', 'tblTempUsageDetail_20' ) end [2025-04-16 20:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:51:21] Production.INFO: ==28540== Releasing lock... [2025-04-16 20:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:51:21] Production.INFO: 38 MB #Memory Used# [2025-04-16 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:52:05 [end_date_ymd] => 2025-04-16 20:52:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:52:05' and `end` < '2025-04-16 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-04-16 20:52:17] Production.INFO: count ==1314 [2025-04-16 20:52:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:52:05 - End Time 2025-04-16 20:52:05 [2025-04-16 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923483', 'tblTempUsageDetail_20' ) start [2025-04-16 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923483', 'tblTempUsageDetail_20' ) end [2025-04-16 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923483', 'tblTempVendorCDR_20' ) start [2025-04-16 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923483', 'tblTempVendorCDR_20' ) end [2025-04-16 20:52:18] Production.INFO: ProcessCDR(1,14923483,1,1,2) [2025-04-16 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923483', 'tblTempUsageDetail_20' ) start [2025-04-16 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923483', 'tblTempUsageDetail_20' ) end [2025-04-16 20:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:52:21] Production.INFO: ==28632== Releasing lock... [2025-04-16 20:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:52:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-16 20:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:53:06 [end_date_ymd] => 2025-04-16 20:53:06 [RateCDR] => 1 ) [2025-04-16 20:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 17:53:06' and `end` < '2025-04-16 20:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 20:53:19] Production.INFO: count ==1310 [2025-04-16 20:53:19] Production.ERROR: pbx CDR StartTime 2025-04-16 17:53:06 - End Time 2025-04-16 20:53:06 [2025-04-16 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923488', 'tblTempUsageDetail_20' ) start [2025-04-16 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923488', 'tblTempUsageDetail_20' ) end [2025-04-16 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923488', 'tblTempVendorCDR_20' ) start [2025-04-16 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923488', 'tblTempVendorCDR_20' ) end [2025-04-16 20:53:19] Production.INFO: ProcessCDR(1,14923488,1,1,2) [2025-04-16 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923488', 'tblTempUsageDetail_20' ) start [2025-04-16 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923488', 'tblTempUsageDetail_20' ) end [2025-04-16 20:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:53:24] Production.INFO: ==28723== Releasing lock... [2025-04-16 20:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:53:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-16 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:54:05 [end_date_ymd] => 2025-04-16 20:54:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:54:05' and `end` < '2025-04-16 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-04-16 20:54:18] Production.INFO: count ==1308 [2025-04-16 20:54:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:54:05 - End Time 2025-04-16 20:54:05 [2025-04-16 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923493', 'tblTempUsageDetail_20' ) start [2025-04-16 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923493', 'tblTempUsageDetail_20' ) end [2025-04-16 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923493', 'tblTempVendorCDR_20' ) start [2025-04-16 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923493', 'tblTempVendorCDR_20' ) end [2025-04-16 20:54:18] Production.INFO: ProcessCDR(1,14923493,1,1,2) [2025-04-16 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923493', 'tblTempUsageDetail_20' ) start [2025-04-16 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923493', 'tblTempUsageDetail_20' ) end [2025-04-16 20:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:54:21] Production.INFO: ==28811== Releasing lock... [2025-04-16 20:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:54:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-16 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:55:05 [end_date_ymd] => 2025-04-16 20:55:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:55:05' and `end` < '2025-04-16 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-04-16 20:55:18] Production.INFO: count ==1305 [2025-04-16 20:55:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:55:05 - End Time 2025-04-16 20:55:05 [2025-04-16 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923498', 'tblTempUsageDetail_20' ) start [2025-04-16 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923498', 'tblTempUsageDetail_20' ) end [2025-04-16 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923498', 'tblTempVendorCDR_20' ) start [2025-04-16 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923498', 'tblTempVendorCDR_20' ) end [2025-04-16 20:55:18] Production.INFO: ProcessCDR(1,14923498,1,1,2) [2025-04-16 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923498', 'tblTempUsageDetail_20' ) start [2025-04-16 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923498', 'tblTempUsageDetail_20' ) end [2025-04-16 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:55:22] Production.INFO: ==28905== Releasing lock... [2025-04-16 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:55:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-16 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:56:05 [end_date_ymd] => 2025-04-16 20:56:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:56:05' and `end` < '2025-04-16 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-04-16 20:56:18] Production.INFO: count ==1303 [2025-04-16 20:56:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:56:05 - End Time 2025-04-16 20:56:05 [2025-04-16 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923503', 'tblTempUsageDetail_20' ) start [2025-04-16 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923503', 'tblTempUsageDetail_20' ) end [2025-04-16 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923503', 'tblTempVendorCDR_20' ) start [2025-04-16 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923503', 'tblTempVendorCDR_20' ) end [2025-04-16 20:56:18] Production.INFO: ProcessCDR(1,14923503,1,1,2) [2025-04-16 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923503', 'tblTempUsageDetail_20' ) start [2025-04-16 20:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923503', 'tblTempUsageDetail_20' ) end [2025-04-16 20:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:56:24] Production.INFO: ==28997== Releasing lock... [2025-04-16 20:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:56:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-16 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:57:06 [end_date_ymd] => 2025-04-16 20:57:06 [RateCDR] => 1 ) [2025-04-16 20: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-04-16 17:57:06' and `end` < '2025-04-16 20: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-04-16 20:57:18] Production.INFO: count ==1301 [2025-04-16 20:57:19] Production.ERROR: pbx CDR StartTime 2025-04-16 17:57:06 - End Time 2025-04-16 20:57:06 [2025-04-16 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923508', 'tblTempUsageDetail_20' ) start [2025-04-16 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923508', 'tblTempUsageDetail_20' ) end [2025-04-16 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923508', 'tblTempVendorCDR_20' ) start [2025-04-16 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923508', 'tblTempVendorCDR_20' ) end [2025-04-16 20:57:19] Production.INFO: ProcessCDR(1,14923508,1,1,2) [2025-04-16 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923508', 'tblTempUsageDetail_20' ) start [2025-04-16 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923508', 'tblTempUsageDetail_20' ) end [2025-04-16 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:57:22] Production.INFO: ==29092== Releasing lock... [2025-04-16 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:57:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-16 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:58:05 [end_date_ymd] => 2025-04-16 20:58:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:58:05' and `end` < '2025-04-16 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-04-16 20:58:17] Production.INFO: count ==1286 [2025-04-16 20:58:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:58:05 - End Time 2025-04-16 20:58:05 [2025-04-16 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923513', 'tblTempUsageDetail_20' ) start [2025-04-16 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923513', 'tblTempUsageDetail_20' ) end [2025-04-16 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923513', 'tblTempVendorCDR_20' ) start [2025-04-16 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923513', 'tblTempVendorCDR_20' ) end [2025-04-16 20:58:18] Production.INFO: ProcessCDR(1,14923513,1,1,2) [2025-04-16 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923513', 'tblTempUsageDetail_20' ) start [2025-04-16 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923513', 'tblTempUsageDetail_20' ) end [2025-04-16 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:58:21] Production.INFO: ==29182== Releasing lock... [2025-04-16 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:58:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-16 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 17:59:05 [end_date_ymd] => 2025-04-16 20:59:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 17:59:05' and `end` < '2025-04-16 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-04-16 20:59:18] Production.INFO: count ==1279 [2025-04-16 20:59:18] Production.ERROR: pbx CDR StartTime 2025-04-16 17:59:05 - End Time 2025-04-16 20:59:05 [2025-04-16 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923518', 'tblTempUsageDetail_20' ) start [2025-04-16 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923518', 'tblTempUsageDetail_20' ) end [2025-04-16 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923518', 'tblTempVendorCDR_20' ) start [2025-04-16 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923518', 'tblTempVendorCDR_20' ) end [2025-04-16 20:59:18] Production.INFO: ProcessCDR(1,14923518,1,1,2) [2025-04-16 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 20:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923518', 'tblTempUsageDetail_20' ) start [2025-04-16 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923518', 'tblTempUsageDetail_20' ) end [2025-04-16 20:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 20:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 20:59:23] Production.INFO: ==29276== Releasing lock... [2025-04-16 20:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 20:59:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-16 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:00:06 [end_date_ymd] => 2025-04-16 21:00:06 [RateCDR] => 1 ) [2025-04-16 21: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-04-16 18:00:06' and `end` < '2025-04-16 21: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-04-16 21:00:19] Production.INFO: count ==1277 [2025-04-16 21:00:19] Production.ERROR: pbx CDR StartTime 2025-04-16 18:00:06 - End Time 2025-04-16 21:00:06 [2025-04-16 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923524', 'tblTempUsageDetail_20' ) start [2025-04-16 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923524', 'tblTempUsageDetail_20' ) end [2025-04-16 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923524', 'tblTempVendorCDR_20' ) start [2025-04-16 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923524', 'tblTempVendorCDR_20' ) end [2025-04-16 21:00:19] Production.INFO: ProcessCDR(1,14923524,1,1,2) [2025-04-16 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923524', 'tblTempUsageDetail_20' ) start [2025-04-16 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923524', 'tblTempUsageDetail_20' ) end [2025-04-16 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:00:22] Production.INFO: ==29367== Releasing lock... [2025-04-16 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:00:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-16 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:01:05 [end_date_ymd] => 2025-04-16 21:01:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:01:05' and `end` < '2025-04-16 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-04-16 21:01:17] Production.INFO: count ==1255 [2025-04-16 21:01:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:01:05 - End Time 2025-04-16 21:01:05 [2025-04-16 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923529', 'tblTempUsageDetail_20' ) start [2025-04-16 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923529', 'tblTempUsageDetail_20' ) end [2025-04-16 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923529', 'tblTempVendorCDR_20' ) start [2025-04-16 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923529', 'tblTempVendorCDR_20' ) end [2025-04-16 21:01:18] Production.INFO: ProcessCDR(1,14923529,1,1,2) [2025-04-16 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923529', 'tblTempUsageDetail_20' ) start [2025-04-16 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923529', 'tblTempUsageDetail_20' ) end [2025-04-16 21:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:01:21] Production.INFO: ==29470== Releasing lock... [2025-04-16 21:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:01:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-16 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:02:06 [end_date_ymd] => 2025-04-16 21:02:06 [RateCDR] => 1 ) [2025-04-16 21: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-04-16 18:02:06' and `end` < '2025-04-16 21: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-04-16 21:02:19] Production.INFO: count ==1242 [2025-04-16 21:02:19] Production.ERROR: pbx CDR StartTime 2025-04-16 18:02:06 - End Time 2025-04-16 21:02:06 [2025-04-16 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923534', 'tblTempUsageDetail_20' ) start [2025-04-16 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923534', 'tblTempUsageDetail_20' ) end [2025-04-16 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923534', 'tblTempVendorCDR_20' ) start [2025-04-16 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923534', 'tblTempVendorCDR_20' ) end [2025-04-16 21:02:19] Production.INFO: ProcessCDR(1,14923534,1,1,2) [2025-04-16 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923534', 'tblTempUsageDetail_20' ) start [2025-04-16 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923534', 'tblTempUsageDetail_20' ) end [2025-04-16 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:02:22] Production.INFO: ==29565== Releasing lock... [2025-04-16 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:02:22] Production.INFO: 37 MB #Memory Used# [2025-04-16 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:03:05 [end_date_ymd] => 2025-04-16 21:03:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:03:05' and `end` < '2025-04-16 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-04-16 21:03:18] Production.INFO: count ==1238 [2025-04-16 21:03:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:03:05 - End Time 2025-04-16 21:03:05 [2025-04-16 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923539', 'tblTempUsageDetail_20' ) start [2025-04-16 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923539', 'tblTempUsageDetail_20' ) end [2025-04-16 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923539', 'tblTempVendorCDR_20' ) start [2025-04-16 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923539', 'tblTempVendorCDR_20' ) end [2025-04-16 21:03:18] Production.INFO: ProcessCDR(1,14923539,1,1,2) [2025-04-16 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923539', 'tblTempUsageDetail_20' ) start [2025-04-16 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923539', 'tblTempUsageDetail_20' ) end [2025-04-16 21:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:03:21] Production.INFO: ==29692== Releasing lock... [2025-04-16 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:03:21] Production.INFO: 37 MB #Memory Used# [2025-04-16 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:04:06 [end_date_ymd] => 2025-04-16 21:04:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:04:06' and `end` < '2025-04-16 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-04-16 21:04:18] Production.INFO: count ==1238 [2025-04-16 21:04:19] Production.ERROR: pbx CDR StartTime 2025-04-16 18:04:06 - End Time 2025-04-16 21:04:06 [2025-04-16 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923544', 'tblTempUsageDetail_20' ) start [2025-04-16 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923544', 'tblTempUsageDetail_20' ) end [2025-04-16 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923544', 'tblTempVendorCDR_20' ) start [2025-04-16 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923544', 'tblTempVendorCDR_20' ) end [2025-04-16 21:04:19] Production.INFO: ProcessCDR(1,14923544,1,1,2) [2025-04-16 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923544', 'tblTempUsageDetail_20' ) start [2025-04-16 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923544', 'tblTempUsageDetail_20' ) end [2025-04-16 21:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:04:23] Production.INFO: ==29829== Releasing lock... [2025-04-16 21:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:04:23] Production.INFO: 37 MB #Memory Used# [2025-04-16 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:05:05 [end_date_ymd] => 2025-04-16 21:05:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:05:05' and `end` < '2025-04-16 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-04-16 21:05:18] Production.INFO: count ==1239 [2025-04-16 21:05:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:05:05 - End Time 2025-04-16 21:05:05 [2025-04-16 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923549', 'tblTempUsageDetail_20' ) start [2025-04-16 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923549', 'tblTempUsageDetail_20' ) end [2025-04-16 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923549', 'tblTempVendorCDR_20' ) start [2025-04-16 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923549', 'tblTempVendorCDR_20' ) end [2025-04-16 21:05:18] Production.INFO: ProcessCDR(1,14923549,1,1,2) [2025-04-16 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923549', 'tblTempUsageDetail_20' ) start [2025-04-16 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923549', 'tblTempUsageDetail_20' ) end [2025-04-16 21:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:05:23] Production.INFO: ==29957== Releasing lock... [2025-04-16 21:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:05:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-16 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:06:05 [end_date_ymd] => 2025-04-16 21:06:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:06:05' and `end` < '2025-04-16 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-04-16 21:06:18] Production.INFO: count ==1230 [2025-04-16 21:06:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:06:05 - End Time 2025-04-16 21:06:05 [2025-04-16 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923554', 'tblTempUsageDetail_20' ) start [2025-04-16 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923554', 'tblTempUsageDetail_20' ) end [2025-04-16 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923554', 'tblTempVendorCDR_20' ) start [2025-04-16 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923554', 'tblTempVendorCDR_20' ) end [2025-04-16 21:06:18] Production.INFO: ProcessCDR(1,14923554,1,1,2) [2025-04-16 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923554', 'tblTempUsageDetail_20' ) start [2025-04-16 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923554', 'tblTempUsageDetail_20' ) end [2025-04-16 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:06:23] Production.INFO: ==30112== Releasing lock... [2025-04-16 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:06:23] Production.INFO: 37 MB #Memory Used# [2025-04-16 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:07:05 [end_date_ymd] => 2025-04-16 21:07:05 [RateCDR] => 1 ) [2025-04-16 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 18:07:05' and `end` < '2025-04-16 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 21:07:17] Production.INFO: count ==1217 [2025-04-16 21:07:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:07:05 - End Time 2025-04-16 21:07:05 [2025-04-16 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923559', 'tblTempUsageDetail_20' ) start [2025-04-16 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923559', 'tblTempUsageDetail_20' ) end [2025-04-16 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923559', 'tblTempVendorCDR_20' ) start [2025-04-16 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923559', 'tblTempVendorCDR_20' ) end [2025-04-16 21:07:18] Production.INFO: ProcessCDR(1,14923559,1,1,2) [2025-04-16 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923559', 'tblTempUsageDetail_20' ) start [2025-04-16 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923559', 'tblTempUsageDetail_20' ) end [2025-04-16 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:07:21] Production.INFO: ==30214== Releasing lock... [2025-04-16 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:07:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-16 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:08:05 [end_date_ymd] => 2025-04-16 21:08:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:08:05' and `end` < '2025-04-16 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-04-16 21:08:18] Production.INFO: count ==1200 [2025-04-16 21:08:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:08:05 - End Time 2025-04-16 21:08:05 [2025-04-16 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923564', 'tblTempUsageDetail_20' ) start [2025-04-16 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923564', 'tblTempUsageDetail_20' ) end [2025-04-16 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923564', 'tblTempVendorCDR_20' ) start [2025-04-16 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923564', 'tblTempVendorCDR_20' ) end [2025-04-16 21:08:18] Production.INFO: ProcessCDR(1,14923564,1,1,2) [2025-04-16 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923564', 'tblTempUsageDetail_20' ) start [2025-04-16 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923564', 'tblTempUsageDetail_20' ) end [2025-04-16 21:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:08:21] Production.INFO: ==30321== Releasing lock... [2025-04-16 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:08:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-16 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:09:05 [end_date_ymd] => 2025-04-16 21:09:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:09:05' and `end` < '2025-04-16 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-04-16 21:09:18] Production.INFO: count ==1190 [2025-04-16 21:09:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:09:05 - End Time 2025-04-16 21:09:05 [2025-04-16 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923569', 'tblTempUsageDetail_20' ) start [2025-04-16 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923569', 'tblTempUsageDetail_20' ) end [2025-04-16 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923569', 'tblTempVendorCDR_20' ) start [2025-04-16 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923569', 'tblTempVendorCDR_20' ) end [2025-04-16 21:09:18] Production.INFO: ProcessCDR(1,14923569,1,1,2) [2025-04-16 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923569', 'tblTempUsageDetail_20' ) start [2025-04-16 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923569', 'tblTempUsageDetail_20' ) end [2025-04-16 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:09:22] Production.INFO: ==30424== Releasing lock... [2025-04-16 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:09:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-16 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:10:05 [end_date_ymd] => 2025-04-16 21:10:05 [RateCDR] => 1 ) [2025-04-16 21:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 18:10:05' and `end` < '2025-04-16 21:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 21:10:18] Production.INFO: count ==1186 [2025-04-16 21:10:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:10:05 - End Time 2025-04-16 21:10:05 [2025-04-16 21:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923574', 'tblTempUsageDetail_20' ) start [2025-04-16 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923574', 'tblTempUsageDetail_20' ) end [2025-04-16 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923574', 'tblTempVendorCDR_20' ) start [2025-04-16 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923574', 'tblTempVendorCDR_20' ) end [2025-04-16 21:10:18] Production.INFO: ProcessCDR(1,14923574,1,1,2) [2025-04-16 21:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923574', 'tblTempUsageDetail_20' ) start [2025-04-16 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923574', 'tblTempUsageDetail_20' ) end [2025-04-16 21:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:10:21] Production.INFO: ==30527== Releasing lock... [2025-04-16 21:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:10:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-16 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:11:05 [end_date_ymd] => 2025-04-16 21:11:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:11:05' and `end` < '2025-04-16 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 21:11:18] Production.INFO: count ==1158 [2025-04-16 21:11:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:11:05 - End Time 2025-04-16 21:11:05 [2025-04-16 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923580', 'tblTempUsageDetail_20' ) start [2025-04-16 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923580', 'tblTempUsageDetail_20' ) end [2025-04-16 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923580', 'tblTempVendorCDR_20' ) start [2025-04-16 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923580', 'tblTempVendorCDR_20' ) end [2025-04-16 21:11:18] Production.INFO: ProcessCDR(1,14923580,1,1,2) [2025-04-16 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923580', 'tblTempUsageDetail_20' ) start [2025-04-16 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923580', 'tblTempUsageDetail_20' ) end [2025-04-16 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:11:22] Production.INFO: ==30635== Releasing lock... [2025-04-16 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:11:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-16 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:12:05 [end_date_ymd] => 2025-04-16 21:12:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:12:05' and `end` < '2025-04-16 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-04-16 21:12:18] Production.INFO: count ==1155 [2025-04-16 21:12:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:12:05 - End Time 2025-04-16 21:12:05 [2025-04-16 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923585', 'tblTempUsageDetail_20' ) start [2025-04-16 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923585', 'tblTempUsageDetail_20' ) end [2025-04-16 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923585', 'tblTempVendorCDR_20' ) start [2025-04-16 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923585', 'tblTempVendorCDR_20' ) end [2025-04-16 21:12:18] Production.INFO: ProcessCDR(1,14923585,1,1,2) [2025-04-16 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923585', 'tblTempUsageDetail_20' ) start [2025-04-16 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923585', 'tblTempUsageDetail_20' ) end [2025-04-16 21:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:12:21] Production.INFO: ==30739== Releasing lock... [2025-04-16 21:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:12:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-16 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:13:05 [end_date_ymd] => 2025-04-16 21:13:05 [RateCDR] => 1 ) [2025-04-16 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 18:13:05' and `end` < '2025-04-16 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 21:13:18] Production.INFO: count ==1149 [2025-04-16 21:13:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:13:05 - End Time 2025-04-16 21:13:05 [2025-04-16 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923590', 'tblTempUsageDetail_20' ) start [2025-04-16 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923590', 'tblTempUsageDetail_20' ) end [2025-04-16 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923590', 'tblTempVendorCDR_20' ) start [2025-04-16 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923590', 'tblTempVendorCDR_20' ) end [2025-04-16 21:13:18] Production.INFO: ProcessCDR(1,14923590,1,1,2) [2025-04-16 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923590', 'tblTempUsageDetail_20' ) start [2025-04-16 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923590', 'tblTempUsageDetail_20' ) end [2025-04-16 21:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:13:21] Production.INFO: ==30853== Releasing lock... [2025-04-16 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:13:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-16 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:14:05 [end_date_ymd] => 2025-04-16 21:14:05 [RateCDR] => 1 ) [2025-04-16 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 18:14:05' and `end` < '2025-04-16 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 21:14:18] Production.INFO: count ==1146 [2025-04-16 21:14:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:14:05 - End Time 2025-04-16 21:14:05 [2025-04-16 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923595', 'tblTempUsageDetail_20' ) start [2025-04-16 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923595', 'tblTempUsageDetail_20' ) end [2025-04-16 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923595', 'tblTempVendorCDR_20' ) start [2025-04-16 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923595', 'tblTempVendorCDR_20' ) end [2025-04-16 21:14:18] Production.INFO: ProcessCDR(1,14923595,1,1,2) [2025-04-16 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923595', 'tblTempUsageDetail_20' ) start [2025-04-16 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923595', 'tblTempUsageDetail_20' ) end [2025-04-16 21:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:14:21] Production.INFO: ==30961== Releasing lock... [2025-04-16 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:14:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-16 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:15:05 [end_date_ymd] => 2025-04-16 21:15:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:15:05' and `end` < '2025-04-16 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-04-16 21:15:19] Production.INFO: count ==1146 [2025-04-16 21:15:19] Production.ERROR: pbx CDR StartTime 2025-04-16 18:15:05 - End Time 2025-04-16 21:15:05 [2025-04-16 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923600', 'tblTempUsageDetail_20' ) start [2025-04-16 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923600', 'tblTempUsageDetail_20' ) end [2025-04-16 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923600', 'tblTempVendorCDR_20' ) start [2025-04-16 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923600', 'tblTempVendorCDR_20' ) end [2025-04-16 21:15:19] Production.INFO: ProcessCDR(1,14923600,1,1,2) [2025-04-16 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923600', 'tblTempUsageDetail_20' ) start [2025-04-16 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923600', 'tblTempUsageDetail_20' ) end [2025-04-16 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:15:22] Production.INFO: ==31067== Releasing lock... [2025-04-16 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:15:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-16 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:16:05 [end_date_ymd] => 2025-04-16 21:16:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:16:05' and `end` < '2025-04-16 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-04-16 21:16:18] Production.INFO: count ==1147 [2025-04-16 21:16:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:16:05 - End Time 2025-04-16 21:16:05 [2025-04-16 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923605', 'tblTempUsageDetail_20' ) start [2025-04-16 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923605', 'tblTempUsageDetail_20' ) end [2025-04-16 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923605', 'tblTempVendorCDR_20' ) start [2025-04-16 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923605', 'tblTempVendorCDR_20' ) end [2025-04-16 21:16:18] Production.INFO: ProcessCDR(1,14923605,1,1,2) [2025-04-16 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923605', 'tblTempUsageDetail_20' ) start [2025-04-16 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923605', 'tblTempUsageDetail_20' ) end [2025-04-16 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:16:23] Production.INFO: ==31169== Releasing lock... [2025-04-16 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:16:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-16 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:17:05 [end_date_ymd] => 2025-04-16 21:17:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:17:05' and `end` < '2025-04-16 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-04-16 21:17:18] Production.INFO: count ==1145 [2025-04-16 21:17:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:17:05 - End Time 2025-04-16 21:17:05 [2025-04-16 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923610', 'tblTempUsageDetail_20' ) start [2025-04-16 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923610', 'tblTempUsageDetail_20' ) end [2025-04-16 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923610', 'tblTempVendorCDR_20' ) start [2025-04-16 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923610', 'tblTempVendorCDR_20' ) end [2025-04-16 21:17:18] Production.INFO: ProcessCDR(1,14923610,1,1,2) [2025-04-16 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923610', 'tblTempUsageDetail_20' ) start [2025-04-16 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923610', 'tblTempUsageDetail_20' ) end [2025-04-16 21:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:17:24] Production.INFO: ==31271== Releasing lock... [2025-04-16 21:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:17:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-16 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:18:05 [end_date_ymd] => 2025-04-16 21:18:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:18:05' and `end` < '2025-04-16 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-04-16 21:18:18] Production.INFO: count ==1143 [2025-04-16 21:18:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:18:05 - End Time 2025-04-16 21:18:05 [2025-04-16 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923615', 'tblTempUsageDetail_20' ) start [2025-04-16 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923615', 'tblTempUsageDetail_20' ) end [2025-04-16 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923615', 'tblTempVendorCDR_20' ) start [2025-04-16 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923615', 'tblTempVendorCDR_20' ) end [2025-04-16 21:18:18] Production.INFO: ProcessCDR(1,14923615,1,1,2) [2025-04-16 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923615', 'tblTempUsageDetail_20' ) start [2025-04-16 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923615', 'tblTempUsageDetail_20' ) end [2025-04-16 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:18:21] Production.INFO: ==31366== Releasing lock... [2025-04-16 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:18:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-16 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:19:05 [end_date_ymd] => 2025-04-16 21:19:05 [RateCDR] => 1 ) [2025-04-16 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 18:19:05' and `end` < '2025-04-16 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 21:19:18] Production.INFO: count ==1140 [2025-04-16 21:19:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:19:05 - End Time 2025-04-16 21:19:05 [2025-04-16 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923620', 'tblTempUsageDetail_20' ) start [2025-04-16 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923620', 'tblTempUsageDetail_20' ) end [2025-04-16 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923620', 'tblTempVendorCDR_20' ) start [2025-04-16 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923620', 'tblTempVendorCDR_20' ) end [2025-04-16 21:19:18] Production.INFO: ProcessCDR(1,14923620,1,1,2) [2025-04-16 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923620', 'tblTempUsageDetail_20' ) start [2025-04-16 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923620', 'tblTempUsageDetail_20' ) end [2025-04-16 21:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:19:23] Production.INFO: ==31453== Releasing lock... [2025-04-16 21:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:19:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-16 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:20:05 [end_date_ymd] => 2025-04-16 21:20:05 [RateCDR] => 1 ) [2025-04-16 21:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 18:20:05' and `end` < '2025-04-16 21:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 21:20:18] Production.INFO: count ==1143 [2025-04-16 21:20:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:20:05 - End Time 2025-04-16 21:20:05 [2025-04-16 21:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923626', 'tblTempUsageDetail_20' ) start [2025-04-16 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923626', 'tblTempUsageDetail_20' ) end [2025-04-16 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923626', 'tblTempVendorCDR_20' ) start [2025-04-16 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923626', 'tblTempVendorCDR_20' ) end [2025-04-16 21:20:18] Production.INFO: ProcessCDR(1,14923626,1,1,2) [2025-04-16 21:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923626', 'tblTempUsageDetail_20' ) start [2025-04-16 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923626', 'tblTempUsageDetail_20' ) end [2025-04-16 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:20:23] Production.INFO: ==31539== Releasing lock... [2025-04-16 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:20:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-16 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:21:05 [end_date_ymd] => 2025-04-16 21:21:05 [RateCDR] => 1 ) [2025-04-16 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 18:21:05' and `end` < '2025-04-16 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 21:21:17] Production.INFO: count ==1137 [2025-04-16 21:21:17] Production.ERROR: pbx CDR StartTime 2025-04-16 18:21:05 - End Time 2025-04-16 21:21:05 [2025-04-16 21:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923631', 'tblTempUsageDetail_20' ) start [2025-04-16 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923631', 'tblTempUsageDetail_20' ) end [2025-04-16 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923631', 'tblTempVendorCDR_20' ) start [2025-04-16 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923631', 'tblTempVendorCDR_20' ) end [2025-04-16 21:21:17] Production.INFO: ProcessCDR(1,14923631,1,1,2) [2025-04-16 21:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923631', 'tblTempUsageDetail_20' ) start [2025-04-16 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923631', 'tblTempUsageDetail_20' ) end [2025-04-16 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:21:21] Production.INFO: ==31626== Releasing lock... [2025-04-16 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:21:21] Production.INFO: 36 MB #Memory Used# [2025-04-16 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:22:05 [end_date_ymd] => 2025-04-16 21:22:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:22:05' and `end` < '2025-04-16 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-04-16 21:22:18] Production.INFO: count ==1133 [2025-04-16 21:22:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:22:05 - End Time 2025-04-16 21:22:05 [2025-04-16 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923636', 'tblTempUsageDetail_20' ) start [2025-04-16 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923636', 'tblTempUsageDetail_20' ) end [2025-04-16 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923636', 'tblTempVendorCDR_20' ) start [2025-04-16 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923636', 'tblTempVendorCDR_20' ) end [2025-04-16 21:22:18] Production.INFO: ProcessCDR(1,14923636,1,1,2) [2025-04-16 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923636', 'tblTempUsageDetail_20' ) start [2025-04-16 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923636', 'tblTempUsageDetail_20' ) end [2025-04-16 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:22:22] Production.INFO: ==31754== Releasing lock... [2025-04-16 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:22:22] Production.INFO: 36 MB #Memory Used# [2025-04-16 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:23:05 [end_date_ymd] => 2025-04-16 21:23:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:23:05' and `end` < '2025-04-16 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-04-16 21:23:18] Production.INFO: count ==1140 [2025-04-16 21:23:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:23:05 - End Time 2025-04-16 21:23:05 [2025-04-16 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923641', 'tblTempUsageDetail_20' ) start [2025-04-16 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923641', 'tblTempUsageDetail_20' ) end [2025-04-16 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923641', 'tblTempVendorCDR_20' ) start [2025-04-16 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923641', 'tblTempVendorCDR_20' ) end [2025-04-16 21:23:18] Production.INFO: ProcessCDR(1,14923641,1,1,2) [2025-04-16 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923641', 'tblTempUsageDetail_20' ) start [2025-04-16 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923641', 'tblTempUsageDetail_20' ) end [2025-04-16 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:23:23] Production.INFO: ==31838== Releasing lock... [2025-04-16 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:23:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-16 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:24:05 [end_date_ymd] => 2025-04-16 21:24:05 [RateCDR] => 1 ) [2025-04-16 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 18:24:05' and `end` < '2025-04-16 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 21:24:18] Production.INFO: count ==1136 [2025-04-16 21:24:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:24:05 - End Time 2025-04-16 21:24:05 [2025-04-16 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923646', 'tblTempUsageDetail_20' ) start [2025-04-16 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923646', 'tblTempUsageDetail_20' ) end [2025-04-16 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923646', 'tblTempVendorCDR_20' ) start [2025-04-16 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923646', 'tblTempVendorCDR_20' ) end [2025-04-16 21:24:18] Production.INFO: ProcessCDR(1,14923646,1,1,2) [2025-04-16 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923646', 'tblTempUsageDetail_20' ) start [2025-04-16 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923646', 'tblTempUsageDetail_20' ) end [2025-04-16 21:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:24:21] Production.INFO: ==31924== Releasing lock... [2025-04-16 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:24:21] Production.INFO: 36 MB #Memory Used# [2025-04-16 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:25:04 [end_date_ymd] => 2025-04-16 21:25:04 [RateCDR] => 1 ) [2025-04-16 21:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 18:25:04' and `end` < '2025-04-16 21:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 21:25:17] Production.INFO: count ==1133 [2025-04-16 21:25:17] Production.ERROR: pbx CDR StartTime 2025-04-16 18:25:04 - End Time 2025-04-16 21:25:04 [2025-04-16 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923651', 'tblTempUsageDetail_20' ) start [2025-04-16 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923651', 'tblTempUsageDetail_20' ) end [2025-04-16 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923651', 'tblTempVendorCDR_20' ) start [2025-04-16 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923651', 'tblTempVendorCDR_20' ) end [2025-04-16 21:25:17] Production.INFO: ProcessCDR(1,14923651,1,1,2) [2025-04-16 21:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923651', 'tblTempUsageDetail_20' ) start [2025-04-16 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923651', 'tblTempUsageDetail_20' ) end [2025-04-16 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:25:22] Production.INFO: ==32005== Releasing lock... [2025-04-16 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:25:22] Production.INFO: 36 MB #Memory Used# [2025-04-16 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:26:05 [end_date_ymd] => 2025-04-16 21:26:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:26:05' and `end` < '2025-04-16 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-04-16 21:26:18] Production.INFO: count ==1130 [2025-04-16 21:26:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:26:05 - End Time 2025-04-16 21:26:05 [2025-04-16 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923656', 'tblTempUsageDetail_20' ) start [2025-04-16 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923656', 'tblTempUsageDetail_20' ) end [2025-04-16 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923656', 'tblTempVendorCDR_20' ) start [2025-04-16 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923656', 'tblTempVendorCDR_20' ) end [2025-04-16 21:26:18] Production.INFO: ProcessCDR(1,14923656,1,1,2) [2025-04-16 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923656', 'tblTempUsageDetail_20' ) start [2025-04-16 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923656', 'tblTempUsageDetail_20' ) end [2025-04-16 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:26:23] Production.INFO: ==32098== Releasing lock... [2025-04-16 21:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:26:23] Production.INFO: 36 MB #Memory Used# [2025-04-16 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:27:05 [end_date_ymd] => 2025-04-16 21:27:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:27:05' and `end` < '2025-04-16 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-04-16 21:27:18] Production.INFO: count ==1131 [2025-04-16 21:27:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:27:05 - End Time 2025-04-16 21:27:05 [2025-04-16 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923661', 'tblTempUsageDetail_20' ) start [2025-04-16 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923661', 'tblTempUsageDetail_20' ) end [2025-04-16 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923661', 'tblTempVendorCDR_20' ) start [2025-04-16 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923661', 'tblTempVendorCDR_20' ) end [2025-04-16 21:27:18] Production.INFO: ProcessCDR(1,14923661,1,1,2) [2025-04-16 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923661', 'tblTempUsageDetail_20' ) start [2025-04-16 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923661', 'tblTempUsageDetail_20' ) end [2025-04-16 21:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:27:23] Production.INFO: ==32194== Releasing lock... [2025-04-16 21:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:27:23] Production.INFO: 36 MB #Memory Used# [2025-04-16 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:28:05 [end_date_ymd] => 2025-04-16 21:28:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:28:05' and `end` < '2025-04-16 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-04-16 21:28:18] Production.INFO: count ==1129 [2025-04-16 21:28:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:28:05 - End Time 2025-04-16 21:28:05 [2025-04-16 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923666', 'tblTempUsageDetail_20' ) start [2025-04-16 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923666', 'tblTempUsageDetail_20' ) end [2025-04-16 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923666', 'tblTempVendorCDR_20' ) start [2025-04-16 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923666', 'tblTempVendorCDR_20' ) end [2025-04-16 21:28:18] Production.INFO: ProcessCDR(1,14923666,1,1,2) [2025-04-16 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923666', 'tblTempUsageDetail_20' ) start [2025-04-16 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923666', 'tblTempUsageDetail_20' ) end [2025-04-16 21:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:28:23] Production.INFO: ==32275== Releasing lock... [2025-04-16 21:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:28:23] Production.INFO: 36 MB #Memory Used# [2025-04-16 21:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:29:06 [end_date_ymd] => 2025-04-16 21:29:06 [RateCDR] => 1 ) [2025-04-16 21: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-04-16 18:29:06' and `end` < '2025-04-16 21: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-04-16 21:29:18] Production.INFO: count ==1132 [2025-04-16 21:29:19] Production.ERROR: pbx CDR StartTime 2025-04-16 18:29:06 - End Time 2025-04-16 21:29:06 [2025-04-16 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923671', 'tblTempUsageDetail_20' ) start [2025-04-16 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923671', 'tblTempUsageDetail_20' ) end [2025-04-16 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923671', 'tblTempVendorCDR_20' ) start [2025-04-16 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923671', 'tblTempVendorCDR_20' ) end [2025-04-16 21:29:19] Production.INFO: ProcessCDR(1,14923671,1,1,2) [2025-04-16 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923671', 'tblTempUsageDetail_20' ) start [2025-04-16 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923671', 'tblTempUsageDetail_20' ) end [2025-04-16 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:29:22] Production.INFO: ==32362== Releasing lock... [2025-04-16 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:29:22] Production.INFO: 36 MB #Memory Used# [2025-04-16 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:30:06 [end_date_ymd] => 2025-04-16 21:30:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:30:06' and `end` < '2025-04-16 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-04-16 21:30:18] Production.INFO: count ==1133 [2025-04-16 21:30:19] Production.ERROR: pbx CDR StartTime 2025-04-16 18:30:06 - End Time 2025-04-16 21:30:06 [2025-04-16 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923677', 'tblTempUsageDetail_20' ) start [2025-04-16 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923677', 'tblTempUsageDetail_20' ) end [2025-04-16 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923677', 'tblTempVendorCDR_20' ) start [2025-04-16 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923677', 'tblTempVendorCDR_20' ) end [2025-04-16 21:30:19] Production.INFO: ProcessCDR(1,14923677,1,1,2) [2025-04-16 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923677', 'tblTempUsageDetail_20' ) start [2025-04-16 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923677', 'tblTempUsageDetail_20' ) end [2025-04-16 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:30:22] Production.INFO: ==32449== Releasing lock... [2025-04-16 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:30:22] Production.INFO: 36 MB #Memory Used# [2025-04-16 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:31:05 [end_date_ymd] => 2025-04-16 21:31:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:31:05' and `end` < '2025-04-16 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-04-16 21:31:18] Production.INFO: count ==1089 [2025-04-16 21:31:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:31:05 - End Time 2025-04-16 21:31:05 [2025-04-16 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923682', 'tblTempUsageDetail_20' ) start [2025-04-16 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923682', 'tblTempUsageDetail_20' ) end [2025-04-16 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923682', 'tblTempVendorCDR_20' ) start [2025-04-16 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923682', 'tblTempVendorCDR_20' ) end [2025-04-16 21:31:18] Production.INFO: ProcessCDR(1,14923682,1,1,2) [2025-04-16 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923682', 'tblTempUsageDetail_20' ) start [2025-04-16 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923682', 'tblTempUsageDetail_20' ) end [2025-04-16 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:31:22] Production.INFO: ==32535== Releasing lock... [2025-04-16 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:31:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-16 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:32:05 [end_date_ymd] => 2025-04-16 21:32:05 [RateCDR] => 1 ) [2025-04-16 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 18:32:05' and `end` < '2025-04-16 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 21:32:18] Production.INFO: count ==1088 [2025-04-16 21:32:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:32:05 - End Time 2025-04-16 21:32:05 [2025-04-16 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923687', 'tblTempUsageDetail_20' ) start [2025-04-16 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923687', 'tblTempUsageDetail_20' ) end [2025-04-16 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923687', 'tblTempVendorCDR_20' ) start [2025-04-16 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923687', 'tblTempVendorCDR_20' ) end [2025-04-16 21:32:18] Production.INFO: ProcessCDR(1,14923687,1,1,2) [2025-04-16 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923687', 'tblTempUsageDetail_20' ) start [2025-04-16 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923687', 'tblTempUsageDetail_20' ) end [2025-04-16 21:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:32:21] Production.INFO: ==32604== Releasing lock... [2025-04-16 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:32:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-16 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:33:05 [end_date_ymd] => 2025-04-16 21:33:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:33:05' and `end` < '2025-04-16 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-04-16 21:33:18] Production.INFO: count ==1086 [2025-04-16 21:33:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:33:05 - End Time 2025-04-16 21:33:05 [2025-04-16 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923692', 'tblTempUsageDetail_20' ) start [2025-04-16 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923692', 'tblTempUsageDetail_20' ) end [2025-04-16 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923692', 'tblTempVendorCDR_20' ) start [2025-04-16 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923692', 'tblTempVendorCDR_20' ) end [2025-04-16 21:33:18] Production.INFO: ProcessCDR(1,14923692,1,1,2) [2025-04-16 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923692', 'tblTempUsageDetail_20' ) start [2025-04-16 21:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923692', 'tblTempUsageDetail_20' ) end [2025-04-16 21:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:33:24] Production.INFO: ==32682== Releasing lock... [2025-04-16 21:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:33:24] Production.INFO: 35.75 MB #Memory Used# [2025-04-16 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:34:05 [end_date_ymd] => 2025-04-16 21:34:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:34:05' and `end` < '2025-04-16 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-04-16 21:34:17] Production.INFO: count ==1085 [2025-04-16 21:34:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:34:05 - End Time 2025-04-16 21:34:05 [2025-04-16 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923697', 'tblTempUsageDetail_20' ) start [2025-04-16 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923697', 'tblTempUsageDetail_20' ) end [2025-04-16 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923697', 'tblTempVendorCDR_20' ) start [2025-04-16 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923697', 'tblTempVendorCDR_20' ) end [2025-04-16 21:34:18] Production.INFO: ProcessCDR(1,14923697,1,1,2) [2025-04-16 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923697', 'tblTempUsageDetail_20' ) start [2025-04-16 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923697', 'tblTempUsageDetail_20' ) end [2025-04-16 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:34:22] Production.INFO: ==32753== Releasing lock... [2025-04-16 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:34:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-16 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:35:05 [end_date_ymd] => 2025-04-16 21:35:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:35:05' and `end` < '2025-04-16 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-04-16 21:35:18] Production.INFO: count ==1084 [2025-04-16 21:35:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:35:05 - End Time 2025-04-16 21:35:05 [2025-04-16 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923702', 'tblTempUsageDetail_20' ) start [2025-04-16 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923702', 'tblTempUsageDetail_20' ) end [2025-04-16 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923702', 'tblTempVendorCDR_20' ) start [2025-04-16 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923702', 'tblTempVendorCDR_20' ) end [2025-04-16 21:35:18] Production.INFO: ProcessCDR(1,14923702,1,1,2) [2025-04-16 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923702', 'tblTempUsageDetail_20' ) start [2025-04-16 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923702', 'tblTempUsageDetail_20' ) end [2025-04-16 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:35:21] Production.INFO: ==378== Releasing lock... [2025-04-16 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:35:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-16 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:36:05 [end_date_ymd] => 2025-04-16 21:36:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:36:05' and `end` < '2025-04-16 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-04-16 21:36:17] Production.INFO: count ==1078 [2025-04-16 21:36:17] Production.ERROR: pbx CDR StartTime 2025-04-16 18:36:05 - End Time 2025-04-16 21:36:05 [2025-04-16 21:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923707', 'tblTempUsageDetail_20' ) start [2025-04-16 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923707', 'tblTempUsageDetail_20' ) end [2025-04-16 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923707', 'tblTempVendorCDR_20' ) start [2025-04-16 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923707', 'tblTempVendorCDR_20' ) end [2025-04-16 21:36:17] Production.INFO: ProcessCDR(1,14923707,1,1,2) [2025-04-16 21:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923707', 'tblTempUsageDetail_20' ) start [2025-04-16 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923707', 'tblTempUsageDetail_20' ) end [2025-04-16 21:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:36:21] Production.INFO: ==453== Releasing lock... [2025-04-16 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:36:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-16 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:37:05 [end_date_ymd] => 2025-04-16 21:37:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:37:05' and `end` < '2025-04-16 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-04-16 21:37:18] Production.INFO: count ==1076 [2025-04-16 21:37:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:37:05 - End Time 2025-04-16 21:37:05 [2025-04-16 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923712', 'tblTempUsageDetail_20' ) start [2025-04-16 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923712', 'tblTempUsageDetail_20' ) end [2025-04-16 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923712', 'tblTempVendorCDR_20' ) start [2025-04-16 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923712', 'tblTempVendorCDR_20' ) end [2025-04-16 21:37:18] Production.INFO: ProcessCDR(1,14923712,1,1,2) [2025-04-16 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923712', 'tblTempUsageDetail_20' ) start [2025-04-16 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923712', 'tblTempUsageDetail_20' ) end [2025-04-16 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:37:21] Production.INFO: ==565== Releasing lock... [2025-04-16 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:37:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-16 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:38:05 [end_date_ymd] => 2025-04-16 21:38:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:38:05' and `end` < '2025-04-16 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-04-16 21:38:18] Production.INFO: count ==1074 [2025-04-16 21:38:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:38:05 - End Time 2025-04-16 21:38:05 [2025-04-16 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923717', 'tblTempUsageDetail_20' ) start [2025-04-16 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923717', 'tblTempUsageDetail_20' ) end [2025-04-16 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923717', 'tblTempVendorCDR_20' ) start [2025-04-16 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923717', 'tblTempVendorCDR_20' ) end [2025-04-16 21:38:18] Production.INFO: ProcessCDR(1,14923717,1,1,2) [2025-04-16 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923717', 'tblTempUsageDetail_20' ) start [2025-04-16 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923717', 'tblTempUsageDetail_20' ) end [2025-04-16 21:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:38:21] Production.INFO: ==651== Releasing lock... [2025-04-16 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:38:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-16 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:39:05 [end_date_ymd] => 2025-04-16 21:39:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:39:05' and `end` < '2025-04-16 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-04-16 21:39:18] Production.INFO: count ==1075 [2025-04-16 21:39:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:39:05 - End Time 2025-04-16 21:39:05 [2025-04-16 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923722', 'tblTempUsageDetail_20' ) start [2025-04-16 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923722', 'tblTempUsageDetail_20' ) end [2025-04-16 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923722', 'tblTempVendorCDR_20' ) start [2025-04-16 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923722', 'tblTempVendorCDR_20' ) end [2025-04-16 21:39:18] Production.INFO: ProcessCDR(1,14923722,1,1,2) [2025-04-16 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923722', 'tblTempUsageDetail_20' ) start [2025-04-16 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923722', 'tblTempUsageDetail_20' ) end [2025-04-16 21:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:39:23] Production.INFO: ==758== Releasing lock... [2025-04-16 21:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:39:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-16 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:40:06 [end_date_ymd] => 2025-04-16 21:40:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:40:06' and `end` < '2025-04-16 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-04-16 21:40:19] Production.INFO: count ==1075 [2025-04-16 21:40:19] Production.ERROR: pbx CDR StartTime 2025-04-16 18:40:06 - End Time 2025-04-16 21:40:06 [2025-04-16 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923728', 'tblTempUsageDetail_20' ) start [2025-04-16 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923728', 'tblTempUsageDetail_20' ) end [2025-04-16 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923728', 'tblTempVendorCDR_20' ) start [2025-04-16 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923728', 'tblTempVendorCDR_20' ) end [2025-04-16 21:40:19] Production.INFO: ProcessCDR(1,14923728,1,1,2) [2025-04-16 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923728', 'tblTempUsageDetail_20' ) start [2025-04-16 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923728', 'tblTempUsageDetail_20' ) end [2025-04-16 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:40:24] Production.INFO: ==840== Releasing lock... [2025-04-16 21:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:40:24] Production.INFO: 35.75 MB #Memory Used# [2025-04-16 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:41:05 [end_date_ymd] => 2025-04-16 21:41:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:41:05' and `end` < '2025-04-16 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-04-16 21:41:18] Production.INFO: count ==1069 [2025-04-16 21:41:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:41:05 - End Time 2025-04-16 21:41:05 [2025-04-16 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923733', 'tblTempUsageDetail_20' ) start [2025-04-16 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923733', 'tblTempUsageDetail_20' ) end [2025-04-16 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923733', 'tblTempVendorCDR_20' ) start [2025-04-16 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923733', 'tblTempVendorCDR_20' ) end [2025-04-16 21:41:18] Production.INFO: ProcessCDR(1,14923733,1,1,2) [2025-04-16 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923733', 'tblTempUsageDetail_20' ) start [2025-04-16 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923733', 'tblTempUsageDetail_20' ) end [2025-04-16 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:41:21] Production.INFO: ==921== Releasing lock... [2025-04-16 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:41:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-16 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:42:05 [end_date_ymd] => 2025-04-16 21:42:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:42:05' and `end` < '2025-04-16 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-04-16 21:42:18] Production.INFO: count ==1070 [2025-04-16 21:42:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:42:05 - End Time 2025-04-16 21:42:05 [2025-04-16 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923738', 'tblTempUsageDetail_20' ) start [2025-04-16 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923738', 'tblTempUsageDetail_20' ) end [2025-04-16 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923738', 'tblTempVendorCDR_20' ) start [2025-04-16 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923738', 'tblTempVendorCDR_20' ) end [2025-04-16 21:42:18] Production.INFO: ProcessCDR(1,14923738,1,1,2) [2025-04-16 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923738', 'tblTempUsageDetail_20' ) start [2025-04-16 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923738', 'tblTempUsageDetail_20' ) end [2025-04-16 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:42:21] Production.INFO: ==992== Releasing lock... [2025-04-16 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:42:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-16 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:43:05 [end_date_ymd] => 2025-04-16 21:43:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:43:05' and `end` < '2025-04-16 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-04-16 21:43:18] Production.INFO: count ==1072 [2025-04-16 21:43:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:43:05 - End Time 2025-04-16 21:43:05 [2025-04-16 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923743', 'tblTempUsageDetail_20' ) start [2025-04-16 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923743', 'tblTempUsageDetail_20' ) end [2025-04-16 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923743', 'tblTempVendorCDR_20' ) start [2025-04-16 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923743', 'tblTempVendorCDR_20' ) end [2025-04-16 21:43:18] Production.INFO: ProcessCDR(1,14923743,1,1,2) [2025-04-16 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923743', 'tblTempUsageDetail_20' ) start [2025-04-16 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923743', 'tblTempUsageDetail_20' ) end [2025-04-16 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:43:23] Production.INFO: ==1062== Releasing lock... [2025-04-16 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:43:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-16 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:44:05 [end_date_ymd] => 2025-04-16 21:44:05 [RateCDR] => 1 ) [2025-04-16 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 18:44:05' and `end` < '2025-04-16 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 21:44:18] Production.INFO: count ==1072 [2025-04-16 21:44:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:44:05 - End Time 2025-04-16 21:44:05 [2025-04-16 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923748', 'tblTempUsageDetail_20' ) start [2025-04-16 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923748', 'tblTempUsageDetail_20' ) end [2025-04-16 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923748', 'tblTempVendorCDR_20' ) start [2025-04-16 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923748', 'tblTempVendorCDR_20' ) end [2025-04-16 21:44:18] Production.INFO: ProcessCDR(1,14923748,1,1,2) [2025-04-16 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923748', 'tblTempUsageDetail_20' ) start [2025-04-16 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923748', 'tblTempUsageDetail_20' ) end [2025-04-16 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:44:22] Production.INFO: ==1140== Releasing lock... [2025-04-16 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:44:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-16 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:45:05 [end_date_ymd] => 2025-04-16 21:45:05 [RateCDR] => 1 ) [2025-04-16 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 18:45:05' and `end` < '2025-04-16 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 21:45:18] Production.INFO: count ==1072 [2025-04-16 21:45:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:45:05 - End Time 2025-04-16 21:45:05 [2025-04-16 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923753', 'tblTempUsageDetail_20' ) start [2025-04-16 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923753', 'tblTempUsageDetail_20' ) end [2025-04-16 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923753', 'tblTempVendorCDR_20' ) start [2025-04-16 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923753', 'tblTempVendorCDR_20' ) end [2025-04-16 21:45:18] Production.INFO: ProcessCDR(1,14923753,1,1,2) [2025-04-16 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923753', 'tblTempUsageDetail_20' ) start [2025-04-16 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923753', 'tblTempUsageDetail_20' ) end [2025-04-16 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:45:21] Production.INFO: ==1218== Releasing lock... [2025-04-16 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:45:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-16 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:46:05 [end_date_ymd] => 2025-04-16 21:46:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:46:05' and `end` < '2025-04-16 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-04-16 21:46:18] Production.INFO: count ==1071 [2025-04-16 21:46:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:46:05 - End Time 2025-04-16 21:46:05 [2025-04-16 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923758', 'tblTempUsageDetail_20' ) start [2025-04-16 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923758', 'tblTempUsageDetail_20' ) end [2025-04-16 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923758', 'tblTempVendorCDR_20' ) start [2025-04-16 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923758', 'tblTempVendorCDR_20' ) end [2025-04-16 21:46:18] Production.INFO: ProcessCDR(1,14923758,1,1,2) [2025-04-16 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923758', 'tblTempUsageDetail_20' ) start [2025-04-16 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923758', 'tblTempUsageDetail_20' ) end [2025-04-16 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:46:21] Production.INFO: ==1339== Releasing lock... [2025-04-16 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:46:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-16 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:47:05 [end_date_ymd] => 2025-04-16 21:47:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:47:05' and `end` < '2025-04-16 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-04-16 21:47:18] Production.INFO: count ==1070 [2025-04-16 21:47:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:47:05 - End Time 2025-04-16 21:47:05 [2025-04-16 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923763', 'tblTempUsageDetail_20' ) start [2025-04-16 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923763', 'tblTempUsageDetail_20' ) end [2025-04-16 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923763', 'tblTempVendorCDR_20' ) start [2025-04-16 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923763', 'tblTempVendorCDR_20' ) end [2025-04-16 21:47:18] Production.INFO: ProcessCDR(1,14923763,1,1,2) [2025-04-16 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923763', 'tblTempUsageDetail_20' ) start [2025-04-16 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923763', 'tblTempUsageDetail_20' ) end [2025-04-16 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:47:21] Production.INFO: ==1411== Releasing lock... [2025-04-16 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:47:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-16 21:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:48:04 [end_date_ymd] => 2025-04-16 21:48:04 [RateCDR] => 1 ) [2025-04-16 21: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-04-16 18:48:04' and `end` < '2025-04-16 21: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-04-16 21:48:17] Production.INFO: count ==1068 [2025-04-16 21:48:17] Production.ERROR: pbx CDR StartTime 2025-04-16 18:48:04 - End Time 2025-04-16 21:48:04 [2025-04-16 21:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923768', 'tblTempUsageDetail_20' ) start [2025-04-16 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923768', 'tblTempUsageDetail_20' ) end [2025-04-16 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923768', 'tblTempVendorCDR_20' ) start [2025-04-16 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923768', 'tblTempVendorCDR_20' ) end [2025-04-16 21:48:17] Production.INFO: ProcessCDR(1,14923768,1,1,2) [2025-04-16 21:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923768', 'tblTempUsageDetail_20' ) start [2025-04-16 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923768', 'tblTempUsageDetail_20' ) end [2025-04-16 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:48:21] Production.INFO: ==1480== Releasing lock... [2025-04-16 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:48:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-16 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:49:05 [end_date_ymd] => 2025-04-16 21:49:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:49:05' and `end` < '2025-04-16 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-04-16 21:49:18] Production.INFO: count ==1067 [2025-04-16 21:49:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:49:05 - End Time 2025-04-16 21:49:05 [2025-04-16 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923773', 'tblTempUsageDetail_20' ) start [2025-04-16 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923773', 'tblTempUsageDetail_20' ) end [2025-04-16 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923773', 'tblTempVendorCDR_20' ) start [2025-04-16 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923773', 'tblTempVendorCDR_20' ) end [2025-04-16 21:49:18] Production.INFO: ProcessCDR(1,14923773,1,1,2) [2025-04-16 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923773', 'tblTempUsageDetail_20' ) start [2025-04-16 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923773', 'tblTempUsageDetail_20' ) end [2025-04-16 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:49:21] Production.INFO: ==1590== Releasing lock... [2025-04-16 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:49:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-16 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:50:05 [end_date_ymd] => 2025-04-16 21:50:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:50:05' and `end` < '2025-04-16 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-04-16 21:50:18] Production.INFO: count ==1069 [2025-04-16 21:50:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:50:05 - End Time 2025-04-16 21:50:05 [2025-04-16 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923779', 'tblTempUsageDetail_20' ) start [2025-04-16 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923779', 'tblTempUsageDetail_20' ) end [2025-04-16 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923779', 'tblTempVendorCDR_20' ) start [2025-04-16 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923779', 'tblTempVendorCDR_20' ) end [2025-04-16 21:50:18] Production.INFO: ProcessCDR(1,14923779,1,1,2) [2025-04-16 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923779', 'tblTempUsageDetail_20' ) start [2025-04-16 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923779', 'tblTempUsageDetail_20' ) end [2025-04-16 21:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:50:21] Production.INFO: ==1668== Releasing lock... [2025-04-16 21:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:50:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-16 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:51:05 [end_date_ymd] => 2025-04-16 21:51:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:51:05' and `end` < '2025-04-16 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-04-16 21:51:18] Production.INFO: count ==1045 [2025-04-16 21:51:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:51:05 - End Time 2025-04-16 21:51:05 [2025-04-16 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923784', 'tblTempUsageDetail_20' ) start [2025-04-16 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923784', 'tblTempUsageDetail_20' ) end [2025-04-16 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923784', 'tblTempVendorCDR_20' ) start [2025-04-16 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923784', 'tblTempVendorCDR_20' ) end [2025-04-16 21:51:18] Production.INFO: ProcessCDR(1,14923784,1,1,2) [2025-04-16 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923784', 'tblTempUsageDetail_20' ) start [2025-04-16 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923784', 'tblTempUsageDetail_20' ) end [2025-04-16 21:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:51:23] Production.INFO: ==1741== Releasing lock... [2025-04-16 21:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:51:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-16 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:52:05 [end_date_ymd] => 2025-04-16 21:52:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:52:05' and `end` < '2025-04-16 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-04-16 21:52:17] Production.INFO: count ==1042 [2025-04-16 21:52:17] Production.ERROR: pbx CDR StartTime 2025-04-16 18:52:05 - End Time 2025-04-16 21:52:05 [2025-04-16 21:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923789', 'tblTempUsageDetail_20' ) start [2025-04-16 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923789', 'tblTempUsageDetail_20' ) end [2025-04-16 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923789', 'tblTempVendorCDR_20' ) start [2025-04-16 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923789', 'tblTempVendorCDR_20' ) end [2025-04-16 21:52:17] Production.INFO: ProcessCDR(1,14923789,1,1,2) [2025-04-16 21:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923789', 'tblTempUsageDetail_20' ) start [2025-04-16 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923789', 'tblTempUsageDetail_20' ) end [2025-04-16 21:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:52:21] Production.INFO: ==1814== Releasing lock... [2025-04-16 21:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:52:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-16 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:53:05 [end_date_ymd] => 2025-04-16 21:53:05 [RateCDR] => 1 ) [2025-04-16 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 18:53:05' and `end` < '2025-04-16 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 21:53:18] Production.INFO: count ==1039 [2025-04-16 21:53:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:53:05 - End Time 2025-04-16 21:53:05 [2025-04-16 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923794', 'tblTempUsageDetail_20' ) start [2025-04-16 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923794', 'tblTempUsageDetail_20' ) end [2025-04-16 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923794', 'tblTempVendorCDR_20' ) start [2025-04-16 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923794', 'tblTempVendorCDR_20' ) end [2025-04-16 21:53:18] Production.INFO: ProcessCDR(1,14923794,1,1,2) [2025-04-16 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923794', 'tblTempUsageDetail_20' ) start [2025-04-16 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923794', 'tblTempUsageDetail_20' ) end [2025-04-16 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:53:21] Production.INFO: ==1928== Releasing lock... [2025-04-16 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:53:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-16 21:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:54:04 [end_date_ymd] => 2025-04-16 21:54:04 [RateCDR] => 1 ) [2025-04-16 21:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 18:54:04' and `end` < '2025-04-16 21:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 21:54:17] Production.INFO: count ==1032 [2025-04-16 21:54:17] Production.ERROR: pbx CDR StartTime 2025-04-16 18:54:04 - End Time 2025-04-16 21:54:04 [2025-04-16 21:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923799', 'tblTempUsageDetail_20' ) start [2025-04-16 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923799', 'tblTempUsageDetail_20' ) end [2025-04-16 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923799', 'tblTempVendorCDR_20' ) start [2025-04-16 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923799', 'tblTempVendorCDR_20' ) end [2025-04-16 21:54:17] Production.INFO: ProcessCDR(1,14923799,1,1,2) [2025-04-16 21:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923799', 'tblTempUsageDetail_20' ) start [2025-04-16 21:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923799', 'tblTempUsageDetail_20' ) end [2025-04-16 21:54:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:54:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:54:20] Production.INFO: ==2008== Releasing lock... [2025-04-16 21:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:54:20] Production.INFO: 35.25 MB #Memory Used# [2025-04-16 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:55:05 [end_date_ymd] => 2025-04-16 21:55:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:55:05' and `end` < '2025-04-16 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-04-16 21:55:18] Production.INFO: count ==1034 [2025-04-16 21:55:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:55:05 - End Time 2025-04-16 21:55:05 [2025-04-16 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923804', 'tblTempUsageDetail_20' ) start [2025-04-16 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923804', 'tblTempUsageDetail_20' ) end [2025-04-16 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923804', 'tblTempVendorCDR_20' ) start [2025-04-16 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923804', 'tblTempVendorCDR_20' ) end [2025-04-16 21:55:18] Production.INFO: ProcessCDR(1,14923804,1,1,2) [2025-04-16 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923804', 'tblTempUsageDetail_20' ) start [2025-04-16 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923804', 'tblTempUsageDetail_20' ) end [2025-04-16 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:55:21] Production.INFO: ==2085== Releasing lock... [2025-04-16 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:55:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-16 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:56:05 [end_date_ymd] => 2025-04-16 21:56:05 [RateCDR] => 1 ) [2025-04-16 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 18:56:05' and `end` < '2025-04-16 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 21:56:18] Production.INFO: count ==1031 [2025-04-16 21:56:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:56:05 - End Time 2025-04-16 21:56:05 [2025-04-16 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923809', 'tblTempUsageDetail_20' ) start [2025-04-16 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923809', 'tblTempUsageDetail_20' ) end [2025-04-16 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923809', 'tblTempVendorCDR_20' ) start [2025-04-16 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923809', 'tblTempVendorCDR_20' ) end [2025-04-16 21:56:18] Production.INFO: ProcessCDR(1,14923809,1,1,2) [2025-04-16 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923809', 'tblTempUsageDetail_20' ) start [2025-04-16 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923809', 'tblTempUsageDetail_20' ) end [2025-04-16 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:56:21] Production.INFO: ==2158== Releasing lock... [2025-04-16 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:56:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-16 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:57:05 [end_date_ymd] => 2025-04-16 21:57:05 [RateCDR] => 1 ) [2025-04-16 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 18:57:05' and `end` < '2025-04-16 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 21:57:18] Production.INFO: count ==1029 [2025-04-16 21:57:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:57:05 - End Time 2025-04-16 21:57:05 [2025-04-16 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923814', 'tblTempUsageDetail_20' ) start [2025-04-16 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923814', 'tblTempUsageDetail_20' ) end [2025-04-16 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923814', 'tblTempVendorCDR_20' ) start [2025-04-16 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923814', 'tblTempVendorCDR_20' ) end [2025-04-16 21:57:18] Production.INFO: ProcessCDR(1,14923814,1,1,2) [2025-04-16 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923814', 'tblTempUsageDetail_20' ) start [2025-04-16 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923814', 'tblTempUsageDetail_20' ) end [2025-04-16 21:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:57:21] Production.INFO: ==2230== Releasing lock... [2025-04-16 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:57:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-16 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:58:05 [end_date_ymd] => 2025-04-16 21:58:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 18:58:05' and `end` < '2025-04-16 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-04-16 21:58:18] Production.INFO: count ==1024 [2025-04-16 21:58:18] Production.ERROR: pbx CDR StartTime 2025-04-16 18:58:05 - End Time 2025-04-16 21:58:05 [2025-04-16 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923819', 'tblTempUsageDetail_20' ) start [2025-04-16 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923819', 'tblTempUsageDetail_20' ) end [2025-04-16 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923819', 'tblTempVendorCDR_20' ) start [2025-04-16 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923819', 'tblTempVendorCDR_20' ) end [2025-04-16 21:58:18] Production.INFO: ProcessCDR(1,14923819,1,1,2) [2025-04-16 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923819', 'tblTempUsageDetail_20' ) start [2025-04-16 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923819', 'tblTempUsageDetail_20' ) end [2025-04-16 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:58:21] Production.INFO: ==2305== Releasing lock... [2025-04-16 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:58:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-16 21:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 18:59:04 [end_date_ymd] => 2025-04-16 21:59:04 [RateCDR] => 1 ) [2025-04-16 21:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 18:59:04' and `end` < '2025-04-16 21:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 21:59:17] Production.INFO: count ==1017 [2025-04-16 21:59:17] Production.ERROR: pbx CDR StartTime 2025-04-16 18:59:04 - End Time 2025-04-16 21:59:04 [2025-04-16 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923824', 'tblTempUsageDetail_20' ) start [2025-04-16 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923824', 'tblTempUsageDetail_20' ) end [2025-04-16 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923824', 'tblTempVendorCDR_20' ) start [2025-04-16 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923824', 'tblTempVendorCDR_20' ) end [2025-04-16 21:59:17] Production.INFO: ProcessCDR(1,14923824,1,1,2) [2025-04-16 21:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 21:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923824', 'tblTempUsageDetail_20' ) start [2025-04-16 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923824', 'tblTempUsageDetail_20' ) end [2025-04-16 21:59:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 21:59:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 21:59:20] Production.INFO: ==2377== Releasing lock... [2025-04-16 21:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 21:59:20] Production.INFO: 35.25 MB #Memory Used# [2025-04-16 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:00:06 [end_date_ymd] => 2025-04-16 22:00:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:00:06' and `end` < '2025-04-16 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-04-16 22:00:19] Production.INFO: count ==1015 [2025-04-16 22:00:19] Production.ERROR: pbx CDR StartTime 2025-04-16 19:00:06 - End Time 2025-04-16 22:00:06 [2025-04-16 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923830', 'tblTempUsageDetail_20' ) start [2025-04-16 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923830', 'tblTempUsageDetail_20' ) end [2025-04-16 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923830', 'tblTempVendorCDR_20' ) start [2025-04-16 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923830', 'tblTempVendorCDR_20' ) end [2025-04-16 22:00:19] Production.INFO: ProcessCDR(1,14923830,1,1,2) [2025-04-16 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923830', 'tblTempUsageDetail_20' ) start [2025-04-16 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923830', 'tblTempUsageDetail_20' ) end [2025-04-16 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:00:22] Production.INFO: ==2454== Releasing lock... [2025-04-16 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:00:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-16 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:01:05 [end_date_ymd] => 2025-04-16 22:01:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:01:05' and `end` < '2025-04-16 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-04-16 22:01:18] Production.INFO: count ==953 [2025-04-16 22:01:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:01:05 - End Time 2025-04-16 22:01:05 [2025-04-16 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923835', 'tblTempUsageDetail_20' ) start [2025-04-16 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923835', 'tblTempUsageDetail_20' ) end [2025-04-16 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923835', 'tblTempVendorCDR_20' ) start [2025-04-16 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923835', 'tblTempVendorCDR_20' ) end [2025-04-16 22:01:18] Production.INFO: ProcessCDR(1,14923835,1,1,2) [2025-04-16 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923835', 'tblTempUsageDetail_20' ) start [2025-04-16 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923835', 'tblTempUsageDetail_20' ) end [2025-04-16 22:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:01:23] Production.INFO: ==2544== Releasing lock... [2025-04-16 22:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:01:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-16 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:02:05 [end_date_ymd] => 2025-04-16 22:02:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:02:05' and `end` < '2025-04-16 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-04-16 22:02:18] Production.INFO: count ==947 [2025-04-16 22:02:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:02:05 - End Time 2025-04-16 22:02:05 [2025-04-16 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923840', 'tblTempUsageDetail_20' ) start [2025-04-16 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923840', 'tblTempUsageDetail_20' ) end [2025-04-16 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923840', 'tblTempVendorCDR_20' ) start [2025-04-16 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923840', 'tblTempVendorCDR_20' ) end [2025-04-16 22:02:18] Production.INFO: ProcessCDR(1,14923840,1,1,2) [2025-04-16 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923840', 'tblTempUsageDetail_20' ) start [2025-04-16 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923840', 'tblTempUsageDetail_20' ) end [2025-04-16 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:02:21] Production.INFO: ==2616== Releasing lock... [2025-04-16 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:02:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-16 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:03:05 [end_date_ymd] => 2025-04-16 22:03:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:03:05' and `end` < '2025-04-16 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-04-16 22:03:18] Production.INFO: count ==946 [2025-04-16 22:03:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:03:05 - End Time 2025-04-16 22:03:05 [2025-04-16 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923845', 'tblTempUsageDetail_20' ) start [2025-04-16 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923845', 'tblTempUsageDetail_20' ) end [2025-04-16 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923845', 'tblTempVendorCDR_20' ) start [2025-04-16 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923845', 'tblTempVendorCDR_20' ) end [2025-04-16 22:03:18] Production.INFO: ProcessCDR(1,14923845,1,1,2) [2025-04-16 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923845', 'tblTempUsageDetail_20' ) start [2025-04-16 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923845', 'tblTempUsageDetail_20' ) end [2025-04-16 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:03:21] Production.INFO: ==2689== Releasing lock... [2025-04-16 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:03:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-16 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:04:05 [end_date_ymd] => 2025-04-16 22:04:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:04:05' and `end` < '2025-04-16 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-04-16 22:04:18] Production.INFO: count ==944 [2025-04-16 22:04:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:04:05 - End Time 2025-04-16 22:04:05 [2025-04-16 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923850', 'tblTempUsageDetail_20' ) start [2025-04-16 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923850', 'tblTempUsageDetail_20' ) end [2025-04-16 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923850', 'tblTempVendorCDR_20' ) start [2025-04-16 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923850', 'tblTempVendorCDR_20' ) end [2025-04-16 22:04:18] Production.INFO: ProcessCDR(1,14923850,1,1,2) [2025-04-16 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923850', 'tblTempUsageDetail_20' ) start [2025-04-16 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923850', 'tblTempUsageDetail_20' ) end [2025-04-16 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:04:21] Production.INFO: ==2761== Releasing lock... [2025-04-16 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:04:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-16 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:05:05 [end_date_ymd] => 2025-04-16 22:05:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:05:05' and `end` < '2025-04-16 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-04-16 22:05:18] Production.INFO: count ==944 [2025-04-16 22:05:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:05:05 - End Time 2025-04-16 22:05:05 [2025-04-16 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923855', 'tblTempUsageDetail_20' ) start [2025-04-16 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923855', 'tblTempUsageDetail_20' ) end [2025-04-16 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923855', 'tblTempVendorCDR_20' ) start [2025-04-16 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923855', 'tblTempVendorCDR_20' ) end [2025-04-16 22:05:18] Production.INFO: ProcessCDR(1,14923855,1,1,2) [2025-04-16 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923855', 'tblTempUsageDetail_20' ) start [2025-04-16 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923855', 'tblTempUsageDetail_20' ) end [2025-04-16 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:05:21] Production.INFO: ==2834== Releasing lock... [2025-04-16 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:05:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-16 22:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:06:06 [end_date_ymd] => 2025-04-16 22:06:06 [RateCDR] => 1 ) [2025-04-16 22:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 19:06:06' and `end` < '2025-04-16 22:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 22:06:18] Production.INFO: count ==942 [2025-04-16 22:06:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:06:06 - End Time 2025-04-16 22:06:06 [2025-04-16 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923860', 'tblTempUsageDetail_20' ) start [2025-04-16 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923860', 'tblTempUsageDetail_20' ) end [2025-04-16 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923860', 'tblTempVendorCDR_20' ) start [2025-04-16 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923860', 'tblTempVendorCDR_20' ) end [2025-04-16 22:06:18] Production.INFO: ProcessCDR(1,14923860,1,1,2) [2025-04-16 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923860', 'tblTempUsageDetail_20' ) start [2025-04-16 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923860', 'tblTempUsageDetail_20' ) end [2025-04-16 22:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:06:21] Production.INFO: ==2911== Releasing lock... [2025-04-16 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:06:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-16 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:07:05 [end_date_ymd] => 2025-04-16 22:07:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:07:05' and `end` < '2025-04-16 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-04-16 22:07:18] Production.INFO: count ==937 [2025-04-16 22:07:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:07:05 - End Time 2025-04-16 22:07:05 [2025-04-16 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923865', 'tblTempUsageDetail_20' ) start [2025-04-16 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923865', 'tblTempUsageDetail_20' ) end [2025-04-16 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923865', 'tblTempVendorCDR_20' ) start [2025-04-16 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923865', 'tblTempVendorCDR_20' ) end [2025-04-16 22:07:18] Production.INFO: ProcessCDR(1,14923865,1,1,2) [2025-04-16 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923865', 'tblTempUsageDetail_20' ) start [2025-04-16 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923865', 'tblTempUsageDetail_20' ) end [2025-04-16 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:07:21] Production.INFO: ==2991== Releasing lock... [2025-04-16 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:07:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-16 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:08:05 [end_date_ymd] => 2025-04-16 22:08:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:08:05' and `end` < '2025-04-16 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-04-16 22:08:18] Production.INFO: count ==938 [2025-04-16 22:08:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:08:05 - End Time 2025-04-16 22:08:05 [2025-04-16 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923870', 'tblTempUsageDetail_20' ) start [2025-04-16 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923870', 'tblTempUsageDetail_20' ) end [2025-04-16 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923870', 'tblTempVendorCDR_20' ) start [2025-04-16 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923870', 'tblTempVendorCDR_20' ) end [2025-04-16 22:08:18] Production.INFO: ProcessCDR(1,14923870,1,1,2) [2025-04-16 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923870', 'tblTempUsageDetail_20' ) start [2025-04-16 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923870', 'tblTempUsageDetail_20' ) end [2025-04-16 22:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:08:23] Production.INFO: ==3110== Releasing lock... [2025-04-16 22:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:08:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-16 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:09:05 [end_date_ymd] => 2025-04-16 22:09:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:09:05' and `end` < '2025-04-16 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-04-16 22:09:18] Production.INFO: count ==937 [2025-04-16 22:09:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:09:05 - End Time 2025-04-16 22:09:05 [2025-04-16 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923875', 'tblTempUsageDetail_20' ) start [2025-04-16 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923875', 'tblTempUsageDetail_20' ) end [2025-04-16 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923875', 'tblTempVendorCDR_20' ) start [2025-04-16 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923875', 'tblTempVendorCDR_20' ) end [2025-04-16 22:09:18] Production.INFO: ProcessCDR(1,14923875,1,1,2) [2025-04-16 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923875', 'tblTempUsageDetail_20' ) start [2025-04-16 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923875', 'tblTempUsageDetail_20' ) end [2025-04-16 22:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:09:23] Production.INFO: ==3182== Releasing lock... [2025-04-16 22:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:09:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-16 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:10:06 [end_date_ymd] => 2025-04-16 22:10:06 [RateCDR] => 1 ) [2025-04-16 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 19:10:06' and `end` < '2025-04-16 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 22:10:18] Production.INFO: count ==941 [2025-04-16 22:10:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:10:06 - End Time 2025-04-16 22:10:06 [2025-04-16 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923880', 'tblTempUsageDetail_20' ) start [2025-04-16 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923880', 'tblTempUsageDetail_20' ) end [2025-04-16 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923880', 'tblTempVendorCDR_20' ) start [2025-04-16 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923880', 'tblTempVendorCDR_20' ) end [2025-04-16 22:10:18] Production.INFO: ProcessCDR(1,14923880,1,1,2) [2025-04-16 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923880', 'tblTempUsageDetail_20' ) start [2025-04-16 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923880', 'tblTempUsageDetail_20' ) end [2025-04-16 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:10:23] Production.INFO: ==3257== Releasing lock... [2025-04-16 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:10:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-16 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:11:05 [end_date_ymd] => 2025-04-16 22:11:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:11:05' and `end` < '2025-04-16 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-04-16 22:11:18] Production.INFO: count ==917 [2025-04-16 22:11:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:11:05 - End Time 2025-04-16 22:11:05 [2025-04-16 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923886', 'tblTempUsageDetail_20' ) start [2025-04-16 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923886', 'tblTempUsageDetail_20' ) end [2025-04-16 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923886', 'tblTempVendorCDR_20' ) start [2025-04-16 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923886', 'tblTempVendorCDR_20' ) end [2025-04-16 22:11:18] Production.INFO: ProcessCDR(1,14923886,1,1,2) [2025-04-16 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923886', 'tblTempUsageDetail_20' ) start [2025-04-16 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923886', 'tblTempUsageDetail_20' ) end [2025-04-16 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:11:21] Production.INFO: ==3335== Releasing lock... [2025-04-16 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:11:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-16 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:12:05 [end_date_ymd] => 2025-04-16 22:12:05 [RateCDR] => 1 ) [2025-04-16 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 19:12:05' and `end` < '2025-04-16 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 22:12:18] Production.INFO: count ==917 [2025-04-16 22:12:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:12:05 - End Time 2025-04-16 22:12:05 [2025-04-16 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923891', 'tblTempUsageDetail_20' ) start [2025-04-16 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923891', 'tblTempUsageDetail_20' ) end [2025-04-16 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923891', 'tblTempVendorCDR_20' ) start [2025-04-16 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923891', 'tblTempVendorCDR_20' ) end [2025-04-16 22:12:18] Production.INFO: ProcessCDR(1,14923891,1,1,2) [2025-04-16 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923891', 'tblTempUsageDetail_20' ) start [2025-04-16 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923891', 'tblTempUsageDetail_20' ) end [2025-04-16 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:12:22] Production.INFO: ==3409== Releasing lock... [2025-04-16 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:12:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-16 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:13:05 [end_date_ymd] => 2025-04-16 22:13:05 [RateCDR] => 1 ) [2025-04-16 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 19:13:05' and `end` < '2025-04-16 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 22:13:18] Production.INFO: count ==913 [2025-04-16 22:13:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:13:05 - End Time 2025-04-16 22:13:05 [2025-04-16 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923896', 'tblTempUsageDetail_20' ) start [2025-04-16 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923896', 'tblTempUsageDetail_20' ) end [2025-04-16 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923896', 'tblTempVendorCDR_20' ) start [2025-04-16 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923896', 'tblTempVendorCDR_20' ) end [2025-04-16 22:13:18] Production.INFO: ProcessCDR(1,14923896,1,1,2) [2025-04-16 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923896', 'tblTempUsageDetail_20' ) start [2025-04-16 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923896', 'tblTempUsageDetail_20' ) end [2025-04-16 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:13:21] Production.INFO: ==3482== Releasing lock... [2025-04-16 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:13:21] Production.INFO: 34 MB #Memory Used# [2025-04-16 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:14:05 [end_date_ymd] => 2025-04-16 22:14:05 [RateCDR] => 1 ) [2025-04-16 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 19:14:05' and `end` < '2025-04-16 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 22:14:17] Production.INFO: count ==912 [2025-04-16 22:14:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:14:05 - End Time 2025-04-16 22:14:05 [2025-04-16 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923901', 'tblTempUsageDetail_20' ) start [2025-04-16 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923901', 'tblTempUsageDetail_20' ) end [2025-04-16 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923901', 'tblTempVendorCDR_20' ) start [2025-04-16 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923901', 'tblTempVendorCDR_20' ) end [2025-04-16 22:14:18] Production.INFO: ProcessCDR(1,14923901,1,1,2) [2025-04-16 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923901', 'tblTempUsageDetail_20' ) start [2025-04-16 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923901', 'tblTempUsageDetail_20' ) end [2025-04-16 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:14:21] Production.INFO: ==3553== Releasing lock... [2025-04-16 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:14:21] Production.INFO: 34 MB #Memory Used# [2025-04-16 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:15:05 [end_date_ymd] => 2025-04-16 22:15:05 [RateCDR] => 1 ) [2025-04-16 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 19:15:05' and `end` < '2025-04-16 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 22:15:17] Production.INFO: count ==909 [2025-04-16 22:15:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:15:05 - End Time 2025-04-16 22:15:05 [2025-04-16 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923906', 'tblTempUsageDetail_20' ) start [2025-04-16 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923906', 'tblTempUsageDetail_20' ) end [2025-04-16 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923906', 'tblTempVendorCDR_20' ) start [2025-04-16 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923906', 'tblTempVendorCDR_20' ) end [2025-04-16 22:15:18] Production.INFO: ProcessCDR(1,14923906,1,1,2) [2025-04-16 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923906', 'tblTempUsageDetail_20' ) start [2025-04-16 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923906', 'tblTempUsageDetail_20' ) end [2025-04-16 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:15:21] Production.INFO: ==3629== Releasing lock... [2025-04-16 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:15:21] Production.INFO: 34 MB #Memory Used# [2025-04-16 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:16:05 [end_date_ymd] => 2025-04-16 22:16:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:16:05' and `end` < '2025-04-16 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-04-16 22:16:18] Production.INFO: count ==907 [2025-04-16 22:16:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:16:05 - End Time 2025-04-16 22:16:05 [2025-04-16 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923911', 'tblTempUsageDetail_20' ) start [2025-04-16 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923911', 'tblTempUsageDetail_20' ) end [2025-04-16 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923911', 'tblTempVendorCDR_20' ) start [2025-04-16 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923911', 'tblTempVendorCDR_20' ) end [2025-04-16 22:16:18] Production.INFO: ProcessCDR(1,14923911,1,1,2) [2025-04-16 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923911', 'tblTempUsageDetail_20' ) start [2025-04-16 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923911', 'tblTempUsageDetail_20' ) end [2025-04-16 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:16:21] Production.INFO: ==3698== Releasing lock... [2025-04-16 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:16:21] Production.INFO: 34 MB #Memory Used# [2025-04-16 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:17:05 [end_date_ymd] => 2025-04-16 22:17:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:17:05' and `end` < '2025-04-16 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-04-16 22:17:18] Production.INFO: count ==906 [2025-04-16 22:17:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:17:05 - End Time 2025-04-16 22:17:05 [2025-04-16 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923916', 'tblTempUsageDetail_20' ) start [2025-04-16 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923916', 'tblTempUsageDetail_20' ) end [2025-04-16 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923916', 'tblTempVendorCDR_20' ) start [2025-04-16 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923916', 'tblTempVendorCDR_20' ) end [2025-04-16 22:17:18] Production.INFO: ProcessCDR(1,14923916,1,1,2) [2025-04-16 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923916', 'tblTempUsageDetail_20' ) start [2025-04-16 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923916', 'tblTempUsageDetail_20' ) end [2025-04-16 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:17:21] Production.INFO: ==3771== Releasing lock... [2025-04-16 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:17:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-16 22:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:18:04 [end_date_ymd] => 2025-04-16 22:18:04 [RateCDR] => 1 ) [2025-04-16 22:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 19:18:04' and `end` < '2025-04-16 22:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 22:18:17] Production.INFO: count ==907 [2025-04-16 22:18:17] Production.ERROR: pbx CDR StartTime 2025-04-16 19:18:04 - End Time 2025-04-16 22:18:04 [2025-04-16 22:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923921', 'tblTempUsageDetail_20' ) start [2025-04-16 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923921', 'tblTempUsageDetail_20' ) end [2025-04-16 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923921', 'tblTempVendorCDR_20' ) start [2025-04-16 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923921', 'tblTempVendorCDR_20' ) end [2025-04-16 22:18:17] Production.INFO: ProcessCDR(1,14923921,1,1,2) [2025-04-16 22:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923921', 'tblTempUsageDetail_20' ) start [2025-04-16 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923921', 'tblTempUsageDetail_20' ) end [2025-04-16 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:18:22] Production.INFO: ==3846== Releasing lock... [2025-04-16 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:18:22] Production.INFO: 34 MB #Memory Used# [2025-04-16 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:19:05 [end_date_ymd] => 2025-04-16 22:19:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:19:05' and `end` < '2025-04-16 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-04-16 22:19:18] Production.INFO: count ==907 [2025-04-16 22:19:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:19:05 - End Time 2025-04-16 22:19:05 [2025-04-16 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923926', 'tblTempUsageDetail_20' ) start [2025-04-16 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923926', 'tblTempUsageDetail_20' ) end [2025-04-16 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923926', 'tblTempVendorCDR_20' ) start [2025-04-16 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923926', 'tblTempVendorCDR_20' ) end [2025-04-16 22:19:18] Production.INFO: ProcessCDR(1,14923926,1,1,2) [2025-04-16 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923926', 'tblTempUsageDetail_20' ) start [2025-04-16 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923926', 'tblTempUsageDetail_20' ) end [2025-04-16 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:19:21] Production.INFO: ==3919== Releasing lock... [2025-04-16 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:19:21] Production.INFO: 34 MB #Memory Used# [2025-04-16 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:20:06 [end_date_ymd] => 2025-04-16 22:20:06 [RateCDR] => 1 ) [2025-04-16 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 19:20:06' and `end` < '2025-04-16 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 22:20:19] Production.INFO: count ==909 [2025-04-16 22:20:19] Production.ERROR: pbx CDR StartTime 2025-04-16 19:20:06 - End Time 2025-04-16 22:20:06 [2025-04-16 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923932', 'tblTempUsageDetail_20' ) start [2025-04-16 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923932', 'tblTempUsageDetail_20' ) end [2025-04-16 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923932', 'tblTempVendorCDR_20' ) start [2025-04-16 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923932', 'tblTempVendorCDR_20' ) end [2025-04-16 22:20:19] Production.INFO: ProcessCDR(1,14923932,1,1,2) [2025-04-16 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923932', 'tblTempUsageDetail_20' ) start [2025-04-16 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923932', 'tblTempUsageDetail_20' ) end [2025-04-16 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:20:22] Production.INFO: ==3995== Releasing lock... [2025-04-16 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:20:22] Production.INFO: 34 MB #Memory Used# [2025-04-16 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:21:05 [end_date_ymd] => 2025-04-16 22:21:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:21:05' and `end` < '2025-04-16 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-04-16 22:21:18] Production.INFO: count ==906 [2025-04-16 22:21:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:21:05 - End Time 2025-04-16 22:21:05 [2025-04-16 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923937', 'tblTempUsageDetail_20' ) start [2025-04-16 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923937', 'tblTempUsageDetail_20' ) end [2025-04-16 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923937', 'tblTempVendorCDR_20' ) start [2025-04-16 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923937', 'tblTempVendorCDR_20' ) end [2025-04-16 22:21:18] Production.INFO: ProcessCDR(1,14923937,1,1,2) [2025-04-16 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923937', 'tblTempUsageDetail_20' ) start [2025-04-16 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923937', 'tblTempUsageDetail_20' ) end [2025-04-16 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:21:21] Production.INFO: ==4075== Releasing lock... [2025-04-16 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:21:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-16 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:22:05 [end_date_ymd] => 2025-04-16 22:22:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:22:05' and `end` < '2025-04-16 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-04-16 22:22:18] Production.INFO: count ==906 [2025-04-16 22:22:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:22:05 - End Time 2025-04-16 22:22:05 [2025-04-16 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923942', 'tblTempUsageDetail_20' ) start [2025-04-16 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923942', 'tblTempUsageDetail_20' ) end [2025-04-16 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923942', 'tblTempVendorCDR_20' ) start [2025-04-16 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923942', 'tblTempVendorCDR_20' ) end [2025-04-16 22:22:19] Production.INFO: ProcessCDR(1,14923942,1,1,2) [2025-04-16 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923942', 'tblTempUsageDetail_20' ) start [2025-04-16 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923942', 'tblTempUsageDetail_20' ) end [2025-04-16 22:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:22:23] Production.INFO: ==4151== Releasing lock... [2025-04-16 22:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:22:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-16 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:23:05 [end_date_ymd] => 2025-04-16 22:23:05 [RateCDR] => 1 ) [2025-04-16 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 19:23:05' and `end` < '2025-04-16 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 22:23:18] Production.INFO: count ==904 [2025-04-16 22:23:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:23:05 - End Time 2025-04-16 22:23:05 [2025-04-16 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923947', 'tblTempUsageDetail_20' ) start [2025-04-16 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923947', 'tblTempUsageDetail_20' ) end [2025-04-16 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923947', 'tblTempVendorCDR_20' ) start [2025-04-16 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923947', 'tblTempVendorCDR_20' ) end [2025-04-16 22:23:18] Production.INFO: ProcessCDR(1,14923947,1,1,2) [2025-04-16 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923947', 'tblTempUsageDetail_20' ) start [2025-04-16 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923947', 'tblTempUsageDetail_20' ) end [2025-04-16 22:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:23:23] Production.INFO: ==4263== Releasing lock... [2025-04-16 22:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:23:23] Production.INFO: 34 MB #Memory Used# [2025-04-16 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:24:05 [end_date_ymd] => 2025-04-16 22:24:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:24:05' and `end` < '2025-04-16 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-04-16 22:24:18] Production.INFO: count ==901 [2025-04-16 22:24:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:24:05 - End Time 2025-04-16 22:24:05 [2025-04-16 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923952', 'tblTempUsageDetail_20' ) start [2025-04-16 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923952', 'tblTempUsageDetail_20' ) end [2025-04-16 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923952', 'tblTempVendorCDR_20' ) start [2025-04-16 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923952', 'tblTempVendorCDR_20' ) end [2025-04-16 22:24:18] Production.INFO: ProcessCDR(1,14923952,1,1,2) [2025-04-16 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923952', 'tblTempUsageDetail_20' ) start [2025-04-16 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923952', 'tblTempUsageDetail_20' ) end [2025-04-16 22:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:24:23] Production.INFO: ==4335== Releasing lock... [2025-04-16 22:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:24:23] Production.INFO: 34 MB #Memory Used# [2025-04-16 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:25:05 [end_date_ymd] => 2025-04-16 22:25:05 [RateCDR] => 1 ) [2025-04-16 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 19:25:05' and `end` < '2025-04-16 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 22:25:18] Production.INFO: count ==899 [2025-04-16 22:25:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:25:05 - End Time 2025-04-16 22:25:05 [2025-04-16 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923957', 'tblTempUsageDetail_20' ) start [2025-04-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923957', 'tblTempUsageDetail_20' ) end [2025-04-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923957', 'tblTempVendorCDR_20' ) start [2025-04-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923957', 'tblTempVendorCDR_20' ) end [2025-04-16 22:25:18] Production.INFO: ProcessCDR(1,14923957,1,1,2) [2025-04-16 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923957', 'tblTempUsageDetail_20' ) start [2025-04-16 22:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923957', 'tblTempUsageDetail_20' ) end [2025-04-16 22:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:25:23] Production.INFO: ==4408== Releasing lock... [2025-04-16 22:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:25:23] Production.INFO: 34 MB #Memory Used# [2025-04-16 22:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:26:06 [end_date_ymd] => 2025-04-16 22:26:06 [RateCDR] => 1 ) [2025-04-16 22: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-04-16 19:26:06' and `end` < '2025-04-16 22: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-04-16 22:26:18] Production.INFO: count ==893 [2025-04-16 22:26:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:26:06 - End Time 2025-04-16 22:26:06 [2025-04-16 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923962', 'tblTempUsageDetail_20' ) start [2025-04-16 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923962', 'tblTempUsageDetail_20' ) end [2025-04-16 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923962', 'tblTempVendorCDR_20' ) start [2025-04-16 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923962', 'tblTempVendorCDR_20' ) end [2025-04-16 22:26:18] Production.INFO: ProcessCDR(1,14923962,1,1,2) [2025-04-16 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923962', 'tblTempUsageDetail_20' ) start [2025-04-16 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923962', 'tblTempUsageDetail_20' ) end [2025-04-16 22:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:26:23] Production.INFO: ==4484== Releasing lock... [2025-04-16 22:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:26:23] Production.INFO: 34 MB #Memory Used# [2025-04-16 22:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:27:04 [end_date_ymd] => 2025-04-16 22:27:04 [RateCDR] => 1 ) [2025-04-16 22:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 19:27:04' and `end` < '2025-04-16 22:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 22:27:17] Production.INFO: count ==889 [2025-04-16 22:27:17] Production.ERROR: pbx CDR StartTime 2025-04-16 19:27:04 - End Time 2025-04-16 22:27:04 [2025-04-16 22:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923967', 'tblTempUsageDetail_20' ) start [2025-04-16 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923967', 'tblTempUsageDetail_20' ) end [2025-04-16 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923967', 'tblTempVendorCDR_20' ) start [2025-04-16 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923967', 'tblTempVendorCDR_20' ) end [2025-04-16 22:27:17] Production.INFO: ProcessCDR(1,14923967,1,1,2) [2025-04-16 22:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923967', 'tblTempUsageDetail_20' ) start [2025-04-16 22:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923967', 'tblTempUsageDetail_20' ) end [2025-04-16 22:27:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:27:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:27:20] Production.INFO: ==4561== Releasing lock... [2025-04-16 22:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:27:20] Production.INFO: 34 MB #Memory Used# [2025-04-16 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:28:05 [end_date_ymd] => 2025-04-16 22:28:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:28:05' and `end` < '2025-04-16 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-04-16 22:28:18] Production.INFO: count ==889 [2025-04-16 22:28:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:28:05 - End Time 2025-04-16 22:28:05 [2025-04-16 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923972', 'tblTempUsageDetail_20' ) start [2025-04-16 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923972', 'tblTempUsageDetail_20' ) end [2025-04-16 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923972', 'tblTempVendorCDR_20' ) start [2025-04-16 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923972', 'tblTempVendorCDR_20' ) end [2025-04-16 22:28:18] Production.INFO: ProcessCDR(1,14923972,1,1,2) [2025-04-16 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923972', 'tblTempUsageDetail_20' ) start [2025-04-16 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923972', 'tblTempUsageDetail_20' ) end [2025-04-16 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:28:22] Production.INFO: ==4646== Releasing lock... [2025-04-16 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:28:22] Production.INFO: 34 MB #Memory Used# [2025-04-16 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:29:05 [end_date_ymd] => 2025-04-16 22:29:05 [RateCDR] => 1 ) [2025-04-16 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 19:29:05' and `end` < '2025-04-16 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 22:29:18] Production.INFO: count ==888 [2025-04-16 22:29:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:29:05 - End Time 2025-04-16 22:29:05 [2025-04-16 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923977', 'tblTempUsageDetail_20' ) start [2025-04-16 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923977', 'tblTempUsageDetail_20' ) end [2025-04-16 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923977', 'tblTempVendorCDR_20' ) start [2025-04-16 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923977', 'tblTempVendorCDR_20' ) end [2025-04-16 22:29:18] Production.INFO: ProcessCDR(1,14923977,1,1,2) [2025-04-16 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923977', 'tblTempUsageDetail_20' ) start [2025-04-16 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923977', 'tblTempUsageDetail_20' ) end [2025-04-16 22:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:29:23] Production.INFO: ==4719== Releasing lock... [2025-04-16 22:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:29:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-16 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:30:06 [end_date_ymd] => 2025-04-16 22:30:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:30:06' and `end` < '2025-04-16 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-04-16 22:30:19] Production.INFO: count ==888 [2025-04-16 22:30:19] Production.ERROR: pbx CDR StartTime 2025-04-16 19:30:06 - End Time 2025-04-16 22:30:06 [2025-04-16 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923983', 'tblTempUsageDetail_20' ) start [2025-04-16 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923983', 'tblTempUsageDetail_20' ) end [2025-04-16 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923983', 'tblTempVendorCDR_20' ) start [2025-04-16 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923983', 'tblTempVendorCDR_20' ) end [2025-04-16 22:30:19] Production.INFO: ProcessCDR(1,14923983,1,1,2) [2025-04-16 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923983', 'tblTempUsageDetail_20' ) start [2025-04-16 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923983', 'tblTempUsageDetail_20' ) end [2025-04-16 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:30:22] Production.INFO: ==4799== Releasing lock... [2025-04-16 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:30:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-16 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:31:05 [end_date_ymd] => 2025-04-16 22:31:05 [RateCDR] => 1 ) [2025-04-16 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 19:31:05' and `end` < '2025-04-16 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 22:31:18] Production.INFO: count ==861 [2025-04-16 22:31:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:31:05 - End Time 2025-04-16 22:31:05 [2025-04-16 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923988', 'tblTempUsageDetail_20' ) start [2025-04-16 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923988', 'tblTempUsageDetail_20' ) end [2025-04-16 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923988', 'tblTempVendorCDR_20' ) start [2025-04-16 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923988', 'tblTempVendorCDR_20' ) end [2025-04-16 22:31:18] Production.INFO: ProcessCDR(1,14923988,1,1,2) [2025-04-16 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923988', 'tblTempUsageDetail_20' ) start [2025-04-16 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923988', 'tblTempUsageDetail_20' ) end [2025-04-16 22:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:31:23] Production.INFO: ==4875== Releasing lock... [2025-04-16 22:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:31:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-16 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:32:05 [end_date_ymd] => 2025-04-16 22:32:05 [RateCDR] => 1 ) [2025-04-16 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 19:32:05' and `end` < '2025-04-16 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 22:32:18] Production.INFO: count ==861 [2025-04-16 22:32:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:32:05 - End Time 2025-04-16 22:32:05 [2025-04-16 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923993', 'tblTempUsageDetail_20' ) start [2025-04-16 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923993', 'tblTempUsageDetail_20' ) end [2025-04-16 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923993', 'tblTempVendorCDR_20' ) start [2025-04-16 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923993', 'tblTempVendorCDR_20' ) end [2025-04-16 22:32:18] Production.INFO: ProcessCDR(1,14923993,1,1,2) [2025-04-16 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923993', 'tblTempUsageDetail_20' ) start [2025-04-16 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923993', 'tblTempUsageDetail_20' ) end [2025-04-16 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:32:21] Production.INFO: ==4945== Releasing lock... [2025-04-16 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:32:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-16 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:33:05 [end_date_ymd] => 2025-04-16 22:33:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:33:05' and `end` < '2025-04-16 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-04-16 22:33:18] Production.INFO: count ==859 [2025-04-16 22:33:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:33:05 - End Time 2025-04-16 22:33:05 [2025-04-16 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923998', 'tblTempUsageDetail_20' ) start [2025-04-16 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14923998', 'tblTempUsageDetail_20' ) end [2025-04-16 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923998', 'tblTempVendorCDR_20' ) start [2025-04-16 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14923998', 'tblTempVendorCDR_20' ) end [2025-04-16 22:33:18] Production.INFO: ProcessCDR(1,14923998,1,1,2) [2025-04-16 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14923998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14923998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14923998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14923998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923998', 'tblTempUsageDetail_20' ) start [2025-04-16 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14923998', 'tblTempUsageDetail_20' ) end [2025-04-16 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:33:21] Production.INFO: ==5017== Releasing lock... [2025-04-16 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:33:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-16 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:34:05 [end_date_ymd] => 2025-04-16 22:34:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:34:05' and `end` < '2025-04-16 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-04-16 22:34:17] Production.INFO: count ==862 [2025-04-16 22:34:17] Production.ERROR: pbx CDR StartTime 2025-04-16 19:34:05 - End Time 2025-04-16 22:34:05 [2025-04-16 22:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924003', 'tblTempUsageDetail_20' ) start [2025-04-16 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924003', 'tblTempUsageDetail_20' ) end [2025-04-16 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924003', 'tblTempVendorCDR_20' ) start [2025-04-16 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924003', 'tblTempVendorCDR_20' ) end [2025-04-16 22:34:17] Production.INFO: ProcessCDR(1,14924003,1,1,2) [2025-04-16 22:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924003', 'tblTempUsageDetail_20' ) start [2025-04-16 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924003', 'tblTempUsageDetail_20' ) end [2025-04-16 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:34:22] Production.INFO: ==5092== Releasing lock... [2025-04-16 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:34:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-16 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:35:05 [end_date_ymd] => 2025-04-16 22:35:05 [RateCDR] => 1 ) [2025-04-16 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 19:35:05' and `end` < '2025-04-16 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 22:35:18] Production.INFO: count ==862 [2025-04-16 22:35:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:35:05 - End Time 2025-04-16 22:35:05 [2025-04-16 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924008', 'tblTempUsageDetail_20' ) start [2025-04-16 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924008', 'tblTempUsageDetail_20' ) end [2025-04-16 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924008', 'tblTempVendorCDR_20' ) start [2025-04-16 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924008', 'tblTempVendorCDR_20' ) end [2025-04-16 22:35:18] Production.INFO: ProcessCDR(1,14924008,1,1,2) [2025-04-16 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924008', 'tblTempUsageDetail_20' ) start [2025-04-16 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924008', 'tblTempUsageDetail_20' ) end [2025-04-16 22:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:35:23] Production.INFO: ==5173== Releasing lock... [2025-04-16 22:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:35:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-16 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:36:05 [end_date_ymd] => 2025-04-16 22:36:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:36:05' and `end` < '2025-04-16 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-04-16 22:36:18] Production.INFO: count ==863 [2025-04-16 22:36:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:36:05 - End Time 2025-04-16 22:36:05 [2025-04-16 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924013', 'tblTempUsageDetail_20' ) start [2025-04-16 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924013', 'tblTempUsageDetail_20' ) end [2025-04-16 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924013', 'tblTempVendorCDR_20' ) start [2025-04-16 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924013', 'tblTempVendorCDR_20' ) end [2025-04-16 22:36:18] Production.INFO: ProcessCDR(1,14924013,1,1,2) [2025-04-16 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924013', 'tblTempUsageDetail_20' ) start [2025-04-16 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924013', 'tblTempUsageDetail_20' ) end [2025-04-16 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:36:21] Production.INFO: ==5250== Releasing lock... [2025-04-16 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:36:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-16 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:37:05 [end_date_ymd] => 2025-04-16 22:37:05 [RateCDR] => 1 ) [2025-04-16 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 19:37:05' and `end` < '2025-04-16 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 22:37:18] Production.INFO: count ==859 [2025-04-16 22:37:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:37:05 - End Time 2025-04-16 22:37:05 [2025-04-16 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924018', 'tblTempUsageDetail_20' ) start [2025-04-16 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924018', 'tblTempUsageDetail_20' ) end [2025-04-16 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924018', 'tblTempVendorCDR_20' ) start [2025-04-16 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924018', 'tblTempVendorCDR_20' ) end [2025-04-16 22:37:18] Production.INFO: ProcessCDR(1,14924018,1,1,2) [2025-04-16 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924018', 'tblTempUsageDetail_20' ) start [2025-04-16 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924018', 'tblTempUsageDetail_20' ) end [2025-04-16 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:37:21] Production.INFO: ==5321== Releasing lock... [2025-04-16 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:37:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-16 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:38:05 [end_date_ymd] => 2025-04-16 22:38:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:38:05' and `end` < '2025-04-16 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-04-16 22:38:18] Production.INFO: count ==859 [2025-04-16 22:38:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:38:05 - End Time 2025-04-16 22:38:05 [2025-04-16 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924023', 'tblTempUsageDetail_20' ) start [2025-04-16 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924023', 'tblTempUsageDetail_20' ) end [2025-04-16 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924023', 'tblTempVendorCDR_20' ) start [2025-04-16 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924023', 'tblTempVendorCDR_20' ) end [2025-04-16 22:38:18] Production.INFO: ProcessCDR(1,14924023,1,1,2) [2025-04-16 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924023', 'tblTempUsageDetail_20' ) start [2025-04-16 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924023', 'tblTempUsageDetail_20' ) end [2025-04-16 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:38:21] Production.INFO: ==5396== Releasing lock... [2025-04-16 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:38:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-16 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:39:05 [end_date_ymd] => 2025-04-16 22:39:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:39:05' and `end` < '2025-04-16 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-04-16 22:39:18] Production.INFO: count ==859 [2025-04-16 22:39:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:39:05 - End Time 2025-04-16 22:39:05 [2025-04-16 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924028', 'tblTempUsageDetail_20' ) start [2025-04-16 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924028', 'tblTempUsageDetail_20' ) end [2025-04-16 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924028', 'tblTempVendorCDR_20' ) start [2025-04-16 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924028', 'tblTempVendorCDR_20' ) end [2025-04-16 22:39:18] Production.INFO: ProcessCDR(1,14924028,1,1,2) [2025-04-16 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924028', 'tblTempUsageDetail_20' ) start [2025-04-16 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924028', 'tblTempUsageDetail_20' ) end [2025-04-16 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:39:21] Production.INFO: ==5510== Releasing lock... [2025-04-16 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:39:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-16 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:40:06 [end_date_ymd] => 2025-04-16 22:40:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:40:06' and `end` < '2025-04-16 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-04-16 22:40:19] Production.INFO: count ==860 [2025-04-16 22:40:19] Production.ERROR: pbx CDR StartTime 2025-04-16 19:40:06 - End Time 2025-04-16 22:40:06 [2025-04-16 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924034', 'tblTempUsageDetail_20' ) start [2025-04-16 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924034', 'tblTempUsageDetail_20' ) end [2025-04-16 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924034', 'tblTempVendorCDR_20' ) start [2025-04-16 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924034', 'tblTempVendorCDR_20' ) end [2025-04-16 22:40:19] Production.INFO: ProcessCDR(1,14924034,1,1,2) [2025-04-16 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924034', 'tblTempUsageDetail_20' ) start [2025-04-16 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924034', 'tblTempUsageDetail_20' ) end [2025-04-16 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:40:22] Production.INFO: ==5586== Releasing lock... [2025-04-16 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:40:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-16 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:41:05 [end_date_ymd] => 2025-04-16 22:41:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:41:05' and `end` < '2025-04-16 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-04-16 22:41:17] Production.INFO: count ==829 [2025-04-16 22:41:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:41:05 - End Time 2025-04-16 22:41:05 [2025-04-16 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924039', 'tblTempUsageDetail_20' ) start [2025-04-16 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924039', 'tblTempUsageDetail_20' ) end [2025-04-16 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924039', 'tblTempVendorCDR_20' ) start [2025-04-16 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924039', 'tblTempVendorCDR_20' ) end [2025-04-16 22:41:18] Production.INFO: ProcessCDR(1,14924039,1,1,2) [2025-04-16 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924039', 'tblTempUsageDetail_20' ) start [2025-04-16 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924039', 'tblTempUsageDetail_20' ) end [2025-04-16 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:41:21] Production.INFO: ==5670== Releasing lock... [2025-04-16 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:41:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-16 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:42:05 [end_date_ymd] => 2025-04-16 22:42:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:42:05' and `end` < '2025-04-16 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-04-16 22:42:18] Production.INFO: count ==828 [2025-04-16 22:42:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:42:05 - End Time 2025-04-16 22:42:05 [2025-04-16 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924044', 'tblTempUsageDetail_20' ) start [2025-04-16 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924044', 'tblTempUsageDetail_20' ) end [2025-04-16 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924044', 'tblTempVendorCDR_20' ) start [2025-04-16 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924044', 'tblTempVendorCDR_20' ) end [2025-04-16 22:42:18] Production.INFO: ProcessCDR(1,14924044,1,1,2) [2025-04-16 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924044', 'tblTempUsageDetail_20' ) start [2025-04-16 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924044', 'tblTempUsageDetail_20' ) end [2025-04-16 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:42:21] Production.INFO: ==5743== Releasing lock... [2025-04-16 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:42:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-16 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:43:05 [end_date_ymd] => 2025-04-16 22:43:05 [RateCDR] => 1 ) [2025-04-16 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 19:43:05' and `end` < '2025-04-16 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 22:43:17] Production.INFO: count ==828 [2025-04-16 22:43:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:43:05 - End Time 2025-04-16 22:43:05 [2025-04-16 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924049', 'tblTempUsageDetail_20' ) start [2025-04-16 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924049', 'tblTempUsageDetail_20' ) end [2025-04-16 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924049', 'tblTempVendorCDR_20' ) start [2025-04-16 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924049', 'tblTempVendorCDR_20' ) end [2025-04-16 22:43:18] Production.INFO: ProcessCDR(1,14924049,1,1,2) [2025-04-16 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924049', 'tblTempUsageDetail_20' ) start [2025-04-16 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924049', 'tblTempUsageDetail_20' ) end [2025-04-16 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:43:21] Production.INFO: ==5816== Releasing lock... [2025-04-16 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:43:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-16 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:44:05 [end_date_ymd] => 2025-04-16 22:44:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:44:05' and `end` < '2025-04-16 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-04-16 22:44:18] Production.INFO: count ==828 [2025-04-16 22:44:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:44:05 - End Time 2025-04-16 22:44:05 [2025-04-16 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924054', 'tblTempUsageDetail_20' ) start [2025-04-16 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924054', 'tblTempUsageDetail_20' ) end [2025-04-16 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924054', 'tblTempVendorCDR_20' ) start [2025-04-16 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924054', 'tblTempVendorCDR_20' ) end [2025-04-16 22:44:18] Production.INFO: ProcessCDR(1,14924054,1,1,2) [2025-04-16 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924054', 'tblTempUsageDetail_20' ) start [2025-04-16 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924054', 'tblTempUsageDetail_20' ) end [2025-04-16 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:44:21] Production.INFO: ==5892== Releasing lock... [2025-04-16 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:44:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-16 22:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:45:06 [end_date_ymd] => 2025-04-16 22:45:06 [RateCDR] => 1 ) [2025-04-16 22:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 19:45:06' and `end` < '2025-04-16 22:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 22:45:18] Production.INFO: count ==828 [2025-04-16 22:45:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:45:06 - End Time 2025-04-16 22:45:06 [2025-04-16 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924059', 'tblTempUsageDetail_20' ) start [2025-04-16 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924059', 'tblTempUsageDetail_20' ) end [2025-04-16 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924059', 'tblTempVendorCDR_20' ) start [2025-04-16 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924059', 'tblTempVendorCDR_20' ) end [2025-04-16 22:45:18] Production.INFO: ProcessCDR(1,14924059,1,1,2) [2025-04-16 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924059', 'tblTempUsageDetail_20' ) start [2025-04-16 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924059', 'tblTempUsageDetail_20' ) end [2025-04-16 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:45:22] Production.INFO: ==5968== Releasing lock... [2025-04-16 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:45:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-16 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:46:05 [end_date_ymd] => 2025-04-16 22:46:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:46:05' and `end` < '2025-04-16 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-04-16 22:46:18] Production.INFO: count ==827 [2025-04-16 22:46:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:46:05 - End Time 2025-04-16 22:46:05 [2025-04-16 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924064', 'tblTempUsageDetail_20' ) start [2025-04-16 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924064', 'tblTempUsageDetail_20' ) end [2025-04-16 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924064', 'tblTempVendorCDR_20' ) start [2025-04-16 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924064', 'tblTempVendorCDR_20' ) end [2025-04-16 22:46:18] Production.INFO: ProcessCDR(1,14924064,1,1,2) [2025-04-16 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924064', 'tblTempUsageDetail_20' ) start [2025-04-16 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924064', 'tblTempUsageDetail_20' ) end [2025-04-16 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:46:21] Production.INFO: ==6041== Releasing lock... [2025-04-16 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:46:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-16 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:47:05 [end_date_ymd] => 2025-04-16 22:47:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:47:05' and `end` < '2025-04-16 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-04-16 22:47:18] Production.INFO: count ==817 [2025-04-16 22:47:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:47:05 - End Time 2025-04-16 22:47:05 [2025-04-16 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924069', 'tblTempUsageDetail_20' ) start [2025-04-16 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924069', 'tblTempUsageDetail_20' ) end [2025-04-16 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924069', 'tblTempVendorCDR_20' ) start [2025-04-16 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924069', 'tblTempVendorCDR_20' ) end [2025-04-16 22:47:18] Production.INFO: ProcessCDR(1,14924069,1,1,2) [2025-04-16 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924069', 'tblTempUsageDetail_20' ) start [2025-04-16 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924069', 'tblTempUsageDetail_20' ) end [2025-04-16 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:47:22] Production.INFO: ==6112== Releasing lock... [2025-04-16 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:47:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-16 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:48:05 [end_date_ymd] => 2025-04-16 22:48:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:48:05' and `end` < '2025-04-16 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-04-16 22:48:17] Production.INFO: count ==816 [2025-04-16 22:48:17] Production.ERROR: pbx CDR StartTime 2025-04-16 19:48:05 - End Time 2025-04-16 22:48:05 [2025-04-16 22:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924074', 'tblTempUsageDetail_20' ) start [2025-04-16 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924074', 'tblTempUsageDetail_20' ) end [2025-04-16 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924074', 'tblTempVendorCDR_20' ) start [2025-04-16 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924074', 'tblTempVendorCDR_20' ) end [2025-04-16 22:48:17] Production.INFO: ProcessCDR(1,14924074,1,1,2) [2025-04-16 22:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924074', 'tblTempUsageDetail_20' ) start [2025-04-16 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924074', 'tblTempUsageDetail_20' ) end [2025-04-16 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:48:21] Production.INFO: ==6186== Releasing lock... [2025-04-16 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:48:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-16 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:49:05 [end_date_ymd] => 2025-04-16 22:49:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:49:05' and `end` < '2025-04-16 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-04-16 22:49:18] Production.INFO: count ==806 [2025-04-16 22:49:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:49:05 - End Time 2025-04-16 22:49:05 [2025-04-16 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924079', 'tblTempUsageDetail_20' ) start [2025-04-16 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924079', 'tblTempUsageDetail_20' ) end [2025-04-16 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924079', 'tblTempVendorCDR_20' ) start [2025-04-16 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924079', 'tblTempVendorCDR_20' ) end [2025-04-16 22:49:18] Production.INFO: ProcessCDR(1,14924079,1,1,2) [2025-04-16 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924079', 'tblTempUsageDetail_20' ) start [2025-04-16 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924079', 'tblTempUsageDetail_20' ) end [2025-04-16 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:49:21] Production.INFO: ==6264== Releasing lock... [2025-04-16 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:49:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-16 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:50:06 [end_date_ymd] => 2025-04-16 22:50:06 [RateCDR] => 1 ) [2025-04-16 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 19:50:06' and `end` < '2025-04-16 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 22:50:19] Production.INFO: count ==802 [2025-04-16 22:50:19] Production.ERROR: pbx CDR StartTime 2025-04-16 19:50:06 - End Time 2025-04-16 22:50:06 [2025-04-16 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924085', 'tblTempUsageDetail_20' ) start [2025-04-16 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924085', 'tblTempUsageDetail_20' ) end [2025-04-16 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924085', 'tblTempVendorCDR_20' ) start [2025-04-16 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924085', 'tblTempVendorCDR_20' ) end [2025-04-16 22:50:19] Production.INFO: ProcessCDR(1,14924085,1,1,2) [2025-04-16 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924085', 'tblTempUsageDetail_20' ) start [2025-04-16 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924085', 'tblTempUsageDetail_20' ) end [2025-04-16 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:50:22] Production.INFO: ==6343== Releasing lock... [2025-04-16 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:50:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-16 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:51:05 [end_date_ymd] => 2025-04-16 22:51:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:51:05' and `end` < '2025-04-16 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-04-16 22:51:18] Production.INFO: count ==780 [2025-04-16 22:51:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:51:05 - End Time 2025-04-16 22:51:05 [2025-04-16 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924090', 'tblTempUsageDetail_20' ) start [2025-04-16 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924090', 'tblTempUsageDetail_20' ) end [2025-04-16 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924090', 'tblTempVendorCDR_20' ) start [2025-04-16 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924090', 'tblTempVendorCDR_20' ) end [2025-04-16 22:51:18] Production.INFO: ProcessCDR(1,14924090,1,1,2) [2025-04-16 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924090', 'tblTempUsageDetail_20' ) start [2025-04-16 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924090', 'tblTempUsageDetail_20' ) end [2025-04-16 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:51:21] Production.INFO: ==6418== Releasing lock... [2025-04-16 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:51:21] Production.INFO: 33 MB #Memory Used# [2025-04-16 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:52:05 [end_date_ymd] => 2025-04-16 22:52:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:52:05' and `end` < '2025-04-16 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-04-16 22:52:18] Production.INFO: count ==781 [2025-04-16 22:52:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:52:05 - End Time 2025-04-16 22:52:05 [2025-04-16 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924095', 'tblTempUsageDetail_20' ) start [2025-04-16 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924095', 'tblTempUsageDetail_20' ) end [2025-04-16 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924095', 'tblTempVendorCDR_20' ) start [2025-04-16 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924095', 'tblTempVendorCDR_20' ) end [2025-04-16 22:52:18] Production.INFO: ProcessCDR(1,14924095,1,1,2) [2025-04-16 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924095', 'tblTempUsageDetail_20' ) start [2025-04-16 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924095', 'tblTempUsageDetail_20' ) end [2025-04-16 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:52:21] Production.INFO: ==6493== Releasing lock... [2025-04-16 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:52:21] Production.INFO: 33 MB #Memory Used# [2025-04-16 22:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:53:06 [end_date_ymd] => 2025-04-16 22:53:06 [RateCDR] => 1 ) [2025-04-16 22: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-04-16 19:53:06' and `end` < '2025-04-16 22: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-04-16 22:53:19] Production.INFO: count ==780 [2025-04-16 22:53:19] Production.ERROR: pbx CDR StartTime 2025-04-16 19:53:06 - End Time 2025-04-16 22:53:06 [2025-04-16 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924100', 'tblTempUsageDetail_20' ) start [2025-04-16 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924100', 'tblTempUsageDetail_20' ) end [2025-04-16 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924100', 'tblTempVendorCDR_20' ) start [2025-04-16 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924100', 'tblTempVendorCDR_20' ) end [2025-04-16 22:53:19] Production.INFO: ProcessCDR(1,14924100,1,1,2) [2025-04-16 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924100', 'tblTempUsageDetail_20' ) start [2025-04-16 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924100', 'tblTempUsageDetail_20' ) end [2025-04-16 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:53:22] Production.INFO: ==6567== Releasing lock... [2025-04-16 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:53:22] Production.INFO: 33 MB #Memory Used# [2025-04-16 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:54:05 [end_date_ymd] => 2025-04-16 22:54:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:54:05' and `end` < '2025-04-16 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-04-16 22:54:18] Production.INFO: count ==776 [2025-04-16 22:54:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:54:05 - End Time 2025-04-16 22:54:05 [2025-04-16 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924105', 'tblTempUsageDetail_20' ) start [2025-04-16 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924105', 'tblTempUsageDetail_20' ) end [2025-04-16 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924105', 'tblTempVendorCDR_20' ) start [2025-04-16 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924105', 'tblTempVendorCDR_20' ) end [2025-04-16 22:54:18] Production.INFO: ProcessCDR(1,14924105,1,1,2) [2025-04-16 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924105', 'tblTempUsageDetail_20' ) start [2025-04-16 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924105', 'tblTempUsageDetail_20' ) end [2025-04-16 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:54:21] Production.INFO: ==6680== Releasing lock... [2025-04-16 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:54:21] Production.INFO: 33 MB #Memory Used# [2025-04-16 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:55:05 [end_date_ymd] => 2025-04-16 22:55:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:55:05' and `end` < '2025-04-16 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-04-16 22:55:18] Production.INFO: count ==775 [2025-04-16 22:55:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:55:05 - End Time 2025-04-16 22:55:05 [2025-04-16 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924110', 'tblTempUsageDetail_20' ) start [2025-04-16 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924110', 'tblTempUsageDetail_20' ) end [2025-04-16 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924110', 'tblTempVendorCDR_20' ) start [2025-04-16 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924110', 'tblTempVendorCDR_20' ) end [2025-04-16 22:55:18] Production.INFO: ProcessCDR(1,14924110,1,1,2) [2025-04-16 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924110', 'tblTempUsageDetail_20' ) start [2025-04-16 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924110', 'tblTempUsageDetail_20' ) end [2025-04-16 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:55:21] Production.INFO: ==6758== Releasing lock... [2025-04-16 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:55:21] Production.INFO: 33 MB #Memory Used# [2025-04-16 22:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:56:06 [end_date_ymd] => 2025-04-16 22:56:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:56:06' and `end` < '2025-04-16 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-04-16 22:56:18] Production.INFO: count ==775 [2025-04-16 22:56:19] Production.ERROR: pbx CDR StartTime 2025-04-16 19:56:06 - End Time 2025-04-16 22:56:06 [2025-04-16 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924115', 'tblTempUsageDetail_20' ) start [2025-04-16 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924115', 'tblTempUsageDetail_20' ) end [2025-04-16 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924115', 'tblTempVendorCDR_20' ) start [2025-04-16 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924115', 'tblTempVendorCDR_20' ) end [2025-04-16 22:56:19] Production.INFO: ProcessCDR(1,14924115,1,1,2) [2025-04-16 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924115', 'tblTempUsageDetail_20' ) start [2025-04-16 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924115', 'tblTempUsageDetail_20' ) end [2025-04-16 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:56:22] Production.INFO: ==6840== Releasing lock... [2025-04-16 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:56:22] Production.INFO: 33 MB #Memory Used# [2025-04-16 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:57:05 [end_date_ymd] => 2025-04-16 22:57:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:57:05' and `end` < '2025-04-16 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-04-16 22:57:17] Production.INFO: count ==773 [2025-04-16 22:57:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:57:05 - End Time 2025-04-16 22:57:05 [2025-04-16 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924120', 'tblTempUsageDetail_20' ) start [2025-04-16 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924120', 'tblTempUsageDetail_20' ) end [2025-04-16 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924120', 'tblTempVendorCDR_20' ) start [2025-04-16 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924120', 'tblTempVendorCDR_20' ) end [2025-04-16 22:57:18] Production.INFO: ProcessCDR(1,14924120,1,1,2) [2025-04-16 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924120', 'tblTempUsageDetail_20' ) start [2025-04-16 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924120', 'tblTempUsageDetail_20' ) end [2025-04-16 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:57:22] Production.INFO: ==6912== Releasing lock... [2025-04-16 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:57:22] Production.INFO: 33 MB #Memory Used# [2025-04-16 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:58:05 [end_date_ymd] => 2025-04-16 22:58:05 [RateCDR] => 1 ) [2025-04-16 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 19:58:05' and `end` < '2025-04-16 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-04-16 22:58:18] Production.INFO: count ==770 [2025-04-16 22:58:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:58:05 - End Time 2025-04-16 22:58:05 [2025-04-16 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924125', 'tblTempUsageDetail_20' ) start [2025-04-16 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924125', 'tblTempUsageDetail_20' ) end [2025-04-16 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924125', 'tblTempVendorCDR_20' ) start [2025-04-16 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924125', 'tblTempVendorCDR_20' ) end [2025-04-16 22:58:18] Production.INFO: ProcessCDR(1,14924125,1,1,2) [2025-04-16 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924125', 'tblTempUsageDetail_20' ) start [2025-04-16 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924125', 'tblTempUsageDetail_20' ) end [2025-04-16 22:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:58:23] Production.INFO: ==6982== Releasing lock... [2025-04-16 22:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:58:23] Production.INFO: 33 MB #Memory Used# [2025-04-16 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 19:59:05 [end_date_ymd] => 2025-04-16 22:59:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 19:59:05' and `end` < '2025-04-16 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-04-16 22:59:18] Production.INFO: count ==769 [2025-04-16 22:59:18] Production.ERROR: pbx CDR StartTime 2025-04-16 19:59:05 - End Time 2025-04-16 22:59:05 [2025-04-16 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924130', 'tblTempUsageDetail_20' ) start [2025-04-16 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924130', 'tblTempUsageDetail_20' ) end [2025-04-16 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924130', 'tblTempVendorCDR_20' ) start [2025-04-16 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924130', 'tblTempVendorCDR_20' ) end [2025-04-16 22:59:18] Production.INFO: ProcessCDR(1,14924130,1,1,2) [2025-04-16 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924130', 'tblTempUsageDetail_20' ) start [2025-04-16 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924130', 'tblTempUsageDetail_20' ) end [2025-04-16 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 22:59:21] Production.INFO: ==7057== Releasing lock... [2025-04-16 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 22:59:21] Production.INFO: 33 MB #Memory Used# [2025-04-16 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:00:06 [end_date_ymd] => 2025-04-16 23:00:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:00:06' and `end` < '2025-04-16 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-04-16 23:00:19] Production.INFO: count ==767 [2025-04-16 23:00:19] Production.ERROR: pbx CDR StartTime 2025-04-16 20:00:06 - End Time 2025-04-16 23:00:06 [2025-04-16 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924136', 'tblTempUsageDetail_20' ) start [2025-04-16 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924136', 'tblTempUsageDetail_20' ) end [2025-04-16 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924136', 'tblTempVendorCDR_20' ) start [2025-04-16 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924136', 'tblTempVendorCDR_20' ) end [2025-04-16 23:00:19] Production.INFO: ProcessCDR(1,14924136,1,1,2) [2025-04-16 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924136', 'tblTempUsageDetail_20' ) start [2025-04-16 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924136', 'tblTempUsageDetail_20' ) end [2025-04-16 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:00:22] Production.INFO: ==7136== Releasing lock... [2025-04-16 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:00:22] Production.INFO: 33 MB #Memory Used# [2025-04-16 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:01:05 [end_date_ymd] => 2025-04-16 23:01:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:01:05' and `end` < '2025-04-16 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-04-16 23:01:17] Production.INFO: count ==781 [2025-04-16 23:01:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:01:05 - End Time 2025-04-16 23:01:05 [2025-04-16 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924141', 'tblTempUsageDetail_20' ) start [2025-04-16 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924141', 'tblTempUsageDetail_20' ) end [2025-04-16 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924141', 'tblTempVendorCDR_20' ) start [2025-04-16 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924141', 'tblTempVendorCDR_20' ) end [2025-04-16 23:01:18] Production.INFO: ProcessCDR(1,14924141,1,1,2) [2025-04-16 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924141', 'tblTempUsageDetail_20' ) start [2025-04-16 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924141', 'tblTempUsageDetail_20' ) end [2025-04-16 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:01:22] Production.INFO: ==7226== Releasing lock... [2025-04-16 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:01:22] Production.INFO: 33 MB #Memory Used# [2025-04-16 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:02:05 [end_date_ymd] => 2025-04-16 23:02:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:02:05' and `end` < '2025-04-16 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-04-16 23:02:18] Production.INFO: count ==784 [2025-04-16 23:02:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:02:05 - End Time 2025-04-16 23:02:05 [2025-04-16 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924146', 'tblTempUsageDetail_20' ) start [2025-04-16 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924146', 'tblTempUsageDetail_20' ) end [2025-04-16 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924146', 'tblTempVendorCDR_20' ) start [2025-04-16 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924146', 'tblTempVendorCDR_20' ) end [2025-04-16 23:02:18] Production.INFO: ProcessCDR(1,14924146,1,1,2) [2025-04-16 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924146', 'tblTempUsageDetail_20' ) start [2025-04-16 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924146', 'tblTempUsageDetail_20' ) end [2025-04-16 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:02:22] Production.INFO: ==7383== Releasing lock... [2025-04-16 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:02:22] Production.INFO: 33 MB #Memory Used# [2025-04-16 23:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:03:06 [end_date_ymd] => 2025-04-16 23:03:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:03:06' and `end` < '2025-04-16 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-04-16 23:03:18] Production.INFO: count ==781 [2025-04-16 23:03:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:03:06 - End Time 2025-04-16 23:03:06 [2025-04-16 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924151', 'tblTempUsageDetail_20' ) start [2025-04-16 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924151', 'tblTempUsageDetail_20' ) end [2025-04-16 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924151', 'tblTempVendorCDR_20' ) start [2025-04-16 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924151', 'tblTempVendorCDR_20' ) end [2025-04-16 23:03:18] Production.INFO: ProcessCDR(1,14924151,1,1,2) [2025-04-16 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924151', 'tblTempUsageDetail_20' ) start [2025-04-16 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924151', 'tblTempUsageDetail_20' ) end [2025-04-16 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:03:22] Production.INFO: ==7456== Releasing lock... [2025-04-16 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:03:22] Production.INFO: 33 MB #Memory Used# [2025-04-16 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:04:05 [end_date_ymd] => 2025-04-16 23:04:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:04:05' and `end` < '2025-04-16 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-04-16 23:04:18] Production.INFO: count ==782 [2025-04-16 23:04:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:04:05 - End Time 2025-04-16 23:04:05 [2025-04-16 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924156', 'tblTempUsageDetail_20' ) start [2025-04-16 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924156', 'tblTempUsageDetail_20' ) end [2025-04-16 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924156', 'tblTempVendorCDR_20' ) start [2025-04-16 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924156', 'tblTempVendorCDR_20' ) end [2025-04-16 23:04:18] Production.INFO: ProcessCDR(1,14924156,1,1,2) [2025-04-16 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924156', 'tblTempUsageDetail_20' ) start [2025-04-16 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924156', 'tblTempUsageDetail_20' ) end [2025-04-16 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:04:21] Production.INFO: ==7532== Releasing lock... [2025-04-16 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:04:21] Production.INFO: 33 MB #Memory Used# [2025-04-16 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:05:05 [end_date_ymd] => 2025-04-16 23:05:05 [RateCDR] => 1 ) [2025-04-16 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 20:05:05' and `end` < '2025-04-16 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-04-16 23:05:18] Production.INFO: count ==783 [2025-04-16 23:05:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:05:05 - End Time 2025-04-16 23:05:05 [2025-04-16 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924161', 'tblTempUsageDetail_20' ) start [2025-04-16 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924161', 'tblTempUsageDetail_20' ) end [2025-04-16 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924161', 'tblTempVendorCDR_20' ) start [2025-04-16 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924161', 'tblTempVendorCDR_20' ) end [2025-04-16 23:05:18] Production.INFO: ProcessCDR(1,14924161,1,1,2) [2025-04-16 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924161', 'tblTempUsageDetail_20' ) start [2025-04-16 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924161', 'tblTempUsageDetail_20' ) end [2025-04-16 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:05:21] Production.INFO: ==7748== Releasing lock... [2025-04-16 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:05:21] Production.INFO: 33 MB #Memory Used# [2025-04-16 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:06:05 [end_date_ymd] => 2025-04-16 23:06:05 [RateCDR] => 1 ) [2025-04-16 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 20:06:05' and `end` < '2025-04-16 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 23:06:17] Production.INFO: count ==785 [2025-04-16 23:06:17] Production.ERROR: pbx CDR StartTime 2025-04-16 20:06:05 - End Time 2025-04-16 23:06:05 [2025-04-16 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924166', 'tblTempUsageDetail_20' ) start [2025-04-16 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924166', 'tblTempUsageDetail_20' ) end [2025-04-16 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924166', 'tblTempVendorCDR_20' ) start [2025-04-16 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924166', 'tblTempVendorCDR_20' ) end [2025-04-16 23:06:17] Production.INFO: ProcessCDR(1,14924166,1,1,2) [2025-04-16 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924166', 'tblTempUsageDetail_20' ) start [2025-04-16 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924166', 'tblTempUsageDetail_20' ) end [2025-04-16 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:06:21] Production.INFO: ==7821== Releasing lock... [2025-04-16 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:06:21] Production.INFO: 33 MB #Memory Used# [2025-04-16 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:07:05 [end_date_ymd] => 2025-04-16 23:07:05 [RateCDR] => 1 ) [2025-04-16 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 20:07:05' and `end` < '2025-04-16 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 23:07:18] Production.INFO: count ==788 [2025-04-16 23:07:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:07:05 - End Time 2025-04-16 23:07:05 [2025-04-16 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924171', 'tblTempUsageDetail_20' ) start [2025-04-16 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924171', 'tblTempUsageDetail_20' ) end [2025-04-16 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924171', 'tblTempVendorCDR_20' ) start [2025-04-16 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924171', 'tblTempVendorCDR_20' ) end [2025-04-16 23:07:18] Production.INFO: ProcessCDR(1,14924171,1,1,2) [2025-04-16 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924171', 'tblTempUsageDetail_20' ) start [2025-04-16 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924171', 'tblTempUsageDetail_20' ) end [2025-04-16 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:07:21] Production.INFO: ==7904== Releasing lock... [2025-04-16 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:07:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-16 23:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:08:06 [end_date_ymd] => 2025-04-16 23:08:06 [RateCDR] => 1 ) [2025-04-16 23: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-04-16 20:08:06' and `end` < '2025-04-16 23: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-04-16 23:08:18] Production.INFO: count ==788 [2025-04-16 23:08:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:08:06 - End Time 2025-04-16 23:08:06 [2025-04-16 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924176', 'tblTempUsageDetail_20' ) start [2025-04-16 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924176', 'tblTempUsageDetail_20' ) end [2025-04-16 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924176', 'tblTempVendorCDR_20' ) start [2025-04-16 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924176', 'tblTempVendorCDR_20' ) end [2025-04-16 23:08:18] Production.INFO: ProcessCDR(1,14924176,1,1,2) [2025-04-16 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924176', 'tblTempUsageDetail_20' ) start [2025-04-16 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924176', 'tblTempUsageDetail_20' ) end [2025-04-16 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:08:22] Production.INFO: ==8020== Releasing lock... [2025-04-16 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:08:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-16 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:09:05 [end_date_ymd] => 2025-04-16 23:09:05 [RateCDR] => 1 ) [2025-04-16 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 20:09:05' and `end` < '2025-04-16 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 23:09:18] Production.INFO: count ==796 [2025-04-16 23:09:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:09:05 - End Time 2025-04-16 23:09:05 [2025-04-16 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924181', 'tblTempUsageDetail_20' ) start [2025-04-16 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924181', 'tblTempUsageDetail_20' ) end [2025-04-16 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924181', 'tblTempVendorCDR_20' ) start [2025-04-16 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924181', 'tblTempVendorCDR_20' ) end [2025-04-16 23:09:18] Production.INFO: ProcessCDR(1,14924181,1,1,2) [2025-04-16 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924181', 'tblTempUsageDetail_20' ) start [2025-04-16 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924181', 'tblTempUsageDetail_20' ) end [2025-04-16 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:09:21] Production.INFO: ==8171== Releasing lock... [2025-04-16 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:09:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-16 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:10:05 [end_date_ymd] => 2025-04-16 23:10:05 [RateCDR] => 1 ) [2025-04-16 23:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 20:10:05' and `end` < '2025-04-16 23:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 23:10:18] Production.INFO: count ==794 [2025-04-16 23:10:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:10:05 - End Time 2025-04-16 23:10:05 [2025-04-16 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924187', 'tblTempUsageDetail_20' ) start [2025-04-16 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924187', 'tblTempUsageDetail_20' ) end [2025-04-16 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924187', 'tblTempVendorCDR_20' ) start [2025-04-16 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924187', 'tblTempVendorCDR_20' ) end [2025-04-16 23:10:18] Production.INFO: ProcessCDR(1,14924187,1,1,2) [2025-04-16 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924187', 'tblTempUsageDetail_20' ) start [2025-04-16 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924187', 'tblTempUsageDetail_20' ) end [2025-04-16 23:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:10:23] Production.INFO: ==8286== Releasing lock... [2025-04-16 23:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:10:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-16 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:11:05 [end_date_ymd] => 2025-04-16 23:11:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:11:05' and `end` < '2025-04-16 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-04-16 23:11:18] Production.INFO: count ==773 [2025-04-16 23:11:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:11:05 - End Time 2025-04-16 23:11:05 [2025-04-16 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924192', 'tblTempUsageDetail_20' ) start [2025-04-16 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924192', 'tblTempUsageDetail_20' ) end [2025-04-16 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924192', 'tblTempVendorCDR_20' ) start [2025-04-16 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924192', 'tblTempVendorCDR_20' ) end [2025-04-16 23:11:18] Production.INFO: ProcessCDR(1,14924192,1,1,2) [2025-04-16 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924192', 'tblTempUsageDetail_20' ) start [2025-04-16 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924192', 'tblTempUsageDetail_20' ) end [2025-04-16 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:11:22] Production.INFO: ==8364== Releasing lock... [2025-04-16 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:11:22] Production.INFO: 33 MB #Memory Used# [2025-04-16 23:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:12:04 [end_date_ymd] => 2025-04-16 23:12:04 [RateCDR] => 1 ) [2025-04-16 23:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 20:12:04' and `end` < '2025-04-16 23:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 23:12:17] Production.INFO: count ==777 [2025-04-16 23:12:17] Production.ERROR: pbx CDR StartTime 2025-04-16 20:12:04 - End Time 2025-04-16 23:12:04 [2025-04-16 23:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924197', 'tblTempUsageDetail_20' ) start [2025-04-16 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924197', 'tblTempUsageDetail_20' ) end [2025-04-16 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924197', 'tblTempVendorCDR_20' ) start [2025-04-16 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924197', 'tblTempVendorCDR_20' ) end [2025-04-16 23:12:17] Production.INFO: ProcessCDR(1,14924197,1,1,2) [2025-04-16 23:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924197', 'tblTempUsageDetail_20' ) start [2025-04-16 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924197', 'tblTempUsageDetail_20' ) end [2025-04-16 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:12:21] Production.INFO: ==8513== Releasing lock... [2025-04-16 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:12:21] Production.INFO: 33 MB #Memory Used# [2025-04-16 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:13:05 [end_date_ymd] => 2025-04-16 23:13:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:13:05' and `end` < '2025-04-16 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-04-16 23:13:18] Production.INFO: count ==778 [2025-04-16 23:13:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:13:05 - End Time 2025-04-16 23:13:05 [2025-04-16 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924202', 'tblTempUsageDetail_20' ) start [2025-04-16 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924202', 'tblTempUsageDetail_20' ) end [2025-04-16 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924202', 'tblTempVendorCDR_20' ) start [2025-04-16 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924202', 'tblTempVendorCDR_20' ) end [2025-04-16 23:13:18] Production.INFO: ProcessCDR(1,14924202,1,1,2) [2025-04-16 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924202', 'tblTempUsageDetail_20' ) start [2025-04-16 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924202', 'tblTempUsageDetail_20' ) end [2025-04-16 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:13:21] Production.INFO: ==8609== Releasing lock... [2025-04-16 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:13:21] Production.INFO: 33 MB #Memory Used# [2025-04-16 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:14:05 [end_date_ymd] => 2025-04-16 23:14:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:14:05' and `end` < '2025-04-16 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-04-16 23:14:18] Production.INFO: count ==779 [2025-04-16 23:14:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:14:05 - End Time 2025-04-16 23:14:05 [2025-04-16 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924207', 'tblTempUsageDetail_20' ) start [2025-04-16 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924207', 'tblTempUsageDetail_20' ) end [2025-04-16 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924207', 'tblTempVendorCDR_20' ) start [2025-04-16 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924207', 'tblTempVendorCDR_20' ) end [2025-04-16 23:14:18] Production.INFO: ProcessCDR(1,14924207,1,1,2) [2025-04-16 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924207', 'tblTempUsageDetail_20' ) start [2025-04-16 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924207', 'tblTempUsageDetail_20' ) end [2025-04-16 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:14:21] Production.INFO: ==8689== Releasing lock... [2025-04-16 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:14:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-16 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:15:05 [end_date_ymd] => 2025-04-16 23:15:05 [RateCDR] => 1 ) [2025-04-16 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 20:15:05' and `end` < '2025-04-16 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 23:15:18] Production.INFO: count ==768 [2025-04-16 23:15:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:15:05 - End Time 2025-04-16 23:15:05 [2025-04-16 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924212', 'tblTempUsageDetail_20' ) start [2025-04-16 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924212', 'tblTempUsageDetail_20' ) end [2025-04-16 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924212', 'tblTempVendorCDR_20' ) start [2025-04-16 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924212', 'tblTempVendorCDR_20' ) end [2025-04-16 23:15:18] Production.INFO: ProcessCDR(1,14924212,1,1,2) [2025-04-16 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924212', 'tblTempUsageDetail_20' ) start [2025-04-16 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924212', 'tblTempUsageDetail_20' ) end [2025-04-16 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:15:22] Production.INFO: ==8833== Releasing lock... [2025-04-16 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:15:22] Production.INFO: 33 MB #Memory Used# [2025-04-16 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:16:05 [end_date_ymd] => 2025-04-16 23:16:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:16:05' and `end` < '2025-04-16 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-04-16 23:16:18] Production.INFO: count ==755 [2025-04-16 23:16:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:16:05 - End Time 2025-04-16 23:16:05 [2025-04-16 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924217', 'tblTempUsageDetail_20' ) start [2025-04-16 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924217', 'tblTempUsageDetail_20' ) end [2025-04-16 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924217', 'tblTempVendorCDR_20' ) start [2025-04-16 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924217', 'tblTempVendorCDR_20' ) end [2025-04-16 23:16:18] Production.INFO: ProcessCDR(1,14924217,1,1,2) [2025-04-16 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924217', 'tblTempUsageDetail_20' ) start [2025-04-16 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924217', 'tblTempUsageDetail_20' ) end [2025-04-16 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:16:22] Production.INFO: ==8923== Releasing lock... [2025-04-16 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:16:22] Production.INFO: 33 MB #Memory Used# [2025-04-16 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:17:05 [end_date_ymd] => 2025-04-16 23:17:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:17:05' and `end` < '2025-04-16 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-04-16 23:17:17] Production.INFO: count ==753 [2025-04-16 23:17:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:17:05 - End Time 2025-04-16 23:17:05 [2025-04-16 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924222', 'tblTempUsageDetail_20' ) start [2025-04-16 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924222', 'tblTempUsageDetail_20' ) end [2025-04-16 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924222', 'tblTempVendorCDR_20' ) start [2025-04-16 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924222', 'tblTempVendorCDR_20' ) end [2025-04-16 23:17:18] Production.INFO: ProcessCDR(1,14924222,1,1,2) [2025-04-16 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924222', 'tblTempUsageDetail_20' ) start [2025-04-16 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924222', 'tblTempUsageDetail_20' ) end [2025-04-16 23:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:17:23] Production.INFO: ==8997== Releasing lock... [2025-04-16 23:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:17:23] Production.INFO: 33 MB #Memory Used# [2025-04-16 23:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:18:06 [end_date_ymd] => 2025-04-16 23:18:06 [RateCDR] => 1 ) [2025-04-16 23: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-04-16 20:18:06' and `end` < '2025-04-16 23: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-04-16 23:18:18] Production.INFO: count ==754 [2025-04-16 23:18:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:18:06 - End Time 2025-04-16 23:18:06 [2025-04-16 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924227', 'tblTempUsageDetail_20' ) start [2025-04-16 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924227', 'tblTempUsageDetail_20' ) end [2025-04-16 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924227', 'tblTempVendorCDR_20' ) start [2025-04-16 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924227', 'tblTempVendorCDR_20' ) end [2025-04-16 23:18:19] Production.INFO: ProcessCDR(1,14924227,1,1,2) [2025-04-16 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924227', 'tblTempUsageDetail_20' ) start [2025-04-16 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924227', 'tblTempUsageDetail_20' ) end [2025-04-16 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:18:22] Production.INFO: ==9100== Releasing lock... [2025-04-16 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:18:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:19:05 [end_date_ymd] => 2025-04-16 23:19:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:19:05' and `end` < '2025-04-16 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-04-16 23:19:17] Production.INFO: count ==757 [2025-04-16 23:19:17] Production.ERROR: pbx CDR StartTime 2025-04-16 20:19:05 - End Time 2025-04-16 23:19:05 [2025-04-16 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924232', 'tblTempUsageDetail_20' ) start [2025-04-16 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924232', 'tblTempUsageDetail_20' ) end [2025-04-16 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924232', 'tblTempVendorCDR_20' ) start [2025-04-16 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924232', 'tblTempVendorCDR_20' ) end [2025-04-16 23:19:17] Production.INFO: ProcessCDR(1,14924232,1,1,2) [2025-04-16 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924232', 'tblTempUsageDetail_20' ) start [2025-04-16 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924232', 'tblTempUsageDetail_20' ) end [2025-04-16 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:19:21] Production.INFO: ==9201== Releasing lock... [2025-04-16 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:19:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:20:06 [end_date_ymd] => 2025-04-16 23:20:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:20:06' and `end` < '2025-04-16 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-04-16 23:20:19] Production.INFO: count ==756 [2025-04-16 23:20:19] Production.ERROR: pbx CDR StartTime 2025-04-16 20:20:06 - End Time 2025-04-16 23:20:06 [2025-04-16 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924238', 'tblTempUsageDetail_20' ) start [2025-04-16 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924238', 'tblTempUsageDetail_20' ) end [2025-04-16 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924238', 'tblTempVendorCDR_20' ) start [2025-04-16 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924238', 'tblTempVendorCDR_20' ) end [2025-04-16 23:20:19] Production.INFO: ProcessCDR(1,14924238,1,1,2) [2025-04-16 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924238', 'tblTempUsageDetail_20' ) start [2025-04-16 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924238', 'tblTempUsageDetail_20' ) end [2025-04-16 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:20:22] Production.INFO: ==9314== Releasing lock... [2025-04-16 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:20:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:21:05 [end_date_ymd] => 2025-04-16 23:21:05 [RateCDR] => 1 ) [2025-04-16 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 20:21:05' and `end` < '2025-04-16 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 23:21:18] Production.INFO: count ==728 [2025-04-16 23:21:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:21:05 - End Time 2025-04-16 23:21:05 [2025-04-16 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924243', 'tblTempUsageDetail_20' ) start [2025-04-16 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924243', 'tblTempUsageDetail_20' ) end [2025-04-16 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924243', 'tblTempVendorCDR_20' ) start [2025-04-16 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924243', 'tblTempVendorCDR_20' ) end [2025-04-16 23:21:18] Production.INFO: ProcessCDR(1,14924243,1,1,2) [2025-04-16 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924243', 'tblTempUsageDetail_20' ) start [2025-04-16 23:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924243', 'tblTempUsageDetail_20' ) end [2025-04-16 23:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:21:24] Production.INFO: ==9387== Releasing lock... [2025-04-16 23:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:21:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:22:05 [end_date_ymd] => 2025-04-16 23:22:05 [RateCDR] => 1 ) [2025-04-16 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 20:22:05' and `end` < '2025-04-16 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 23:22:18] Production.INFO: count ==726 [2025-04-16 23:22:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:22:05 - End Time 2025-04-16 23:22:05 [2025-04-16 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924248', 'tblTempUsageDetail_20' ) start [2025-04-16 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924248', 'tblTempUsageDetail_20' ) end [2025-04-16 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924248', 'tblTempVendorCDR_20' ) start [2025-04-16 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924248', 'tblTempVendorCDR_20' ) end [2025-04-16 23:22:18] Production.INFO: ProcessCDR(1,14924248,1,1,2) [2025-04-16 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924248', 'tblTempUsageDetail_20' ) start [2025-04-16 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924248', 'tblTempUsageDetail_20' ) end [2025-04-16 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:22:22] Production.INFO: ==9520== Releasing lock... [2025-04-16 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:22:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:23:05 [end_date_ymd] => 2025-04-16 23:23:05 [RateCDR] => 1 ) [2025-04-16 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 20:23:05' and `end` < '2025-04-16 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 23:23:18] Production.INFO: count ==726 [2025-04-16 23:23:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:23:05 - End Time 2025-04-16 23:23:05 [2025-04-16 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924253', 'tblTempUsageDetail_20' ) start [2025-04-16 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924253', 'tblTempUsageDetail_20' ) end [2025-04-16 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924253', 'tblTempVendorCDR_20' ) start [2025-04-16 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924253', 'tblTempVendorCDR_20' ) end [2025-04-16 23:23:18] Production.INFO: ProcessCDR(1,14924253,1,1,2) [2025-04-16 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924253', 'tblTempUsageDetail_20' ) start [2025-04-16 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924253', 'tblTempUsageDetail_20' ) end [2025-04-16 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:23:21] Production.INFO: ==9600== Releasing lock... [2025-04-16 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:23:21] Production.INFO: 33 MB #Memory Used# [2025-04-16 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:24:05 [end_date_ymd] => 2025-04-16 23:24:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:24:05' and `end` < '2025-04-16 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-04-16 23:24:18] Production.INFO: count ==724 [2025-04-16 23:24:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:24:05 - End Time 2025-04-16 23:24:05 [2025-04-16 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924258', 'tblTempUsageDetail_20' ) start [2025-04-16 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924258', 'tblTempUsageDetail_20' ) end [2025-04-16 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924258', 'tblTempVendorCDR_20' ) start [2025-04-16 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924258', 'tblTempVendorCDR_20' ) end [2025-04-16 23:24:18] Production.INFO: ProcessCDR(1,14924258,1,1,2) [2025-04-16 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924258', 'tblTempUsageDetail_20' ) start [2025-04-16 23:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924258', 'tblTempUsageDetail_20' ) end [2025-04-16 23:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:24:23] Production.INFO: ==9695== Releasing lock... [2025-04-16 23:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:24:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:25:05 [end_date_ymd] => 2025-04-16 23:25:05 [RateCDR] => 1 ) [2025-04-16 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 20:25:05' and `end` < '2025-04-16 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 23:25:18] Production.INFO: count ==724 [2025-04-16 23:25:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:25:05 - End Time 2025-04-16 23:25:05 [2025-04-16 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924263', 'tblTempUsageDetail_20' ) start [2025-04-16 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924263', 'tblTempUsageDetail_20' ) end [2025-04-16 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924263', 'tblTempVendorCDR_20' ) start [2025-04-16 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924263', 'tblTempVendorCDR_20' ) end [2025-04-16 23:25:18] Production.INFO: ProcessCDR(1,14924263,1,1,2) [2025-04-16 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924263', 'tblTempUsageDetail_20' ) start [2025-04-16 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924263', 'tblTempUsageDetail_20' ) end [2025-04-16 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:25:21] Production.INFO: ==9807== Releasing lock... [2025-04-16 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:25:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:26:05 [end_date_ymd] => 2025-04-16 23:26:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:26:05' and `end` < '2025-04-16 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-04-16 23:26:18] Production.INFO: count ==725 [2025-04-16 23:26:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:26:05 - End Time 2025-04-16 23:26:05 [2025-04-16 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924268', 'tblTempUsageDetail_20' ) start [2025-04-16 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924268', 'tblTempUsageDetail_20' ) end [2025-04-16 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924268', 'tblTempVendorCDR_20' ) start [2025-04-16 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924268', 'tblTempVendorCDR_20' ) end [2025-04-16 23:26:18] Production.INFO: ProcessCDR(1,14924268,1,1,2) [2025-04-16 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924268', 'tblTempUsageDetail_20' ) start [2025-04-16 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924268', 'tblTempUsageDetail_20' ) end [2025-04-16 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:26:21] Production.INFO: ==9886== Releasing lock... [2025-04-16 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:26:21] Production.INFO: 33 MB #Memory Used# [2025-04-16 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:27:05 [end_date_ymd] => 2025-04-16 23:27:05 [RateCDR] => 1 ) [2025-04-16 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 20:27:05' and `end` < '2025-04-16 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 23:27:17] Production.INFO: count ==726 [2025-04-16 23:27:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:27:05 - End Time 2025-04-16 23:27:05 [2025-04-16 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924273', 'tblTempUsageDetail_20' ) start [2025-04-16 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924273', 'tblTempUsageDetail_20' ) end [2025-04-16 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924273', 'tblTempVendorCDR_20' ) start [2025-04-16 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924273', 'tblTempVendorCDR_20' ) end [2025-04-16 23:27:18] Production.INFO: ProcessCDR(1,14924273,1,1,2) [2025-04-16 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924273', 'tblTempUsageDetail_20' ) start [2025-04-16 23:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924273', 'tblTempUsageDetail_20' ) end [2025-04-16 23:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:27:23] Production.INFO: ==9958== Releasing lock... [2025-04-16 23:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:27:23] Production.INFO: 33 MB #Memory Used# [2025-04-16 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:28:05 [end_date_ymd] => 2025-04-16 23:28:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:28:05' and `end` < '2025-04-16 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-04-16 23:28:18] Production.INFO: count ==725 [2025-04-16 23:28:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:28:05 - End Time 2025-04-16 23:28:05 [2025-04-16 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924278', 'tblTempUsageDetail_20' ) start [2025-04-16 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924278', 'tblTempUsageDetail_20' ) end [2025-04-16 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924278', 'tblTempVendorCDR_20' ) start [2025-04-16 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924278', 'tblTempVendorCDR_20' ) end [2025-04-16 23:28:18] Production.INFO: ProcessCDR(1,14924278,1,1,2) [2025-04-16 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924278', 'tblTempUsageDetail_20' ) start [2025-04-16 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924278', 'tblTempUsageDetail_20' ) end [2025-04-16 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:28:21] Production.INFO: ==10037== Releasing lock... [2025-04-16 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:28:21] Production.INFO: 33 MB #Memory Used# [2025-04-16 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:29:05 [end_date_ymd] => 2025-04-16 23:29:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:29:05' and `end` < '2025-04-16 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-04-16 23:29:18] Production.INFO: count ==726 [2025-04-16 23:29:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:29:05 - End Time 2025-04-16 23:29:05 [2025-04-16 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924283', 'tblTempUsageDetail_20' ) start [2025-04-16 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924283', 'tblTempUsageDetail_20' ) end [2025-04-16 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924283', 'tblTempVendorCDR_20' ) start [2025-04-16 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924283', 'tblTempVendorCDR_20' ) end [2025-04-16 23:29:18] Production.INFO: ProcessCDR(1,14924283,1,1,2) [2025-04-16 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924283', 'tblTempUsageDetail_20' ) start [2025-04-16 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924283', 'tblTempUsageDetail_20' ) end [2025-04-16 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:29:22] Production.INFO: ==10130== Releasing lock... [2025-04-16 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:29:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:30:06 [end_date_ymd] => 2025-04-16 23:30:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:30:06' and `end` < '2025-04-16 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-04-16 23:30:18] Production.INFO: count ==728 [2025-04-16 23:30:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:30:06 - End Time 2025-04-16 23:30:06 [2025-04-16 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924289', 'tblTempUsageDetail_20' ) start [2025-04-16 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924289', 'tblTempUsageDetail_20' ) end [2025-04-16 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924289', 'tblTempVendorCDR_20' ) start [2025-04-16 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924289', 'tblTempVendorCDR_20' ) end [2025-04-16 23:30:18] Production.INFO: ProcessCDR(1,14924289,1,1,2) [2025-04-16 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924289', 'tblTempUsageDetail_20' ) start [2025-04-16 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924289', 'tblTempUsageDetail_20' ) end [2025-04-16 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:30:22] Production.INFO: ==10213== Releasing lock... [2025-04-16 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:30:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:31:04 [end_date_ymd] => 2025-04-16 23:31:04 [RateCDR] => 1 ) [2025-04-16 23:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 20:31:04' and `end` < '2025-04-16 23:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 23:31:17] Production.INFO: count ==724 [2025-04-16 23:31:17] Production.ERROR: pbx CDR StartTime 2025-04-16 20:31:04 - End Time 2025-04-16 23:31:04 [2025-04-16 23:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924294', 'tblTempUsageDetail_20' ) start [2025-04-16 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924294', 'tblTempUsageDetail_20' ) end [2025-04-16 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924294', 'tblTempVendorCDR_20' ) start [2025-04-16 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924294', 'tblTempVendorCDR_20' ) end [2025-04-16 23:31:17] Production.INFO: ProcessCDR(1,14924294,1,1,2) [2025-04-16 23:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924294', 'tblTempUsageDetail_20' ) start [2025-04-16 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924294', 'tblTempUsageDetail_20' ) end [2025-04-16 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:31:21] Production.INFO: ==10286== Releasing lock... [2025-04-16 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:31:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:32:05 [end_date_ymd] => 2025-04-16 23:32:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:32:05' and `end` < '2025-04-16 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-04-16 23:32:18] Production.INFO: count ==722 [2025-04-16 23:32:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:32:05 - End Time 2025-04-16 23:32:05 [2025-04-16 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924299', 'tblTempUsageDetail_20' ) start [2025-04-16 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924299', 'tblTempUsageDetail_20' ) end [2025-04-16 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924299', 'tblTempVendorCDR_20' ) start [2025-04-16 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924299', 'tblTempVendorCDR_20' ) end [2025-04-16 23:32:18] Production.INFO: ProcessCDR(1,14924299,1,1,2) [2025-04-16 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924299', 'tblTempUsageDetail_20' ) start [2025-04-16 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924299', 'tblTempUsageDetail_20' ) end [2025-04-16 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:32:22] Production.INFO: ==10361== Releasing lock... [2025-04-16 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:32:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:33:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:33:07 [end_date_ymd] => 2025-04-16 23:33:07 [RateCDR] => 1 ) [2025-04-16 23:33: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-04-16 20:33:07' and `end` < '2025-04-16 23:33: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-04-16 23:33:19] Production.INFO: count ==721 [2025-04-16 23:33:19] Production.ERROR: pbx CDR StartTime 2025-04-16 20:33:07 - End Time 2025-04-16 23:33:07 [2025-04-16 23:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924304', 'tblTempUsageDetail_20' ) start [2025-04-16 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924304', 'tblTempUsageDetail_20' ) end [2025-04-16 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924304', 'tblTempVendorCDR_20' ) start [2025-04-16 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924304', 'tblTempVendorCDR_20' ) end [2025-04-16 23:33:19] Production.INFO: ProcessCDR(1,14924304,1,1,2) [2025-04-16 23:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924304', 'tblTempUsageDetail_20' ) start [2025-04-16 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924304', 'tblTempUsageDetail_20' ) end [2025-04-16 23:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:33:23] Production.INFO: ==10498== Releasing lock... [2025-04-16 23:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:33:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:34:04 [end_date_ymd] => 2025-04-16 23:34:04 [RateCDR] => 1 ) [2025-04-16 23: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-04-16 20:34:04' and `end` < '2025-04-16 23: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-04-16 23:34:17] Production.INFO: count ==721 [2025-04-16 23:34:17] Production.ERROR: pbx CDR StartTime 2025-04-16 20:34:04 - End Time 2025-04-16 23:34:04 [2025-04-16 23:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924309', 'tblTempUsageDetail_20' ) start [2025-04-16 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924309', 'tblTempUsageDetail_20' ) end [2025-04-16 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924309', 'tblTempVendorCDR_20' ) start [2025-04-16 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924309', 'tblTempVendorCDR_20' ) end [2025-04-16 23:34:17] Production.INFO: ProcessCDR(1,14924309,1,1,2) [2025-04-16 23:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924309', 'tblTempUsageDetail_20' ) start [2025-04-16 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924309', 'tblTempUsageDetail_20' ) end [2025-04-16 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:34:21] Production.INFO: ==10569== Releasing lock... [2025-04-16 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:34:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:35:05 [end_date_ymd] => 2025-04-16 23:35:05 [RateCDR] => 1 ) [2025-04-16 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 20:35:05' and `end` < '2025-04-16 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 23:35:18] Production.INFO: count ==723 [2025-04-16 23:35:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:35:05 - End Time 2025-04-16 23:35:05 [2025-04-16 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924314', 'tblTempUsageDetail_20' ) start [2025-04-16 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924314', 'tblTempUsageDetail_20' ) end [2025-04-16 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924314', 'tblTempVendorCDR_20' ) start [2025-04-16 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924314', 'tblTempVendorCDR_20' ) end [2025-04-16 23:35:18] Production.INFO: ProcessCDR(1,14924314,1,1,2) [2025-04-16 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924314', 'tblTempUsageDetail_20' ) start [2025-04-16 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924314', 'tblTempUsageDetail_20' ) end [2025-04-16 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:35:21] Production.INFO: ==10677== Releasing lock... [2025-04-16 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:35:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:36:06 [end_date_ymd] => 2025-04-16 23:36:06 [RateCDR] => 1 ) [2025-04-16 23:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 20:36:06' and `end` < '2025-04-16 23:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 23:36:19] Production.INFO: count ==724 [2025-04-16 23:36:19] Production.ERROR: pbx CDR StartTime 2025-04-16 20:36:06 - End Time 2025-04-16 23:36:06 [2025-04-16 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924319', 'tblTempUsageDetail_20' ) start [2025-04-16 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924319', 'tblTempUsageDetail_20' ) end [2025-04-16 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924319', 'tblTempVendorCDR_20' ) start [2025-04-16 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924319', 'tblTempVendorCDR_20' ) end [2025-04-16 23:36:19] Production.INFO: ProcessCDR(1,14924319,1,1,2) [2025-04-16 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924319', 'tblTempUsageDetail_20' ) start [2025-04-16 23:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924319', 'tblTempUsageDetail_20' ) end [2025-04-16 23:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:36:24] Production.INFO: ==10753== Releasing lock... [2025-04-16 23:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:36:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:37:05 [end_date_ymd] => 2025-04-16 23:37:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:37:05' and `end` < '2025-04-16 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-04-16 23:37:18] Production.INFO: count ==725 [2025-04-16 23:37:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:37:05 - End Time 2025-04-16 23:37:05 [2025-04-16 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924324', 'tblTempUsageDetail_20' ) start [2025-04-16 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924324', 'tblTempUsageDetail_20' ) end [2025-04-16 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924324', 'tblTempVendorCDR_20' ) start [2025-04-16 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924324', 'tblTempVendorCDR_20' ) end [2025-04-16 23:37:18] Production.INFO: ProcessCDR(1,14924324,1,1,2) [2025-04-16 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924324', 'tblTempUsageDetail_20' ) start [2025-04-16 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924324', 'tblTempUsageDetail_20' ) end [2025-04-16 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:37:21] Production.INFO: ==10829== Releasing lock... [2025-04-16 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:37:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:38:06 [end_date_ymd] => 2025-04-16 23:38:06 [RateCDR] => 1 ) [2025-04-16 23:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 20:38:06' and `end` < '2025-04-16 23:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 23:38:19] Production.INFO: count ==727 [2025-04-16 23:38:19] Production.ERROR: pbx CDR StartTime 2025-04-16 20:38:06 - End Time 2025-04-16 23:38:06 [2025-04-16 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924329', 'tblTempUsageDetail_20' ) start [2025-04-16 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924329', 'tblTempUsageDetail_20' ) end [2025-04-16 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924329', 'tblTempVendorCDR_20' ) start [2025-04-16 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924329', 'tblTempVendorCDR_20' ) end [2025-04-16 23:38:19] Production.INFO: ProcessCDR(1,14924329,1,1,2) [2025-04-16 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924329', 'tblTempUsageDetail_20' ) start [2025-04-16 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924329', 'tblTempUsageDetail_20' ) end [2025-04-16 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:38:22] Production.INFO: ==10920== Releasing lock... [2025-04-16 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:38:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:39:05 [end_date_ymd] => 2025-04-16 23:39:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:39:05' and `end` < '2025-04-16 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-04-16 23:39:17] Production.INFO: count ==727 [2025-04-16 23:39:17] Production.ERROR: pbx CDR StartTime 2025-04-16 20:39:05 - End Time 2025-04-16 23:39:05 [2025-04-16 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924334', 'tblTempUsageDetail_20' ) start [2025-04-16 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924334', 'tblTempUsageDetail_20' ) end [2025-04-16 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924334', 'tblTempVendorCDR_20' ) start [2025-04-16 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924334', 'tblTempVendorCDR_20' ) end [2025-04-16 23:39:17] Production.INFO: ProcessCDR(1,14924334,1,1,2) [2025-04-16 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924334', 'tblTempUsageDetail_20' ) start [2025-04-16 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924334', 'tblTempUsageDetail_20' ) end [2025-04-16 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:39:21] Production.INFO: ==10993== Releasing lock... [2025-04-16 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:39:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:40:06 [end_date_ymd] => 2025-04-16 23:40:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:40:06' and `end` < '2025-04-16 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-04-16 23:40:18] Production.INFO: count ==724 [2025-04-16 23:40:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:40:06 - End Time 2025-04-16 23:40:06 [2025-04-16 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924340', 'tblTempUsageDetail_20' ) start [2025-04-16 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924340', 'tblTempUsageDetail_20' ) end [2025-04-16 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924340', 'tblTempVendorCDR_20' ) start [2025-04-16 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924340', 'tblTempVendorCDR_20' ) end [2025-04-16 23:40:19] Production.INFO: ProcessCDR(1,14924340,1,1,2) [2025-04-16 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924340', 'tblTempUsageDetail_20' ) start [2025-04-16 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924340', 'tblTempUsageDetail_20' ) end [2025-04-16 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:40:23] Production.INFO: ==11071== Releasing lock... [2025-04-16 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:40:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:41:05 [end_date_ymd] => 2025-04-16 23:41:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:41:05' and `end` < '2025-04-16 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-04-16 23:41:17] Production.INFO: count ==701 [2025-04-16 23:41:17] Production.ERROR: pbx CDR StartTime 2025-04-16 20:41:05 - End Time 2025-04-16 23:41:05 [2025-04-16 23:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924345', 'tblTempUsageDetail_20' ) start [2025-04-16 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924345', 'tblTempUsageDetail_20' ) end [2025-04-16 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924345', 'tblTempVendorCDR_20' ) start [2025-04-16 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924345', 'tblTempVendorCDR_20' ) end [2025-04-16 23:41:17] Production.INFO: ProcessCDR(1,14924345,1,1,2) [2025-04-16 23:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924345', 'tblTempUsageDetail_20' ) start [2025-04-16 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924345', 'tblTempUsageDetail_20' ) end [2025-04-16 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:41:21] Production.INFO: ==11191== Releasing lock... [2025-04-16 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:41:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:42:05 [end_date_ymd] => 2025-04-16 23:42:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:42:05' and `end` < '2025-04-16 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-04-16 23:42:18] Production.INFO: count ==704 [2025-04-16 23:42:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:42:05 - End Time 2025-04-16 23:42:05 [2025-04-16 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924350', 'tblTempUsageDetail_20' ) start [2025-04-16 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924350', 'tblTempUsageDetail_20' ) end [2025-04-16 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924350', 'tblTempVendorCDR_20' ) start [2025-04-16 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924350', 'tblTempVendorCDR_20' ) end [2025-04-16 23:42:18] Production.INFO: ProcessCDR(1,14924350,1,1,2) [2025-04-16 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924350', 'tblTempUsageDetail_20' ) start [2025-04-16 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924350', 'tblTempUsageDetail_20' ) end [2025-04-16 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:42:21] Production.INFO: ==11268== Releasing lock... [2025-04-16 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:42:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:43:05 [end_date_ymd] => 2025-04-16 23:43:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:43:05' and `end` < '2025-04-16 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-04-16 23:43:18] Production.INFO: count ==705 [2025-04-16 23:43:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:43:05 - End Time 2025-04-16 23:43:05 [2025-04-16 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924355', 'tblTempUsageDetail_20' ) start [2025-04-16 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924355', 'tblTempUsageDetail_20' ) end [2025-04-16 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924355', 'tblTempVendorCDR_20' ) start [2025-04-16 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924355', 'tblTempVendorCDR_20' ) end [2025-04-16 23:43:18] Production.INFO: ProcessCDR(1,14924355,1,1,2) [2025-04-16 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924355', 'tblTempUsageDetail_20' ) start [2025-04-16 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924355', 'tblTempUsageDetail_20' ) end [2025-04-16 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:43:21] Production.INFO: ==11349== Releasing lock... [2025-04-16 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:43:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:44:05 [end_date_ymd] => 2025-04-16 23:44:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:44:05' and `end` < '2025-04-16 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-04-16 23:44:18] Production.INFO: count ==706 [2025-04-16 23:44:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:44:05 - End Time 2025-04-16 23:44:05 [2025-04-16 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924360', 'tblTempUsageDetail_20' ) start [2025-04-16 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924360', 'tblTempUsageDetail_20' ) end [2025-04-16 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924360', 'tblTempVendorCDR_20' ) start [2025-04-16 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924360', 'tblTempVendorCDR_20' ) end [2025-04-16 23:44:18] Production.INFO: ProcessCDR(1,14924360,1,1,2) [2025-04-16 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924360', 'tblTempUsageDetail_20' ) start [2025-04-16 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924360', 'tblTempUsageDetail_20' ) end [2025-04-16 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:44:21] Production.INFO: ==11420== Releasing lock... [2025-04-16 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:44:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:45:05 [end_date_ymd] => 2025-04-16 23:45:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:45:05' and `end` < '2025-04-16 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-04-16 23:45:18] Production.INFO: count ==705 [2025-04-16 23:45:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:45:05 - End Time 2025-04-16 23:45:05 [2025-04-16 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924365', 'tblTempUsageDetail_20' ) start [2025-04-16 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924365', 'tblTempUsageDetail_20' ) end [2025-04-16 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924365', 'tblTempVendorCDR_20' ) start [2025-04-16 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924365', 'tblTempVendorCDR_20' ) end [2025-04-16 23:45:18] Production.INFO: ProcessCDR(1,14924365,1,1,2) [2025-04-16 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924365', 'tblTempUsageDetail_20' ) start [2025-04-16 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924365', 'tblTempUsageDetail_20' ) end [2025-04-16 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:45:21] Production.INFO: ==11497== Releasing lock... [2025-04-16 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:45:21] Production.INFO: 33 MB #Memory Used# [2025-04-16 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:46:05 [end_date_ymd] => 2025-04-16 23:46:05 [RateCDR] => 1 ) [2025-04-16 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 20:46:05' and `end` < '2025-04-16 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 23:46:18] Production.INFO: count ==705 [2025-04-16 23:46:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:46:05 - End Time 2025-04-16 23:46:05 [2025-04-16 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924370', 'tblTempUsageDetail_20' ) start [2025-04-16 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924370', 'tblTempUsageDetail_20' ) end [2025-04-16 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924370', 'tblTempVendorCDR_20' ) start [2025-04-16 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924370', 'tblTempVendorCDR_20' ) end [2025-04-16 23:46:18] Production.INFO: ProcessCDR(1,14924370,1,1,2) [2025-04-16 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924370', 'tblTempUsageDetail_20' ) start [2025-04-16 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924370', 'tblTempUsageDetail_20' ) end [2025-04-16 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:46:21] Production.INFO: ==11639== Releasing lock... [2025-04-16 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:46:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:47:06 [end_date_ymd] => 2025-04-16 23:47:06 [RateCDR] => 1 ) [2025-04-16 23: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-04-16 20:47:06' and `end` < '2025-04-16 23: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-04-16 23:47:18] Production.INFO: count ==707 [2025-04-16 23:47:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:47:06 - End Time 2025-04-16 23:47:06 [2025-04-16 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924375', 'tblTempUsageDetail_20' ) start [2025-04-16 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924375', 'tblTempUsageDetail_20' ) end [2025-04-16 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924375', 'tblTempVendorCDR_20' ) start [2025-04-16 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924375', 'tblTempVendorCDR_20' ) end [2025-04-16 23:47:18] Production.INFO: ProcessCDR(1,14924375,1,1,2) [2025-04-16 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924375', 'tblTempUsageDetail_20' ) start [2025-04-16 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924375', 'tblTempUsageDetail_20' ) end [2025-04-16 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:47:22] Production.INFO: ==11715== Releasing lock... [2025-04-16 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:47:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:48:05 [end_date_ymd] => 2025-04-16 23:48:05 [RateCDR] => 1 ) [2025-04-16 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 20:48:05' and `end` < '2025-04-16 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 23:48:18] Production.INFO: count ==708 [2025-04-16 23:48:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:48:05 - End Time 2025-04-16 23:48:05 [2025-04-16 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924380', 'tblTempUsageDetail_20' ) start [2025-04-16 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924380', 'tblTempUsageDetail_20' ) end [2025-04-16 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924380', 'tblTempVendorCDR_20' ) start [2025-04-16 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924380', 'tblTempVendorCDR_20' ) end [2025-04-16 23:48:18] Production.INFO: ProcessCDR(1,14924380,1,1,2) [2025-04-16 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924380', 'tblTempUsageDetail_20' ) start [2025-04-16 23:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924380', 'tblTempUsageDetail_20' ) end [2025-04-16 23:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:48:24] Production.INFO: ==11806== Releasing lock... [2025-04-16 23:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:48:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:49:05 [end_date_ymd] => 2025-04-16 23:49:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:49:05' and `end` < '2025-04-16 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-04-16 23:49:18] Production.INFO: count ==708 [2025-04-16 23:49:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:49:05 - End Time 2025-04-16 23:49:05 [2025-04-16 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924385', 'tblTempUsageDetail_20' ) start [2025-04-16 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924385', 'tblTempUsageDetail_20' ) end [2025-04-16 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924385', 'tblTempVendorCDR_20' ) start [2025-04-16 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924385', 'tblTempVendorCDR_20' ) end [2025-04-16 23:49:18] Production.INFO: ProcessCDR(1,14924385,1,1,2) [2025-04-16 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924385', 'tblTempUsageDetail_20' ) start [2025-04-16 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924385', 'tblTempUsageDetail_20' ) end [2025-04-16 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:49:21] Production.INFO: ==11908== Releasing lock... [2025-04-16 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:49:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:50:06 [end_date_ymd] => 2025-04-16 23:50:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:50:06' and `end` < '2025-04-16 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-04-16 23:50:18] Production.INFO: count ==708 [2025-04-16 23:50:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:50:06 - End Time 2025-04-16 23:50:06 [2025-04-16 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924391', 'tblTempUsageDetail_20' ) start [2025-04-16 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924391', 'tblTempUsageDetail_20' ) end [2025-04-16 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924391', 'tblTempVendorCDR_20' ) start [2025-04-16 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924391', 'tblTempVendorCDR_20' ) end [2025-04-16 23:50:18] Production.INFO: ProcessCDR(1,14924391,1,1,2) [2025-04-16 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924391', 'tblTempUsageDetail_20' ) start [2025-04-16 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924391', 'tblTempUsageDetail_20' ) end [2025-04-16 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:50:22] Production.INFO: ==11988== Releasing lock... [2025-04-16 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:50:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:51:06 [end_date_ymd] => 2025-04-16 23:51:06 [RateCDR] => 1 ) [2025-04-16 23:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 20:51:06' and `end` < '2025-04-16 23:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 23:51:18] Production.INFO: count ==698 [2025-04-16 23:51:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:51:06 - End Time 2025-04-16 23:51:06 [2025-04-16 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924396', 'tblTempUsageDetail_20' ) start [2025-04-16 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924396', 'tblTempUsageDetail_20' ) end [2025-04-16 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924396', 'tblTempVendorCDR_20' ) start [2025-04-16 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924396', 'tblTempVendorCDR_20' ) end [2025-04-16 23:51:18] Production.INFO: ProcessCDR(1,14924396,1,1,2) [2025-04-16 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924396', 'tblTempUsageDetail_20' ) start [2025-04-16 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924396', 'tblTempUsageDetail_20' ) end [2025-04-16 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:51:22] Production.INFO: ==12063== Releasing lock... [2025-04-16 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:51:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:52:05 [end_date_ymd] => 2025-04-16 23:52:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:52:05' and `end` < '2025-04-16 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-04-16 23:52:17] Production.INFO: count ==698 [2025-04-16 23:52:17] Production.ERROR: pbx CDR StartTime 2025-04-16 20:52:05 - End Time 2025-04-16 23:52:05 [2025-04-16 23:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924401', 'tblTempUsageDetail_20' ) start [2025-04-16 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924401', 'tblTempUsageDetail_20' ) end [2025-04-16 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924401', 'tblTempVendorCDR_20' ) start [2025-04-16 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924401', 'tblTempVendorCDR_20' ) end [2025-04-16 23:52:17] Production.INFO: ProcessCDR(1,14924401,1,1,2) [2025-04-16 23:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924401', 'tblTempUsageDetail_20' ) start [2025-04-16 23:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924401', 'tblTempUsageDetail_20' ) end [2025-04-16 23:52:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:52:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:52:20] Production.INFO: ==12137== Releasing lock... [2025-04-16 23:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:52:20] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:53:05 [end_date_ymd] => 2025-04-16 23:53:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:53:05' and `end` < '2025-04-16 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 23:53:18] Production.INFO: count ==698 [2025-04-16 23:53:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:53:05 - End Time 2025-04-16 23:53:05 [2025-04-16 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924406', 'tblTempUsageDetail_20' ) start [2025-04-16 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924406', 'tblTempUsageDetail_20' ) end [2025-04-16 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924406', 'tblTempVendorCDR_20' ) start [2025-04-16 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924406', 'tblTempVendorCDR_20' ) end [2025-04-16 23:53:18] Production.INFO: ProcessCDR(1,14924406,1,1,2) [2025-04-16 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924406', 'tblTempUsageDetail_20' ) start [2025-04-16 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924406', 'tblTempUsageDetail_20' ) end [2025-04-16 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:53:21] Production.INFO: ==12212== Releasing lock... [2025-04-16 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:53:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:54:04 [end_date_ymd] => 2025-04-16 23:54:04 [RateCDR] => 1 ) [2025-04-16 23: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-04-16 20:54:04' and `end` < '2025-04-16 23: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-04-16 23:54:17] Production.INFO: count ==698 [2025-04-16 23:54:17] Production.ERROR: pbx CDR StartTime 2025-04-16 20:54:04 - End Time 2025-04-16 23:54:04 [2025-04-16 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924411', 'tblTempUsageDetail_20' ) start [2025-04-16 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924411', 'tblTempUsageDetail_20' ) end [2025-04-16 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924411', 'tblTempVendorCDR_20' ) start [2025-04-16 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924411', 'tblTempVendorCDR_20' ) end [2025-04-16 23:54:17] Production.INFO: ProcessCDR(1,14924411,1,1,2) [2025-04-16 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924411', 'tblTempUsageDetail_20' ) start [2025-04-16 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924411', 'tblTempUsageDetail_20' ) end [2025-04-16 23:54:20] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:54:20] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:54:20] Production.INFO: ==12284== Releasing lock... [2025-04-16 23:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:54:20] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:55:05 [end_date_ymd] => 2025-04-16 23:55:05 [RateCDR] => 1 ) [2025-04-16 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 20:55:05' and `end` < '2025-04-16 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 23:55:18] Production.INFO: count ==698 [2025-04-16 23:55:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:55:05 - End Time 2025-04-16 23:55:05 [2025-04-16 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924416', 'tblTempUsageDetail_20' ) start [2025-04-16 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924416', 'tblTempUsageDetail_20' ) end [2025-04-16 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924416', 'tblTempVendorCDR_20' ) start [2025-04-16 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924416', 'tblTempVendorCDR_20' ) end [2025-04-16 23:55:18] Production.INFO: ProcessCDR(1,14924416,1,1,2) [2025-04-16 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924416', 'tblTempUsageDetail_20' ) start [2025-04-16 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924416', 'tblTempUsageDetail_20' ) end [2025-04-16 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:55:21] Production.INFO: ==12365== Releasing lock... [2025-04-16 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:55:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:56:06 [end_date_ymd] => 2025-04-16 23:56:06 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:56:06' and `end` < '2025-04-16 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-04-16 23:56:18] Production.INFO: count ==697 [2025-04-16 23:56:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:56:06 - End Time 2025-04-16 23:56:06 [2025-04-16 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924421', 'tblTempUsageDetail_20' ) start [2025-04-16 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924421', 'tblTempUsageDetail_20' ) end [2025-04-16 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924421', 'tblTempVendorCDR_20' ) start [2025-04-16 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924421', 'tblTempVendorCDR_20' ) end [2025-04-16 23:56:18] Production.INFO: ProcessCDR(1,14924421,1,1,2) [2025-04-16 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924421', 'tblTempUsageDetail_20' ) start [2025-04-16 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924421', 'tblTempUsageDetail_20' ) end [2025-04-16 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:56:22] Production.INFO: ==12482== Releasing lock... [2025-04-16 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:56:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-16 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:57:05 [end_date_ymd] => 2025-04-16 23:57:05 [RateCDR] => 1 ) [2025-04-16 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 20:57:05' and `end` < '2025-04-16 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 23:57:18] Production.INFO: count ==698 [2025-04-16 23:57:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:57:05 - End Time 2025-04-16 23:57:05 [2025-04-16 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924426', 'tblTempUsageDetail_20' ) start [2025-04-16 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924426', 'tblTempUsageDetail_20' ) end [2025-04-16 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924426', 'tblTempVendorCDR_20' ) start [2025-04-16 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924426', 'tblTempVendorCDR_20' ) end [2025-04-16 23:57:18] Production.INFO: ProcessCDR(1,14924426,1,1,2) [2025-04-16 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924426', 'tblTempUsageDetail_20' ) start [2025-04-16 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924426', 'tblTempUsageDetail_20' ) end [2025-04-16 23:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:57:23] Production.INFO: ==12561== Releasing lock... [2025-04-16 23:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:57:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:58:05 [end_date_ymd] => 2025-04-16 23:58:05 [RateCDR] => 1 ) [2025-04-16 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-04-16 20:58:05' and `end` < '2025-04-16 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-04-16 23:58:18] Production.INFO: count ==700 [2025-04-16 23:58:18] Production.ERROR: pbx CDR StartTime 2025-04-16 20:58:05 - End Time 2025-04-16 23:58:05 [2025-04-16 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924431', 'tblTempUsageDetail_20' ) start [2025-04-16 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924431', 'tblTempUsageDetail_20' ) end [2025-04-16 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924431', 'tblTempVendorCDR_20' ) start [2025-04-16 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924431', 'tblTempVendorCDR_20' ) end [2025-04-16 23:58:18] Production.INFO: ProcessCDR(1,14924431,1,1,2) [2025-04-16 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924431', 'tblTempUsageDetail_20' ) start [2025-04-16 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924431', 'tblTempUsageDetail_20' ) end [2025-04-16 23:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:58:23] Production.INFO: ==12635== Releasing lock... [2025-04-16 23:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:58:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-16 23:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 20:59:04 [end_date_ymd] => 2025-04-16 23:59:04 [RateCDR] => 1 ) [2025-04-16 23:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 20:59:04' and `end` < '2025-04-16 23:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-16 23:59:17] Production.INFO: count ==698 [2025-04-16 23:59:17] Production.ERROR: pbx CDR StartTime 2025-04-16 20:59:04 - End Time 2025-04-16 23:59:04 [2025-04-16 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-16 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924436', 'tblTempUsageDetail_20' ) start [2025-04-16 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924436', 'tblTempUsageDetail_20' ) end [2025-04-16 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924436', 'tblTempVendorCDR_20' ) start [2025-04-16 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924436', 'tblTempVendorCDR_20' ) end [2025-04-16 23:59:17] Production.INFO: ProcessCDR(1,14924436,1,1,2) [2025-04-16 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-16 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-16 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924436', 'tblTempUsageDetail_20' ) start [2025-04-16 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924436', 'tblTempUsageDetail_20' ) end [2025-04-16 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-16 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-16 23:59:21] Production.INFO: ==12706== Releasing lock... [2025-04-16 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-16 23:59:21] Production.INFO: 32.75 MB #Memory Used#