[2025-04-01 00:00:05] Production.INFO: next invoice date [2025-04-01 00:00:05] Production.INFO: 2025-05-01 [2025-04-01 00:00:05] Production.INFO: getdaysdiff [2025-04-01 00:00:05] Production.INFO: +30 [2025-04-01 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (105,11,1,30,30,'RMScheduler',2025-04-01 00:00:05,1,0,,,0) [2025-04-01 00:00:05] Production.INFO: next invoice date [2025-04-01 00:00:05] Production.INFO: 2025-05-01 [2025-04-01 00:00:05] Production.INFO: getdaysdiff [2025-04-01 00:00:05] Production.INFO: +30 [2025-04-01 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (3,9,2,30,30,'RMScheduler',2025-04-01 00:00:05,1,0,,,0) [2025-04-01 00:00:05] Production.INFO: next invoice date [2025-04-01 00:00:05] Production.INFO: 2025-05-01 [2025-04-01 00:00:05] Production.INFO: getdaysdiff [2025-04-01 00:00:05] Production.INFO: +30 [2025-04-01 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (113,11,1,30,30,'RMScheduler',2025-04-01 00:00:05,1,0,,,0) [2025-04-01 00:00:06] Production.INFO: next invoice date [2025-04-01 00:00:06] Production.INFO: 2025-05-01 [2025-04-01 00:00:06] Production.INFO: getdaysdiff [2025-04-01 00:00:06] Production.INFO: +30 [2025-04-01 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (114,11,1,30,30,'RMScheduler',2025-04-01 00:00:05,1,0,,,0) [2025-04-01 00:00:06] Production.INFO: next invoice date [2025-04-01 00:00:06] Production.INFO: 2025-05-01 [2025-04-01 00:00:06] Production.INFO: getdaysdiff [2025-04-01 00:00:06] Production.INFO: +30 [2025-04-01 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (3,16,1,30,30,'RMScheduler',2025-04-01 00:00:05,1,0,,,0) [2025-04-01 00:00:06] Production.INFO: next invoice date [2025-04-01 00:00:06] Production.INFO: 2025-05-01 [2025-04-01 00:00:06] Production.INFO: getdaysdiff [2025-04-01 00:00:06] Production.INFO: +30 [2025-04-01 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (147,11,1,30,30,'RMScheduler',2025-04-01 00:00:05,1,0,,,0) [2025-04-01 00:00:06] Production.INFO: next invoice date [2025-04-01 00:00:06] Production.INFO: 2025-05-01 [2025-04-01 00:00:06] Production.INFO: getdaysdiff [2025-04-01 00:00:06] Production.INFO: +30 [2025-04-01 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (148,11,1,30,30,'RMScheduler',2025-04-01 00:00:05,1,0,,,0) [2025-04-01 00:00:06] Production.INFO: next invoice date [2025-04-01 00:00:06] Production.INFO: 2025-05-01 [2025-04-01 00:00:06] Production.INFO: getdaysdiff [2025-04-01 00:00:06] Production.INFO: +30 [2025-04-01 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (66,11,1,30,30,'RMScheduler',2025-04-01 00:00:05,1,0,,,0) [2025-04-01 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:00:07 [end_date_ymd] => 2025-04-01 00:00:07 [RateCDR] => 1 ) [2025-04-01 00:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 21:00:07' and `end` < '2025-04-01 00:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 00:00:20] Production.INFO: count ==1011 [2025-04-01 00:00:20] Production.ERROR: pbx CDR StartTime 2025-03-31 21:00:07 - End Time 2025-04-01 00:00:07 [2025-04-01 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807027', 'tblTempUsageDetail_20' ) start [2025-04-01 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807027', 'tblTempUsageDetail_20' ) end [2025-04-01 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807027', 'tblTempVendorCDR_20' ) start [2025-04-01 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807027', 'tblTempVendorCDR_20' ) end [2025-04-01 00:00:21] Production.INFO: ProcessCDR(1,14807027,1,1,2) [2025-04-01 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807027', 'tblTempUsageDetail_20' ) start [2025-04-01 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807027', 'tblTempUsageDetail_20' ) end [2025-04-01 00:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:00:27] Production.INFO: ==12474== Releasing lock... [2025-04-01 00:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:00:27] Production.INFO: 38.25 MB #Memory Used# [2025-04-01 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:01:06 [end_date_ymd] => 2025-04-01 00:01:06 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:01:06' and `end` < '2025-04-01 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-01 00:01:19] Production.INFO: count ==620 [2025-04-01 00:01:19] Production.ERROR: pbx CDR StartTime 2025-03-31 21:01:06 - End Time 2025-04-01 00:01:06 [2025-04-01 00:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807032', 'tblTempUsageDetail_20' ) start [2025-04-01 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807032', 'tblTempUsageDetail_20' ) end [2025-04-01 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807032', 'tblTempVendorCDR_20' ) start [2025-04-01 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807032', 'tblTempVendorCDR_20' ) end [2025-04-01 00:01:19] Production.INFO: ProcessCDR(1,14807032,1,1,2) [2025-04-01 00:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807032', 'tblTempUsageDetail_20' ) start [2025-04-01 00:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807032', 'tblTempUsageDetail_20' ) end [2025-04-01 00:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:01:24] Production.INFO: ==12573== Releasing lock... [2025-04-01 00:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:01:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 00:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:02:06 [end_date_ymd] => 2025-04-01 00:02:06 [RateCDR] => 1 ) [2025-04-01 00:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 21:02:06' and `end` < '2025-04-01 00:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 00:02:19] Production.INFO: count ==619 [2025-04-01 00:02:19] Production.ERROR: pbx CDR StartTime 2025-03-31 21:02:06 - End Time 2025-04-01 00:02:06 [2025-04-01 00:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807037', 'tblTempUsageDetail_20' ) start [2025-04-01 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807037', 'tblTempUsageDetail_20' ) end [2025-04-01 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807037', 'tblTempVendorCDR_20' ) start [2025-04-01 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807037', 'tblTempVendorCDR_20' ) end [2025-04-01 00:02:19] Production.INFO: ProcessCDR(1,14807037,1,1,2) [2025-04-01 00:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807037', 'tblTempUsageDetail_20' ) start [2025-04-01 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807037', 'tblTempUsageDetail_20' ) end [2025-04-01 00:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:02:23] Production.INFO: ==12648== Releasing lock... [2025-04-01 00:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:02:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 00:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:03:06 [end_date_ymd] => 2025-04-01 00:03:06 [RateCDR] => 1 ) [2025-04-01 00:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 21:03:06' and `end` < '2025-04-01 00:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 00:03:18] Production.INFO: count ==624 [2025-04-01 00:03:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:03:06 - End Time 2025-04-01 00:03:06 [2025-04-01 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807042', 'tblTempUsageDetail_20' ) start [2025-04-01 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807042', 'tblTempUsageDetail_20' ) end [2025-04-01 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807042', 'tblTempVendorCDR_20' ) start [2025-04-01 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807042', 'tblTempVendorCDR_20' ) end [2025-04-01 00:03:19] Production.INFO: ProcessCDR(1,14807042,1,1,2) [2025-04-01 00:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807042', 'tblTempUsageDetail_20' ) start [2025-04-01 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807042', 'tblTempUsageDetail_20' ) end [2025-04-01 00:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:03:22] Production.INFO: ==12763== Releasing lock... [2025-04-01 00:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:03:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 00:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:04:06 [end_date_ymd] => 2025-04-01 00:04:06 [RateCDR] => 1 ) [2025-04-01 00: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-03-31 21:04:06' and `end` < '2025-04-01 00: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-01 00:04:21] Production.INFO: count ==624 [2025-04-01 00:04:21] Production.ERROR: pbx CDR StartTime 2025-03-31 21:04:06 - End Time 2025-04-01 00:04:06 [2025-04-01 00:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807047', 'tblTempUsageDetail_20' ) start [2025-04-01 00:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807047', 'tblTempUsageDetail_20' ) end [2025-04-01 00:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807047', 'tblTempVendorCDR_20' ) start [2025-04-01 00:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807047', 'tblTempVendorCDR_20' ) end [2025-04-01 00:04:21] Production.INFO: ProcessCDR(1,14807047,1,1,2) [2025-04-01 00:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807047', 'tblTempUsageDetail_20' ) start [2025-04-01 00:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807047', 'tblTempUsageDetail_20' ) end [2025-04-01 00:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:04:24] Production.INFO: ==12834== Releasing lock... [2025-04-01 00:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:04:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 00:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:05:06 [end_date_ymd] => 2025-04-01 00:05:06 [RateCDR] => 1 ) [2025-04-01 00: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-03-31 21:05:06' and `end` < '2025-04-01 00: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-01 00:05:29] Production.INFO: count ==624 [2025-04-01 00:05:29] Production.ERROR: pbx CDR StartTime 2025-03-31 21:05:06 - End Time 2025-04-01 00:05:06 [2025-04-01 00:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807052', 'tblTempUsageDetail_20' ) start [2025-04-01 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807052', 'tblTempUsageDetail_20' ) end [2025-04-01 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807052', 'tblTempVendorCDR_20' ) start [2025-04-01 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807052', 'tblTempVendorCDR_20' ) end [2025-04-01 00:05:29] Production.INFO: ProcessCDR(1,14807052,1,1,2) [2025-04-01 00:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807052', 'tblTempUsageDetail_20' ) start [2025-04-01 00:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807052', 'tblTempUsageDetail_20' ) end [2025-04-01 00:05:33] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:05:33] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:05:33] Production.INFO: ==12914== Releasing lock... [2025-04-01 00:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:05:33] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 00:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:06:06 [end_date_ymd] => 2025-04-01 00:06:06 [RateCDR] => 1 ) [2025-04-01 00: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-03-31 21:06:06' and `end` < '2025-04-01 00: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-01 00:06:27] Production.INFO: count ==621 [2025-04-01 00:06:27] Production.ERROR: pbx CDR StartTime 2025-03-31 21:06:06 - End Time 2025-04-01 00:06:06 [2025-04-01 00:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807057', 'tblTempUsageDetail_20' ) start [2025-04-01 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807057', 'tblTempUsageDetail_20' ) end [2025-04-01 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807057', 'tblTempVendorCDR_20' ) start [2025-04-01 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807057', 'tblTempVendorCDR_20' ) end [2025-04-01 00:06:27] Production.INFO: ProcessCDR(1,14807057,1,1,2) [2025-04-01 00:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807057', 'tblTempUsageDetail_20' ) start [2025-04-01 00:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807057', 'tblTempUsageDetail_20' ) end [2025-04-01 00:06:31] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:06:31] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:06:31] Production.INFO: ==12987== Releasing lock... [2025-04-01 00:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:06:31] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:07:05 [end_date_ymd] => 2025-04-01 00:07:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:07:05' and `end` < '2025-04-01 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-01 00:07:26] Production.INFO: count ==619 [2025-04-01 00:07:27] Production.ERROR: pbx CDR StartTime 2025-03-31 21:07:05 - End Time 2025-04-01 00:07:05 [2025-04-01 00:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807062', 'tblTempUsageDetail_20' ) start [2025-04-01 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807062', 'tblTempUsageDetail_20' ) end [2025-04-01 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807062', 'tblTempVendorCDR_20' ) start [2025-04-01 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807062', 'tblTempVendorCDR_20' ) end [2025-04-01 00:07:27] Production.INFO: ProcessCDR(1,14807062,1,1,2) [2025-04-01 00:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:07:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807062', 'tblTempUsageDetail_20' ) start [2025-04-01 00:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807062', 'tblTempUsageDetail_20' ) end [2025-04-01 00:07:32] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:07:32] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:07:32] Production.INFO: ==13059== Releasing lock... [2025-04-01 00:07:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:07:32] Production.INFO: 34 MB #Memory Used# [2025-04-01 00:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:08:06 [end_date_ymd] => 2025-04-01 00:08:06 [RateCDR] => 1 ) [2025-04-01 00: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-03-31 21:08:06' and `end` < '2025-04-01 00: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-01 00:08:21] Production.INFO: count ==617 [2025-04-01 00:08:21] Production.ERROR: pbx CDR StartTime 2025-03-31 21:08:06 - End Time 2025-04-01 00:08:06 [2025-04-01 00:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807067', 'tblTempUsageDetail_20' ) start [2025-04-01 00:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807067', 'tblTempUsageDetail_20' ) end [2025-04-01 00:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807067', 'tblTempVendorCDR_20' ) start [2025-04-01 00:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807067', 'tblTempVendorCDR_20' ) end [2025-04-01 00:08:22] Production.INFO: ProcessCDR(1,14807067,1,1,2) [2025-04-01 00:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807067', 'tblTempUsageDetail_20' ) start [2025-04-01 00:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807067', 'tblTempUsageDetail_20' ) end [2025-04-01 00:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:08:26] Production.INFO: ==13134== Releasing lock... [2025-04-01 00:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:08:26] Production.INFO: 33 MB #Memory Used# [2025-04-01 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:09:05 [end_date_ymd] => 2025-04-01 00:09:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:09:05' and `end` < '2025-04-01 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-01 00:09:19] Production.INFO: count ==618 [2025-04-01 00:09:19] Production.ERROR: pbx CDR StartTime 2025-03-31 21:09:05 - End Time 2025-04-01 00:09:05 [2025-04-01 00:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807072', 'tblTempUsageDetail_20' ) start [2025-04-01 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807072', 'tblTempUsageDetail_20' ) end [2025-04-01 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807072', 'tblTempVendorCDR_20' ) start [2025-04-01 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807072', 'tblTempVendorCDR_20' ) end [2025-04-01 00:09:19] Production.INFO: ProcessCDR(1,14807072,1,1,2) [2025-04-01 00:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807072', 'tblTempUsageDetail_20' ) start [2025-04-01 00:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807072', 'tblTempUsageDetail_20' ) end [2025-04-01 00:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:09:24] Production.INFO: ==13205== Releasing lock... [2025-04-01 00:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:09:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:10:06 [end_date_ymd] => 2025-04-01 00:10:06 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:10:06' and `end` < '2025-04-01 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-01 00:10:18] Production.INFO: count ==626 [2025-04-01 00:10:19] Production.ERROR: pbx CDR StartTime 2025-03-31 21:10:06 - End Time 2025-04-01 00:10:06 [2025-04-01 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807077', 'tblTempUsageDetail_20' ) start [2025-04-01 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807077', 'tblTempUsageDetail_20' ) end [2025-04-01 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807077', 'tblTempVendorCDR_20' ) start [2025-04-01 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807077', 'tblTempVendorCDR_20' ) end [2025-04-01 00:10:19] Production.INFO: ProcessCDR(1,14807077,1,1,2) [2025-04-01 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807077', 'tblTempUsageDetail_20' ) start [2025-04-01 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807077', 'tblTempUsageDetail_20' ) end [2025-04-01 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:10:22] Production.INFO: ==13278== Releasing lock... [2025-04-01 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:10:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:11:05 [end_date_ymd] => 2025-04-01 00:11:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:11:05' and `end` < '2025-04-01 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-01 00:11:18] Production.INFO: count ==631 [2025-04-01 00:11:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:11:05 - End Time 2025-04-01 00:11:05 [2025-04-01 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807083', 'tblTempUsageDetail_20' ) start [2025-04-01 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807083', 'tblTempUsageDetail_20' ) end [2025-04-01 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807083', 'tblTempVendorCDR_20' ) start [2025-04-01 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807083', 'tblTempVendorCDR_20' ) end [2025-04-01 00:11:18] Production.INFO: ProcessCDR(1,14807083,1,1,2) [2025-04-01 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807083', 'tblTempUsageDetail_20' ) start [2025-04-01 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807083', 'tblTempUsageDetail_20' ) end [2025-04-01 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:11:22] Production.INFO: ==13359== Releasing lock... [2025-04-01 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:11:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 00:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:12:06 [end_date_ymd] => 2025-04-01 00:12:06 [RateCDR] => 1 ) [2025-04-01 00: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-03-31 21:12:06' and `end` < '2025-04-01 00: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-01 00:12:19] Production.INFO: count ==628 [2025-04-01 00:12:19] Production.ERROR: pbx CDR StartTime 2025-03-31 21:12:06 - End Time 2025-04-01 00:12:06 [2025-04-01 00:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807088', 'tblTempUsageDetail_20' ) start [2025-04-01 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807088', 'tblTempUsageDetail_20' ) end [2025-04-01 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807088', 'tblTempVendorCDR_20' ) start [2025-04-01 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807088', 'tblTempVendorCDR_20' ) end [2025-04-01 00:12:19] Production.INFO: ProcessCDR(1,14807088,1,1,2) [2025-04-01 00:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807088', 'tblTempUsageDetail_20' ) start [2025-04-01 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807088', 'tblTempUsageDetail_20' ) end [2025-04-01 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:12:22] Production.INFO: ==13435== Releasing lock... [2025-04-01 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:12:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:13:05 [end_date_ymd] => 2025-04-01 00:13:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:13:05' and `end` < '2025-04-01 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-01 00:13:17] Production.INFO: count ==655 [2025-04-01 00:13:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:13:05 - End Time 2025-04-01 00:13:05 [2025-04-01 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807093', 'tblTempUsageDetail_20' ) start [2025-04-01 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807093', 'tblTempUsageDetail_20' ) end [2025-04-01 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807093', 'tblTempVendorCDR_20' ) start [2025-04-01 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807093', 'tblTempVendorCDR_20' ) end [2025-04-01 00:13:18] Production.INFO: ProcessCDR(1,14807093,1,1,2) [2025-04-01 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807093', 'tblTempUsageDetail_20' ) start [2025-04-01 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807093', 'tblTempUsageDetail_20' ) end [2025-04-01 00:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:13:22] Production.INFO: ==13510== Releasing lock... [2025-04-01 00:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:13:22] Production.INFO: 34 MB #Memory Used# [2025-04-01 00:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:14:06 [end_date_ymd] => 2025-04-01 00:14:06 [RateCDR] => 1 ) [2025-04-01 00: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-03-31 21:14:06' and `end` < '2025-04-01 00: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-01 00:14:18] Production.INFO: count ==661 [2025-04-01 00:14:19] Production.ERROR: pbx CDR StartTime 2025-03-31 21:14:06 - End Time 2025-04-01 00:14:06 [2025-04-01 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807098', 'tblTempUsageDetail_20' ) start [2025-04-01 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807098', 'tblTempUsageDetail_20' ) end [2025-04-01 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807098', 'tblTempVendorCDR_20' ) start [2025-04-01 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807098', 'tblTempVendorCDR_20' ) end [2025-04-01 00:14:19] Production.INFO: ProcessCDR(1,14807098,1,1,2) [2025-04-01 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807098', 'tblTempUsageDetail_20' ) start [2025-04-01 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807098', 'tblTempUsageDetail_20' ) end [2025-04-01 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:14:22] Production.INFO: ==13592== Releasing lock... [2025-04-01 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:14:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:15:05 [end_date_ymd] => 2025-04-01 00:15:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:15:05' and `end` < '2025-04-01 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-01 00:15:17] Production.INFO: count ==674 [2025-04-01 00:15:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:15:05 - End Time 2025-04-01 00:15:05 [2025-04-01 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807103', 'tblTempUsageDetail_20' ) start [2025-04-01 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807103', 'tblTempUsageDetail_20' ) end [2025-04-01 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807103', 'tblTempVendorCDR_20' ) start [2025-04-01 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807103', 'tblTempVendorCDR_20' ) end [2025-04-01 00:15:18] Production.INFO: ProcessCDR(1,14807103,1,1,2) [2025-04-01 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807103', 'tblTempUsageDetail_20' ) start [2025-04-01 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807103', 'tblTempUsageDetail_20' ) end [2025-04-01 00:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:15:22] Production.INFO: ==13678== Releasing lock... [2025-04-01 00:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:15:22] Production.INFO: 34 MB #Memory Used# [2025-04-01 00:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:16:06 [end_date_ymd] => 2025-04-01 00:16:06 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:16:06' and `end` < '2025-04-01 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-01 00:16:18] Production.INFO: count ==661 [2025-04-01 00:16:19] Production.ERROR: pbx CDR StartTime 2025-03-31 21:16:06 - End Time 2025-04-01 00:16:06 [2025-04-01 00:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807108', 'tblTempUsageDetail_20' ) start [2025-04-01 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807108', 'tblTempUsageDetail_20' ) end [2025-04-01 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807108', 'tblTempVendorCDR_20' ) start [2025-04-01 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807108', 'tblTempVendorCDR_20' ) end [2025-04-01 00:16:19] Production.INFO: ProcessCDR(1,14807108,1,1,2) [2025-04-01 00:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807108', 'tblTempUsageDetail_20' ) start [2025-04-01 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807108', 'tblTempUsageDetail_20' ) end [2025-04-01 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:16:22] Production.INFO: ==13751== Releasing lock... [2025-04-01 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:16:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:17:05 [end_date_ymd] => 2025-04-01 00:17:05 [RateCDR] => 1 ) [2025-04-01 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 21:17:05' and `end` < '2025-04-01 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 00:17:17] Production.INFO: count ==661 [2025-04-01 00:17:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:17:05 - End Time 2025-04-01 00:17:05 [2025-04-01 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807113', 'tblTempUsageDetail_20' ) start [2025-04-01 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807113', 'tblTempUsageDetail_20' ) end [2025-04-01 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807113', 'tblTempVendorCDR_20' ) start [2025-04-01 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807113', 'tblTempVendorCDR_20' ) end [2025-04-01 00:17:18] Production.INFO: ProcessCDR(1,14807113,1,1,2) [2025-04-01 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807113', 'tblTempUsageDetail_20' ) start [2025-04-01 00:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807113', 'tblTempUsageDetail_20' ) end [2025-04-01 00:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:17:23] Production.INFO: ==13826== Releasing lock... [2025-04-01 00:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:17:23] Production.INFO: 34 MB #Memory Used# [2025-04-01 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:18:05 [end_date_ymd] => 2025-04-01 00:18:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:18:05' and `end` < '2025-04-01 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-01 00:18:18] Production.INFO: count ==661 [2025-04-01 00:18:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:18:05 - End Time 2025-04-01 00:18:05 [2025-04-01 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807118', 'tblTempUsageDetail_20' ) start [2025-04-01 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807118', 'tblTempUsageDetail_20' ) end [2025-04-01 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807118', 'tblTempVendorCDR_20' ) start [2025-04-01 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807118', 'tblTempVendorCDR_20' ) end [2025-04-01 00:18:18] Production.INFO: ProcessCDR(1,14807118,1,1,2) [2025-04-01 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807118', 'tblTempUsageDetail_20' ) start [2025-04-01 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807118', 'tblTempUsageDetail_20' ) end [2025-04-01 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:18:22] Production.INFO: ==13900== Releasing lock... [2025-04-01 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:18:22] Production.INFO: 34 MB #Memory Used# [2025-04-01 00:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:19:06 [end_date_ymd] => 2025-04-01 00:19:06 [RateCDR] => 1 ) [2025-04-01 00: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-03-31 21:19:06' and `end` < '2025-04-01 00: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-01 00:19:18] Production.INFO: count ==667 [2025-04-01 00:19:19] Production.ERROR: pbx CDR StartTime 2025-03-31 21:19:06 - End Time 2025-04-01 00:19:06 [2025-04-01 00:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807123', 'tblTempUsageDetail_20' ) start [2025-04-01 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807123', 'tblTempUsageDetail_20' ) end [2025-04-01 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807123', 'tblTempVendorCDR_20' ) start [2025-04-01 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807123', 'tblTempVendorCDR_20' ) end [2025-04-01 00:19:19] Production.INFO: ProcessCDR(1,14807123,1,1,2) [2025-04-01 00:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807123', 'tblTempUsageDetail_20' ) start [2025-04-01 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807123', 'tblTempUsageDetail_20' ) end [2025-04-01 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:19:22] Production.INFO: ==14017== Releasing lock... [2025-04-01 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:19:22] Production.INFO: 34 MB #Memory Used# [2025-04-01 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:20:06 [end_date_ymd] => 2025-04-01 00:20:06 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:20:06' and `end` < '2025-04-01 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-01 00:20:19] Production.INFO: count ==672 [2025-04-01 00:20:19] Production.ERROR: pbx CDR StartTime 2025-03-31 21:20:06 - End Time 2025-04-01 00:20:06 [2025-04-01 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807129', 'tblTempUsageDetail_20' ) start [2025-04-01 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807129', 'tblTempUsageDetail_20' ) end [2025-04-01 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807129', 'tblTempVendorCDR_20' ) start [2025-04-01 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807129', 'tblTempVendorCDR_20' ) end [2025-04-01 00:20:19] Production.INFO: ProcessCDR(1,14807129,1,1,2) [2025-04-01 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807129', 'tblTempUsageDetail_20' ) start [2025-04-01 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807129', 'tblTempUsageDetail_20' ) end [2025-04-01 00:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:20:23] Production.INFO: ==14096== Releasing lock... [2025-04-01 00:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:20:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 00:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:21:06 [end_date_ymd] => 2025-04-01 00:21:06 [RateCDR] => 1 ) [2025-04-01 00:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 21:21:06' and `end` < '2025-04-01 00:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 00:21:18] Production.INFO: count ==703 [2025-04-01 00:21:19] Production.ERROR: pbx CDR StartTime 2025-03-31 21:21:06 - End Time 2025-04-01 00:21:06 [2025-04-01 00:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807134', 'tblTempUsageDetail_20' ) start [2025-04-01 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807134', 'tblTempUsageDetail_20' ) end [2025-04-01 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807134', 'tblTempVendorCDR_20' ) start [2025-04-01 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807134', 'tblTempVendorCDR_20' ) end [2025-04-01 00:21:19] Production.INFO: ProcessCDR(1,14807134,1,1,2) [2025-04-01 00:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807134', 'tblTempUsageDetail_20' ) start [2025-04-01 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807134', 'tblTempUsageDetail_20' ) end [2025-04-01 00:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:21:22] Production.INFO: ==14172== Releasing lock... [2025-04-01 00:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:21:22] Production.INFO: 34 MB #Memory Used# [2025-04-01 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:22:05 [end_date_ymd] => 2025-04-01 00:22:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:22:05' and `end` < '2025-04-01 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-01 00:22:18] Production.INFO: count ==704 [2025-04-01 00:22:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:22:05 - End Time 2025-04-01 00:22:05 [2025-04-01 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807139', 'tblTempUsageDetail_20' ) start [2025-04-01 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807139', 'tblTempUsageDetail_20' ) end [2025-04-01 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807139', 'tblTempVendorCDR_20' ) start [2025-04-01 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807139', 'tblTempVendorCDR_20' ) end [2025-04-01 00:22:18] Production.INFO: ProcessCDR(1,14807139,1,1,2) [2025-04-01 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807139', 'tblTempUsageDetail_20' ) start [2025-04-01 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807139', 'tblTempUsageDetail_20' ) end [2025-04-01 00:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:22:22] Production.INFO: ==14249== Releasing lock... [2025-04-01 00:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:22:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:23:05 [end_date_ymd] => 2025-04-01 00:23:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:23:05' and `end` < '2025-04-01 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-01 00:23:18] Production.INFO: count ==704 [2025-04-01 00:23:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:23:05 - End Time 2025-04-01 00:23:05 [2025-04-01 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807144', 'tblTempUsageDetail_20' ) start [2025-04-01 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807144', 'tblTempUsageDetail_20' ) end [2025-04-01 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807144', 'tblTempVendorCDR_20' ) start [2025-04-01 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807144', 'tblTempVendorCDR_20' ) end [2025-04-01 00:23:18] Production.INFO: ProcessCDR(1,14807144,1,1,2) [2025-04-01 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807144', 'tblTempUsageDetail_20' ) start [2025-04-01 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807144', 'tblTempUsageDetail_20' ) end [2025-04-01 00:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:23:22] Production.INFO: ==14321== Releasing lock... [2025-04-01 00:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:23:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 00:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:24:06 [end_date_ymd] => 2025-04-01 00:24:06 [RateCDR] => 1 ) [2025-04-01 00: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-03-31 21:24:06' and `end` < '2025-04-01 00: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-01 00:24:18] Production.INFO: count ==704 [2025-04-01 00:24:19] Production.ERROR: pbx CDR StartTime 2025-03-31 21:24:06 - End Time 2025-04-01 00:24:06 [2025-04-01 00:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807149', 'tblTempUsageDetail_20' ) start [2025-04-01 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807149', 'tblTempUsageDetail_20' ) end [2025-04-01 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807149', 'tblTempVendorCDR_20' ) start [2025-04-01 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807149', 'tblTempVendorCDR_20' ) end [2025-04-01 00:24:19] Production.INFO: ProcessCDR(1,14807149,1,1,2) [2025-04-01 00:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807149', 'tblTempUsageDetail_20' ) start [2025-04-01 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807149', 'tblTempUsageDetail_20' ) end [2025-04-01 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:24:22] Production.INFO: ==14394== Releasing lock... [2025-04-01 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:24:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:25:06 [end_date_ymd] => 2025-04-01 00:25:06 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:25:06' and `end` < '2025-04-01 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-01 00:25:18] Production.INFO: count ==696 [2025-04-01 00:25:19] Production.ERROR: pbx CDR StartTime 2025-03-31 21:25:06 - End Time 2025-04-01 00:25:06 [2025-04-01 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807154', 'tblTempUsageDetail_20' ) start [2025-04-01 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807154', 'tblTempUsageDetail_20' ) end [2025-04-01 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807154', 'tblTempVendorCDR_20' ) start [2025-04-01 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807154', 'tblTempVendorCDR_20' ) end [2025-04-01 00:25:19] Production.INFO: ProcessCDR(1,14807154,1,1,2) [2025-04-01 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807154', 'tblTempUsageDetail_20' ) start [2025-04-01 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807154', 'tblTempUsageDetail_20' ) end [2025-04-01 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:25:22] Production.INFO: ==14477== Releasing lock... [2025-04-01 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:25:22] Production.INFO: 34 MB #Memory Used# [2025-04-01 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:26:05 [end_date_ymd] => 2025-04-01 00:26:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:26:05' and `end` < '2025-04-01 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-01 00:26:17] Production.INFO: count ==692 [2025-04-01 00:26:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:26:05 - End Time 2025-04-01 00:26:05 [2025-04-01 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807159', 'tblTempUsageDetail_20' ) start [2025-04-01 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807159', 'tblTempUsageDetail_20' ) end [2025-04-01 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807159', 'tblTempVendorCDR_20' ) start [2025-04-01 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807159', 'tblTempVendorCDR_20' ) end [2025-04-01 00:26:18] Production.INFO: ProcessCDR(1,14807159,1,1,2) [2025-04-01 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807159', 'tblTempUsageDetail_20' ) start [2025-04-01 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807159', 'tblTempUsageDetail_20' ) end [2025-04-01 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:26:22] Production.INFO: ==14549== Releasing lock... [2025-04-01 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:26:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-01 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:27:05 [end_date_ymd] => 2025-04-01 00:27:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:27:05' and `end` < '2025-04-01 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-01 00:27:18] Production.INFO: count ==687 [2025-04-01 00:27:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:27:05 - End Time 2025-04-01 00:27:05 [2025-04-01 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807164', 'tblTempUsageDetail_20' ) start [2025-04-01 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807164', 'tblTempUsageDetail_20' ) end [2025-04-01 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807164', 'tblTempVendorCDR_20' ) start [2025-04-01 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807164', 'tblTempVendorCDR_20' ) end [2025-04-01 00:27:18] Production.INFO: ProcessCDR(1,14807164,1,1,2) [2025-04-01 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807164', 'tblTempUsageDetail_20' ) start [2025-04-01 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807164', 'tblTempUsageDetail_20' ) end [2025-04-01 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:27:21] Production.INFO: ==14622== Releasing lock... [2025-04-01 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:27:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:28:05 [end_date_ymd] => 2025-04-01 00:28:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:28:05' and `end` < '2025-04-01 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-01 00:28:18] Production.INFO: count ==687 [2025-04-01 00:28:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:28:05 - End Time 2025-04-01 00:28:05 [2025-04-01 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807169', 'tblTempUsageDetail_20' ) start [2025-04-01 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807169', 'tblTempUsageDetail_20' ) end [2025-04-01 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807169', 'tblTempVendorCDR_20' ) start [2025-04-01 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807169', 'tblTempVendorCDR_20' ) end [2025-04-01 00:28:18] Production.INFO: ProcessCDR(1,14807169,1,1,2) [2025-04-01 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807169', 'tblTempUsageDetail_20' ) start [2025-04-01 00:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807169', 'tblTempUsageDetail_20' ) end [2025-04-01 00:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:28:23] Production.INFO: ==14699== Releasing lock... [2025-04-01 00:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:28:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:29:05 [end_date_ymd] => 2025-04-01 00:29:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:29:05' and `end` < '2025-04-01 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-01 00:29:18] Production.INFO: count ==650 [2025-04-01 00:29:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:29:05 - End Time 2025-04-01 00:29:05 [2025-04-01 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807174', 'tblTempUsageDetail_20' ) start [2025-04-01 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807174', 'tblTempUsageDetail_20' ) end [2025-04-01 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807174', 'tblTempVendorCDR_20' ) start [2025-04-01 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807174', 'tblTempVendorCDR_20' ) end [2025-04-01 00:29:18] Production.INFO: ProcessCDR(1,14807174,1,1,2) [2025-04-01 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807174', 'tblTempUsageDetail_20' ) start [2025-04-01 00:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807174', 'tblTempUsageDetail_20' ) end [2025-04-01 00:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:29:23] Production.INFO: ==14782== Releasing lock... [2025-04-01 00:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:29:23] Production.INFO: 34 MB #Memory Used# [2025-04-01 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:30:06 [end_date_ymd] => 2025-04-01 00:30:06 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:30:06' and `end` < '2025-04-01 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-01 00:30:19] Production.INFO: count ==660 [2025-04-01 00:30:19] Production.ERROR: pbx CDR StartTime 2025-03-31 21:30:06 - End Time 2025-04-01 00:30:06 [2025-04-01 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807179', 'tblTempUsageDetail_20' ) start [2025-04-01 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807179', 'tblTempUsageDetail_20' ) end [2025-04-01 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807179', 'tblTempVendorCDR_20' ) start [2025-04-01 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807179', 'tblTempVendorCDR_20' ) end [2025-04-01 00:30:19] Production.INFO: ProcessCDR(1,14807179,1,1,2) [2025-04-01 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807179', 'tblTempUsageDetail_20' ) start [2025-04-01 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807179', 'tblTempUsageDetail_20' ) end [2025-04-01 00:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:30:23] Production.INFO: ==14860== Releasing lock... [2025-04-01 00:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:30:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 00:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:31:06 [end_date_ymd] => 2025-04-01 00:31:06 [RateCDR] => 1 ) [2025-04-01 00:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 21:31:06' and `end` < '2025-04-01 00:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 00:31:18] Production.INFO: count ==660 [2025-04-01 00:31:19] Production.ERROR: pbx CDR StartTime 2025-03-31 21:31:06 - End Time 2025-04-01 00:31:06 [2025-04-01 00:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807185', 'tblTempUsageDetail_20' ) start [2025-04-01 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807185', 'tblTempUsageDetail_20' ) end [2025-04-01 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807185', 'tblTempVendorCDR_20' ) start [2025-04-01 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807185', 'tblTempVendorCDR_20' ) end [2025-04-01 00:31:19] Production.INFO: ProcessCDR(1,14807185,1,1,2) [2025-04-01 00:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807185', 'tblTempUsageDetail_20' ) start [2025-04-01 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807185', 'tblTempUsageDetail_20' ) end [2025-04-01 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:31:22] Production.INFO: ==14941== Releasing lock... [2025-04-01 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:31:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:32:05 [end_date_ymd] => 2025-04-01 00:32:05 [RateCDR] => 1 ) [2025-04-01 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 21:32:05' and `end` < '2025-04-01 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 00:32:18] Production.INFO: count ==659 [2025-04-01 00:32:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:32:05 - End Time 2025-04-01 00:32:05 [2025-04-01 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807190', 'tblTempUsageDetail_20' ) start [2025-04-01 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807190', 'tblTempUsageDetail_20' ) end [2025-04-01 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807190', 'tblTempVendorCDR_20' ) start [2025-04-01 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807190', 'tblTempVendorCDR_20' ) end [2025-04-01 00:32:18] Production.INFO: ProcessCDR(1,14807190,1,1,2) [2025-04-01 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807190', 'tblTempUsageDetail_20' ) start [2025-04-01 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807190', 'tblTempUsageDetail_20' ) end [2025-04-01 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:32:22] Production.INFO: ==15026== Releasing lock... [2025-04-01 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:32:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 00:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:33:06 [end_date_ymd] => 2025-04-01 00:33:06 [RateCDR] => 1 ) [2025-04-01 00:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 21:33:06' and `end` < '2025-04-01 00:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 00:33:18] Production.INFO: count ==655 [2025-04-01 00:33:19] Production.ERROR: pbx CDR StartTime 2025-03-31 21:33:06 - End Time 2025-04-01 00:33:06 [2025-04-01 00:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807195', 'tblTempUsageDetail_20' ) start [2025-04-01 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807195', 'tblTempUsageDetail_20' ) end [2025-04-01 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807195', 'tblTempVendorCDR_20' ) start [2025-04-01 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807195', 'tblTempVendorCDR_20' ) end [2025-04-01 00:33:19] Production.INFO: ProcessCDR(1,14807195,1,1,2) [2025-04-01 00:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807195', 'tblTempUsageDetail_20' ) start [2025-04-01 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807195', 'tblTempUsageDetail_20' ) end [2025-04-01 00:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:33:22] Production.INFO: ==15113== Releasing lock... [2025-04-01 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:33:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:34:05 [end_date_ymd] => 2025-04-01 00:34:05 [RateCDR] => 1 ) [2025-04-01 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 21:34:05' and `end` < '2025-04-01 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 00:34:18] Production.INFO: count ==653 [2025-04-01 00:34:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:34:05 - End Time 2025-04-01 00:34:05 [2025-04-01 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807200', 'tblTempUsageDetail_20' ) start [2025-04-01 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807200', 'tblTempUsageDetail_20' ) end [2025-04-01 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807200', 'tblTempVendorCDR_20' ) start [2025-04-01 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807200', 'tblTempVendorCDR_20' ) end [2025-04-01 00:34:18] Production.INFO: ProcessCDR(1,14807200,1,1,2) [2025-04-01 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807200', 'tblTempUsageDetail_20' ) start [2025-04-01 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807200', 'tblTempUsageDetail_20' ) end [2025-04-01 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:34:22] Production.INFO: ==15238== Releasing lock... [2025-04-01 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:34:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:35:05 [end_date_ymd] => 2025-04-01 00:35:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:35:05' and `end` < '2025-04-01 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-01 00:35:18] Production.INFO: count ==649 [2025-04-01 00:35:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:35:05 - End Time 2025-04-01 00:35:05 [2025-04-01 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807205', 'tblTempUsageDetail_20' ) start [2025-04-01 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807205', 'tblTempUsageDetail_20' ) end [2025-04-01 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807205', 'tblTempVendorCDR_20' ) start [2025-04-01 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807205', 'tblTempVendorCDR_20' ) end [2025-04-01 00:35:18] Production.INFO: ProcessCDR(1,14807205,1,1,2) [2025-04-01 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807205', 'tblTempUsageDetail_20' ) start [2025-04-01 00:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807205', 'tblTempUsageDetail_20' ) end [2025-04-01 00:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:35:24] Production.INFO: ==15315== Releasing lock... [2025-04-01 00:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:35:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 00:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:36:06 [end_date_ymd] => 2025-04-01 00:36:06 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:36:06' and `end` < '2025-04-01 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-01 00:36:19] Production.INFO: count ==675 [2025-04-01 00:36:19] Production.ERROR: pbx CDR StartTime 2025-03-31 21:36:06 - End Time 2025-04-01 00:36:06 [2025-04-01 00:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807210', 'tblTempUsageDetail_20' ) start [2025-04-01 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807210', 'tblTempUsageDetail_20' ) end [2025-04-01 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807210', 'tblTempVendorCDR_20' ) start [2025-04-01 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807210', 'tblTempVendorCDR_20' ) end [2025-04-01 00:36:19] Production.INFO: ProcessCDR(1,14807210,1,1,2) [2025-04-01 00:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807210', 'tblTempUsageDetail_20' ) start [2025-04-01 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807210', 'tblTempUsageDetail_20' ) end [2025-04-01 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:36:22] Production.INFO: ==15395== Releasing lock... [2025-04-01 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:36:22] Production.INFO: 34 MB #Memory Used# [2025-04-01 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:37:05 [end_date_ymd] => 2025-04-01 00:37:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:37:05' and `end` < '2025-04-01 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-01 00:37:17] Production.INFO: count ==661 [2025-04-01 00:37:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:37:05 - End Time 2025-04-01 00:37:05 [2025-04-01 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807215', 'tblTempUsageDetail_20' ) start [2025-04-01 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807215', 'tblTempUsageDetail_20' ) end [2025-04-01 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807215', 'tblTempVendorCDR_20' ) start [2025-04-01 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807215', 'tblTempVendorCDR_20' ) end [2025-04-01 00:37:18] Production.INFO: ProcessCDR(1,14807215,1,1,2) [2025-04-01 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807215', 'tblTempUsageDetail_20' ) start [2025-04-01 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807215', 'tblTempUsageDetail_20' ) end [2025-04-01 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:37:21] Production.INFO: ==15473== Releasing lock... [2025-04-01 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:37:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 00:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:38:06 [end_date_ymd] => 2025-04-01 00:38:06 [RateCDR] => 1 ) [2025-04-01 00: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-03-31 21:38:06' and `end` < '2025-04-01 00: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-01 00:38:19] Production.INFO: count ==657 [2025-04-01 00:38:19] Production.ERROR: pbx CDR StartTime 2025-03-31 21:38:06 - End Time 2025-04-01 00:38:06 [2025-04-01 00:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807220', 'tblTempUsageDetail_20' ) start [2025-04-01 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807220', 'tblTempUsageDetail_20' ) end [2025-04-01 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807220', 'tblTempVendorCDR_20' ) start [2025-04-01 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807220', 'tblTempVendorCDR_20' ) end [2025-04-01 00:38:19] Production.INFO: ProcessCDR(1,14807220,1,1,2) [2025-04-01 00:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807220', 'tblTempUsageDetail_20' ) start [2025-04-01 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807220', 'tblTempUsageDetail_20' ) end [2025-04-01 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:38:22] Production.INFO: ==15551== Releasing lock... [2025-04-01 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:38:22] Production.INFO: 34 MB #Memory Used# [2025-04-01 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:39:05 [end_date_ymd] => 2025-04-01 00:39:05 [RateCDR] => 1 ) [2025-04-01 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 21:39:05' and `end` < '2025-04-01 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 00:39:18] Production.INFO: count ==629 [2025-04-01 00:39:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:39:05 - End Time 2025-04-01 00:39:05 [2025-04-01 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807225', 'tblTempUsageDetail_20' ) start [2025-04-01 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807225', 'tblTempUsageDetail_20' ) end [2025-04-01 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807225', 'tblTempVendorCDR_20' ) start [2025-04-01 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807225', 'tblTempVendorCDR_20' ) end [2025-04-01 00:39:18] Production.INFO: ProcessCDR(1,14807225,1,1,2) [2025-04-01 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807225', 'tblTempUsageDetail_20' ) start [2025-04-01 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807225', 'tblTempUsageDetail_20' ) end [2025-04-01 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:39:22] Production.INFO: ==15623== Releasing lock... [2025-04-01 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:39:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 00:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:40:07 [end_date_ymd] => 2025-04-01 00:40:07 [RateCDR] => 1 ) [2025-04-01 00: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-03-31 21:40:07' and `end` < '2025-04-01 00:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 00:40:19] Production.INFO: count ==640 [2025-04-01 00:40:19] Production.ERROR: pbx CDR StartTime 2025-03-31 21:40:07 - End Time 2025-04-01 00:40:07 [2025-04-01 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807231', 'tblTempUsageDetail_20' ) start [2025-04-01 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807231', 'tblTempUsageDetail_20' ) end [2025-04-01 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807231', 'tblTempVendorCDR_20' ) start [2025-04-01 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807231', 'tblTempVendorCDR_20' ) end [2025-04-01 00:40:19] Production.INFO: ProcessCDR(1,14807231,1,1,2) [2025-04-01 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807231', 'tblTempUsageDetail_20' ) start [2025-04-01 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807231', 'tblTempUsageDetail_20' ) end [2025-04-01 00:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:40:23] Production.INFO: ==15708== Releasing lock... [2025-04-01 00:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:40:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:41:05 [end_date_ymd] => 2025-04-01 00:41:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:41:05' and `end` < '2025-04-01 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-01 00:41:17] Production.INFO: count ==649 [2025-04-01 00:41:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:41:05 - End Time 2025-04-01 00:41:05 [2025-04-01 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807236', 'tblTempUsageDetail_20' ) start [2025-04-01 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807236', 'tblTempUsageDetail_20' ) end [2025-04-01 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807236', 'tblTempVendorCDR_20' ) start [2025-04-01 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807236', 'tblTempVendorCDR_20' ) end [2025-04-01 00:41:18] Production.INFO: ProcessCDR(1,14807236,1,1,2) [2025-04-01 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807236', 'tblTempUsageDetail_20' ) start [2025-04-01 00:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807236', 'tblTempUsageDetail_20' ) end [2025-04-01 00:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:41:23] Production.INFO: ==15784== Releasing lock... [2025-04-01 00:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:41:23] Production.INFO: 34 MB #Memory Used# [2025-04-01 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:42:05 [end_date_ymd] => 2025-04-01 00:42:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:42:05' and `end` < '2025-04-01 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-01 00:42:18] Production.INFO: count ==632 [2025-04-01 00:42:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:42:05 - End Time 2025-04-01 00:42:05 [2025-04-01 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807241', 'tblTempUsageDetail_20' ) start [2025-04-01 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807241', 'tblTempUsageDetail_20' ) end [2025-04-01 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807241', 'tblTempVendorCDR_20' ) start [2025-04-01 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807241', 'tblTempVendorCDR_20' ) end [2025-04-01 00:42:18] Production.INFO: ProcessCDR(1,14807241,1,1,2) [2025-04-01 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807241', 'tblTempUsageDetail_20' ) start [2025-04-01 00:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807241', 'tblTempUsageDetail_20' ) end [2025-04-01 00:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:42:23] Production.INFO: ==15858== Releasing lock... [2025-04-01 00:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:42:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:43:05 [end_date_ymd] => 2025-04-01 00:43:05 [RateCDR] => 1 ) [2025-04-01 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 21:43:05' and `end` < '2025-04-01 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 00:43:18] Production.INFO: count ==632 [2025-04-01 00:43:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:43:05 - End Time 2025-04-01 00:43:05 [2025-04-01 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807246', 'tblTempUsageDetail_20' ) start [2025-04-01 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807246', 'tblTempUsageDetail_20' ) end [2025-04-01 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807246', 'tblTempVendorCDR_20' ) start [2025-04-01 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807246', 'tblTempVendorCDR_20' ) end [2025-04-01 00:43:18] Production.INFO: ProcessCDR(1,14807246,1,1,2) [2025-04-01 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807246', 'tblTempUsageDetail_20' ) start [2025-04-01 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807246', 'tblTempUsageDetail_20' ) end [2025-04-01 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:43:21] Production.INFO: ==15932== Releasing lock... [2025-04-01 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:43:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:44:05 [end_date_ymd] => 2025-04-01 00:44:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:44:05' and `end` < '2025-04-01 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-01 00:44:18] Production.INFO: count ==632 [2025-04-01 00:44:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:44:05 - End Time 2025-04-01 00:44:05 [2025-04-01 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807251', 'tblTempUsageDetail_20' ) start [2025-04-01 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807251', 'tblTempUsageDetail_20' ) end [2025-04-01 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807251', 'tblTempVendorCDR_20' ) start [2025-04-01 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807251', 'tblTempVendorCDR_20' ) end [2025-04-01 00:44:18] Production.INFO: ProcessCDR(1,14807251,1,1,2) [2025-04-01 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807251', 'tblTempUsageDetail_20' ) start [2025-04-01 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807251', 'tblTempUsageDetail_20' ) end [2025-04-01 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:44:22] Production.INFO: ==16014== Releasing lock... [2025-04-01 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:44:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:45:05 [end_date_ymd] => 2025-04-01 00:45:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:45:05' and `end` < '2025-04-01 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-01 00:45:17] Production.INFO: count ==636 [2025-04-01 00:45:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:45:05 - End Time 2025-04-01 00:45:05 [2025-04-01 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807256', 'tblTempUsageDetail_20' ) start [2025-04-01 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807256', 'tblTempUsageDetail_20' ) end [2025-04-01 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807256', 'tblTempVendorCDR_20' ) start [2025-04-01 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807256', 'tblTempVendorCDR_20' ) end [2025-04-01 00:45:18] Production.INFO: ProcessCDR(1,14807256,1,1,2) [2025-04-01 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807256', 'tblTempUsageDetail_20' ) start [2025-04-01 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807256', 'tblTempUsageDetail_20' ) end [2025-04-01 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:45:21] Production.INFO: ==16090== Releasing lock... [2025-04-01 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:45:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-01 00:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:46:06 [end_date_ymd] => 2025-04-01 00:46:06 [RateCDR] => 1 ) [2025-04-01 00: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-03-31 21:46:06' and `end` < '2025-04-01 00: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-01 00:46:18] Production.INFO: count ==623 [2025-04-01 00:46:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:46:06 - End Time 2025-04-01 00:46:06 [2025-04-01 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807261', 'tblTempUsageDetail_20' ) start [2025-04-01 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807261', 'tblTempUsageDetail_20' ) end [2025-04-01 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807261', 'tblTempVendorCDR_20' ) start [2025-04-01 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807261', 'tblTempVendorCDR_20' ) end [2025-04-01 00:46:18] Production.INFO: ProcessCDR(1,14807261,1,1,2) [2025-04-01 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807261', 'tblTempUsageDetail_20' ) start [2025-04-01 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807261', 'tblTempUsageDetail_20' ) end [2025-04-01 00:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:46:22] Production.INFO: ==16176== Releasing lock... [2025-04-01 00:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:46:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 00:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:47:04 [end_date_ymd] => 2025-04-01 00:47:04 [RateCDR] => 1 ) [2025-04-01 00: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-03-31 21:47:04' and `end` < '2025-04-01 00: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-01 00:47:17] Production.INFO: count ==622 [2025-04-01 00:47:17] Production.ERROR: pbx CDR StartTime 2025-03-31 21:47:04 - End Time 2025-04-01 00:47:04 [2025-04-01 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807266', 'tblTempUsageDetail_20' ) start [2025-04-01 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807266', 'tblTempUsageDetail_20' ) end [2025-04-01 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807266', 'tblTempVendorCDR_20' ) start [2025-04-01 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807266', 'tblTempVendorCDR_20' ) end [2025-04-01 00:47:17] Production.INFO: ProcessCDR(1,14807266,1,1,2) [2025-04-01 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807266', 'tblTempUsageDetail_20' ) start [2025-04-01 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807266', 'tblTempUsageDetail_20' ) end [2025-04-01 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:47:21] Production.INFO: ==16250== Releasing lock... [2025-04-01 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:47:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:48:05 [end_date_ymd] => 2025-04-01 00:48:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:48:05' and `end` < '2025-04-01 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-01 00:48:18] Production.INFO: count ==653 [2025-04-01 00:48:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:48:05 - End Time 2025-04-01 00:48:05 [2025-04-01 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807271', 'tblTempUsageDetail_20' ) start [2025-04-01 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807271', 'tblTempUsageDetail_20' ) end [2025-04-01 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807271', 'tblTempVendorCDR_20' ) start [2025-04-01 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807271', 'tblTempVendorCDR_20' ) end [2025-04-01 00:48:18] Production.INFO: ProcessCDR(1,14807271,1,1,2) [2025-04-01 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807271', 'tblTempUsageDetail_20' ) start [2025-04-01 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807271', 'tblTempUsageDetail_20' ) end [2025-04-01 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:48:21] Production.INFO: ==16328== Releasing lock... [2025-04-01 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:48:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:49:05 [end_date_ymd] => 2025-04-01 00:49:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:49:05' and `end` < '2025-04-01 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-01 00:49:18] Production.INFO: count ==704 [2025-04-01 00:49:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:49:05 - End Time 2025-04-01 00:49:05 [2025-04-01 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807276', 'tblTempUsageDetail_20' ) start [2025-04-01 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807276', 'tblTempUsageDetail_20' ) end [2025-04-01 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807276', 'tblTempVendorCDR_20' ) start [2025-04-01 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807276', 'tblTempVendorCDR_20' ) end [2025-04-01 00:49:18] Production.INFO: ProcessCDR(1,14807276,1,1,2) [2025-04-01 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807276', 'tblTempUsageDetail_20' ) start [2025-04-01 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807276', 'tblTempUsageDetail_20' ) end [2025-04-01 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:49:22] Production.INFO: ==16416== Releasing lock... [2025-04-01 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:49:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:50:06 [end_date_ymd] => 2025-04-01 00:50:06 [RateCDR] => 1 ) [2025-04-01 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 21:50:06' and `end` < '2025-04-01 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 00:50:19] Production.INFO: count ==718 [2025-04-01 00:50:19] Production.ERROR: pbx CDR StartTime 2025-03-31 21:50:06 - End Time 2025-04-01 00:50:06 [2025-04-01 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807282', 'tblTempUsageDetail_20' ) start [2025-04-01 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807282', 'tblTempUsageDetail_20' ) end [2025-04-01 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807282', 'tblTempVendorCDR_20' ) start [2025-04-01 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807282', 'tblTempVendorCDR_20' ) end [2025-04-01 00:50:19] Production.INFO: ProcessCDR(1,14807282,1,1,2) [2025-04-01 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807282', 'tblTempUsageDetail_20' ) start [2025-04-01 00:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807282', 'tblTempUsageDetail_20' ) end [2025-04-01 00:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:50:24] Production.INFO: ==16539== Releasing lock... [2025-04-01 00:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:50:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 00:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:51:06 [end_date_ymd] => 2025-04-01 00:51:06 [RateCDR] => 1 ) [2025-04-01 00: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-03-31 21:51:06' and `end` < '2025-04-01 00: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-01 00:51:18] Production.INFO: count ==719 [2025-04-01 00:51:19] Production.ERROR: pbx CDR StartTime 2025-03-31 21:51:06 - End Time 2025-04-01 00:51:06 [2025-04-01 00:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807287', 'tblTempUsageDetail_20' ) start [2025-04-01 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807287', 'tblTempUsageDetail_20' ) end [2025-04-01 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807287', 'tblTempVendorCDR_20' ) start [2025-04-01 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807287', 'tblTempVendorCDR_20' ) end [2025-04-01 00:51:19] Production.INFO: ProcessCDR(1,14807287,1,1,2) [2025-04-01 00:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807287', 'tblTempUsageDetail_20' ) start [2025-04-01 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807287', 'tblTempUsageDetail_20' ) end [2025-04-01 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:51:22] Production.INFO: ==16615== Releasing lock... [2025-04-01 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:51:22] Production.INFO: 34 MB #Memory Used# [2025-04-01 00:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:52:06 [end_date_ymd] => 2025-04-01 00:52:06 [RateCDR] => 1 ) [2025-04-01 00:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 21:52:06' and `end` < '2025-04-01 00:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 00:52:18] Production.INFO: count ==717 [2025-04-01 00:52:19] Production.ERROR: pbx CDR StartTime 2025-03-31 21:52:06 - End Time 2025-04-01 00:52:06 [2025-04-01 00:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807292', 'tblTempUsageDetail_20' ) start [2025-04-01 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807292', 'tblTempUsageDetail_20' ) end [2025-04-01 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807292', 'tblTempVendorCDR_20' ) start [2025-04-01 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807292', 'tblTempVendorCDR_20' ) end [2025-04-01 00:52:19] Production.INFO: ProcessCDR(1,14807292,1,1,2) [2025-04-01 00:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807292', 'tblTempUsageDetail_20' ) start [2025-04-01 00:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807292', 'tblTempUsageDetail_20' ) end [2025-04-01 00:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:52:23] Production.INFO: ==16693== Releasing lock... [2025-04-01 00:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:52:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:53:05 [end_date_ymd] => 2025-04-01 00:53:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:53:05' and `end` < '2025-04-01 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-01 00:53:17] Production.INFO: count ==702 [2025-04-01 00:53:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:53:05 - End Time 2025-04-01 00:53:05 [2025-04-01 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807297', 'tblTempUsageDetail_20' ) start [2025-04-01 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807297', 'tblTempUsageDetail_20' ) end [2025-04-01 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807297', 'tblTempVendorCDR_20' ) start [2025-04-01 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807297', 'tblTempVendorCDR_20' ) end [2025-04-01 00:53:18] Production.INFO: ProcessCDR(1,14807297,1,1,2) [2025-04-01 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807297', 'tblTempUsageDetail_20' ) start [2025-04-01 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807297', 'tblTempUsageDetail_20' ) end [2025-04-01 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:53:21] Production.INFO: ==16769== Releasing lock... [2025-04-01 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:53:21] Production.INFO: 34 MB #Memory Used# [2025-04-01 00:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:54:04 [end_date_ymd] => 2025-04-01 00:54:04 [RateCDR] => 1 ) [2025-04-01 00:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 21:54:04' and `end` < '2025-04-01 00:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 00:54:17] Production.INFO: count ==700 [2025-04-01 00:54:17] Production.ERROR: pbx CDR StartTime 2025-03-31 21:54:04 - End Time 2025-04-01 00:54:04 [2025-04-01 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807302', 'tblTempUsageDetail_20' ) start [2025-04-01 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807302', 'tblTempUsageDetail_20' ) end [2025-04-01 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807302', 'tblTempVendorCDR_20' ) start [2025-04-01 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807302', 'tblTempVendorCDR_20' ) end [2025-04-01 00:54:17] Production.INFO: ProcessCDR(1,14807302,1,1,2) [2025-04-01 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807302', 'tblTempUsageDetail_20' ) start [2025-04-01 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807302', 'tblTempUsageDetail_20' ) end [2025-04-01 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:54:21] Production.INFO: ==16844== Releasing lock... [2025-04-01 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:54:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:55:05 [end_date_ymd] => 2025-04-01 00:55:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:55:05' and `end` < '2025-04-01 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-01 00:55:18] Production.INFO: count ==699 [2025-04-01 00:55:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:55:05 - End Time 2025-04-01 00:55:05 [2025-04-01 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807307', 'tblTempUsageDetail_20' ) start [2025-04-01 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807307', 'tblTempUsageDetail_20' ) end [2025-04-01 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807307', 'tblTempVendorCDR_20' ) start [2025-04-01 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807307', 'tblTempVendorCDR_20' ) end [2025-04-01 00:55:18] Production.INFO: ProcessCDR(1,14807307,1,1,2) [2025-04-01 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807307', 'tblTempUsageDetail_20' ) start [2025-04-01 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807307', 'tblTempUsageDetail_20' ) end [2025-04-01 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:55:21] Production.INFO: ==16922== Releasing lock... [2025-04-01 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:55:21] Production.INFO: 34 MB #Memory Used# [2025-04-01 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:56:05 [end_date_ymd] => 2025-04-01 00:56:05 [RateCDR] => 1 ) [2025-04-01 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 21:56:05' and `end` < '2025-04-01 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 00:56:18] Production.INFO: count ==696 [2025-04-01 00:56:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:56:05 - End Time 2025-04-01 00:56:05 [2025-04-01 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807312', 'tblTempUsageDetail_20' ) start [2025-04-01 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807312', 'tblTempUsageDetail_20' ) end [2025-04-01 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807312', 'tblTempVendorCDR_20' ) start [2025-04-01 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807312', 'tblTempVendorCDR_20' ) end [2025-04-01 00:56:18] Production.INFO: ProcessCDR(1,14807312,1,1,2) [2025-04-01 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807312', 'tblTempUsageDetail_20' ) start [2025-04-01 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807312', 'tblTempUsageDetail_20' ) end [2025-04-01 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:56:21] Production.INFO: ==17000== Releasing lock... [2025-04-01 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:56:21] Production.INFO: 34 MB #Memory Used# [2025-04-01 00:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:57:06 [end_date_ymd] => 2025-04-01 00:57:06 [RateCDR] => 1 ) [2025-04-01 00: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-03-31 21:57:06' and `end` < '2025-04-01 00: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-01 00:57:18] Production.INFO: count ==696 [2025-04-01 00:57:19] Production.ERROR: pbx CDR StartTime 2025-03-31 21:57:06 - End Time 2025-04-01 00:57:06 [2025-04-01 00:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807317', 'tblTempUsageDetail_20' ) start [2025-04-01 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807317', 'tblTempUsageDetail_20' ) end [2025-04-01 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807317', 'tblTempVendorCDR_20' ) start [2025-04-01 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807317', 'tblTempVendorCDR_20' ) end [2025-04-01 00:57:19] Production.INFO: ProcessCDR(1,14807317,1,1,2) [2025-04-01 00:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807317', 'tblTempUsageDetail_20' ) start [2025-04-01 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807317', 'tblTempUsageDetail_20' ) end [2025-04-01 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:57:22] Production.INFO: ==17073== Releasing lock... [2025-04-01 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:57:22] Production.INFO: 34 MB #Memory Used# [2025-04-01 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:58:05 [end_date_ymd] => 2025-04-01 00:58:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:58:05' and `end` < '2025-04-01 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-01 00:58:17] Production.INFO: count ==695 [2025-04-01 00:58:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:58:05 - End Time 2025-04-01 00:58:05 [2025-04-01 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807322', 'tblTempUsageDetail_20' ) start [2025-04-01 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807322', 'tblTempUsageDetail_20' ) end [2025-04-01 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807322', 'tblTempVendorCDR_20' ) start [2025-04-01 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807322', 'tblTempVendorCDR_20' ) end [2025-04-01 00:58:18] Production.INFO: ProcessCDR(1,14807322,1,1,2) [2025-04-01 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807322', 'tblTempUsageDetail_20' ) start [2025-04-01 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807322', 'tblTempUsageDetail_20' ) end [2025-04-01 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:58:21] Production.INFO: ==17148== Releasing lock... [2025-04-01 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:58:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-01 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 21:59:05 [end_date_ymd] => 2025-04-01 00:59:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 21:59:05' and `end` < '2025-04-01 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-01 00:59:18] Production.INFO: count ==697 [2025-04-01 00:59:18] Production.ERROR: pbx CDR StartTime 2025-03-31 21:59:05 - End Time 2025-04-01 00:59:05 [2025-04-01 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807327', 'tblTempUsageDetail_20' ) start [2025-04-01 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807327', 'tblTempUsageDetail_20' ) end [2025-04-01 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807327', 'tblTempVendorCDR_20' ) start [2025-04-01 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807327', 'tblTempVendorCDR_20' ) end [2025-04-01 00:59:18] Production.INFO: ProcessCDR(1,14807327,1,1,2) [2025-04-01 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807327', 'tblTempUsageDetail_20' ) start [2025-04-01 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807327', 'tblTempUsageDetail_20' ) end [2025-04-01 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 00:59:22] Production.INFO: ==17229== Releasing lock... [2025-04-01 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 00:59:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:00:06 [end_date_ymd] => 2025-04-01 01:00:06 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:00:06' and `end` < '2025-04-01 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-01 01:00:18] Production.INFO: count ==689 [2025-04-01 01:00:19] Production.ERROR: pbx CDR StartTime 2025-03-31 22:00:06 - End Time 2025-04-01 01:00:06 [2025-04-01 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807333', 'tblTempUsageDetail_20' ) start [2025-04-01 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807333', 'tblTempUsageDetail_20' ) end [2025-04-01 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807333', 'tblTempVendorCDR_20' ) start [2025-04-01 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807333', 'tblTempVendorCDR_20' ) end [2025-04-01 01:00:19] Production.INFO: ProcessCDR(1,14807333,1,1,2) [2025-04-01 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807333', 'tblTempUsageDetail_20' ) start [2025-04-01 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807333', 'tblTempUsageDetail_20' ) end [2025-04-01 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:00:22] Production.INFO: ==17313== Releasing lock... [2025-04-01 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:00:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 01:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:01:04 [end_date_ymd] => 2025-04-01 01:01:04 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:01:04' and `end` < '2025-04-01 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-01 01:01:17] Production.INFO: count ==683 [2025-04-01 01:01:17] Production.ERROR: pbx CDR StartTime 2025-03-31 22:01:04 - End Time 2025-04-01 01:01:04 [2025-04-01 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807338', 'tblTempUsageDetail_20' ) start [2025-04-01 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807338', 'tblTempUsageDetail_20' ) end [2025-04-01 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807338', 'tblTempVendorCDR_20' ) start [2025-04-01 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807338', 'tblTempVendorCDR_20' ) end [2025-04-01 01:01:17] Production.INFO: ProcessCDR(1,14807338,1,1,2) [2025-04-01 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807338', 'tblTempUsageDetail_20' ) start [2025-04-01 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807338', 'tblTempUsageDetail_20' ) end [2025-04-01 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:01:21] Production.INFO: ==17406== Releasing lock... [2025-04-01 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:01:21] Production.INFO: 34 MB #Memory Used# [2025-04-01 01:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:02:06 [end_date_ymd] => 2025-04-01 01:02:06 [RateCDR] => 1 ) [2025-04-01 01:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 22:02:06' and `end` < '2025-04-01 01:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 01:02:18] Production.INFO: count ==686 [2025-04-01 01:02:19] Production.ERROR: pbx CDR StartTime 2025-03-31 22:02:06 - End Time 2025-04-01 01:02:06 [2025-04-01 01:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807343', 'tblTempUsageDetail_20' ) start [2025-04-01 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807343', 'tblTempUsageDetail_20' ) end [2025-04-01 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807343', 'tblTempVendorCDR_20' ) start [2025-04-01 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807343', 'tblTempVendorCDR_20' ) end [2025-04-01 01:02:19] Production.INFO: ProcessCDR(1,14807343,1,1,2) [2025-04-01 01:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807343', 'tblTempUsageDetail_20' ) start [2025-04-01 01:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807343', 'tblTempUsageDetail_20' ) end [2025-04-01 01:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:02:23] Production.INFO: ==17495== Releasing lock... [2025-04-01 01:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:02:23] Production.INFO: 34 MB #Memory Used# [2025-04-01 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:03:05 [end_date_ymd] => 2025-04-01 01:03:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:03:05' and `end` < '2025-04-01 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-01 01:03:18] Production.INFO: count ==685 [2025-04-01 01:03:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:03:05 - End Time 2025-04-01 01:03:05 [2025-04-01 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807348', 'tblTempUsageDetail_20' ) start [2025-04-01 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807348', 'tblTempUsageDetail_20' ) end [2025-04-01 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807348', 'tblTempVendorCDR_20' ) start [2025-04-01 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807348', 'tblTempVendorCDR_20' ) end [2025-04-01 01:03:18] Production.INFO: ProcessCDR(1,14807348,1,1,2) [2025-04-01 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807348', 'tblTempUsageDetail_20' ) start [2025-04-01 01:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807348', 'tblTempUsageDetail_20' ) end [2025-04-01 01:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:03:23] Production.INFO: ==17570== Releasing lock... [2025-04-01 01:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:03:23] Production.INFO: 34 MB #Memory Used# [2025-04-01 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:04:05 [end_date_ymd] => 2025-04-01 01:04:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:04:05' and `end` < '2025-04-01 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-01 01:04:17] Production.INFO: count ==685 [2025-04-01 01:04:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:04:05 - End Time 2025-04-01 01:04:05 [2025-04-01 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807353', 'tblTempUsageDetail_20' ) start [2025-04-01 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807353', 'tblTempUsageDetail_20' ) end [2025-04-01 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807353', 'tblTempVendorCDR_20' ) start [2025-04-01 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807353', 'tblTempVendorCDR_20' ) end [2025-04-01 01:04:18] Production.INFO: ProcessCDR(1,14807353,1,1,2) [2025-04-01 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807353', 'tblTempUsageDetail_20' ) start [2025-04-01 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807353', 'tblTempUsageDetail_20' ) end [2025-04-01 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:04:21] Production.INFO: ==17651== Releasing lock... [2025-04-01 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:04:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:05:05 [end_date_ymd] => 2025-04-01 01:05:05 [RateCDR] => 1 ) [2025-04-01 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 22:05:05' and `end` < '2025-04-01 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 01:05:18] Production.INFO: count ==684 [2025-04-01 01:05:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:05:05 - End Time 2025-04-01 01:05:05 [2025-04-01 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807358', 'tblTempUsageDetail_20' ) start [2025-04-01 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807358', 'tblTempUsageDetail_20' ) end [2025-04-01 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807358', 'tblTempVendorCDR_20' ) start [2025-04-01 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807358', 'tblTempVendorCDR_20' ) end [2025-04-01 01:05:18] Production.INFO: ProcessCDR(1,14807358,1,1,2) [2025-04-01 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807358', 'tblTempUsageDetail_20' ) start [2025-04-01 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807358', 'tblTempUsageDetail_20' ) end [2025-04-01 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:05:22] Production.INFO: ==17772== Releasing lock... [2025-04-01 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:05:22] Production.INFO: 34 MB #Memory Used# [2025-04-01 01:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:06:06 [end_date_ymd] => 2025-04-01 01:06:06 [RateCDR] => 1 ) [2025-04-01 01:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 22:06:06' and `end` < '2025-04-01 01:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 01:06:18] Production.INFO: count ==688 [2025-04-01 01:06:19] Production.ERROR: pbx CDR StartTime 2025-03-31 22:06:06 - End Time 2025-04-01 01:06:06 [2025-04-01 01:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807363', 'tblTempUsageDetail_20' ) start [2025-04-01 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807363', 'tblTempUsageDetail_20' ) end [2025-04-01 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807363', 'tblTempVendorCDR_20' ) start [2025-04-01 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807363', 'tblTempVendorCDR_20' ) end [2025-04-01 01:06:19] Production.INFO: ProcessCDR(1,14807363,1,1,2) [2025-04-01 01:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807363', 'tblTempUsageDetail_20' ) start [2025-04-01 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807363', 'tblTempUsageDetail_20' ) end [2025-04-01 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:06:22] Production.INFO: ==17860== Releasing lock... [2025-04-01 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:06:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:07:05 [end_date_ymd] => 2025-04-01 01:07:05 [RateCDR] => 1 ) [2025-04-01 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 22:07:05' and `end` < '2025-04-01 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 01:07:18] Production.INFO: count ==692 [2025-04-01 01:07:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:07:05 - End Time 2025-04-01 01:07:05 [2025-04-01 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807368', 'tblTempUsageDetail_20' ) start [2025-04-01 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807368', 'tblTempUsageDetail_20' ) end [2025-04-01 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807368', 'tblTempVendorCDR_20' ) start [2025-04-01 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807368', 'tblTempVendorCDR_20' ) end [2025-04-01 01:07:18] Production.INFO: ProcessCDR(1,14807368,1,1,2) [2025-04-01 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807368', 'tblTempUsageDetail_20' ) start [2025-04-01 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807368', 'tblTempUsageDetail_20' ) end [2025-04-01 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:07:22] Production.INFO: ==17934== Releasing lock... [2025-04-01 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:07:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 01:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:08:06 [end_date_ymd] => 2025-04-01 01:08:06 [RateCDR] => 1 ) [2025-04-01 01: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-03-31 22:08:06' and `end` < '2025-04-01 01: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-01 01:08:18] Production.INFO: count ==692 [2025-04-01 01:08:19] Production.ERROR: pbx CDR StartTime 2025-03-31 22:08:06 - End Time 2025-04-01 01:08:06 [2025-04-01 01:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807373', 'tblTempUsageDetail_20' ) start [2025-04-01 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807373', 'tblTempUsageDetail_20' ) end [2025-04-01 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807373', 'tblTempVendorCDR_20' ) start [2025-04-01 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807373', 'tblTempVendorCDR_20' ) end [2025-04-01 01:08:19] Production.INFO: ProcessCDR(1,14807373,1,1,2) [2025-04-01 01:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807373', 'tblTempUsageDetail_20' ) start [2025-04-01 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807373', 'tblTempUsageDetail_20' ) end [2025-04-01 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:08:22] Production.INFO: ==18012== Releasing lock... [2025-04-01 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:08:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:09:05 [end_date_ymd] => 2025-04-01 01:09:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:09:05' and `end` < '2025-04-01 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-01 01:09:17] Production.INFO: count ==696 [2025-04-01 01:09:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:09:05 - End Time 2025-04-01 01:09:05 [2025-04-01 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807378', 'tblTempUsageDetail_20' ) start [2025-04-01 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807378', 'tblTempUsageDetail_20' ) end [2025-04-01 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807378', 'tblTempVendorCDR_20' ) start [2025-04-01 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807378', 'tblTempVendorCDR_20' ) end [2025-04-01 01:09:18] Production.INFO: ProcessCDR(1,14807378,1,1,2) [2025-04-01 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807378', 'tblTempUsageDetail_20' ) start [2025-04-01 01:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807378', 'tblTempUsageDetail_20' ) end [2025-04-01 01:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:09:23] Production.INFO: ==18087== Releasing lock... [2025-04-01 01:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:09:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:10:06 [end_date_ymd] => 2025-04-01 01:10:06 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:10:06' and `end` < '2025-04-01 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-01 01:10:19] Production.INFO: count ==706 [2025-04-01 01:10:19] Production.ERROR: pbx CDR StartTime 2025-03-31 22:10:06 - End Time 2025-04-01 01:10:06 [2025-04-01 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807384', 'tblTempUsageDetail_20' ) start [2025-04-01 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807384', 'tblTempUsageDetail_20' ) end [2025-04-01 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807384', 'tblTempVendorCDR_20' ) start [2025-04-01 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807384', 'tblTempVendorCDR_20' ) end [2025-04-01 01:10:19] Production.INFO: ProcessCDR(1,14807384,1,1,2) [2025-04-01 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807384', 'tblTempUsageDetail_20' ) start [2025-04-01 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807384', 'tblTempUsageDetail_20' ) end [2025-04-01 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:10:23] Production.INFO: ==18165== Releasing lock... [2025-04-01 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:10:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:11:05 [end_date_ymd] => 2025-04-01 01:11:05 [RateCDR] => 1 ) [2025-04-01 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 22:11:05' and `end` < '2025-04-01 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 01:11:18] Production.INFO: count ==733 [2025-04-01 01:11:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:11:05 - End Time 2025-04-01 01:11:05 [2025-04-01 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807389', 'tblTempUsageDetail_20' ) start [2025-04-01 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807389', 'tblTempUsageDetail_20' ) end [2025-04-01 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807389', 'tblTempVendorCDR_20' ) start [2025-04-01 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807389', 'tblTempVendorCDR_20' ) end [2025-04-01 01:11:18] Production.INFO: ProcessCDR(1,14807389,1,1,2) [2025-04-01 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807389', 'tblTempUsageDetail_20' ) start [2025-04-01 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807389', 'tblTempUsageDetail_20' ) end [2025-04-01 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:11:22] Production.INFO: ==18246== Releasing lock... [2025-04-01 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:11:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:12:05 [end_date_ymd] => 2025-04-01 01:12:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:12:05' and `end` < '2025-04-01 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-01 01:12:18] Production.INFO: count ==776 [2025-04-01 01:12:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:12:05 - End Time 2025-04-01 01:12:05 [2025-04-01 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807394', 'tblTempUsageDetail_20' ) start [2025-04-01 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807394', 'tblTempUsageDetail_20' ) end [2025-04-01 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807394', 'tblTempVendorCDR_20' ) start [2025-04-01 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807394', 'tblTempVendorCDR_20' ) end [2025-04-01 01:12:18] Production.INFO: ProcessCDR(1,14807394,1,1,2) [2025-04-01 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807394', 'tblTempUsageDetail_20' ) start [2025-04-01 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807394', 'tblTempUsageDetail_20' ) end [2025-04-01 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:12:22] Production.INFO: ==18322== Releasing lock... [2025-04-01 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:12:22] Production.INFO: 34 MB #Memory Used# [2025-04-01 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:13:05 [end_date_ymd] => 2025-04-01 01:13:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:13:05' and `end` < '2025-04-01 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-01 01:13:17] Production.INFO: count ==777 [2025-04-01 01:13:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:13:05 - End Time 2025-04-01 01:13:05 [2025-04-01 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807399', 'tblTempUsageDetail_20' ) start [2025-04-01 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807399', 'tblTempUsageDetail_20' ) end [2025-04-01 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807399', 'tblTempVendorCDR_20' ) start [2025-04-01 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807399', 'tblTempVendorCDR_20' ) end [2025-04-01 01:13:18] Production.INFO: ProcessCDR(1,14807399,1,1,2) [2025-04-01 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807399', 'tblTempUsageDetail_20' ) start [2025-04-01 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807399', 'tblTempUsageDetail_20' ) end [2025-04-01 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:13:21] Production.INFO: ==18400== Releasing lock... [2025-04-01 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:13:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-01 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:14:05 [end_date_ymd] => 2025-04-01 01:14:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:14:05' and `end` < '2025-04-01 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-01 01:14:18] Production.INFO: count ==787 [2025-04-01 01:14:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:14:05 - End Time 2025-04-01 01:14:05 [2025-04-01 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807404', 'tblTempUsageDetail_20' ) start [2025-04-01 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807404', 'tblTempUsageDetail_20' ) end [2025-04-01 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807404', 'tblTempVendorCDR_20' ) start [2025-04-01 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807404', 'tblTempVendorCDR_20' ) end [2025-04-01 01:14:18] Production.INFO: ProcessCDR(1,14807404,1,1,2) [2025-04-01 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807404', 'tblTempUsageDetail_20' ) start [2025-04-01 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807404', 'tblTempUsageDetail_20' ) end [2025-04-01 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:14:22] Production.INFO: ==18478== Releasing lock... [2025-04-01 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:14:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-01 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:15:05 [end_date_ymd] => 2025-04-01 01:15:05 [RateCDR] => 1 ) [2025-04-01 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 22:15:05' and `end` < '2025-04-01 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 01:15:17] Production.INFO: count ==787 [2025-04-01 01:15:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:15:05 - End Time 2025-04-01 01:15:05 [2025-04-01 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807409', 'tblTempUsageDetail_20' ) start [2025-04-01 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807409', 'tblTempUsageDetail_20' ) end [2025-04-01 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807409', 'tblTempVendorCDR_20' ) start [2025-04-01 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807409', 'tblTempVendorCDR_20' ) end [2025-04-01 01:15:18] Production.INFO: ProcessCDR(1,14807409,1,1,2) [2025-04-01 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807409', 'tblTempUsageDetail_20' ) start [2025-04-01 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807409', 'tblTempUsageDetail_20' ) end [2025-04-01 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:15:21] Production.INFO: ==18556== Releasing lock... [2025-04-01 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:15:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-01 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:16:05 [end_date_ymd] => 2025-04-01 01:16:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:16:05' and `end` < '2025-04-01 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-01 01:16:18] Production.INFO: count ==787 [2025-04-01 01:16:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:16:05 - End Time 2025-04-01 01:16:05 [2025-04-01 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807414', 'tblTempUsageDetail_20' ) start [2025-04-01 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807414', 'tblTempUsageDetail_20' ) end [2025-04-01 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807414', 'tblTempVendorCDR_20' ) start [2025-04-01 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807414', 'tblTempVendorCDR_20' ) end [2025-04-01 01:16:19] Production.INFO: ProcessCDR(1,14807414,1,1,2) [2025-04-01 01:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807414', 'tblTempUsageDetail_20' ) start [2025-04-01 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807414', 'tblTempUsageDetail_20' ) end [2025-04-01 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:16:22] Production.INFO: ==18629== Releasing lock... [2025-04-01 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:16:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-01 01:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:17:06 [end_date_ymd] => 2025-04-01 01:17:06 [RateCDR] => 1 ) [2025-04-01 01:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 22:17:06' and `end` < '2025-04-01 01:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 01:17:19] Production.INFO: count ==787 [2025-04-01 01:17:19] Production.ERROR: pbx CDR StartTime 2025-03-31 22:17:06 - End Time 2025-04-01 01:17:06 [2025-04-01 01:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807419', 'tblTempUsageDetail_20' ) start [2025-04-01 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807419', 'tblTempUsageDetail_20' ) end [2025-04-01 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807419', 'tblTempVendorCDR_20' ) start [2025-04-01 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807419', 'tblTempVendorCDR_20' ) end [2025-04-01 01:17:19] Production.INFO: ProcessCDR(1,14807419,1,1,2) [2025-04-01 01:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807419', 'tblTempUsageDetail_20' ) start [2025-04-01 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807419', 'tblTempUsageDetail_20' ) end [2025-04-01 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:17:22] Production.INFO: ==18704== Releasing lock... [2025-04-01 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:17:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-01 01:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:18:06 [end_date_ymd] => 2025-04-01 01:18:06 [RateCDR] => 1 ) [2025-04-01 01: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-03-31 22:18:06' and `end` < '2025-04-01 01: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-01 01:18:18] Production.INFO: count ==789 [2025-04-01 01:18:19] Production.ERROR: pbx CDR StartTime 2025-03-31 22:18:06 - End Time 2025-04-01 01:18:06 [2025-04-01 01:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807424', 'tblTempUsageDetail_20' ) start [2025-04-01 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807424', 'tblTempUsageDetail_20' ) end [2025-04-01 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807424', 'tblTempVendorCDR_20' ) start [2025-04-01 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807424', 'tblTempVendorCDR_20' ) end [2025-04-01 01:18:19] Production.INFO: ProcessCDR(1,14807424,1,1,2) [2025-04-01 01:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807424', 'tblTempUsageDetail_20' ) start [2025-04-01 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807424', 'tblTempUsageDetail_20' ) end [2025-04-01 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:18:22] Production.INFO: ==18792== Releasing lock... [2025-04-01 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:18:22] Production.INFO: 34 MB #Memory Used# [2025-04-01 01:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:19:06 [end_date_ymd] => 2025-04-01 01:19:06 [RateCDR] => 1 ) [2025-04-01 01: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-03-31 22:19:06' and `end` < '2025-04-01 01: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-01 01:19:18] Production.INFO: count ==793 [2025-04-01 01:19:19] Production.ERROR: pbx CDR StartTime 2025-03-31 22:19:06 - End Time 2025-04-01 01:19:06 [2025-04-01 01:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807429', 'tblTempUsageDetail_20' ) start [2025-04-01 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807429', 'tblTempUsageDetail_20' ) end [2025-04-01 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807429', 'tblTempVendorCDR_20' ) start [2025-04-01 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807429', 'tblTempVendorCDR_20' ) end [2025-04-01 01:19:19] Production.INFO: ProcessCDR(1,14807429,1,1,2) [2025-04-01 01:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807429', 'tblTempUsageDetail_20' ) start [2025-04-01 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807429', 'tblTempUsageDetail_20' ) end [2025-04-01 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:19:22] Production.INFO: ==18886== Releasing lock... [2025-04-01 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:19:22] Production.INFO: 34 MB #Memory Used# [2025-04-01 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:20:06 [end_date_ymd] => 2025-04-01 01:20:06 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:20:06' and `end` < '2025-04-01 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-01 01:20:19] Production.INFO: count ==804 [2025-04-01 01:20:19] Production.ERROR: pbx CDR StartTime 2025-03-31 22:20:06 - End Time 2025-04-01 01:20:06 [2025-04-01 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807435', 'tblTempUsageDetail_20' ) start [2025-04-01 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807435', 'tblTempUsageDetail_20' ) end [2025-04-01 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807435', 'tblTempVendorCDR_20' ) start [2025-04-01 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807435', 'tblTempVendorCDR_20' ) end [2025-04-01 01:20:19] Production.INFO: ProcessCDR(1,14807435,1,1,2) [2025-04-01 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807435', 'tblTempUsageDetail_20' ) start [2025-04-01 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807435', 'tblTempUsageDetail_20' ) end [2025-04-01 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:20:22] Production.INFO: ==19002== Releasing lock... [2025-04-01 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:20:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:21:05 [end_date_ymd] => 2025-04-01 01:21:05 [RateCDR] => 1 ) [2025-04-01 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 22:21:05' and `end` < '2025-04-01 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 01:21:18] Production.INFO: count ==809 [2025-04-01 01:21:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:21:05 - End Time 2025-04-01 01:21:05 [2025-04-01 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807440', 'tblTempUsageDetail_20' ) start [2025-04-01 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807440', 'tblTempUsageDetail_20' ) end [2025-04-01 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807440', 'tblTempVendorCDR_20' ) start [2025-04-01 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807440', 'tblTempVendorCDR_20' ) end [2025-04-01 01:21:18] Production.INFO: ProcessCDR(1,14807440,1,1,2) [2025-04-01 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807440', 'tblTempUsageDetail_20' ) start [2025-04-01 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807440', 'tblTempUsageDetail_20' ) end [2025-04-01 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:21:22] Production.INFO: ==19078== Releasing lock... [2025-04-01 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:21:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-01 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:22:05 [end_date_ymd] => 2025-04-01 01:22:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:22:05' and `end` < '2025-04-01 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-01 01:22:18] Production.INFO: count ==798 [2025-04-01 01:22:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:22:05 - End Time 2025-04-01 01:22:05 [2025-04-01 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807445', 'tblTempUsageDetail_20' ) start [2025-04-01 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807445', 'tblTempUsageDetail_20' ) end [2025-04-01 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807445', 'tblTempVendorCDR_20' ) start [2025-04-01 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807445', 'tblTempVendorCDR_20' ) end [2025-04-01 01:22:18] Production.INFO: ProcessCDR(1,14807445,1,1,2) [2025-04-01 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807445', 'tblTempUsageDetail_20' ) start [2025-04-01 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807445', 'tblTempUsageDetail_20' ) end [2025-04-01 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:22:22] Production.INFO: ==19168== Releasing lock... [2025-04-01 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:22:22] Production.INFO: 34 MB #Memory Used# [2025-04-01 01:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:23:06 [end_date_ymd] => 2025-04-01 01:23:06 [RateCDR] => 1 ) [2025-04-01 01: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-03-31 22:23:06' and `end` < '2025-04-01 01: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-01 01:23:18] Production.INFO: count ==798 [2025-04-01 01:23:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:23:06 - End Time 2025-04-01 01:23:06 [2025-04-01 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807450', 'tblTempUsageDetail_20' ) start [2025-04-01 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807450', 'tblTempUsageDetail_20' ) end [2025-04-01 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807450', 'tblTempVendorCDR_20' ) start [2025-04-01 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807450', 'tblTempVendorCDR_20' ) end [2025-04-01 01:23:18] Production.INFO: ProcessCDR(1,14807450,1,1,2) [2025-04-01 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807450', 'tblTempUsageDetail_20' ) start [2025-04-01 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807450', 'tblTempUsageDetail_20' ) end [2025-04-01 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:23:22] Production.INFO: ==19245== Releasing lock... [2025-04-01 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:23:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-01 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:24:05 [end_date_ymd] => 2025-04-01 01:24:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:24:05' and `end` < '2025-04-01 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-01 01:24:17] Production.INFO: count ==796 [2025-04-01 01:24:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:24:05 - End Time 2025-04-01 01:24:05 [2025-04-01 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807455', 'tblTempUsageDetail_20' ) start [2025-04-01 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807455', 'tblTempUsageDetail_20' ) end [2025-04-01 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807455', 'tblTempVendorCDR_20' ) start [2025-04-01 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807455', 'tblTempVendorCDR_20' ) end [2025-04-01 01:24:18] Production.INFO: ProcessCDR(1,14807455,1,1,2) [2025-04-01 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807455', 'tblTempUsageDetail_20' ) start [2025-04-01 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807455', 'tblTempUsageDetail_20' ) end [2025-04-01 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:24:21] Production.INFO: ==19320== Releasing lock... [2025-04-01 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:24:21] Production.INFO: 35 MB #Memory Used# [2025-04-01 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:25:06 [end_date_ymd] => 2025-04-01 01:25:06 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:25:06' and `end` < '2025-04-01 01: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-01 01:25:18] Production.INFO: count ==797 [2025-04-01 01:25:19] Production.ERROR: pbx CDR StartTime 2025-03-31 22:25:06 - End Time 2025-04-01 01:25:06 [2025-04-01 01:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807460', 'tblTempUsageDetail_20' ) start [2025-04-01 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807460', 'tblTempUsageDetail_20' ) end [2025-04-01 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807460', 'tblTempVendorCDR_20' ) start [2025-04-01 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807460', 'tblTempVendorCDR_20' ) end [2025-04-01 01:25:19] Production.INFO: ProcessCDR(1,14807460,1,1,2) [2025-04-01 01:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807460', 'tblTempUsageDetail_20' ) start [2025-04-01 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807460', 'tblTempUsageDetail_20' ) end [2025-04-01 01:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:25:22] Production.INFO: ==19394== Releasing lock... [2025-04-01 01:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:25:22] Production.INFO: 34 MB #Memory Used# [2025-04-01 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:26:05 [end_date_ymd] => 2025-04-01 01:26:05 [RateCDR] => 1 ) [2025-04-01 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 22:26:05' and `end` < '2025-04-01 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 01:26:18] Production.INFO: count ==796 [2025-04-01 01:26:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:26:05 - End Time 2025-04-01 01:26:05 [2025-04-01 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807465', 'tblTempUsageDetail_20' ) start [2025-04-01 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807465', 'tblTempUsageDetail_20' ) end [2025-04-01 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807465', 'tblTempVendorCDR_20' ) start [2025-04-01 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807465', 'tblTempVendorCDR_20' ) end [2025-04-01 01:26:18] Production.INFO: ProcessCDR(1,14807465,1,1,2) [2025-04-01 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807465', 'tblTempUsageDetail_20' ) start [2025-04-01 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807465', 'tblTempUsageDetail_20' ) end [2025-04-01 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:26:22] Production.INFO: ==19465== Releasing lock... [2025-04-01 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:26:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:27:05 [end_date_ymd] => 2025-04-01 01:27:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:27:05' and `end` < '2025-04-01 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-01 01:27:18] Production.INFO: count ==797 [2025-04-01 01:27:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:27:05 - End Time 2025-04-01 01:27:05 [2025-04-01 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807470', 'tblTempUsageDetail_20' ) start [2025-04-01 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807470', 'tblTempUsageDetail_20' ) end [2025-04-01 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807470', 'tblTempVendorCDR_20' ) start [2025-04-01 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807470', 'tblTempVendorCDR_20' ) end [2025-04-01 01:27:18] Production.INFO: ProcessCDR(1,14807470,1,1,2) [2025-04-01 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807470', 'tblTempUsageDetail_20' ) start [2025-04-01 01:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807470', 'tblTempUsageDetail_20' ) end [2025-04-01 01:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:27:23] Production.INFO: ==19541== Releasing lock... [2025-04-01 01:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:27:23] Production.INFO: 34 MB #Memory Used# [2025-04-01 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:28:05 [end_date_ymd] => 2025-04-01 01:28:05 [RateCDR] => 1 ) [2025-04-01 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 22:28:05' and `end` < '2025-04-01 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 01:28:18] Production.INFO: count ==800 [2025-04-01 01:28:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:28:05 - End Time 2025-04-01 01:28:05 [2025-04-01 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807475', 'tblTempUsageDetail_20' ) start [2025-04-01 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807475', 'tblTempUsageDetail_20' ) end [2025-04-01 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807475', 'tblTempVendorCDR_20' ) start [2025-04-01 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807475', 'tblTempVendorCDR_20' ) end [2025-04-01 01:28:18] Production.INFO: ProcessCDR(1,14807475,1,1,2) [2025-04-01 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807475', 'tblTempUsageDetail_20' ) start [2025-04-01 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807475', 'tblTempUsageDetail_20' ) end [2025-04-01 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:28:21] Production.INFO: ==19613== Releasing lock... [2025-04-01 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:28:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:29:05 [end_date_ymd] => 2025-04-01 01:29:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:29:05' and `end` < '2025-04-01 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-01 01:29:18] Production.INFO: count ==799 [2025-04-01 01:29:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:29:05 - End Time 2025-04-01 01:29:05 [2025-04-01 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807480', 'tblTempUsageDetail_20' ) start [2025-04-01 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807480', 'tblTempUsageDetail_20' ) end [2025-04-01 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807480', 'tblTempVendorCDR_20' ) start [2025-04-01 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807480', 'tblTempVendorCDR_20' ) end [2025-04-01 01:29:18] Production.INFO: ProcessCDR(1,14807480,1,1,2) [2025-04-01 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807480', 'tblTempUsageDetail_20' ) start [2025-04-01 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807480', 'tblTempUsageDetail_20' ) end [2025-04-01 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:29:21] Production.INFO: ==19684== Releasing lock... [2025-04-01 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:29:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:30:06 [end_date_ymd] => 2025-04-01 01:30:06 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:30:06' and `end` < '2025-04-01 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-01 01:30:18] Production.INFO: count ==799 [2025-04-01 01:30:19] Production.ERROR: pbx CDR StartTime 2025-03-31 22:30:06 - End Time 2025-04-01 01:30:06 [2025-04-01 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807486', 'tblTempUsageDetail_20' ) start [2025-04-01 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807486', 'tblTempUsageDetail_20' ) end [2025-04-01 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807486', 'tblTempVendorCDR_20' ) start [2025-04-01 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807486', 'tblTempVendorCDR_20' ) end [2025-04-01 01:30:19] Production.INFO: ProcessCDR(1,14807486,1,1,2) [2025-04-01 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807486', 'tblTempUsageDetail_20' ) start [2025-04-01 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807486', 'tblTempUsageDetail_20' ) end [2025-04-01 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:30:22] Production.INFO: ==19760== Releasing lock... [2025-04-01 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:30:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:31:05 [end_date_ymd] => 2025-04-01 01:31:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:31:05' and `end` < '2025-04-01 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-01 01:31:18] Production.INFO: count ==798 [2025-04-01 01:31:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:31:05 - End Time 2025-04-01 01:31:05 [2025-04-01 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807491', 'tblTempUsageDetail_20' ) start [2025-04-01 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807491', 'tblTempUsageDetail_20' ) end [2025-04-01 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807491', 'tblTempVendorCDR_20' ) start [2025-04-01 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807491', 'tblTempVendorCDR_20' ) end [2025-04-01 01:31:18] Production.INFO: ProcessCDR(1,14807491,1,1,2) [2025-04-01 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807491', 'tblTempUsageDetail_20' ) start [2025-04-01 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807491', 'tblTempUsageDetail_20' ) end [2025-04-01 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:31:22] Production.INFO: ==19836== Releasing lock... [2025-04-01 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:31:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-01 01:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:32:04 [end_date_ymd] => 2025-04-01 01:32:04 [RateCDR] => 1 ) [2025-04-01 01:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 22:32:04' and `end` < '2025-04-01 01:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 01:32:17] Production.INFO: count ==779 [2025-04-01 01:32:17] Production.ERROR: pbx CDR StartTime 2025-03-31 22:32:04 - End Time 2025-04-01 01:32:04 [2025-04-01 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807496', 'tblTempUsageDetail_20' ) start [2025-04-01 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807496', 'tblTempUsageDetail_20' ) end [2025-04-01 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807496', 'tblTempVendorCDR_20' ) start [2025-04-01 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807496', 'tblTempVendorCDR_20' ) end [2025-04-01 01:32:17] Production.INFO: ProcessCDR(1,14807496,1,1,2) [2025-04-01 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807496', 'tblTempUsageDetail_20' ) start [2025-04-01 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807496', 'tblTempUsageDetail_20' ) end [2025-04-01 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:32:21] Production.INFO: ==19906== Releasing lock... [2025-04-01 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:32:21] Production.INFO: 34 MB #Memory Used# [2025-04-01 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:33:05 [end_date_ymd] => 2025-04-01 01:33:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:33:05' and `end` < '2025-04-01 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-01 01:33:18] Production.INFO: count ==784 [2025-04-01 01:33:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:33:05 - End Time 2025-04-01 01:33:05 [2025-04-01 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807501', 'tblTempUsageDetail_20' ) start [2025-04-01 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807501', 'tblTempUsageDetail_20' ) end [2025-04-01 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807501', 'tblTempVendorCDR_20' ) start [2025-04-01 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807501', 'tblTempVendorCDR_20' ) end [2025-04-01 01:33:18] Production.INFO: ProcessCDR(1,14807501,1,1,2) [2025-04-01 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807501', 'tblTempUsageDetail_20' ) start [2025-04-01 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807501', 'tblTempUsageDetail_20' ) end [2025-04-01 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:33:22] Production.INFO: ==19993== Releasing lock... [2025-04-01 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:33:22] Production.INFO: 34 MB #Memory Used# [2025-04-01 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:34:06 [end_date_ymd] => 2025-04-01 01:34:06 [RateCDR] => 1 ) [2025-04-01 01:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 22:34:06' and `end` < '2025-04-01 01:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 01:34:19] Production.INFO: count ==788 [2025-04-01 01:34:19] Production.ERROR: pbx CDR StartTime 2025-03-31 22:34:06 - End Time 2025-04-01 01:34:06 [2025-04-01 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807506', 'tblTempUsageDetail_20' ) start [2025-04-01 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807506', 'tblTempUsageDetail_20' ) end [2025-04-01 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807506', 'tblTempVendorCDR_20' ) start [2025-04-01 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807506', 'tblTempVendorCDR_20' ) end [2025-04-01 01:34:19] Production.INFO: ProcessCDR(1,14807506,1,1,2) [2025-04-01 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807506', 'tblTempUsageDetail_20' ) start [2025-04-01 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807506', 'tblTempUsageDetail_20' ) end [2025-04-01 01:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:34:23] Production.INFO: ==20069== Releasing lock... [2025-04-01 01:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:34:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:35:05 [end_date_ymd] => 2025-04-01 01:35:05 [RateCDR] => 1 ) [2025-04-01 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 22:35:05' and `end` < '2025-04-01 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 01:35:18] Production.INFO: count ==780 [2025-04-01 01:35:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:35:05 - End Time 2025-04-01 01:35:05 [2025-04-01 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807511', 'tblTempUsageDetail_20' ) start [2025-04-01 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807511', 'tblTempUsageDetail_20' ) end [2025-04-01 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807511', 'tblTempVendorCDR_20' ) start [2025-04-01 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807511', 'tblTempVendorCDR_20' ) end [2025-04-01 01:35:18] Production.INFO: ProcessCDR(1,14807511,1,1,2) [2025-04-01 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807511', 'tblTempUsageDetail_20' ) start [2025-04-01 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807511', 'tblTempUsageDetail_20' ) end [2025-04-01 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:35:21] Production.INFO: ==20151== Releasing lock... [2025-04-01 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:35:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:36:06 [end_date_ymd] => 2025-04-01 01:36:06 [RateCDR] => 1 ) [2025-04-01 01: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-03-31 22:36:06' and `end` < '2025-04-01 01: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-01 01:36:18] Production.INFO: count ==780 [2025-04-01 01:36:19] Production.ERROR: pbx CDR StartTime 2025-03-31 22:36:06 - End Time 2025-04-01 01:36:06 [2025-04-01 01:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807516', 'tblTempUsageDetail_20' ) start [2025-04-01 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807516', 'tblTempUsageDetail_20' ) end [2025-04-01 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807516', 'tblTempVendorCDR_20' ) start [2025-04-01 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807516', 'tblTempVendorCDR_20' ) end [2025-04-01 01:36:19] Production.INFO: ProcessCDR(1,14807516,1,1,2) [2025-04-01 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807516', 'tblTempUsageDetail_20' ) start [2025-04-01 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807516', 'tblTempUsageDetail_20' ) end [2025-04-01 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:36:22] Production.INFO: ==20268== Releasing lock... [2025-04-01 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:36:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:37:05 [end_date_ymd] => 2025-04-01 01:37:05 [RateCDR] => 1 ) [2025-04-01 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 22:37:05' and `end` < '2025-04-01 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 01:37:18] Production.INFO: count ==779 [2025-04-01 01:37:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:37:05 - End Time 2025-04-01 01:37:05 [2025-04-01 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807521', 'tblTempUsageDetail_20' ) start [2025-04-01 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807521', 'tblTempUsageDetail_20' ) end [2025-04-01 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807521', 'tblTempVendorCDR_20' ) start [2025-04-01 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807521', 'tblTempVendorCDR_20' ) end [2025-04-01 01:37:18] Production.INFO: ProcessCDR(1,14807521,1,1,2) [2025-04-01 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807521', 'tblTempUsageDetail_20' ) start [2025-04-01 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807521', 'tblTempUsageDetail_20' ) end [2025-04-01 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:37:22] Production.INFO: ==20344== Releasing lock... [2025-04-01 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:37:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-01 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:38:06 [end_date_ymd] => 2025-04-01 01:38:06 [RateCDR] => 1 ) [2025-04-01 01: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-03-31 22:38:06' and `end` < '2025-04-01 01: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-01 01:38:19] Production.INFO: count ==779 [2025-04-01 01:38:19] Production.ERROR: pbx CDR StartTime 2025-03-31 22:38:06 - End Time 2025-04-01 01:38:06 [2025-04-01 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807526', 'tblTempUsageDetail_20' ) start [2025-04-01 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807526', 'tblTempUsageDetail_20' ) end [2025-04-01 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807526', 'tblTempVendorCDR_20' ) start [2025-04-01 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807526', 'tblTempVendorCDR_20' ) end [2025-04-01 01:38:19] Production.INFO: ProcessCDR(1,14807526,1,1,2) [2025-04-01 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807526', 'tblTempUsageDetail_20' ) start [2025-04-01 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807526', 'tblTempUsageDetail_20' ) end [2025-04-01 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:38:22] Production.INFO: ==20420== Releasing lock... [2025-04-01 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:38:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-01 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:39:05 [end_date_ymd] => 2025-04-01 01:39:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:39:05' and `end` < '2025-04-01 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-01 01:39:18] Production.INFO: count ==780 [2025-04-01 01:39:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:39:05 - End Time 2025-04-01 01:39:05 [2025-04-01 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807531', 'tblTempUsageDetail_20' ) start [2025-04-01 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807531', 'tblTempUsageDetail_20' ) end [2025-04-01 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807531', 'tblTempVendorCDR_20' ) start [2025-04-01 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807531', 'tblTempVendorCDR_20' ) end [2025-04-01 01:39:18] Production.INFO: ProcessCDR(1,14807531,1,1,2) [2025-04-01 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807531', 'tblTempUsageDetail_20' ) start [2025-04-01 01:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807531', 'tblTempUsageDetail_20' ) end [2025-04-01 01:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:39:23] Production.INFO: ==20504== Releasing lock... [2025-04-01 01:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:39:23] Production.INFO: 34 MB #Memory Used# [2025-04-01 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:40:06 [end_date_ymd] => 2025-04-01 01:40:06 [RateCDR] => 1 ) [2025-04-01 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 22:40:06' and `end` < '2025-04-01 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 01:40:19] Production.INFO: count ==759 [2025-04-01 01:40:19] Production.ERROR: pbx CDR StartTime 2025-03-31 22:40:06 - End Time 2025-04-01 01:40:06 [2025-04-01 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807537', 'tblTempUsageDetail_20' ) start [2025-04-01 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807537', 'tblTempUsageDetail_20' ) end [2025-04-01 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807537', 'tblTempVendorCDR_20' ) start [2025-04-01 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807537', 'tblTempVendorCDR_20' ) end [2025-04-01 01:40:19] Production.INFO: ProcessCDR(1,14807537,1,1,2) [2025-04-01 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807537', 'tblTempUsageDetail_20' ) start [2025-04-01 01:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807537', 'tblTempUsageDetail_20' ) end [2025-04-01 01:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:40:24] Production.INFO: ==20581== Releasing lock... [2025-04-01 01:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:40:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:41:05 [end_date_ymd] => 2025-04-01 01:41:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:41:05' and `end` < '2025-04-01 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-01 01:41:18] Production.INFO: count ==751 [2025-04-01 01:41:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:41:05 - End Time 2025-04-01 01:41:05 [2025-04-01 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807542', 'tblTempUsageDetail_20' ) start [2025-04-01 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807542', 'tblTempUsageDetail_20' ) end [2025-04-01 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807542', 'tblTempVendorCDR_20' ) start [2025-04-01 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807542', 'tblTempVendorCDR_20' ) end [2025-04-01 01:41:18] Production.INFO: ProcessCDR(1,14807542,1,1,2) [2025-04-01 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807542', 'tblTempUsageDetail_20' ) start [2025-04-01 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807542', 'tblTempUsageDetail_20' ) end [2025-04-01 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:41:22] Production.INFO: ==20655== Releasing lock... [2025-04-01 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:41:22] Production.INFO: 34 MB #Memory Used# [2025-04-01 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:42:06 [end_date_ymd] => 2025-04-01 01:42:06 [RateCDR] => 1 ) [2025-04-01 01:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 22:42:06' and `end` < '2025-04-01 01:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 01:42:18] Production.INFO: count ==747 [2025-04-01 01:42:19] Production.ERROR: pbx CDR StartTime 2025-03-31 22:42:06 - End Time 2025-04-01 01:42:06 [2025-04-01 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807547', 'tblTempUsageDetail_20' ) start [2025-04-01 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807547', 'tblTempUsageDetail_20' ) end [2025-04-01 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807547', 'tblTempVendorCDR_20' ) start [2025-04-01 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807547', 'tblTempVendorCDR_20' ) end [2025-04-01 01:42:19] Production.INFO: ProcessCDR(1,14807547,1,1,2) [2025-04-01 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807547', 'tblTempUsageDetail_20' ) start [2025-04-01 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807547', 'tblTempUsageDetail_20' ) end [2025-04-01 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:42:22] Production.INFO: ==20729== Releasing lock... [2025-04-01 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:42:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:43:05 [end_date_ymd] => 2025-04-01 01:43:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:43:05' and `end` < '2025-04-01 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-01 01:43:18] Production.INFO: count ==751 [2025-04-01 01:43:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:43:05 - End Time 2025-04-01 01:43:05 [2025-04-01 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807552', 'tblTempUsageDetail_20' ) start [2025-04-01 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807552', 'tblTempUsageDetail_20' ) end [2025-04-01 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807552', 'tblTempVendorCDR_20' ) start [2025-04-01 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807552', 'tblTempVendorCDR_20' ) end [2025-04-01 01:43:18] Production.INFO: ProcessCDR(1,14807552,1,1,2) [2025-04-01 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807552', 'tblTempUsageDetail_20' ) start [2025-04-01 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807552', 'tblTempUsageDetail_20' ) end [2025-04-01 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:43:22] Production.INFO: ==20805== Releasing lock... [2025-04-01 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:43:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:44:06 [end_date_ymd] => 2025-04-01 01:44:06 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:44:06' and `end` < '2025-04-01 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-01 01:44:18] Production.INFO: count ==750 [2025-04-01 01:44:19] Production.ERROR: pbx CDR StartTime 2025-03-31 22:44:06 - End Time 2025-04-01 01:44:06 [2025-04-01 01:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807557', 'tblTempUsageDetail_20' ) start [2025-04-01 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807557', 'tblTempUsageDetail_20' ) end [2025-04-01 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807557', 'tblTempVendorCDR_20' ) start [2025-04-01 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807557', 'tblTempVendorCDR_20' ) end [2025-04-01 01:44:19] Production.INFO: ProcessCDR(1,14807557,1,1,2) [2025-04-01 01:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807557', 'tblTempUsageDetail_20' ) start [2025-04-01 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807557', 'tblTempUsageDetail_20' ) end [2025-04-01 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:44:22] Production.INFO: ==20877== Releasing lock... [2025-04-01 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:44:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-01 01:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:45:04 [end_date_ymd] => 2025-04-01 01:45:04 [RateCDR] => 1 ) [2025-04-01 01:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 22:45:04' and `end` < '2025-04-01 01:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 01:45:17] Production.INFO: count ==748 [2025-04-01 01:45:17] Production.ERROR: pbx CDR StartTime 2025-03-31 22:45:04 - End Time 2025-04-01 01:45:04 [2025-04-01 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807562', 'tblTempUsageDetail_20' ) start [2025-04-01 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807562', 'tblTempUsageDetail_20' ) end [2025-04-01 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807562', 'tblTempVendorCDR_20' ) start [2025-04-01 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807562', 'tblTempVendorCDR_20' ) end [2025-04-01 01:45:17] Production.INFO: ProcessCDR(1,14807562,1,1,2) [2025-04-01 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807562', 'tblTempUsageDetail_20' ) start [2025-04-01 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807562', 'tblTempUsageDetail_20' ) end [2025-04-01 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:45:21] Production.INFO: ==20951== Releasing lock... [2025-04-01 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:45:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:46:06 [end_date_ymd] => 2025-04-01 01:46:06 [RateCDR] => 1 ) [2025-04-01 01:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 22:46:06' and `end` < '2025-04-01 01:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 01:46:18] Production.INFO: count ==748 [2025-04-01 01:46:19] Production.ERROR: pbx CDR StartTime 2025-03-31 22:46:06 - End Time 2025-04-01 01:46:06 [2025-04-01 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807567', 'tblTempUsageDetail_20' ) start [2025-04-01 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807567', 'tblTempUsageDetail_20' ) end [2025-04-01 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807567', 'tblTempVendorCDR_20' ) start [2025-04-01 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807567', 'tblTempVendorCDR_20' ) end [2025-04-01 01:46:19] Production.INFO: ProcessCDR(1,14807567,1,1,2) [2025-04-01 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807567', 'tblTempUsageDetail_20' ) start [2025-04-01 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807567', 'tblTempUsageDetail_20' ) end [2025-04-01 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:46:22] Production.INFO: ==21022== Releasing lock... [2025-04-01 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:46:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:47:05 [end_date_ymd] => 2025-04-01 01:47:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:47:05' and `end` < '2025-04-01 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-01 01:47:18] Production.INFO: count ==744 [2025-04-01 01:47:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:47:05 - End Time 2025-04-01 01:47:05 [2025-04-01 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807572', 'tblTempUsageDetail_20' ) start [2025-04-01 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807572', 'tblTempUsageDetail_20' ) end [2025-04-01 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807572', 'tblTempVendorCDR_20' ) start [2025-04-01 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807572', 'tblTempVendorCDR_20' ) end [2025-04-01 01:47:18] Production.INFO: ProcessCDR(1,14807572,1,1,2) [2025-04-01 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807572', 'tblTempUsageDetail_20' ) start [2025-04-01 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807572', 'tblTempUsageDetail_20' ) end [2025-04-01 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:47:21] Production.INFO: ==21097== Releasing lock... [2025-04-01 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:47:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:48:05 [end_date_ymd] => 2025-04-01 01:48:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:48:05' and `end` < '2025-04-01 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-01 01:48:18] Production.INFO: count ==730 [2025-04-01 01:48:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:48:05 - End Time 2025-04-01 01:48:05 [2025-04-01 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807577', 'tblTempUsageDetail_20' ) start [2025-04-01 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807577', 'tblTempUsageDetail_20' ) end [2025-04-01 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807577', 'tblTempVendorCDR_20' ) start [2025-04-01 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807577', 'tblTempVendorCDR_20' ) end [2025-04-01 01:48:18] Production.INFO: ProcessCDR(1,14807577,1,1,2) [2025-04-01 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807577', 'tblTempUsageDetail_20' ) start [2025-04-01 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807577', 'tblTempUsageDetail_20' ) end [2025-04-01 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:48:22] Production.INFO: ==21170== Releasing lock... [2025-04-01 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:48:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:49:05 [end_date_ymd] => 2025-04-01 01:49:05 [RateCDR] => 1 ) [2025-04-01 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 22:49:05' and `end` < '2025-04-01 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 01:49:17] Production.INFO: count ==730 [2025-04-01 01:49:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:49:05 - End Time 2025-04-01 01:49:05 [2025-04-01 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807582', 'tblTempUsageDetail_20' ) start [2025-04-01 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807582', 'tblTempUsageDetail_20' ) end [2025-04-01 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807582', 'tblTempVendorCDR_20' ) start [2025-04-01 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807582', 'tblTempVendorCDR_20' ) end [2025-04-01 01:49:18] Production.INFO: ProcessCDR(1,14807582,1,1,2) [2025-04-01 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807582', 'tblTempUsageDetail_20' ) start [2025-04-01 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807582', 'tblTempUsageDetail_20' ) end [2025-04-01 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:49:21] Production.INFO: ==21246== Releasing lock... [2025-04-01 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:49:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 01:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:50:07 [end_date_ymd] => 2025-04-01 01:50:07 [RateCDR] => 1 ) [2025-04-01 01: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-03-31 22:50:07' and `end` < '2025-04-01 01: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-01 01:50:19] Production.INFO: count ==729 [2025-04-01 01:50:20] Production.ERROR: pbx CDR StartTime 2025-03-31 22:50:07 - End Time 2025-04-01 01:50:07 [2025-04-01 01:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807588', 'tblTempUsageDetail_20' ) start [2025-04-01 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807588', 'tblTempUsageDetail_20' ) end [2025-04-01 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807588', 'tblTempVendorCDR_20' ) start [2025-04-01 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807588', 'tblTempVendorCDR_20' ) end [2025-04-01 01:50:20] Production.INFO: ProcessCDR(1,14807588,1,1,2) [2025-04-01 01:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807588', 'tblTempUsageDetail_20' ) start [2025-04-01 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807588', 'tblTempUsageDetail_20' ) end [2025-04-01 01:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:50:23] Production.INFO: ==21328== Releasing lock... [2025-04-01 01:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:50:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:51:05 [end_date_ymd] => 2025-04-01 01:51:05 [RateCDR] => 1 ) [2025-04-01 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 22:51:05' and `end` < '2025-04-01 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 01:51:18] Production.INFO: count ==728 [2025-04-01 01:51:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:51:05 - End Time 2025-04-01 01:51:05 [2025-04-01 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807593', 'tblTempUsageDetail_20' ) start [2025-04-01 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807593', 'tblTempUsageDetail_20' ) end [2025-04-01 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807593', 'tblTempVendorCDR_20' ) start [2025-04-01 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807593', 'tblTempVendorCDR_20' ) end [2025-04-01 01:51:18] Production.INFO: ProcessCDR(1,14807593,1,1,2) [2025-04-01 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807593', 'tblTempUsageDetail_20' ) start [2025-04-01 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807593', 'tblTempUsageDetail_20' ) end [2025-04-01 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:51:21] Production.INFO: ==21450== Releasing lock... [2025-04-01 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:51:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:52:05 [end_date_ymd] => 2025-04-01 01:52:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:52:05' and `end` < '2025-04-01 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-01 01:52:18] Production.INFO: count ==727 [2025-04-01 01:52:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:52:05 - End Time 2025-04-01 01:52:05 [2025-04-01 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807598', 'tblTempUsageDetail_20' ) start [2025-04-01 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807598', 'tblTempUsageDetail_20' ) end [2025-04-01 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807598', 'tblTempVendorCDR_20' ) start [2025-04-01 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807598', 'tblTempVendorCDR_20' ) end [2025-04-01 01:52:18] Production.INFO: ProcessCDR(1,14807598,1,1,2) [2025-04-01 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807598', 'tblTempUsageDetail_20' ) start [2025-04-01 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807598', 'tblTempUsageDetail_20' ) end [2025-04-01 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:52:21] Production.INFO: ==21530== Releasing lock... [2025-04-01 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:52:21] Production.INFO: 34 MB #Memory Used# [2025-04-01 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:53:05 [end_date_ymd] => 2025-04-01 01:53:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:53:05' and `end` < '2025-04-01 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-01 01:53:18] Production.INFO: count ==727 [2025-04-01 01:53:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:53:05 - End Time 2025-04-01 01:53:05 [2025-04-01 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807603', 'tblTempUsageDetail_20' ) start [2025-04-01 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807603', 'tblTempUsageDetail_20' ) end [2025-04-01 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807603', 'tblTempVendorCDR_20' ) start [2025-04-01 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807603', 'tblTempVendorCDR_20' ) end [2025-04-01 01:53:18] Production.INFO: ProcessCDR(1,14807603,1,1,2) [2025-04-01 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807603', 'tblTempUsageDetail_20' ) start [2025-04-01 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807603', 'tblTempUsageDetail_20' ) end [2025-04-01 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:53:22] Production.INFO: ==21605== Releasing lock... [2025-04-01 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:53:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:54:05 [end_date_ymd] => 2025-04-01 01:54:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:54:05' and `end` < '2025-04-01 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-01 01:54:18] Production.INFO: count ==727 [2025-04-01 01:54:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:54:05 - End Time 2025-04-01 01:54:05 [2025-04-01 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807608', 'tblTempUsageDetail_20' ) start [2025-04-01 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807608', 'tblTempUsageDetail_20' ) end [2025-04-01 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807608', 'tblTempVendorCDR_20' ) start [2025-04-01 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807608', 'tblTempVendorCDR_20' ) end [2025-04-01 01:54:18] Production.INFO: ProcessCDR(1,14807608,1,1,2) [2025-04-01 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807608', 'tblTempUsageDetail_20' ) start [2025-04-01 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807608', 'tblTempUsageDetail_20' ) end [2025-04-01 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:54:21] Production.INFO: ==21675== Releasing lock... [2025-04-01 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:54:21] Production.INFO: 34 MB #Memory Used# [2025-04-01 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:55:06 [end_date_ymd] => 2025-04-01 01:55:06 [RateCDR] => 1 ) [2025-04-01 01:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 22:55:06' and `end` < '2025-04-01 01:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 01:55:18] Production.INFO: count ==725 [2025-04-01 01:55:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:55:06 - End Time 2025-04-01 01:55:06 [2025-04-01 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807613', 'tblTempUsageDetail_20' ) start [2025-04-01 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807613', 'tblTempUsageDetail_20' ) end [2025-04-01 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807613', 'tblTempVendorCDR_20' ) start [2025-04-01 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807613', 'tblTempVendorCDR_20' ) end [2025-04-01 01:55:19] Production.INFO: ProcessCDR(1,14807613,1,1,2) [2025-04-01 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807613', 'tblTempUsageDetail_20' ) start [2025-04-01 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807613', 'tblTempUsageDetail_20' ) end [2025-04-01 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:55:22] Production.INFO: ==21755== Releasing lock... [2025-04-01 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:55:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:56:06 [end_date_ymd] => 2025-04-01 01:56:06 [RateCDR] => 1 ) [2025-04-01 01:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 22:56:06' and `end` < '2025-04-01 01:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 01:56:18] Production.INFO: count ==725 [2025-04-01 01:56:19] Production.ERROR: pbx CDR StartTime 2025-03-31 22:56:06 - End Time 2025-04-01 01:56:06 [2025-04-01 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807618', 'tblTempUsageDetail_20' ) start [2025-04-01 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807618', 'tblTempUsageDetail_20' ) end [2025-04-01 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807618', 'tblTempVendorCDR_20' ) start [2025-04-01 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807618', 'tblTempVendorCDR_20' ) end [2025-04-01 01:56:19] Production.INFO: ProcessCDR(1,14807618,1,1,2) [2025-04-01 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807618', 'tblTempUsageDetail_20' ) start [2025-04-01 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807618', 'tblTempUsageDetail_20' ) end [2025-04-01 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:56:22] Production.INFO: ==21831== Releasing lock... [2025-04-01 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:56:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:57:05 [end_date_ymd] => 2025-04-01 01:57:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:57:05' and `end` < '2025-04-01 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-01 01:57:17] Production.INFO: count ==709 [2025-04-01 01:57:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:57:05 - End Time 2025-04-01 01:57:05 [2025-04-01 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807623', 'tblTempUsageDetail_20' ) start [2025-04-01 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807623', 'tblTempUsageDetail_20' ) end [2025-04-01 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807623', 'tblTempVendorCDR_20' ) start [2025-04-01 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807623', 'tblTempVendorCDR_20' ) end [2025-04-01 01:57:18] Production.INFO: ProcessCDR(1,14807623,1,1,2) [2025-04-01 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807623', 'tblTempUsageDetail_20' ) start [2025-04-01 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807623', 'tblTempUsageDetail_20' ) end [2025-04-01 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:57:21] Production.INFO: ==21906== Releasing lock... [2025-04-01 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:57:21] Production.INFO: 34 MB #Memory Used# [2025-04-01 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:58:05 [end_date_ymd] => 2025-04-01 01:58:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:58:05' and `end` < '2025-04-01 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-01 01:58:18] Production.INFO: count ==703 [2025-04-01 01:58:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:58:05 - End Time 2025-04-01 01:58:05 [2025-04-01 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807628', 'tblTempUsageDetail_20' ) start [2025-04-01 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807628', 'tblTempUsageDetail_20' ) end [2025-04-01 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807628', 'tblTempVendorCDR_20' ) start [2025-04-01 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807628', 'tblTempVendorCDR_20' ) end [2025-04-01 01:58:18] Production.INFO: ProcessCDR(1,14807628,1,1,2) [2025-04-01 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807628', 'tblTempUsageDetail_20' ) start [2025-04-01 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807628', 'tblTempUsageDetail_20' ) end [2025-04-01 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:58:22] Production.INFO: ==21978== Releasing lock... [2025-04-01 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:58:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 22:59:05 [end_date_ymd] => 2025-04-01 01:59:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 22:59:05' and `end` < '2025-04-01 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-01 01:59:18] Production.INFO: count ==706 [2025-04-01 01:59:18] Production.ERROR: pbx CDR StartTime 2025-03-31 22:59:05 - End Time 2025-04-01 01:59:05 [2025-04-01 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807633', 'tblTempUsageDetail_20' ) start [2025-04-01 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807633', 'tblTempUsageDetail_20' ) end [2025-04-01 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807633', 'tblTempVendorCDR_20' ) start [2025-04-01 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807633', 'tblTempVendorCDR_20' ) end [2025-04-01 01:59:18] Production.INFO: ProcessCDR(1,14807633,1,1,2) [2025-04-01 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807633', 'tblTempUsageDetail_20' ) start [2025-04-01 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807633', 'tblTempUsageDetail_20' ) end [2025-04-01 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 01:59:21] Production.INFO: ==22056== Releasing lock... [2025-04-01 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 01:59:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:00:06 [end_date_ymd] => 2025-04-01 02:00:06 [RateCDR] => 1 ) [2025-04-01 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-03-31 23:00:06' and `end` < '2025-04-01 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-01 02:00:19] Production.INFO: count ==709 [2025-04-01 02:00:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:00:06 - End Time 2025-04-01 02:00:06 [2025-04-01 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807639', 'tblTempUsageDetail_20' ) start [2025-04-01 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807639', 'tblTempUsageDetail_20' ) end [2025-04-01 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807639', 'tblTempVendorCDR_20' ) start [2025-04-01 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807639', 'tblTempVendorCDR_20' ) end [2025-04-01 02:00:19] Production.INFO: ProcessCDR(1,14807639,1,1,2) [2025-04-01 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807639', 'tblTempUsageDetail_20' ) start [2025-04-01 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807639', 'tblTempUsageDetail_20' ) end [2025-04-01 02:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:00:23] Production.INFO: ==22132== Releasing lock... [2025-04-01 02:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:00:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:01:06 [end_date_ymd] => 2025-04-01 02:01:06 [RateCDR] => 1 ) [2025-04-01 02: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-03-31 23:01:06' and `end` < '2025-04-01 02: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-01 02:01:19] Production.INFO: count ==709 [2025-04-01 02:01:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:01:06 - End Time 2025-04-01 02:01:06 [2025-04-01 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807644', 'tblTempUsageDetail_20' ) start [2025-04-01 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807644', 'tblTempUsageDetail_20' ) end [2025-04-01 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807644', 'tblTempVendorCDR_20' ) start [2025-04-01 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807644', 'tblTempVendorCDR_20' ) end [2025-04-01 02:01:19] Production.INFO: ProcessCDR(1,14807644,1,1,2) [2025-04-01 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807644', 'tblTempUsageDetail_20' ) start [2025-04-01 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807644', 'tblTempUsageDetail_20' ) end [2025-04-01 02:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:01:23] Production.INFO: ==22223== Releasing lock... [2025-04-01 02:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:01:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:02:05 [end_date_ymd] => 2025-04-01 02:02:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 23:02:05' and `end` < '2025-04-01 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-01 02:02:18] Production.INFO: count ==696 [2025-04-01 02:02:18] Production.ERROR: pbx CDR StartTime 2025-03-31 23:02:05 - End Time 2025-04-01 02:02:05 [2025-04-01 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807649', 'tblTempUsageDetail_20' ) start [2025-04-01 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807649', 'tblTempUsageDetail_20' ) end [2025-04-01 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807649', 'tblTempVendorCDR_20' ) start [2025-04-01 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807649', 'tblTempVendorCDR_20' ) end [2025-04-01 02:02:18] Production.INFO: ProcessCDR(1,14807649,1,1,2) [2025-04-01 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807649', 'tblTempUsageDetail_20' ) start [2025-04-01 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807649', 'tblTempUsageDetail_20' ) end [2025-04-01 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:02:22] Production.INFO: ==22390== Releasing lock... [2025-04-01 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:02:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:03:05 [end_date_ymd] => 2025-04-01 02:03:05 [RateCDR] => 1 ) [2025-04-01 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 23:03:05' and `end` < '2025-04-01 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 02:03:18] Production.INFO: count ==696 [2025-04-01 02:03:18] Production.ERROR: pbx CDR StartTime 2025-03-31 23:03:05 - End Time 2025-04-01 02:03:05 [2025-04-01 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807654', 'tblTempUsageDetail_20' ) start [2025-04-01 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807654', 'tblTempUsageDetail_20' ) end [2025-04-01 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807654', 'tblTempVendorCDR_20' ) start [2025-04-01 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807654', 'tblTempVendorCDR_20' ) end [2025-04-01 02:03:18] Production.INFO: ProcessCDR(1,14807654,1,1,2) [2025-04-01 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807654', 'tblTempUsageDetail_20' ) start [2025-04-01 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807654', 'tblTempUsageDetail_20' ) end [2025-04-01 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:03:21] Production.INFO: ==22469== Releasing lock... [2025-04-01 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:03:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:04:05 [end_date_ymd] => 2025-04-01 02:04:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 23:04:05' and `end` < '2025-04-01 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-01 02:04:18] Production.INFO: count ==696 [2025-04-01 02:04:18] Production.ERROR: pbx CDR StartTime 2025-03-31 23:04:05 - End Time 2025-04-01 02:04:05 [2025-04-01 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807659', 'tblTempUsageDetail_20' ) start [2025-04-01 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807659', 'tblTempUsageDetail_20' ) end [2025-04-01 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807659', 'tblTempVendorCDR_20' ) start [2025-04-01 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807659', 'tblTempVendorCDR_20' ) end [2025-04-01 02:04:18] Production.INFO: ProcessCDR(1,14807659,1,1,2) [2025-04-01 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807659', 'tblTempUsageDetail_20' ) start [2025-04-01 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807659', 'tblTempUsageDetail_20' ) end [2025-04-01 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:04:22] Production.INFO: ==22545== Releasing lock... [2025-04-01 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:04:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 02:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:05:06 [end_date_ymd] => 2025-04-01 02:05:06 [RateCDR] => 1 ) [2025-04-01 02: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-03-31 23:05:06' and `end` < '2025-04-01 02: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-01 02:05:18] Production.INFO: count ==694 [2025-04-01 02:05:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:05:06 - End Time 2025-04-01 02:05:06 [2025-04-01 02:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807664', 'tblTempUsageDetail_20' ) start [2025-04-01 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807664', 'tblTempUsageDetail_20' ) end [2025-04-01 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807664', 'tblTempVendorCDR_20' ) start [2025-04-01 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807664', 'tblTempVendorCDR_20' ) end [2025-04-01 02:05:19] Production.INFO: ProcessCDR(1,14807664,1,1,2) [2025-04-01 02:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807664', 'tblTempUsageDetail_20' ) start [2025-04-01 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807664', 'tblTempUsageDetail_20' ) end [2025-04-01 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:05:22] Production.INFO: ==22618== Releasing lock... [2025-04-01 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:05:22] Production.INFO: 34 MB #Memory Used# [2025-04-01 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:06:05 [end_date_ymd] => 2025-04-01 02:06:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 23:06:05' and `end` < '2025-04-01 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-01 02:06:18] Production.INFO: count ==694 [2025-04-01 02:06:18] Production.ERROR: pbx CDR StartTime 2025-03-31 23:06:05 - End Time 2025-04-01 02:06:05 [2025-04-01 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807669', 'tblTempUsageDetail_20' ) start [2025-04-01 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807669', 'tblTempUsageDetail_20' ) end [2025-04-01 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807669', 'tblTempVendorCDR_20' ) start [2025-04-01 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807669', 'tblTempVendorCDR_20' ) end [2025-04-01 02:06:18] Production.INFO: ProcessCDR(1,14807669,1,1,2) [2025-04-01 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807669', 'tblTempUsageDetail_20' ) start [2025-04-01 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807669', 'tblTempUsageDetail_20' ) end [2025-04-01 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:06:22] Production.INFO: ==22692== Releasing lock... [2025-04-01 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:06:22] Production.INFO: 34 MB #Memory Used# [2025-04-01 02:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:07:06 [end_date_ymd] => 2025-04-01 02:07:06 [RateCDR] => 1 ) [2025-04-01 02:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 23:07:06' and `end` < '2025-04-01 02:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 02:07:18] Production.INFO: count ==680 [2025-04-01 02:07:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:07:06 - End Time 2025-04-01 02:07:06 [2025-04-01 02:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807674', 'tblTempUsageDetail_20' ) start [2025-04-01 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807674', 'tblTempUsageDetail_20' ) end [2025-04-01 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807674', 'tblTempVendorCDR_20' ) start [2025-04-01 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807674', 'tblTempVendorCDR_20' ) end [2025-04-01 02:07:19] Production.INFO: ProcessCDR(1,14807674,1,1,2) [2025-04-01 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807674', 'tblTempUsageDetail_20' ) start [2025-04-01 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807674', 'tblTempUsageDetail_20' ) end [2025-04-01 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:07:22] Production.INFO: ==22804== Releasing lock... [2025-04-01 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:07:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:08:06 [end_date_ymd] => 2025-04-01 02:08:06 [RateCDR] => 1 ) [2025-04-01 02: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-03-31 23:08:06' and `end` < '2025-04-01 02: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-01 02:08:18] Production.INFO: count ==678 [2025-04-01 02:08:18] Production.ERROR: pbx CDR StartTime 2025-03-31 23:08:06 - End Time 2025-04-01 02:08:06 [2025-04-01 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807679', 'tblTempUsageDetail_20' ) start [2025-04-01 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807679', 'tblTempUsageDetail_20' ) end [2025-04-01 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807679', 'tblTempVendorCDR_20' ) start [2025-04-01 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807679', 'tblTempVendorCDR_20' ) end [2025-04-01 02:08:18] Production.INFO: ProcessCDR(1,14807679,1,1,2) [2025-04-01 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807679', 'tblTempUsageDetail_20' ) start [2025-04-01 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807679', 'tblTempUsageDetail_20' ) end [2025-04-01 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:08:22] Production.INFO: ==22890== Releasing lock... [2025-04-01 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:08:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-01 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:09:05 [end_date_ymd] => 2025-04-01 02:09:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 23:09:05' and `end` < '2025-04-01 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-01 02:09:18] Production.INFO: count ==677 [2025-04-01 02:09:18] Production.ERROR: pbx CDR StartTime 2025-03-31 23:09:05 - End Time 2025-04-01 02:09:05 [2025-04-01 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807684', 'tblTempUsageDetail_20' ) start [2025-04-01 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807684', 'tblTempUsageDetail_20' ) end [2025-04-01 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807684', 'tblTempVendorCDR_20' ) start [2025-04-01 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807684', 'tblTempVendorCDR_20' ) end [2025-04-01 02:09:18] Production.INFO: ProcessCDR(1,14807684,1,1,2) [2025-04-01 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807684', 'tblTempUsageDetail_20' ) start [2025-04-01 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807684', 'tblTempUsageDetail_20' ) end [2025-04-01 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:09:22] Production.INFO: ==22963== Releasing lock... [2025-04-01 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:09:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:10:06 [end_date_ymd] => 2025-04-01 02:10:06 [RateCDR] => 1 ) [2025-04-01 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 23:10:06' and `end` < '2025-04-01 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 02:10:19] Production.INFO: count ==672 [2025-04-01 02:10:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:10:06 - End Time 2025-04-01 02:10:06 [2025-04-01 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807690', 'tblTempUsageDetail_20' ) start [2025-04-01 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807690', 'tblTempUsageDetail_20' ) end [2025-04-01 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807690', 'tblTempVendorCDR_20' ) start [2025-04-01 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807690', 'tblTempVendorCDR_20' ) end [2025-04-01 02:10:19] Production.INFO: ProcessCDR(1,14807690,1,1,2) [2025-04-01 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807690', 'tblTempUsageDetail_20' ) start [2025-04-01 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807690', 'tblTempUsageDetail_20' ) end [2025-04-01 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:10:22] Production.INFO: ==23039== Releasing lock... [2025-04-01 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:10:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 02:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:11:06 [end_date_ymd] => 2025-04-01 02:11:06 [RateCDR] => 1 ) [2025-04-01 02: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-03-31 23:11:06' and `end` < '2025-04-01 02: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-01 02:11:18] Production.INFO: count ==672 [2025-04-01 02:11:18] Production.ERROR: pbx CDR StartTime 2025-03-31 23:11:06 - End Time 2025-04-01 02:11:06 [2025-04-01 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807695', 'tblTempUsageDetail_20' ) start [2025-04-01 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807695', 'tblTempUsageDetail_20' ) end [2025-04-01 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807695', 'tblTempVendorCDR_20' ) start [2025-04-01 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807695', 'tblTempVendorCDR_20' ) end [2025-04-01 02:11:19] Production.INFO: ProcessCDR(1,14807695,1,1,2) [2025-04-01 02:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807695', 'tblTempUsageDetail_20' ) start [2025-04-01 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807695', 'tblTempUsageDetail_20' ) end [2025-04-01 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:11:22] Production.INFO: ==23119== Releasing lock... [2025-04-01 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:11:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:12:05 [end_date_ymd] => 2025-04-01 02:12:05 [RateCDR] => 1 ) [2025-04-01 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 23:12:05' and `end` < '2025-04-01 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 02:12:17] Production.INFO: count ==672 [2025-04-01 02:12:18] Production.ERROR: pbx CDR StartTime 2025-03-31 23:12:05 - End Time 2025-04-01 02:12:05 [2025-04-01 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807700', 'tblTempUsageDetail_20' ) start [2025-04-01 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807700', 'tblTempUsageDetail_20' ) end [2025-04-01 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807700', 'tblTempVendorCDR_20' ) start [2025-04-01 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807700', 'tblTempVendorCDR_20' ) end [2025-04-01 02:12:18] Production.INFO: ProcessCDR(1,14807700,1,1,2) [2025-04-01 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807700', 'tblTempUsageDetail_20' ) start [2025-04-01 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807700', 'tblTempUsageDetail_20' ) end [2025-04-01 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:12:21] Production.INFO: ==23206== Releasing lock... [2025-04-01 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:12:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 02:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:13:06 [end_date_ymd] => 2025-04-01 02:13:06 [RateCDR] => 1 ) [2025-04-01 02: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-03-31 23:13:06' and `end` < '2025-04-01 02: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-01 02:13:18] Production.INFO: count ==675 [2025-04-01 02:13:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:13:06 - End Time 2025-04-01 02:13:06 [2025-04-01 02:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807705', 'tblTempUsageDetail_20' ) start [2025-04-01 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807705', 'tblTempUsageDetail_20' ) end [2025-04-01 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807705', 'tblTempVendorCDR_20' ) start [2025-04-01 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807705', 'tblTempVendorCDR_20' ) end [2025-04-01 02:13:19] Production.INFO: ProcessCDR(1,14807705,1,1,2) [2025-04-01 02:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807705', 'tblTempUsageDetail_20' ) start [2025-04-01 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807705', 'tblTempUsageDetail_20' ) end [2025-04-01 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:13:22] Production.INFO: ==23286== Releasing lock... [2025-04-01 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:13:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:14:05 [end_date_ymd] => 2025-04-01 02:14:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 23:14:05' and `end` < '2025-04-01 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-01 02:14:18] Production.INFO: count ==675 [2025-04-01 02:14:18] Production.ERROR: pbx CDR StartTime 2025-03-31 23:14:05 - End Time 2025-04-01 02:14:05 [2025-04-01 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807710', 'tblTempUsageDetail_20' ) start [2025-04-01 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807710', 'tblTempUsageDetail_20' ) end [2025-04-01 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807710', 'tblTempVendorCDR_20' ) start [2025-04-01 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807710', 'tblTempVendorCDR_20' ) end [2025-04-01 02:14:18] Production.INFO: ProcessCDR(1,14807710,1,1,2) [2025-04-01 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807710', 'tblTempUsageDetail_20' ) start [2025-04-01 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807710', 'tblTempUsageDetail_20' ) end [2025-04-01 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:14:22] Production.INFO: ==23361== Releasing lock... [2025-04-01 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:14:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 02:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:15:06 [end_date_ymd] => 2025-04-01 02:15:06 [RateCDR] => 1 ) [2025-04-01 02: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-03-31 23:15:06' and `end` < '2025-04-01 02: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-01 02:15:18] Production.INFO: count ==675 [2025-04-01 02:15:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:15:06 - End Time 2025-04-01 02:15:06 [2025-04-01 02:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807715', 'tblTempUsageDetail_20' ) start [2025-04-01 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807715', 'tblTempUsageDetail_20' ) end [2025-04-01 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807715', 'tblTempVendorCDR_20' ) start [2025-04-01 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807715', 'tblTempVendorCDR_20' ) end [2025-04-01 02:15:19] Production.INFO: ProcessCDR(1,14807715,1,1,2) [2025-04-01 02:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807715', 'tblTempUsageDetail_20' ) start [2025-04-01 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807715', 'tblTempUsageDetail_20' ) end [2025-04-01 02:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:15:22] Production.INFO: ==23437== Releasing lock... [2025-04-01 02:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:15:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:16:05 [end_date_ymd] => 2025-04-01 02:16:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 23:16:05' and `end` < '2025-04-01 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-01 02:16:18] Production.INFO: count ==675 [2025-04-01 02:16:18] Production.ERROR: pbx CDR StartTime 2025-03-31 23:16:05 - End Time 2025-04-01 02:16:05 [2025-04-01 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807720', 'tblTempUsageDetail_20' ) start [2025-04-01 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807720', 'tblTempUsageDetail_20' ) end [2025-04-01 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807720', 'tblTempVendorCDR_20' ) start [2025-04-01 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807720', 'tblTempVendorCDR_20' ) end [2025-04-01 02:16:18] Production.INFO: ProcessCDR(1,14807720,1,1,2) [2025-04-01 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807720', 'tblTempUsageDetail_20' ) start [2025-04-01 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807720', 'tblTempUsageDetail_20' ) end [2025-04-01 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:16:22] Production.INFO: ==23514== Releasing lock... [2025-04-01 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:16:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:17:05 [end_date_ymd] => 2025-04-01 02:17:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 23:17:05' and `end` < '2025-04-01 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-01 02:17:18] Production.INFO: count ==683 [2025-04-01 02:17:18] Production.ERROR: pbx CDR StartTime 2025-03-31 23:17:05 - End Time 2025-04-01 02:17:05 [2025-04-01 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807725', 'tblTempUsageDetail_20' ) start [2025-04-01 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807725', 'tblTempUsageDetail_20' ) end [2025-04-01 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807725', 'tblTempVendorCDR_20' ) start [2025-04-01 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807725', 'tblTempVendorCDR_20' ) end [2025-04-01 02:17:18] Production.INFO: ProcessCDR(1,14807725,1,1,2) [2025-04-01 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807725', 'tblTempUsageDetail_20' ) start [2025-04-01 02:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807725', 'tblTempUsageDetail_20' ) end [2025-04-01 02:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:17:23] Production.INFO: ==23604== Releasing lock... [2025-04-01 02:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:17:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:18:05 [end_date_ymd] => 2025-04-01 02:18:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 23:18:05' and `end` < '2025-04-01 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-01 02:18:18] Production.INFO: count ==683 [2025-04-01 02:18:18] Production.ERROR: pbx CDR StartTime 2025-03-31 23:18:05 - End Time 2025-04-01 02:18:05 [2025-04-01 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807730', 'tblTempUsageDetail_20' ) start [2025-04-01 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807730', 'tblTempUsageDetail_20' ) end [2025-04-01 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807730', 'tblTempVendorCDR_20' ) start [2025-04-01 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807730', 'tblTempVendorCDR_20' ) end [2025-04-01 02:18:18] Production.INFO: ProcessCDR(1,14807730,1,1,2) [2025-04-01 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807730', 'tblTempUsageDetail_20' ) start [2025-04-01 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807730', 'tblTempUsageDetail_20' ) end [2025-04-01 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:18:22] Production.INFO: ==23705== Releasing lock... [2025-04-01 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:18:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 02:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:19:06 [end_date_ymd] => 2025-04-01 02:19:06 [RateCDR] => 1 ) [2025-04-01 02: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-03-31 23:19:06' and `end` < '2025-04-01 02: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-01 02:19:19] Production.INFO: count ==683 [2025-04-01 02:19:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:19:06 - End Time 2025-04-01 02:19:06 [2025-04-01 02:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807735', 'tblTempUsageDetail_20' ) start [2025-04-01 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807735', 'tblTempUsageDetail_20' ) end [2025-04-01 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807735', 'tblTempVendorCDR_20' ) start [2025-04-01 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807735', 'tblTempVendorCDR_20' ) end [2025-04-01 02:19:19] Production.INFO: ProcessCDR(1,14807735,1,1,2) [2025-04-01 02:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807735', 'tblTempUsageDetail_20' ) start [2025-04-01 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807735', 'tblTempUsageDetail_20' ) end [2025-04-01 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:19:22] Production.INFO: ==23788== Releasing lock... [2025-04-01 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:19:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:20:05 [end_date_ymd] => 2025-04-01 02:20:05 [RateCDR] => 1 ) [2025-04-01 02:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 23:20:05' and `end` < '2025-04-01 02:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 02:20:18] Production.INFO: count ==680 [2025-04-01 02:20:18] Production.ERROR: pbx CDR StartTime 2025-03-31 23:20:05 - End Time 2025-04-01 02:20:05 [2025-04-01 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807740', 'tblTempUsageDetail_20' ) start [2025-04-01 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807740', 'tblTempUsageDetail_20' ) end [2025-04-01 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807740', 'tblTempVendorCDR_20' ) start [2025-04-01 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807740', 'tblTempVendorCDR_20' ) end [2025-04-01 02:20:18] Production.INFO: ProcessCDR(1,14807740,1,1,2) [2025-04-01 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807740', 'tblTempUsageDetail_20' ) start [2025-04-01 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807740', 'tblTempUsageDetail_20' ) end [2025-04-01 02:20:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:20:22] Production.INFO: ==23869== Releasing lock... [2025-04-01 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:20:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-01 02:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:21:06 [end_date_ymd] => 2025-04-01 02:21:06 [RateCDR] => 1 ) [2025-04-01 02:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 23:21:06' and `end` < '2025-04-01 02:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 02:21:18] Production.INFO: count ==680 [2025-04-01 02:21:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:21:06 - End Time 2025-04-01 02:21:06 [2025-04-01 02:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807746', 'tblTempUsageDetail_20' ) start [2025-04-01 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807746', 'tblTempUsageDetail_20' ) end [2025-04-01 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807746', 'tblTempVendorCDR_20' ) start [2025-04-01 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807746', 'tblTempVendorCDR_20' ) end [2025-04-01 02:21:19] Production.INFO: ProcessCDR(1,14807746,1,1,2) [2025-04-01 02:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807746', 'tblTempUsageDetail_20' ) start [2025-04-01 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807746', 'tblTempUsageDetail_20' ) end [2025-04-01 02:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:21:22] Production.INFO: ==23950== Releasing lock... [2025-04-01 02:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:21:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-01 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:22:05 [end_date_ymd] => 2025-04-01 02:22:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 23:22:05' and `end` < '2025-04-01 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-01 02:22:17] Production.INFO: count ==680 [2025-04-01 02:22:17] Production.ERROR: pbx CDR StartTime 2025-03-31 23:22:05 - End Time 2025-04-01 02:22:05 [2025-04-01 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807751', 'tblTempUsageDetail_20' ) start [2025-04-01 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807751', 'tblTempUsageDetail_20' ) end [2025-04-01 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807751', 'tblTempVendorCDR_20' ) start [2025-04-01 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807751', 'tblTempVendorCDR_20' ) end [2025-04-01 02:22:17] Production.INFO: ProcessCDR(1,14807751,1,1,2) [2025-04-01 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807751', 'tblTempUsageDetail_20' ) start [2025-04-01 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807751', 'tblTempUsageDetail_20' ) end [2025-04-01 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:22:21] Production.INFO: ==24060== Releasing lock... [2025-04-01 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:22:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-01 02:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:23:06 [end_date_ymd] => 2025-04-01 02:23:06 [RateCDR] => 1 ) [2025-04-01 02: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-03-31 23:23:06' and `end` < '2025-04-01 02: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-01 02:23:18] Production.INFO: count ==680 [2025-04-01 02:23:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:23:06 - End Time 2025-04-01 02:23:06 [2025-04-01 02:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807756', 'tblTempUsageDetail_20' ) start [2025-04-01 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807756', 'tblTempUsageDetail_20' ) end [2025-04-01 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807756', 'tblTempVendorCDR_20' ) start [2025-04-01 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807756', 'tblTempVendorCDR_20' ) end [2025-04-01 02:23:19] Production.INFO: ProcessCDR(1,14807756,1,1,2) [2025-04-01 02:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807756', 'tblTempUsageDetail_20' ) start [2025-04-01 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807756', 'tblTempUsageDetail_20' ) end [2025-04-01 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:23:22] Production.INFO: ==24135== Releasing lock... [2025-04-01 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:23:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-01 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:24:05 [end_date_ymd] => 2025-04-01 02:24:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 23:24:05' and `end` < '2025-04-01 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-01 02:24:18] Production.INFO: count ==679 [2025-04-01 02:24:18] Production.ERROR: pbx CDR StartTime 2025-03-31 23:24:05 - End Time 2025-04-01 02:24:05 [2025-04-01 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807761', 'tblTempUsageDetail_20' ) start [2025-04-01 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807761', 'tblTempUsageDetail_20' ) end [2025-04-01 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807761', 'tblTempVendorCDR_20' ) start [2025-04-01 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807761', 'tblTempVendorCDR_20' ) end [2025-04-01 02:24:18] Production.INFO: ProcessCDR(1,14807761,1,1,2) [2025-04-01 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807761', 'tblTempUsageDetail_20' ) start [2025-04-01 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807761', 'tblTempUsageDetail_20' ) end [2025-04-01 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:24:21] Production.INFO: ==24221== Releasing lock... [2025-04-01 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:24:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-01 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:25:05 [end_date_ymd] => 2025-04-01 02:25:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 23:25:05' and `end` < '2025-04-01 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-01 02:25:18] Production.INFO: count ==679 [2025-04-01 02:25:18] Production.ERROR: pbx CDR StartTime 2025-03-31 23:25:05 - End Time 2025-04-01 02:25:05 [2025-04-01 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807766', 'tblTempUsageDetail_20' ) start [2025-04-01 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807766', 'tblTempUsageDetail_20' ) end [2025-04-01 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807766', 'tblTempVendorCDR_20' ) start [2025-04-01 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807766', 'tblTempVendorCDR_20' ) end [2025-04-01 02:25:18] Production.INFO: ProcessCDR(1,14807766,1,1,2) [2025-04-01 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807766', 'tblTempUsageDetail_20' ) start [2025-04-01 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807766', 'tblTempUsageDetail_20' ) end [2025-04-01 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:25:22] Production.INFO: ==24307== Releasing lock... [2025-04-01 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:25:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-01 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:26:05 [end_date_ymd] => 2025-04-01 02:26:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 23:26:05' and `end` < '2025-04-01 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-01 02:26:18] Production.INFO: count ==687 [2025-04-01 02:26:18] Production.ERROR: pbx CDR StartTime 2025-03-31 23:26:05 - End Time 2025-04-01 02:26:05 [2025-04-01 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807771', 'tblTempUsageDetail_20' ) start [2025-04-01 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807771', 'tblTempUsageDetail_20' ) end [2025-04-01 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807771', 'tblTempVendorCDR_20' ) start [2025-04-01 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807771', 'tblTempVendorCDR_20' ) end [2025-04-01 02:26:18] Production.INFO: ProcessCDR(1,14807771,1,1,2) [2025-04-01 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807771', 'tblTempUsageDetail_20' ) start [2025-04-01 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807771', 'tblTempUsageDetail_20' ) end [2025-04-01 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:26:22] Production.INFO: ==24379== Releasing lock... [2025-04-01 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:26:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:27:05 [end_date_ymd] => 2025-04-01 02:27:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 23:27:05' and `end` < '2025-04-01 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-01 02:27:18] Production.INFO: count ==723 [2025-04-01 02:27:18] Production.ERROR: pbx CDR StartTime 2025-03-31 23:27:05 - End Time 2025-04-01 02:27:05 [2025-04-01 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807776', 'tblTempUsageDetail_20' ) start [2025-04-01 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807776', 'tblTempUsageDetail_20' ) end [2025-04-01 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807776', 'tblTempVendorCDR_20' ) start [2025-04-01 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807776', 'tblTempVendorCDR_20' ) end [2025-04-01 02:27:18] Production.INFO: ProcessCDR(1,14807776,1,1,2) [2025-04-01 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807776', 'tblTempUsageDetail_20' ) start [2025-04-01 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807776', 'tblTempUsageDetail_20' ) end [2025-04-01 02:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:27:22] Production.INFO: ==24455== Releasing lock... [2025-04-01 02:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:27:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 02:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:28:06 [end_date_ymd] => 2025-04-01 02:28:06 [RateCDR] => 1 ) [2025-04-01 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-03-31 23:28:06' and `end` < '2025-04-01 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-01 02:28:18] Production.INFO: count ==738 [2025-04-01 02:28:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:28:06 - End Time 2025-04-01 02:28:06 [2025-04-01 02:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807781', 'tblTempUsageDetail_20' ) start [2025-04-01 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807781', 'tblTempUsageDetail_20' ) end [2025-04-01 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807781', 'tblTempVendorCDR_20' ) start [2025-04-01 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807781', 'tblTempVendorCDR_20' ) end [2025-04-01 02:28:19] Production.INFO: ProcessCDR(1,14807781,1,1,2) [2025-04-01 02:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807781', 'tblTempUsageDetail_20' ) start [2025-04-01 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807781', 'tblTempUsageDetail_20' ) end [2025-04-01 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:28:22] Production.INFO: ==24529== Releasing lock... [2025-04-01 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:28:22] Production.INFO: 34 MB #Memory Used# [2025-04-01 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:29:05 [end_date_ymd] => 2025-04-01 02:29:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 23:29:05' and `end` < '2025-04-01 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-01 02:29:18] Production.INFO: count ==740 [2025-04-01 02:29:18] Production.ERROR: pbx CDR StartTime 2025-03-31 23:29:05 - End Time 2025-04-01 02:29:05 [2025-04-01 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807786', 'tblTempUsageDetail_20' ) start [2025-04-01 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807786', 'tblTempUsageDetail_20' ) end [2025-04-01 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807786', 'tblTempVendorCDR_20' ) start [2025-04-01 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807786', 'tblTempVendorCDR_20' ) end [2025-04-01 02:29:18] Production.INFO: ProcessCDR(1,14807786,1,1,2) [2025-04-01 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807786', 'tblTempUsageDetail_20' ) start [2025-04-01 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807786', 'tblTempUsageDetail_20' ) end [2025-04-01 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:29:21] Production.INFO: ==24608== Releasing lock... [2025-04-01 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:29:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:30:06 [end_date_ymd] => 2025-04-01 02:30:06 [RateCDR] => 1 ) [2025-04-01 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-03-31 23:30:06' and `end` < '2025-04-01 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-01 02:30:19] Production.INFO: count ==740 [2025-04-01 02:30:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:30:06 - End Time 2025-04-01 02:30:06 [2025-04-01 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807791', 'tblTempUsageDetail_20' ) start [2025-04-01 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807791', 'tblTempUsageDetail_20' ) end [2025-04-01 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807791', 'tblTempVendorCDR_20' ) start [2025-04-01 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807791', 'tblTempVendorCDR_20' ) end [2025-04-01 02:30:19] Production.INFO: ProcessCDR(1,14807791,1,1,2) [2025-04-01 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807791', 'tblTempUsageDetail_20' ) start [2025-04-01 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807791', 'tblTempUsageDetail_20' ) end [2025-04-01 02:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:30:23] Production.INFO: ==24699== Releasing lock... [2025-04-01 02:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:30:23] Production.INFO: 34 MB #Memory Used# [2025-04-01 02:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:31:06 [end_date_ymd] => 2025-04-01 02:31:06 [RateCDR] => 1 ) [2025-04-01 02:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 23:31:06' and `end` < '2025-04-01 02:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 02:31:18] Production.INFO: count ==736 [2025-04-01 02:31:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:31:06 - End Time 2025-04-01 02:31:06 [2025-04-01 02:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807797', 'tblTempUsageDetail_20' ) start [2025-04-01 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807797', 'tblTempUsageDetail_20' ) end [2025-04-01 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807797', 'tblTempVendorCDR_20' ) start [2025-04-01 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807797', 'tblTempVendorCDR_20' ) end [2025-04-01 02:31:19] Production.INFO: ProcessCDR(1,14807797,1,1,2) [2025-04-01 02:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807797', 'tblTempUsageDetail_20' ) start [2025-04-01 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807797', 'tblTempUsageDetail_20' ) end [2025-04-01 02:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:31:22] Production.INFO: ==24780== Releasing lock... [2025-04-01 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:31:22] Production.INFO: 34 MB #Memory Used# [2025-04-01 02:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:32:06 [end_date_ymd] => 2025-04-01 02:32:06 [RateCDR] => 1 ) [2025-04-01 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-03-31 23:32:06' and `end` < '2025-04-01 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-01 02:32:19] Production.INFO: count ==730 [2025-04-01 02:32:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:32:06 - End Time 2025-04-01 02:32:06 [2025-04-01 02:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807802', 'tblTempUsageDetail_20' ) start [2025-04-01 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807802', 'tblTempUsageDetail_20' ) end [2025-04-01 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807802', 'tblTempVendorCDR_20' ) start [2025-04-01 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807802', 'tblTempVendorCDR_20' ) end [2025-04-01 02:32:19] Production.INFO: ProcessCDR(1,14807802,1,1,2) [2025-04-01 02:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807802', 'tblTempUsageDetail_20' ) start [2025-04-01 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807802', 'tblTempUsageDetail_20' ) end [2025-04-01 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:32:23] Production.INFO: ==24852== Releasing lock... [2025-04-01 02:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:32:23] Production.INFO: 34 MB #Memory Used# [2025-04-01 02:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:33:06 [end_date_ymd] => 2025-04-01 02:33:06 [RateCDR] => 1 ) [2025-04-01 02:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 23:33:06' and `end` < '2025-04-01 02:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 02:33:18] Production.INFO: count ==725 [2025-04-01 02:33:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:33:06 - End Time 2025-04-01 02:33:06 [2025-04-01 02:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807807', 'tblTempUsageDetail_20' ) start [2025-04-01 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807807', 'tblTempUsageDetail_20' ) end [2025-04-01 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807807', 'tblTempVendorCDR_20' ) start [2025-04-01 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807807', 'tblTempVendorCDR_20' ) end [2025-04-01 02:33:19] Production.INFO: ProcessCDR(1,14807807,1,1,2) [2025-04-01 02:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807807', 'tblTempUsageDetail_20' ) start [2025-04-01 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807807', 'tblTempUsageDetail_20' ) end [2025-04-01 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:33:22] Production.INFO: ==24928== Releasing lock... [2025-04-01 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:33:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:34:06 [end_date_ymd] => 2025-04-01 02:34:06 [RateCDR] => 1 ) [2025-04-01 02: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-03-31 23:34:06' and `end` < '2025-04-01 02: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-01 02:34:19] Production.INFO: count ==704 [2025-04-01 02:34:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:34:06 - End Time 2025-04-01 02:34:06 [2025-04-01 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807812', 'tblTempUsageDetail_20' ) start [2025-04-01 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807812', 'tblTempUsageDetail_20' ) end [2025-04-01 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807812', 'tblTempVendorCDR_20' ) start [2025-04-01 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807812', 'tblTempVendorCDR_20' ) end [2025-04-01 02:34:19] Production.INFO: ProcessCDR(1,14807812,1,1,2) [2025-04-01 02:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807812', 'tblTempUsageDetail_20' ) start [2025-04-01 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807812', 'tblTempUsageDetail_20' ) end [2025-04-01 02:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:34:23] Production.INFO: ==25002== Releasing lock... [2025-04-01 02:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:34:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:35:06 [end_date_ymd] => 2025-04-01 02:35:06 [RateCDR] => 1 ) [2025-04-01 02: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-03-31 23:35:06' and `end` < '2025-04-01 02: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-01 02:35:18] Production.INFO: count ==703 [2025-04-01 02:35:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:35:06 - End Time 2025-04-01 02:35:06 [2025-04-01 02:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807817', 'tblTempUsageDetail_20' ) start [2025-04-01 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807817', 'tblTempUsageDetail_20' ) end [2025-04-01 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807817', 'tblTempVendorCDR_20' ) start [2025-04-01 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807817', 'tblTempVendorCDR_20' ) end [2025-04-01 02:35:19] Production.INFO: ProcessCDR(1,14807817,1,1,2) [2025-04-01 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807817', 'tblTempUsageDetail_20' ) start [2025-04-01 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807817', 'tblTempUsageDetail_20' ) end [2025-04-01 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:35:22] Production.INFO: ==25074== Releasing lock... [2025-04-01 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:35:22] Production.INFO: 34 MB #Memory Used# [2025-04-01 02:36:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:36:07 [end_date_ymd] => 2025-04-01 02:36:07 [RateCDR] => 1 ) [2025-04-01 02:36: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-03-31 23:36:07' and `end` < '2025-04-01 02:36: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-01 02:36:19] Production.INFO: count ==702 [2025-04-01 02:36:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:36:07 - End Time 2025-04-01 02:36:07 [2025-04-01 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807822', 'tblTempUsageDetail_20' ) start [2025-04-01 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807822', 'tblTempUsageDetail_20' ) end [2025-04-01 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807822', 'tblTempVendorCDR_20' ) start [2025-04-01 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807822', 'tblTempVendorCDR_20' ) end [2025-04-01 02:36:19] Production.INFO: ProcessCDR(1,14807822,1,1,2) [2025-04-01 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807822', 'tblTempUsageDetail_20' ) start [2025-04-01 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807822', 'tblTempUsageDetail_20' ) end [2025-04-01 02:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:36:23] Production.INFO: ==25155== Releasing lock... [2025-04-01 02:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:36:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:37:05 [end_date_ymd] => 2025-04-01 02:37:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 23:37:05' and `end` < '2025-04-01 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-01 02:37:18] Production.INFO: count ==701 [2025-04-01 02:37:18] Production.ERROR: pbx CDR StartTime 2025-03-31 23:37:05 - End Time 2025-04-01 02:37:05 [2025-04-01 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807827', 'tblTempUsageDetail_20' ) start [2025-04-01 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807827', 'tblTempUsageDetail_20' ) end [2025-04-01 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807827', 'tblTempVendorCDR_20' ) start [2025-04-01 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807827', 'tblTempVendorCDR_20' ) end [2025-04-01 02:37:18] Production.INFO: ProcessCDR(1,14807827,1,1,2) [2025-04-01 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807827', 'tblTempUsageDetail_20' ) start [2025-04-01 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807827', 'tblTempUsageDetail_20' ) end [2025-04-01 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:37:22] Production.INFO: ==25229== Releasing lock... [2025-04-01 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:37:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:38:06 [end_date_ymd] => 2025-04-01 02:38:06 [RateCDR] => 1 ) [2025-04-01 02:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 23:38:06' and `end` < '2025-04-01 02:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 02:38:18] Production.INFO: count ==710 [2025-04-01 02:38:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:38:06 - End Time 2025-04-01 02:38:06 [2025-04-01 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807832', 'tblTempUsageDetail_20' ) start [2025-04-01 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807832', 'tblTempUsageDetail_20' ) end [2025-04-01 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807832', 'tblTempVendorCDR_20' ) start [2025-04-01 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807832', 'tblTempVendorCDR_20' ) end [2025-04-01 02:38:19] Production.INFO: ProcessCDR(1,14807832,1,1,2) [2025-04-01 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807832', 'tblTempUsageDetail_20' ) start [2025-04-01 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807832', 'tblTempUsageDetail_20' ) end [2025-04-01 02:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:38:23] Production.INFO: ==25341== Releasing lock... [2025-04-01 02:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:38:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-01 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:39:06 [end_date_ymd] => 2025-04-01 02:39:06 [RateCDR] => 1 ) [2025-04-01 02: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-03-31 23:39:06' and `end` < '2025-04-01 02: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-01 02:39:19] Production.INFO: count ==708 [2025-04-01 02:39:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:39:06 - End Time 2025-04-01 02:39:06 [2025-04-01 02:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807837', 'tblTempUsageDetail_20' ) start [2025-04-01 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807837', 'tblTempUsageDetail_20' ) end [2025-04-01 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807837', 'tblTempVendorCDR_20' ) start [2025-04-01 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807837', 'tblTempVendorCDR_20' ) end [2025-04-01 02:39:19] Production.INFO: ProcessCDR(1,14807837,1,1,2) [2025-04-01 02:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807837', 'tblTempUsageDetail_20' ) start [2025-04-01 02:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807837', 'tblTempUsageDetail_20' ) end [2025-04-01 02:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:39:23] Production.INFO: ==25423== Releasing lock... [2025-04-01 02:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:39:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-01 02:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:40:07 [end_date_ymd] => 2025-04-01 02:40:07 [RateCDR] => 1 ) [2025-04-01 02: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-03-31 23:40:07' and `end` < '2025-04-01 02:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 02:40:19] Production.INFO: count ==717 [2025-04-01 02:40:20] Production.ERROR: pbx CDR StartTime 2025-03-31 23:40:07 - End Time 2025-04-01 02:40:07 [2025-04-01 02:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807843', 'tblTempUsageDetail_20' ) start [2025-04-01 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807843', 'tblTempUsageDetail_20' ) end [2025-04-01 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807843', 'tblTempVendorCDR_20' ) start [2025-04-01 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807843', 'tblTempVendorCDR_20' ) end [2025-04-01 02:40:20] Production.INFO: ProcessCDR(1,14807843,1,1,2) [2025-04-01 02:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807843', 'tblTempUsageDetail_20' ) start [2025-04-01 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807843', 'tblTempUsageDetail_20' ) end [2025-04-01 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:40:24] Production.INFO: ==25501== Releasing lock... [2025-04-01 02:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:40:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-01 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:41:06 [end_date_ymd] => 2025-04-01 02:41:06 [RateCDR] => 1 ) [2025-04-01 02:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 23:41:06' and `end` < '2025-04-01 02:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 02:41:19] Production.INFO: count ==723 [2025-04-01 02:41:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:41:06 - End Time 2025-04-01 02:41:06 [2025-04-01 02:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807848', 'tblTempUsageDetail_20' ) start [2025-04-01 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807848', 'tblTempUsageDetail_20' ) end [2025-04-01 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807848', 'tblTempVendorCDR_20' ) start [2025-04-01 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807848', 'tblTempVendorCDR_20' ) end [2025-04-01 02:41:19] Production.INFO: ProcessCDR(1,14807848,1,1,2) [2025-04-01 02:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807848', 'tblTempUsageDetail_20' ) start [2025-04-01 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807848', 'tblTempUsageDetail_20' ) end [2025-04-01 02:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:41:23] Production.INFO: ==25582== Releasing lock... [2025-04-01 02:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:41:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:42:06 [end_date_ymd] => 2025-04-01 02:42:06 [RateCDR] => 1 ) [2025-04-01 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-03-31 23:42:06' and `end` < '2025-04-01 02: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-01 02:42:18] Production.INFO: count ==723 [2025-04-01 02:42:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:42:06 - End Time 2025-04-01 02:42:06 [2025-04-01 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807853', 'tblTempUsageDetail_20' ) start [2025-04-01 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807853', 'tblTempUsageDetail_20' ) end [2025-04-01 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807853', 'tblTempVendorCDR_20' ) start [2025-04-01 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807853', 'tblTempVendorCDR_20' ) end [2025-04-01 02:42:19] Production.INFO: ProcessCDR(1,14807853,1,1,2) [2025-04-01 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807853', 'tblTempUsageDetail_20' ) start [2025-04-01 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807853', 'tblTempUsageDetail_20' ) end [2025-04-01 02:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:42:23] Production.INFO: ==25668== Releasing lock... [2025-04-01 02:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:42:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 02:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:43:06 [end_date_ymd] => 2025-04-01 02:43:06 [RateCDR] => 1 ) [2025-04-01 02: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-03-31 23:43:06' and `end` < '2025-04-01 02: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-01 02:43:18] Production.INFO: count ==727 [2025-04-01 02:43:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:43:06 - End Time 2025-04-01 02:43:06 [2025-04-01 02:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807858', 'tblTempUsageDetail_20' ) start [2025-04-01 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807858', 'tblTempUsageDetail_20' ) end [2025-04-01 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807858', 'tblTempVendorCDR_20' ) start [2025-04-01 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807858', 'tblTempVendorCDR_20' ) end [2025-04-01 02:43:19] Production.INFO: ProcessCDR(1,14807858,1,1,2) [2025-04-01 02:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807858', 'tblTempUsageDetail_20' ) start [2025-04-01 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807858', 'tblTempUsageDetail_20' ) end [2025-04-01 02:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:43:23] Production.INFO: ==25743== Releasing lock... [2025-04-01 02:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:43:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:44:06 [end_date_ymd] => 2025-04-01 02:44:06 [RateCDR] => 1 ) [2025-04-01 02:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 23:44:06' and `end` < '2025-04-01 02:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 02:44:18] Production.INFO: count ==731 [2025-04-01 02:44:18] Production.ERROR: pbx CDR StartTime 2025-03-31 23:44:06 - End Time 2025-04-01 02:44:06 [2025-04-01 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807863', 'tblTempUsageDetail_20' ) start [2025-04-01 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807863', 'tblTempUsageDetail_20' ) end [2025-04-01 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807863', 'tblTempVendorCDR_20' ) start [2025-04-01 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807863', 'tblTempVendorCDR_20' ) end [2025-04-01 02:44:19] Production.INFO: ProcessCDR(1,14807863,1,1,2) [2025-04-01 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807863', 'tblTempUsageDetail_20' ) start [2025-04-01 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807863', 'tblTempUsageDetail_20' ) end [2025-04-01 02:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:44:23] Production.INFO: ==25815== Releasing lock... [2025-04-01 02:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:44:23] Production.INFO: 34 MB #Memory Used# [2025-04-01 02:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:45:06 [end_date_ymd] => 2025-04-01 02:45:06 [RateCDR] => 1 ) [2025-04-01 02: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-03-31 23:45:06' and `end` < '2025-04-01 02: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-01 02:45:19] Production.INFO: count ==735 [2025-04-01 02:45:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:45:06 - End Time 2025-04-01 02:45:06 [2025-04-01 02:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807868', 'tblTempUsageDetail_20' ) start [2025-04-01 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807868', 'tblTempUsageDetail_20' ) end [2025-04-01 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807868', 'tblTempVendorCDR_20' ) start [2025-04-01 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807868', 'tblTempVendorCDR_20' ) end [2025-04-01 02:45:19] Production.INFO: ProcessCDR(1,14807868,1,1,2) [2025-04-01 02:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807868', 'tblTempUsageDetail_20' ) start [2025-04-01 02:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807868', 'tblTempUsageDetail_20' ) end [2025-04-01 02:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:45:23] Production.INFO: ==25894== Releasing lock... [2025-04-01 02:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:45:23] Production.INFO: 34 MB #Memory Used# [2025-04-01 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:46:06 [end_date_ymd] => 2025-04-01 02:46:06 [RateCDR] => 1 ) [2025-04-01 02:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 23:46:06' and `end` < '2025-04-01 02:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 02:46:18] Production.INFO: count ==835 [2025-04-01 02:46:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:46:06 - End Time 2025-04-01 02:46:06 [2025-04-01 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807873', 'tblTempUsageDetail_20' ) start [2025-04-01 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807873', 'tblTempUsageDetail_20' ) end [2025-04-01 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807873', 'tblTempVendorCDR_20' ) start [2025-04-01 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807873', 'tblTempVendorCDR_20' ) end [2025-04-01 02:46:19] Production.INFO: ProcessCDR(1,14807873,1,1,2) [2025-04-01 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807873', 'tblTempUsageDetail_20' ) start [2025-04-01 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807873', 'tblTempUsageDetail_20' ) end [2025-04-01 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:46:23] Production.INFO: ==25976== Releasing lock... [2025-04-01 02:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:46:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-01 02:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:47:06 [end_date_ymd] => 2025-04-01 02:47:06 [RateCDR] => 1 ) [2025-04-01 02: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-03-31 23:47:06' and `end` < '2025-04-01 02: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-01 02:47:19] Production.INFO: count ==818 [2025-04-01 02:47:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:47:06 - End Time 2025-04-01 02:47:06 [2025-04-01 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807878', 'tblTempUsageDetail_20' ) start [2025-04-01 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807878', 'tblTempUsageDetail_20' ) end [2025-04-01 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807878', 'tblTempVendorCDR_20' ) start [2025-04-01 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807878', 'tblTempVendorCDR_20' ) end [2025-04-01 02:47:19] Production.INFO: ProcessCDR(1,14807878,1,1,2) [2025-04-01 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807878', 'tblTempUsageDetail_20' ) start [2025-04-01 02:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807878', 'tblTempUsageDetail_20' ) end [2025-04-01 02:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:47:23] Production.INFO: ==26053== Releasing lock... [2025-04-01 02:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:47:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-01 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:48:06 [end_date_ymd] => 2025-04-01 02:48:06 [RateCDR] => 1 ) [2025-04-01 02: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-03-31 23:48:06' and `end` < '2025-04-01 02: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-01 02:48:18] Production.INFO: count ==818 [2025-04-01 02:48:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:48:06 - End Time 2025-04-01 02:48:06 [2025-04-01 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807883', 'tblTempUsageDetail_20' ) start [2025-04-01 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807883', 'tblTempUsageDetail_20' ) end [2025-04-01 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807883', 'tblTempVendorCDR_20' ) start [2025-04-01 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807883', 'tblTempVendorCDR_20' ) end [2025-04-01 02:48:19] Production.INFO: ProcessCDR(1,14807883,1,1,2) [2025-04-01 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807883', 'tblTempUsageDetail_20' ) start [2025-04-01 02:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807883', 'tblTempUsageDetail_20' ) end [2025-04-01 02:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:48:24] Production.INFO: ==26125== Releasing lock... [2025-04-01 02:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:48:24] Production.INFO: 34.5 MB #Memory Used# [2025-04-01 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:49:06 [end_date_ymd] => 2025-04-01 02:49:06 [RateCDR] => 1 ) [2025-04-01 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-03-31 23:49:06' and `end` < '2025-04-01 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-01 02:49:19] Production.INFO: count ==814 [2025-04-01 02:49:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:49:06 - End Time 2025-04-01 02:49:06 [2025-04-01 02:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807888', 'tblTempUsageDetail_20' ) start [2025-04-01 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807888', 'tblTempUsageDetail_20' ) end [2025-04-01 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807888', 'tblTempVendorCDR_20' ) start [2025-04-01 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807888', 'tblTempVendorCDR_20' ) end [2025-04-01 02:49:19] Production.INFO: ProcessCDR(1,14807888,1,1,2) [2025-04-01 02:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807888', 'tblTempUsageDetail_20' ) start [2025-04-01 02:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807888', 'tblTempUsageDetail_20' ) end [2025-04-01 02:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:49:23] Production.INFO: ==26200== Releasing lock... [2025-04-01 02:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:49:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-01 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:50:06 [end_date_ymd] => 2025-04-01 02:50:06 [RateCDR] => 1 ) [2025-04-01 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 23:50:06' and `end` < '2025-04-01 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 02:50:19] Production.INFO: count ==1074 [2025-04-01 02:50:20] Production.ERROR: pbx CDR StartTime 2025-03-31 23:50:06 - End Time 2025-04-01 02:50:06 [2025-04-01 02:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807894', 'tblTempUsageDetail_20' ) start [2025-04-01 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807894', 'tblTempUsageDetail_20' ) end [2025-04-01 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807894', 'tblTempVendorCDR_20' ) start [2025-04-01 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807894', 'tblTempVendorCDR_20' ) end [2025-04-01 02:50:20] Production.INFO: ProcessCDR(1,14807894,1,1,2) [2025-04-01 02:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807894', 'tblTempUsageDetail_20' ) start [2025-04-01 02:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807894', 'tblTempUsageDetail_20' ) end [2025-04-01 02:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:50:25] Production.INFO: ==26278== Releasing lock... [2025-04-01 02:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:50:25] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:51:06 [end_date_ymd] => 2025-04-01 02:51:06 [RateCDR] => 1 ) [2025-04-01 02:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 23:51:06' and `end` < '2025-04-01 02:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 02:51:19] Production.INFO: count ==1070 [2025-04-01 02:51:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:51:06 - End Time 2025-04-01 02:51:06 [2025-04-01 02:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807899', 'tblTempUsageDetail_20' ) start [2025-04-01 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807899', 'tblTempUsageDetail_20' ) end [2025-04-01 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807899', 'tblTempVendorCDR_20' ) start [2025-04-01 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807899', 'tblTempVendorCDR_20' ) end [2025-04-01 02:51:19] Production.INFO: ProcessCDR(1,14807899,1,1,2) [2025-04-01 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807899', 'tblTempUsageDetail_20' ) start [2025-04-01 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807899', 'tblTempUsageDetail_20' ) end [2025-04-01 02:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:51:23] Production.INFO: ==26353== Releasing lock... [2025-04-01 02:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:51:23] Production.INFO: 37 MB #Memory Used# [2025-04-01 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:52:05 [end_date_ymd] => 2025-04-01 02:52:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 23:52:05' and `end` < '2025-04-01 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-01 02:52:18] Production.INFO: count ==1068 [2025-04-01 02:52:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:52:05 - End Time 2025-04-01 02:52:05 [2025-04-01 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807904', 'tblTempUsageDetail_20' ) start [2025-04-01 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807904', 'tblTempUsageDetail_20' ) end [2025-04-01 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807904', 'tblTempVendorCDR_20' ) start [2025-04-01 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807904', 'tblTempVendorCDR_20' ) end [2025-04-01 02:52:19] Production.INFO: ProcessCDR(1,14807904,1,1,2) [2025-04-01 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807904', 'tblTempUsageDetail_20' ) start [2025-04-01 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807904', 'tblTempUsageDetail_20' ) end [2025-04-01 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:52:22] Production.INFO: ==26427== Releasing lock... [2025-04-01 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:52:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-01 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:53:06 [end_date_ymd] => 2025-04-01 02:53:06 [RateCDR] => 1 ) [2025-04-01 02: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-03-31 23:53:06' and `end` < '2025-04-01 02: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-01 02:53:19] Production.INFO: count ==1066 [2025-04-01 02:53:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:53:06 - End Time 2025-04-01 02:53:06 [2025-04-01 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807909', 'tblTempUsageDetail_20' ) start [2025-04-01 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807909', 'tblTempUsageDetail_20' ) end [2025-04-01 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807909', 'tblTempVendorCDR_20' ) start [2025-04-01 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807909', 'tblTempVendorCDR_20' ) end [2025-04-01 02:53:19] Production.INFO: ProcessCDR(1,14807909,1,1,2) [2025-04-01 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807909', 'tblTempUsageDetail_20' ) start [2025-04-01 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807909', 'tblTempUsageDetail_20' ) end [2025-04-01 02:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:53:23] Production.INFO: ==26541== Releasing lock... [2025-04-01 02:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:53:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:54:05 [end_date_ymd] => 2025-04-01 02:54:05 [RateCDR] => 1 ) [2025-04-01 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-03-31 23:54:05' and `end` < '2025-04-01 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-01 02:54:18] Production.INFO: count ==1198 [2025-04-01 02:54:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:54:05 - End Time 2025-04-01 02:54:05 [2025-04-01 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807914', 'tblTempUsageDetail_20' ) start [2025-04-01 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807914', 'tblTempUsageDetail_20' ) end [2025-04-01 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807914', 'tblTempVendorCDR_20' ) start [2025-04-01 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807914', 'tblTempVendorCDR_20' ) end [2025-04-01 02:54:19] Production.INFO: ProcessCDR(1,14807914,1,1,2) [2025-04-01 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807914', 'tblTempUsageDetail_20' ) start [2025-04-01 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807914', 'tblTempUsageDetail_20' ) end [2025-04-01 02:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:54:23] Production.INFO: ==26613== Releasing lock... [2025-04-01 02:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:54:23] Production.INFO: 37 MB #Memory Used# [2025-04-01 02:55:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:55:07 [end_date_ymd] => 2025-04-01 02:55:07 [RateCDR] => 1 ) [2025-04-01 02:55: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-03-31 23:55:07' and `end` < '2025-04-01 02:55: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-01 02:55:19] Production.INFO: count ==1196 [2025-04-01 02:55:20] Production.ERROR: pbx CDR StartTime 2025-03-31 23:55:07 - End Time 2025-04-01 02:55:07 [2025-04-01 02:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807919', 'tblTempUsageDetail_20' ) start [2025-04-01 02:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807919', 'tblTempUsageDetail_20' ) end [2025-04-01 02:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807919', 'tblTempVendorCDR_20' ) start [2025-04-01 02:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807919', 'tblTempVendorCDR_20' ) end [2025-04-01 02:55:20] Production.INFO: ProcessCDR(1,14807919,1,1,2) [2025-04-01 02:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807919', 'tblTempUsageDetail_20' ) start [2025-04-01 02:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807919', 'tblTempUsageDetail_20' ) end [2025-04-01 02:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:55:24] Production.INFO: ==26696== Releasing lock... [2025-04-01 02:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:55:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:56:06 [end_date_ymd] => 2025-04-01 02:56:06 [RateCDR] => 1 ) [2025-04-01 02:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 23:56:06' and `end` < '2025-04-01 02:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 02:56:18] Production.INFO: count ==1196 [2025-04-01 02:56:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:56:06 - End Time 2025-04-01 02:56:06 [2025-04-01 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807924', 'tblTempUsageDetail_20' ) start [2025-04-01 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807924', 'tblTempUsageDetail_20' ) end [2025-04-01 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807924', 'tblTempVendorCDR_20' ) start [2025-04-01 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807924', 'tblTempVendorCDR_20' ) end [2025-04-01 02:56:19] Production.INFO: ProcessCDR(1,14807924,1,1,2) [2025-04-01 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807924', 'tblTempUsageDetail_20' ) start [2025-04-01 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807924', 'tblTempUsageDetail_20' ) end [2025-04-01 02:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:56:23] Production.INFO: ==26769== Releasing lock... [2025-04-01 02:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:56:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:57:06 [end_date_ymd] => 2025-04-01 02:57:06 [RateCDR] => 1 ) [2025-04-01 02: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-03-31 23:57:06' and `end` < '2025-04-01 02: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-01 02:57:19] Production.INFO: count ==1196 [2025-04-01 02:57:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:57:06 - End Time 2025-04-01 02:57:06 [2025-04-01 02:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807929', 'tblTempUsageDetail_20' ) start [2025-04-01 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807929', 'tblTempUsageDetail_20' ) end [2025-04-01 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807929', 'tblTempVendorCDR_20' ) start [2025-04-01 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807929', 'tblTempVendorCDR_20' ) end [2025-04-01 02:57:19] Production.INFO: ProcessCDR(1,14807929,1,1,2) [2025-04-01 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807929', 'tblTempUsageDetail_20' ) start [2025-04-01 02:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807929', 'tblTempUsageDetail_20' ) end [2025-04-01 02:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:57:23] Production.INFO: ==26840== Releasing lock... [2025-04-01 02:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:57:23] Production.INFO: 37 MB #Memory Used# [2025-04-01 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:58:06 [end_date_ymd] => 2025-04-01 02:58:06 [RateCDR] => 1 ) [2025-04-01 02: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-03-31 23:58:06' and `end` < '2025-04-01 02: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-01 02:58:19] Production.INFO: count ==1291 [2025-04-01 02:58:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:58:06 - End Time 2025-04-01 02:58:06 [2025-04-01 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807934', 'tblTempUsageDetail_20' ) start [2025-04-01 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807934', 'tblTempUsageDetail_20' ) end [2025-04-01 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807934', 'tblTempVendorCDR_20' ) start [2025-04-01 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807934', 'tblTempVendorCDR_20' ) end [2025-04-01 02:58:19] Production.INFO: ProcessCDR(1,14807934,1,1,2) [2025-04-01 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807934', 'tblTempUsageDetail_20' ) start [2025-04-01 02:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807934', 'tblTempUsageDetail_20' ) end [2025-04-01 02:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:58:24] Production.INFO: ==26917== Releasing lock... [2025-04-01 02:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:58:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-01 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-31 23:59:05 [end_date_ymd] => 2025-04-01 02:59:05 [RateCDR] => 1 ) [2025-04-01 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-31 23:59:05' and `end` < '2025-04-01 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 02:59:18] Production.INFO: count ==1291 [2025-04-01 02:59:19] Production.ERROR: pbx CDR StartTime 2025-03-31 23:59:05 - End Time 2025-04-01 02:59:05 [2025-04-01 02:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807939', 'tblTempUsageDetail_20' ) start [2025-04-01 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807939', 'tblTempUsageDetail_20' ) end [2025-04-01 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807939', 'tblTempVendorCDR_20' ) start [2025-04-01 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807939', 'tblTempVendorCDR_20' ) end [2025-04-01 02:59:19] Production.INFO: ProcessCDR(1,14807939,1,1,2) [2025-04-01 02:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807939', 'tblTempUsageDetail_20' ) start [2025-04-01 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807939', 'tblTempUsageDetail_20' ) end [2025-04-01 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 02:59:22] Production.INFO: ==27002== Releasing lock... [2025-04-01 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 02:59:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-01 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:00:06 [end_date_ymd] => 2025-04-01 03:00:06 [RateCDR] => 1 ) [2025-04-01 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-01 00:00:06' and `end` < '2025-04-01 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-01 03:00:19] Production.INFO: count ==1290 [2025-04-01 03:00:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:00:06 - End Time 2025-04-01 03:00:06 [2025-04-01 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807945', 'tblTempUsageDetail_20' ) start [2025-04-01 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807945', 'tblTempUsageDetail_20' ) end [2025-04-01 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807945', 'tblTempVendorCDR_20' ) start [2025-04-01 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807945', 'tblTempVendorCDR_20' ) end [2025-04-01 03:00:19] Production.INFO: ProcessCDR(1,14807945,1,1,2) [2025-04-01 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807945', 'tblTempUsageDetail_20' ) start [2025-04-01 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807945', 'tblTempUsageDetail_20' ) end [2025-04-01 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:00:23] Production.INFO: ==27086== Releasing lock... [2025-04-01 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:00:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-01 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:01:06 [end_date_ymd] => 2025-04-01 03:01:06 [RateCDR] => 1 ) [2025-04-01 03: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-01 00:01:06' and `end` < '2025-04-01 03: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-01 03:01:18] Production.INFO: count ==1289 [2025-04-01 03:01:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:01:06 - End Time 2025-04-01 03:01:06 [2025-04-01 03:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807950', 'tblTempUsageDetail_20' ) start [2025-04-01 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807950', 'tblTempUsageDetail_20' ) end [2025-04-01 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807950', 'tblTempVendorCDR_20' ) start [2025-04-01 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807950', 'tblTempVendorCDR_20' ) end [2025-04-01 03:01:19] Production.INFO: ProcessCDR(1,14807950,1,1,2) [2025-04-01 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807950', 'tblTempUsageDetail_20' ) start [2025-04-01 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807950', 'tblTempUsageDetail_20' ) end [2025-04-01 03:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:01:23] Production.INFO: ==27174== Releasing lock... [2025-04-01 03:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:01:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-01 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:02:06 [end_date_ymd] => 2025-04-01 03:02:06 [RateCDR] => 1 ) [2025-04-01 03:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 00:02:06' and `end` < '2025-04-01 03:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 03:02:18] Production.INFO: count ==1289 [2025-04-01 03:02:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:02:06 - End Time 2025-04-01 03:02:06 [2025-04-01 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807955', 'tblTempUsageDetail_20' ) start [2025-04-01 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807955', 'tblTempUsageDetail_20' ) end [2025-04-01 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807955', 'tblTempVendorCDR_20' ) start [2025-04-01 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807955', 'tblTempVendorCDR_20' ) end [2025-04-01 03:02:19] Production.INFO: ProcessCDR(1,14807955,1,1,2) [2025-04-01 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807955', 'tblTempUsageDetail_20' ) start [2025-04-01 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807955', 'tblTempUsageDetail_20' ) end [2025-04-01 03:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:02:23] Production.INFO: ==27323== Releasing lock... [2025-04-01 03:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:02:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-01 03:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:03:06 [end_date_ymd] => 2025-04-01 03:03:06 [RateCDR] => 1 ) [2025-04-01 03: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-01 00:03:06' and `end` < '2025-04-01 03: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-01 03:03:18] Production.INFO: count ==1285 [2025-04-01 03:03:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:03:06 - End Time 2025-04-01 03:03:06 [2025-04-01 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807960', 'tblTempUsageDetail_20' ) start [2025-04-01 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807960', 'tblTempUsageDetail_20' ) end [2025-04-01 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807960', 'tblTempVendorCDR_20' ) start [2025-04-01 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807960', 'tblTempVendorCDR_20' ) end [2025-04-01 03:03:19] Production.INFO: ProcessCDR(1,14807960,1,1,2) [2025-04-01 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807960', 'tblTempUsageDetail_20' ) start [2025-04-01 03:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807960', 'tblTempUsageDetail_20' ) end [2025-04-01 03:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:03:23] Production.INFO: ==27398== Releasing lock... [2025-04-01 03:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:03:23] Production.INFO: 38 MB #Memory Used# [2025-04-01 03:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:04:06 [end_date_ymd] => 2025-04-01 03:04:06 [RateCDR] => 1 ) [2025-04-01 03: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-01 00:04:06' and `end` < '2025-04-01 03: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-01 03:04:19] Production.INFO: count ==1285 [2025-04-01 03:04:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:04:06 - End Time 2025-04-01 03:04:06 [2025-04-01 03:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807965', 'tblTempUsageDetail_20' ) start [2025-04-01 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807965', 'tblTempUsageDetail_20' ) end [2025-04-01 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807965', 'tblTempVendorCDR_20' ) start [2025-04-01 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807965', 'tblTempVendorCDR_20' ) end [2025-04-01 03:04:19] Production.INFO: ProcessCDR(1,14807965,1,1,2) [2025-04-01 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807965', 'tblTempUsageDetail_20' ) start [2025-04-01 03:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807965', 'tblTempUsageDetail_20' ) end [2025-04-01 03:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:04:23] Production.INFO: ==27471== Releasing lock... [2025-04-01 03:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:04:23] Production.INFO: 38 MB #Memory Used# [2025-04-01 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:05:05 [end_date_ymd] => 2025-04-01 03:05:05 [RateCDR] => 1 ) [2025-04-01 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 00:05:05' and `end` < '2025-04-01 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 03:05:18] Production.INFO: count ==1294 [2025-04-01 03:05:18] Production.ERROR: pbx CDR StartTime 2025-04-01 00:05:05 - End Time 2025-04-01 03:05:05 [2025-04-01 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807970', 'tblTempUsageDetail_20' ) start [2025-04-01 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807970', 'tblTempUsageDetail_20' ) end [2025-04-01 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807970', 'tblTempVendorCDR_20' ) start [2025-04-01 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807970', 'tblTempVendorCDR_20' ) end [2025-04-01 03:05:19] Production.INFO: ProcessCDR(1,14807970,1,1,2) [2025-04-01 03:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807970', 'tblTempUsageDetail_20' ) start [2025-04-01 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807970', 'tblTempUsageDetail_20' ) end [2025-04-01 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:05:22] Production.INFO: ==27542== Releasing lock... [2025-04-01 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:05:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-01 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:06:05 [end_date_ymd] => 2025-04-01 03:06:05 [RateCDR] => 1 ) [2025-04-01 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-01 00:06:05' and `end` < '2025-04-01 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-01 03:06:18] Production.INFO: count ==1300 [2025-04-01 03:06:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:06:05 - End Time 2025-04-01 03:06:05 [2025-04-01 03:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807975', 'tblTempUsageDetail_20' ) start [2025-04-01 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807975', 'tblTempUsageDetail_20' ) end [2025-04-01 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807975', 'tblTempVendorCDR_20' ) start [2025-04-01 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807975', 'tblTempVendorCDR_20' ) end [2025-04-01 03:06:19] Production.INFO: ProcessCDR(1,14807975,1,1,2) [2025-04-01 03:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807975', 'tblTempUsageDetail_20' ) start [2025-04-01 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807975', 'tblTempUsageDetail_20' ) end [2025-04-01 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:06:22] Production.INFO: ==27693== Releasing lock... [2025-04-01 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:06:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-01 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:07:05 [end_date_ymd] => 2025-04-01 03:07:05 [RateCDR] => 1 ) [2025-04-01 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-01 00:07:05' and `end` < '2025-04-01 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-01 03:07:18] Production.INFO: count ==1298 [2025-04-01 03:07:18] Production.ERROR: pbx CDR StartTime 2025-04-01 00:07:05 - End Time 2025-04-01 03:07:05 [2025-04-01 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807980', 'tblTempUsageDetail_20' ) start [2025-04-01 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807980', 'tblTempUsageDetail_20' ) end [2025-04-01 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807980', 'tblTempVendorCDR_20' ) start [2025-04-01 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807980', 'tblTempVendorCDR_20' ) end [2025-04-01 03:07:18] Production.INFO: ProcessCDR(1,14807980,1,1,2) [2025-04-01 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807980', 'tblTempUsageDetail_20' ) start [2025-04-01 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807980', 'tblTempUsageDetail_20' ) end [2025-04-01 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:07:22] Production.INFO: ==27761== Releasing lock... [2025-04-01 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:07:22] Production.INFO: 38 MB #Memory Used# [2025-04-01 03:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:08:06 [end_date_ymd] => 2025-04-01 03:08:06 [RateCDR] => 1 ) [2025-04-01 03:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 00:08:06' and `end` < '2025-04-01 03:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 03:08:18] Production.INFO: count ==1296 [2025-04-01 03:08:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:08:06 - End Time 2025-04-01 03:08:06 [2025-04-01 03:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807985', 'tblTempUsageDetail_20' ) start [2025-04-01 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807985', 'tblTempUsageDetail_20' ) end [2025-04-01 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807985', 'tblTempVendorCDR_20' ) start [2025-04-01 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807985', 'tblTempVendorCDR_20' ) end [2025-04-01 03:08:19] Production.INFO: ProcessCDR(1,14807985,1,1,2) [2025-04-01 03:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807985', 'tblTempUsageDetail_20' ) start [2025-04-01 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807985', 'tblTempUsageDetail_20' ) end [2025-04-01 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:08:22] Production.INFO: ==27833== Releasing lock... [2025-04-01 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:08:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-01 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:09:05 [end_date_ymd] => 2025-04-01 03:09:05 [RateCDR] => 1 ) [2025-04-01 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-01 00:09:05' and `end` < '2025-04-01 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-01 03:09:18] Production.INFO: count ==1295 [2025-04-01 03:09:18] Production.ERROR: pbx CDR StartTime 2025-04-01 00:09:05 - End Time 2025-04-01 03:09:05 [2025-04-01 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807990', 'tblTempUsageDetail_20' ) start [2025-04-01 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807990', 'tblTempUsageDetail_20' ) end [2025-04-01 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807990', 'tblTempVendorCDR_20' ) start [2025-04-01 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807990', 'tblTempVendorCDR_20' ) end [2025-04-01 03:09:18] Production.INFO: ProcessCDR(1,14807990,1,1,2) [2025-04-01 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807990', 'tblTempUsageDetail_20' ) start [2025-04-01 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807990', 'tblTempUsageDetail_20' ) end [2025-04-01 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:09:22] Production.INFO: ==28022== Releasing lock... [2025-04-01 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:09:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-01 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:10:06 [end_date_ymd] => 2025-04-01 03:10:06 [RateCDR] => 1 ) [2025-04-01 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 00:10:06' and `end` < '2025-04-01 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 03:10:19] Production.INFO: count ==1342 [2025-04-01 03:10:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:10:06 - End Time 2025-04-01 03:10:06 [2025-04-01 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807995', 'tblTempUsageDetail_20' ) start [2025-04-01 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14807995', 'tblTempUsageDetail_20' ) end [2025-04-01 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807995', 'tblTempVendorCDR_20' ) start [2025-04-01 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14807995', 'tblTempVendorCDR_20' ) end [2025-04-01 03:10:19] Production.INFO: ProcessCDR(1,14807995,1,1,2) [2025-04-01 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14807995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14807995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14807995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14807995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807995', 'tblTempUsageDetail_20' ) start [2025-04-01 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14807995', 'tblTempUsageDetail_20' ) end [2025-04-01 03:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:10:23] Production.INFO: ==28096== Releasing lock... [2025-04-01 03:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:10:23] Production.INFO: 38 MB #Memory Used# [2025-04-01 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:11:05 [end_date_ymd] => 2025-04-01 03:11:05 [RateCDR] => 1 ) [2025-04-01 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-01 00:11:05' and `end` < '2025-04-01 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-01 03:11:17] Production.INFO: count ==1343 [2025-04-01 03:11:18] Production.ERROR: pbx CDR StartTime 2025-04-01 00:11:05 - End Time 2025-04-01 03:11:05 [2025-04-01 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808001', 'tblTempUsageDetail_20' ) start [2025-04-01 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808001', 'tblTempUsageDetail_20' ) end [2025-04-01 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808001', 'tblTempVendorCDR_20' ) start [2025-04-01 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808001', 'tblTempVendorCDR_20' ) end [2025-04-01 03:11:18] Production.INFO: ProcessCDR(1,14808001,1,1,2) [2025-04-01 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808001', 'tblTempUsageDetail_20' ) start [2025-04-01 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808001', 'tblTempUsageDetail_20' ) end [2025-04-01 03:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:11:22] Production.INFO: ==28170== Releasing lock... [2025-04-01 03:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:11:22] Production.INFO: 38 MB #Memory Used# [2025-04-01 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:12:05 [end_date_ymd] => 2025-04-01 03:12:05 [RateCDR] => 1 ) [2025-04-01 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 00:12:05' and `end` < '2025-04-01 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 03:12:18] Production.INFO: count ==1345 [2025-04-01 03:12:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:12:05 - End Time 2025-04-01 03:12:05 [2025-04-01 03:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808006', 'tblTempUsageDetail_20' ) start [2025-04-01 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808006', 'tblTempUsageDetail_20' ) end [2025-04-01 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808006', 'tblTempVendorCDR_20' ) start [2025-04-01 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808006', 'tblTempVendorCDR_20' ) end [2025-04-01 03:12:19] Production.INFO: ProcessCDR(1,14808006,1,1,2) [2025-04-01 03:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808006', 'tblTempUsageDetail_20' ) start [2025-04-01 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808006', 'tblTempUsageDetail_20' ) end [2025-04-01 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:12:22] Production.INFO: ==28245== Releasing lock... [2025-04-01 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:12:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-01 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:13:05 [end_date_ymd] => 2025-04-01 03:13:05 [RateCDR] => 1 ) [2025-04-01 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-01 00:13:05' and `end` < '2025-04-01 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-01 03:13:18] Production.INFO: count ==1321 [2025-04-01 03:13:18] Production.ERROR: pbx CDR StartTime 2025-04-01 00:13:05 - End Time 2025-04-01 03:13:05 [2025-04-01 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808011', 'tblTempUsageDetail_20' ) start [2025-04-01 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808011', 'tblTempUsageDetail_20' ) end [2025-04-01 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808011', 'tblTempVendorCDR_20' ) start [2025-04-01 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808011', 'tblTempVendorCDR_20' ) end [2025-04-01 03:13:18] Production.INFO: ProcessCDR(1,14808011,1,1,2) [2025-04-01 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808011', 'tblTempUsageDetail_20' ) start [2025-04-01 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808011', 'tblTempUsageDetail_20' ) end [2025-04-01 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:13:22] Production.INFO: ==28397== Releasing lock... [2025-04-01 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:13:22] Production.INFO: 38 MB #Memory Used# [2025-04-01 03:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:14:06 [end_date_ymd] => 2025-04-01 03:14:06 [RateCDR] => 1 ) [2025-04-01 03:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 00:14:06' and `end` < '2025-04-01 03:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 03:14:19] Production.INFO: count ==1292 [2025-04-01 03:14:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:14:06 - End Time 2025-04-01 03:14:06 [2025-04-01 03:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808016', 'tblTempUsageDetail_20' ) start [2025-04-01 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808016', 'tblTempUsageDetail_20' ) end [2025-04-01 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808016', 'tblTempVendorCDR_20' ) start [2025-04-01 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808016', 'tblTempVendorCDR_20' ) end [2025-04-01 03:14:19] Production.INFO: ProcessCDR(1,14808016,1,1,2) [2025-04-01 03:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808016', 'tblTempUsageDetail_20' ) start [2025-04-01 03:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808016', 'tblTempUsageDetail_20' ) end [2025-04-01 03:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:14:23] Production.INFO: ==28470== Releasing lock... [2025-04-01 03:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:14:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-01 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:15:05 [end_date_ymd] => 2025-04-01 03:15:05 [RateCDR] => 1 ) [2025-04-01 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-01 00:15:05' and `end` < '2025-04-01 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-01 03:15:17] Production.INFO: count ==1289 [2025-04-01 03:15:18] Production.ERROR: pbx CDR StartTime 2025-04-01 00:15:05 - End Time 2025-04-01 03:15:05 [2025-04-01 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808021', 'tblTempUsageDetail_20' ) start [2025-04-01 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808021', 'tblTempUsageDetail_20' ) end [2025-04-01 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808021', 'tblTempVendorCDR_20' ) start [2025-04-01 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808021', 'tblTempVendorCDR_20' ) end [2025-04-01 03:15:18] Production.INFO: ProcessCDR(1,14808021,1,1,2) [2025-04-01 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808021', 'tblTempUsageDetail_20' ) start [2025-04-01 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808021', 'tblTempUsageDetail_20' ) end [2025-04-01 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:15:21] Production.INFO: ==28553== Releasing lock... [2025-04-01 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:15:21] Production.INFO: 38.25 MB #Memory Used# [2025-04-01 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:16:05 [end_date_ymd] => 2025-04-01 03:16:05 [RateCDR] => 1 ) [2025-04-01 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-01 00:16:05' and `end` < '2025-04-01 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-01 03:16:18] Production.INFO: count ==1286 [2025-04-01 03:16:18] Production.ERROR: pbx CDR StartTime 2025-04-01 00:16:05 - End Time 2025-04-01 03:16:05 [2025-04-01 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808026', 'tblTempUsageDetail_20' ) start [2025-04-01 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808026', 'tblTempUsageDetail_20' ) end [2025-04-01 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808026', 'tblTempVendorCDR_20' ) start [2025-04-01 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808026', 'tblTempVendorCDR_20' ) end [2025-04-01 03:16:18] Production.INFO: ProcessCDR(1,14808026,1,1,2) [2025-04-01 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808026', 'tblTempUsageDetail_20' ) start [2025-04-01 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808026', 'tblTempUsageDetail_20' ) end [2025-04-01 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:16:22] Production.INFO: ==28621== Releasing lock... [2025-04-01 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:16:22] Production.INFO: 38 MB #Memory Used# [2025-04-01 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:17:05 [end_date_ymd] => 2025-04-01 03:17:05 [RateCDR] => 1 ) [2025-04-01 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-01 00:17:05' and `end` < '2025-04-01 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-01 03:17:18] Production.INFO: count ==1294 [2025-04-01 03:17:18] Production.ERROR: pbx CDR StartTime 2025-04-01 00:17:05 - End Time 2025-04-01 03:17:05 [2025-04-01 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808031', 'tblTempUsageDetail_20' ) start [2025-04-01 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808031', 'tblTempUsageDetail_20' ) end [2025-04-01 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808031', 'tblTempVendorCDR_20' ) start [2025-04-01 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808031', 'tblTempVendorCDR_20' ) end [2025-04-01 03:17:18] Production.INFO: ProcessCDR(1,14808031,1,1,2) [2025-04-01 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808031', 'tblTempUsageDetail_20' ) start [2025-04-01 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808031', 'tblTempUsageDetail_20' ) end [2025-04-01 03:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:17:22] Production.INFO: ==28775== Releasing lock... [2025-04-01 03:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:17:22] Production.INFO: 38 MB #Memory Used# [2025-04-01 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:18:05 [end_date_ymd] => 2025-04-01 03:18:05 [RateCDR] => 1 ) [2025-04-01 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-01 00:18:05' and `end` < '2025-04-01 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-01 03:18:18] Production.INFO: count ==1293 [2025-04-01 03:18:18] Production.ERROR: pbx CDR StartTime 2025-04-01 00:18:05 - End Time 2025-04-01 03:18:05 [2025-04-01 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808036', 'tblTempUsageDetail_20' ) start [2025-04-01 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808036', 'tblTempUsageDetail_20' ) end [2025-04-01 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808036', 'tblTempVendorCDR_20' ) start [2025-04-01 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808036', 'tblTempVendorCDR_20' ) end [2025-04-01 03:18:18] Production.INFO: ProcessCDR(1,14808036,1,1,2) [2025-04-01 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808036', 'tblTempUsageDetail_20' ) start [2025-04-01 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808036', 'tblTempUsageDetail_20' ) end [2025-04-01 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:18:22] Production.INFO: ==28849== Releasing lock... [2025-04-01 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:18:22] Production.INFO: 38 MB #Memory Used# [2025-04-01 03:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:19:06 [end_date_ymd] => 2025-04-01 03:19:06 [RateCDR] => 1 ) [2025-04-01 03:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 00:19:06' and `end` < '2025-04-01 03:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 03:19:18] Production.INFO: count ==1291 [2025-04-01 03:19:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:19:06 - End Time 2025-04-01 03:19:06 [2025-04-01 03:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808041', 'tblTempUsageDetail_20' ) start [2025-04-01 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808041', 'tblTempUsageDetail_20' ) end [2025-04-01 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808041', 'tblTempVendorCDR_20' ) start [2025-04-01 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808041', 'tblTempVendorCDR_20' ) end [2025-04-01 03:19:19] Production.INFO: ProcessCDR(1,14808041,1,1,2) [2025-04-01 03:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808041', 'tblTempUsageDetail_20' ) start [2025-04-01 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808041', 'tblTempUsageDetail_20' ) end [2025-04-01 03:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:19:22] Production.INFO: ==28926== Releasing lock... [2025-04-01 03:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:19:22] Production.INFO: 38 MB #Memory Used# [2025-04-01 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:20:06 [end_date_ymd] => 2025-04-01 03:20:06 [RateCDR] => 1 ) [2025-04-01 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-01 00:20:06' and `end` < '2025-04-01 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-01 03:20:19] Production.INFO: count ==1291 [2025-04-01 03:20:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:20:06 - End Time 2025-04-01 03:20:06 [2025-04-01 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808046', 'tblTempUsageDetail_20' ) start [2025-04-01 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808046', 'tblTempUsageDetail_20' ) end [2025-04-01 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808046', 'tblTempVendorCDR_20' ) start [2025-04-01 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808046', 'tblTempVendorCDR_20' ) end [2025-04-01 03:20:19] Production.INFO: ProcessCDR(1,14808046,1,1,2) [2025-04-01 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808046', 'tblTempUsageDetail_20' ) start [2025-04-01 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808046', 'tblTempUsageDetail_20' ) end [2025-04-01 03:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:20:23] Production.INFO: ==29004== Releasing lock... [2025-04-01 03:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:20:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-01 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:21:05 [end_date_ymd] => 2025-04-01 03:21:05 [RateCDR] => 1 ) [2025-04-01 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-01 00:21:05' and `end` < '2025-04-01 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-01 03:21:18] Production.INFO: count ==1273 [2025-04-01 03:21:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:21:05 - End Time 2025-04-01 03:21:05 [2025-04-01 03:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808052', 'tblTempUsageDetail_20' ) start [2025-04-01 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808052', 'tblTempUsageDetail_20' ) end [2025-04-01 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808052', 'tblTempVendorCDR_20' ) start [2025-04-01 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808052', 'tblTempVendorCDR_20' ) end [2025-04-01 03:21:19] Production.INFO: ProcessCDR(1,14808052,1,1,2) [2025-04-01 03:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808052', 'tblTempUsageDetail_20' ) start [2025-04-01 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808052', 'tblTempUsageDetail_20' ) end [2025-04-01 03:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:21:22] Production.INFO: ==29083== Releasing lock... [2025-04-01 03:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:21:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-01 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:22:05 [end_date_ymd] => 2025-04-01 03:22:05 [RateCDR] => 1 ) [2025-04-01 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 00:22:05' and `end` < '2025-04-01 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 03:22:18] Production.INFO: count ==1272 [2025-04-01 03:22:18] Production.ERROR: pbx CDR StartTime 2025-04-01 00:22:05 - End Time 2025-04-01 03:22:05 [2025-04-01 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808057', 'tblTempUsageDetail_20' ) start [2025-04-01 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808057', 'tblTempUsageDetail_20' ) end [2025-04-01 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808057', 'tblTempVendorCDR_20' ) start [2025-04-01 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808057', 'tblTempVendorCDR_20' ) end [2025-04-01 03:22:19] Production.INFO: ProcessCDR(1,14808057,1,1,2) [2025-04-01 03:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808057', 'tblTempUsageDetail_20' ) start [2025-04-01 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808057', 'tblTempUsageDetail_20' ) end [2025-04-01 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:22:22] Production.INFO: ==29151== Releasing lock... [2025-04-01 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:22:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-01 03:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:23:06 [end_date_ymd] => 2025-04-01 03:23:06 [RateCDR] => 1 ) [2025-04-01 03: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-01 00:23:06' and `end` < '2025-04-01 03: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-01 03:23:18] Production.INFO: count ==1271 [2025-04-01 03:23:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:23:06 - End Time 2025-04-01 03:23:06 [2025-04-01 03:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808062', 'tblTempUsageDetail_20' ) start [2025-04-01 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808062', 'tblTempUsageDetail_20' ) end [2025-04-01 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808062', 'tblTempVendorCDR_20' ) start [2025-04-01 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808062', 'tblTempVendorCDR_20' ) end [2025-04-01 03:23:19] Production.INFO: ProcessCDR(1,14808062,1,1,2) [2025-04-01 03:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808062', 'tblTempUsageDetail_20' ) start [2025-04-01 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808062', 'tblTempUsageDetail_20' ) end [2025-04-01 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:23:22] Production.INFO: ==29223== Releasing lock... [2025-04-01 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:23:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-01 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:24:05 [end_date_ymd] => 2025-04-01 03:24:05 [RateCDR] => 1 ) [2025-04-01 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-01 00:24:05' and `end` < '2025-04-01 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-01 03:24:18] Production.INFO: count ==1271 [2025-04-01 03:24:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:24:05 - End Time 2025-04-01 03:24:05 [2025-04-01 03:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808067', 'tblTempUsageDetail_20' ) start [2025-04-01 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808067', 'tblTempUsageDetail_20' ) end [2025-04-01 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808067', 'tblTempVendorCDR_20' ) start [2025-04-01 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808067', 'tblTempVendorCDR_20' ) end [2025-04-01 03:24:19] Production.INFO: ProcessCDR(1,14808067,1,1,2) [2025-04-01 03:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808067', 'tblTempUsageDetail_20' ) start [2025-04-01 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808067', 'tblTempUsageDetail_20' ) end [2025-04-01 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:24:22] Production.INFO: ==29295== Releasing lock... [2025-04-01 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:24:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-01 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:25:06 [end_date_ymd] => 2025-04-01 03:25:06 [RateCDR] => 1 ) [2025-04-01 03: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-01 00:25:06' and `end` < '2025-04-01 03: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-01 03:25:18] Production.INFO: count ==1268 [2025-04-01 03:25:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:25:06 - End Time 2025-04-01 03:25:06 [2025-04-01 03:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808072', 'tblTempUsageDetail_20' ) start [2025-04-01 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808072', 'tblTempUsageDetail_20' ) end [2025-04-01 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808072', 'tblTempVendorCDR_20' ) start [2025-04-01 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808072', 'tblTempVendorCDR_20' ) end [2025-04-01 03:25:19] Production.INFO: ProcessCDR(1,14808072,1,1,2) [2025-04-01 03:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808072', 'tblTempUsageDetail_20' ) start [2025-04-01 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808072', 'tblTempUsageDetail_20' ) end [2025-04-01 03:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:25:22] Production.INFO: ==29368== Releasing lock... [2025-04-01 03:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:25:22] Production.INFO: 38 MB #Memory Used# [2025-04-01 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:26:05 [end_date_ymd] => 2025-04-01 03:26:05 [RateCDR] => 1 ) [2025-04-01 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 00:26:05' and `end` < '2025-04-01 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 03:26:17] Production.INFO: count ==1268 [2025-04-01 03:26:18] Production.ERROR: pbx CDR StartTime 2025-04-01 00:26:05 - End Time 2025-04-01 03:26:05 [2025-04-01 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808077', 'tblTempUsageDetail_20' ) start [2025-04-01 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808077', 'tblTempUsageDetail_20' ) end [2025-04-01 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808077', 'tblTempVendorCDR_20' ) start [2025-04-01 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808077', 'tblTempVendorCDR_20' ) end [2025-04-01 03:26:18] Production.INFO: ProcessCDR(1,14808077,1,1,2) [2025-04-01 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808077', 'tblTempUsageDetail_20' ) start [2025-04-01 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808077', 'tblTempUsageDetail_20' ) end [2025-04-01 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:26:22] Production.INFO: ==29478== Releasing lock... [2025-04-01 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:26:22] Production.INFO: 38 MB #Memory Used# [2025-04-01 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:27:05 [end_date_ymd] => 2025-04-01 03:27:05 [RateCDR] => 1 ) [2025-04-01 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-01 00:27:05' and `end` < '2025-04-01 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-01 03:27:18] Production.INFO: count ==1268 [2025-04-01 03:27:18] Production.ERROR: pbx CDR StartTime 2025-04-01 00:27:05 - End Time 2025-04-01 03:27:05 [2025-04-01 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808082', 'tblTempUsageDetail_20' ) start [2025-04-01 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808082', 'tblTempUsageDetail_20' ) end [2025-04-01 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808082', 'tblTempVendorCDR_20' ) start [2025-04-01 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808082', 'tblTempVendorCDR_20' ) end [2025-04-01 03:27:18] Production.INFO: ProcessCDR(1,14808082,1,1,2) [2025-04-01 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808082', 'tblTempUsageDetail_20' ) start [2025-04-01 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808082', 'tblTempUsageDetail_20' ) end [2025-04-01 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:27:22] Production.INFO: ==29556== Releasing lock... [2025-04-01 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:27:22] Production.INFO: 38 MB #Memory Used# [2025-04-01 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:28:05 [end_date_ymd] => 2025-04-01 03:28:05 [RateCDR] => 1 ) [2025-04-01 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 00:28:05' and `end` < '2025-04-01 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 03:28:18] Production.INFO: count ==1267 [2025-04-01 03:28:18] Production.ERROR: pbx CDR StartTime 2025-04-01 00:28:05 - End Time 2025-04-01 03:28:05 [2025-04-01 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808087', 'tblTempUsageDetail_20' ) start [2025-04-01 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808087', 'tblTempUsageDetail_20' ) end [2025-04-01 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808087', 'tblTempVendorCDR_20' ) start [2025-04-01 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808087', 'tblTempVendorCDR_20' ) end [2025-04-01 03:28:18] Production.INFO: ProcessCDR(1,14808087,1,1,2) [2025-04-01 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808087', 'tblTempUsageDetail_20' ) start [2025-04-01 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808087', 'tblTempUsageDetail_20' ) end [2025-04-01 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:28:21] Production.INFO: ==29633== Releasing lock... [2025-04-01 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:28:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-01 03:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:29:06 [end_date_ymd] => 2025-04-01 03:29:06 [RateCDR] => 1 ) [2025-04-01 03: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-01 00:29:06' and `end` < '2025-04-01 03: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-01 03:29:18] Production.INFO: count ==1262 [2025-04-01 03:29:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:29:06 - End Time 2025-04-01 03:29:06 [2025-04-01 03:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808092', 'tblTempUsageDetail_20' ) start [2025-04-01 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808092', 'tblTempUsageDetail_20' ) end [2025-04-01 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808092', 'tblTempVendorCDR_20' ) start [2025-04-01 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808092', 'tblTempVendorCDR_20' ) end [2025-04-01 03:29:19] Production.INFO: ProcessCDR(1,14808092,1,1,2) [2025-04-01 03:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808092', 'tblTempUsageDetail_20' ) start [2025-04-01 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808092', 'tblTempUsageDetail_20' ) end [2025-04-01 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:29:22] Production.INFO: ==29706== Releasing lock... [2025-04-01 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:29:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-01 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:30:06 [end_date_ymd] => 2025-04-01 03:30:06 [RateCDR] => 1 ) [2025-04-01 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-01 00:30:06' and `end` < '2025-04-01 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-01 03:30:19] Production.INFO: count ==1254 [2025-04-01 03:30:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:30:06 - End Time 2025-04-01 03:30:06 [2025-04-01 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808098', 'tblTempUsageDetail_20' ) start [2025-04-01 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808098', 'tblTempUsageDetail_20' ) end [2025-04-01 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808098', 'tblTempVendorCDR_20' ) start [2025-04-01 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808098', 'tblTempVendorCDR_20' ) end [2025-04-01 03:30:19] Production.INFO: ProcessCDR(1,14808098,1,1,2) [2025-04-01 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808098', 'tblTempUsageDetail_20' ) start [2025-04-01 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808098', 'tblTempUsageDetail_20' ) end [2025-04-01 03:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:30:23] Production.INFO: ==29782== Releasing lock... [2025-04-01 03:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:30:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-01 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:31:06 [end_date_ymd] => 2025-04-01 03:31:06 [RateCDR] => 1 ) [2025-04-01 03: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-01 00:31:06' and `end` < '2025-04-01 03: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-01 03:31:19] Production.INFO: count ==1254 [2025-04-01 03:31:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:31:06 - End Time 2025-04-01 03:31:06 [2025-04-01 03:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808103', 'tblTempUsageDetail_20' ) start [2025-04-01 03:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808103', 'tblTempUsageDetail_20' ) end [2025-04-01 03:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808103', 'tblTempVendorCDR_20' ) start [2025-04-01 03:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808103', 'tblTempVendorCDR_20' ) end [2025-04-01 03:31:20] Production.INFO: ProcessCDR(1,14808103,1,1,2) [2025-04-01 03:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808103', 'tblTempUsageDetail_20' ) start [2025-04-01 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808103', 'tblTempUsageDetail_20' ) end [2025-04-01 03:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:31:23] Production.INFO: ==29857== Releasing lock... [2025-04-01 03:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:31:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-01 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:32:05 [end_date_ymd] => 2025-04-01 03:32:05 [RateCDR] => 1 ) [2025-04-01 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 00:32:05' and `end` < '2025-04-01 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 03:32:18] Production.INFO: count ==1254 [2025-04-01 03:32:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:32:05 - End Time 2025-04-01 03:32:05 [2025-04-01 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808108', 'tblTempUsageDetail_20' ) start [2025-04-01 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808108', 'tblTempUsageDetail_20' ) end [2025-04-01 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808108', 'tblTempVendorCDR_20' ) start [2025-04-01 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808108', 'tblTempVendorCDR_20' ) end [2025-04-01 03:32:19] Production.INFO: ProcessCDR(1,14808108,1,1,2) [2025-04-01 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808108', 'tblTempUsageDetail_20' ) start [2025-04-01 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808108', 'tblTempUsageDetail_20' ) end [2025-04-01 03:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:32:23] Production.INFO: ==29933== Releasing lock... [2025-04-01 03:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:32:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-01 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:33:06 [end_date_ymd] => 2025-04-01 03:33:06 [RateCDR] => 1 ) [2025-04-01 03:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 00:33:06' and `end` < '2025-04-01 03:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 03:33:18] Production.INFO: count ==1251 [2025-04-01 03:33:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:33:06 - End Time 2025-04-01 03:33:06 [2025-04-01 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808113', 'tblTempUsageDetail_20' ) start [2025-04-01 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808113', 'tblTempUsageDetail_20' ) end [2025-04-01 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808113', 'tblTempVendorCDR_20' ) start [2025-04-01 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808113', 'tblTempVendorCDR_20' ) end [2025-04-01 03:33:19] Production.INFO: ProcessCDR(1,14808113,1,1,2) [2025-04-01 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808113', 'tblTempUsageDetail_20' ) start [2025-04-01 03:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808113', 'tblTempUsageDetail_20' ) end [2025-04-01 03:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:33:23] Production.INFO: ==30004== Releasing lock... [2025-04-01 03:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:33:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-01 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:34:05 [end_date_ymd] => 2025-04-01 03:34:05 [RateCDR] => 1 ) [2025-04-01 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-01 00:34:05' and `end` < '2025-04-01 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-01 03:34:18] Production.INFO: count ==1237 [2025-04-01 03:34:18] Production.ERROR: pbx CDR StartTime 2025-04-01 00:34:05 - End Time 2025-04-01 03:34:05 [2025-04-01 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808118', 'tblTempUsageDetail_20' ) start [2025-04-01 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808118', 'tblTempUsageDetail_20' ) end [2025-04-01 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808118', 'tblTempVendorCDR_20' ) start [2025-04-01 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808118', 'tblTempVendorCDR_20' ) end [2025-04-01 03:34:18] Production.INFO: ProcessCDR(1,14808118,1,1,2) [2025-04-01 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808118', 'tblTempUsageDetail_20' ) start [2025-04-01 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808118', 'tblTempUsageDetail_20' ) end [2025-04-01 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:34:22] Production.INFO: ==30081== Releasing lock... [2025-04-01 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:34:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:35:06 [end_date_ymd] => 2025-04-01 03:35:06 [RateCDR] => 1 ) [2025-04-01 03: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-01 00:35:06' and `end` < '2025-04-01 03: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-01 03:35:18] Production.INFO: count ==1236 [2025-04-01 03:35:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:35:06 - End Time 2025-04-01 03:35:06 [2025-04-01 03:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808123', 'tblTempUsageDetail_20' ) start [2025-04-01 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808123', 'tblTempUsageDetail_20' ) end [2025-04-01 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808123', 'tblTempVendorCDR_20' ) start [2025-04-01 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808123', 'tblTempVendorCDR_20' ) end [2025-04-01 03:35:19] Production.INFO: ProcessCDR(1,14808123,1,1,2) [2025-04-01 03:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808123', 'tblTempUsageDetail_20' ) start [2025-04-01 03:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808123', 'tblTempUsageDetail_20' ) end [2025-04-01 03:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:35:23] Production.INFO: ==30157== Releasing lock... [2025-04-01 03:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:35:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:36:06 [end_date_ymd] => 2025-04-01 03:36:06 [RateCDR] => 1 ) [2025-04-01 03: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-01 00:36:06' and `end` < '2025-04-01 03: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-01 03:36:18] Production.INFO: count ==1205 [2025-04-01 03:36:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:36:06 - End Time 2025-04-01 03:36:06 [2025-04-01 03:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808128', 'tblTempUsageDetail_20' ) start [2025-04-01 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808128', 'tblTempUsageDetail_20' ) end [2025-04-01 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808128', 'tblTempVendorCDR_20' ) start [2025-04-01 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808128', 'tblTempVendorCDR_20' ) end [2025-04-01 03:36:19] Production.INFO: ProcessCDR(1,14808128,1,1,2) [2025-04-01 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808128', 'tblTempUsageDetail_20' ) start [2025-04-01 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808128', 'tblTempUsageDetail_20' ) end [2025-04-01 03:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:36:23] Production.INFO: ==30236== Releasing lock... [2025-04-01 03:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:36:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:37:05 [end_date_ymd] => 2025-04-01 03:37:05 [RateCDR] => 1 ) [2025-04-01 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-01 00:37:05' and `end` < '2025-04-01 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-01 03:37:18] Production.INFO: count ==1204 [2025-04-01 03:37:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:37:05 - End Time 2025-04-01 03:37:05 [2025-04-01 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808133', 'tblTempUsageDetail_20' ) start [2025-04-01 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808133', 'tblTempUsageDetail_20' ) end [2025-04-01 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808133', 'tblTempVendorCDR_20' ) start [2025-04-01 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808133', 'tblTempVendorCDR_20' ) end [2025-04-01 03:37:19] Production.INFO: ProcessCDR(1,14808133,1,1,2) [2025-04-01 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808133', 'tblTempUsageDetail_20' ) start [2025-04-01 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808133', 'tblTempUsageDetail_20' ) end [2025-04-01 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:37:22] Production.INFO: ==30307== Releasing lock... [2025-04-01 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:37:22] Production.INFO: 37 MB #Memory Used# [2025-04-01 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:38:06 [end_date_ymd] => 2025-04-01 03:38:06 [RateCDR] => 1 ) [2025-04-01 03:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 00:38:06' and `end` < '2025-04-01 03:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 03:38:19] Production.INFO: count ==1204 [2025-04-01 03:38:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:38:06 - End Time 2025-04-01 03:38:06 [2025-04-01 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808138', 'tblTempUsageDetail_20' ) start [2025-04-01 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808138', 'tblTempUsageDetail_20' ) end [2025-04-01 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808138', 'tblTempVendorCDR_20' ) start [2025-04-01 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808138', 'tblTempVendorCDR_20' ) end [2025-04-01 03:38:19] Production.INFO: ProcessCDR(1,14808138,1,1,2) [2025-04-01 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808138', 'tblTempUsageDetail_20' ) start [2025-04-01 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808138', 'tblTempUsageDetail_20' ) end [2025-04-01 03:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:38:23] Production.INFO: ==30383== Releasing lock... [2025-04-01 03:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:38:23] Production.INFO: 37 MB #Memory Used# [2025-04-01 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:39:06 [end_date_ymd] => 2025-04-01 03:39:06 [RateCDR] => 1 ) [2025-04-01 03: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-01 00:39:06' and `end` < '2025-04-01 03: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-01 03:39:18] Production.INFO: count ==1204 [2025-04-01 03:39:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:39:06 - End Time 2025-04-01 03:39:06 [2025-04-01 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808143', 'tblTempUsageDetail_20' ) start [2025-04-01 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808143', 'tblTempUsageDetail_20' ) end [2025-04-01 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808143', 'tblTempVendorCDR_20' ) start [2025-04-01 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808143', 'tblTempVendorCDR_20' ) end [2025-04-01 03:39:19] Production.INFO: ProcessCDR(1,14808143,1,1,2) [2025-04-01 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808143', 'tblTempUsageDetail_20' ) start [2025-04-01 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808143', 'tblTempUsageDetail_20' ) end [2025-04-01 03:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:39:23] Production.INFO: ==30458== Releasing lock... [2025-04-01 03:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:39:23] Production.INFO: 37 MB #Memory Used# [2025-04-01 03:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:40:07 [end_date_ymd] => 2025-04-01 03:40:07 [RateCDR] => 1 ) [2025-04-01 03:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 00:40:07' and `end` < '2025-04-01 03:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 03:40:20] Production.INFO: count ==1192 [2025-04-01 03:40:20] Production.ERROR: pbx CDR StartTime 2025-04-01 00:40:07 - End Time 2025-04-01 03:40:07 [2025-04-01 03:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808149', 'tblTempUsageDetail_20' ) start [2025-04-01 03:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808149', 'tblTempUsageDetail_20' ) end [2025-04-01 03:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808149', 'tblTempVendorCDR_20' ) start [2025-04-01 03:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808149', 'tblTempVendorCDR_20' ) end [2025-04-01 03:40:21] Production.INFO: ProcessCDR(1,14808149,1,1,2) [2025-04-01 03:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808149', 'tblTempUsageDetail_20' ) start [2025-04-01 03:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808149', 'tblTempUsageDetail_20' ) end [2025-04-01 03:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:40:24] Production.INFO: ==30535== Releasing lock... [2025-04-01 03:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:40:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:41:05 [end_date_ymd] => 2025-04-01 03:41:05 [RateCDR] => 1 ) [2025-04-01 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-01 00:41:05' and `end` < '2025-04-01 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-01 03:41:18] Production.INFO: count ==1182 [2025-04-01 03:41:18] Production.ERROR: pbx CDR StartTime 2025-04-01 00:41:05 - End Time 2025-04-01 03:41:05 [2025-04-01 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808154', 'tblTempUsageDetail_20' ) start [2025-04-01 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808154', 'tblTempUsageDetail_20' ) end [2025-04-01 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808154', 'tblTempVendorCDR_20' ) start [2025-04-01 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808154', 'tblTempVendorCDR_20' ) end [2025-04-01 03:41:19] Production.INFO: ProcessCDR(1,14808154,1,1,2) [2025-04-01 03:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808154', 'tblTempUsageDetail_20' ) start [2025-04-01 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808154', 'tblTempUsageDetail_20' ) end [2025-04-01 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:41:22] Production.INFO: ==30649== Releasing lock... [2025-04-01 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:41:22] Production.INFO: 37 MB #Memory Used# [2025-04-01 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:42:06 [end_date_ymd] => 2025-04-01 03:42:06 [RateCDR] => 1 ) [2025-04-01 03:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 00:42:06' and `end` < '2025-04-01 03:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 03:42:18] Production.INFO: count ==1180 [2025-04-01 03:42:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:42:06 - End Time 2025-04-01 03:42:06 [2025-04-01 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808159', 'tblTempUsageDetail_20' ) start [2025-04-01 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808159', 'tblTempUsageDetail_20' ) end [2025-04-01 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808159', 'tblTempVendorCDR_20' ) start [2025-04-01 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808159', 'tblTempVendorCDR_20' ) end [2025-04-01 03:42:19] Production.INFO: ProcessCDR(1,14808159,1,1,2) [2025-04-01 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808159', 'tblTempUsageDetail_20' ) start [2025-04-01 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808159', 'tblTempUsageDetail_20' ) end [2025-04-01 03:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:42:23] Production.INFO: ==30722== Releasing lock... [2025-04-01 03:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:42:23] Production.INFO: 37 MB #Memory Used# [2025-04-01 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:43:05 [end_date_ymd] => 2025-04-01 03:43:05 [RateCDR] => 1 ) [2025-04-01 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-01 00:43:05' and `end` < '2025-04-01 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-01 03:43:18] Production.INFO: count ==1180 [2025-04-01 03:43:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:43:05 - End Time 2025-04-01 03:43:05 [2025-04-01 03:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808164', 'tblTempUsageDetail_20' ) start [2025-04-01 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808164', 'tblTempUsageDetail_20' ) end [2025-04-01 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808164', 'tblTempVendorCDR_20' ) start [2025-04-01 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808164', 'tblTempVendorCDR_20' ) end [2025-04-01 03:43:19] Production.INFO: ProcessCDR(1,14808164,1,1,2) [2025-04-01 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808164', 'tblTempUsageDetail_20' ) start [2025-04-01 03:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808164', 'tblTempUsageDetail_20' ) end [2025-04-01 03:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:43:23] Production.INFO: ==30795== Releasing lock... [2025-04-01 03:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:43:23] Production.INFO: 37 MB #Memory Used# [2025-04-01 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:44:06 [end_date_ymd] => 2025-04-01 03:44:06 [RateCDR] => 1 ) [2025-04-01 03: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-01 00:44:06' and `end` < '2025-04-01 03: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-01 03:44:19] Production.INFO: count ==1221 [2025-04-01 03:44:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:44:06 - End Time 2025-04-01 03:44:06 [2025-04-01 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808169', 'tblTempUsageDetail_20' ) start [2025-04-01 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808169', 'tblTempUsageDetail_20' ) end [2025-04-01 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808169', 'tblTempVendorCDR_20' ) start [2025-04-01 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808169', 'tblTempVendorCDR_20' ) end [2025-04-01 03:44:19] Production.INFO: ProcessCDR(1,14808169,1,1,2) [2025-04-01 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808169', 'tblTempUsageDetail_20' ) start [2025-04-01 03:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808169', 'tblTempUsageDetail_20' ) end [2025-04-01 03:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:44:23] Production.INFO: ==30865== Releasing lock... [2025-04-01 03:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:44:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:45:05 [end_date_ymd] => 2025-04-01 03:45:05 [RateCDR] => 1 ) [2025-04-01 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-01 00:45:05' and `end` < '2025-04-01 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-01 03:45:18] Production.INFO: count ==1252 [2025-04-01 03:45:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:45:05 - End Time 2025-04-01 03:45:05 [2025-04-01 03:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808174', 'tblTempUsageDetail_20' ) start [2025-04-01 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808174', 'tblTempUsageDetail_20' ) end [2025-04-01 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808174', 'tblTempVendorCDR_20' ) start [2025-04-01 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808174', 'tblTempVendorCDR_20' ) end [2025-04-01 03:45:19] Production.INFO: ProcessCDR(1,14808174,1,1,2) [2025-04-01 03:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808174', 'tblTempUsageDetail_20' ) start [2025-04-01 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808174', 'tblTempUsageDetail_20' ) end [2025-04-01 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:45:23] Production.INFO: ==30941== Releasing lock... [2025-04-01 03:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:45:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:46:06 [end_date_ymd] => 2025-04-01 03:46:06 [RateCDR] => 1 ) [2025-04-01 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-01 00:46:06' and `end` < '2025-04-01 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-01 03:46:19] Production.INFO: count ==1262 [2025-04-01 03:46:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:46:06 - End Time 2025-04-01 03:46:06 [2025-04-01 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808179', 'tblTempUsageDetail_20' ) start [2025-04-01 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808179', 'tblTempUsageDetail_20' ) end [2025-04-01 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808179', 'tblTempVendorCDR_20' ) start [2025-04-01 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808179', 'tblTempVendorCDR_20' ) end [2025-04-01 03:46:19] Production.INFO: ProcessCDR(1,14808179,1,1,2) [2025-04-01 03:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808179', 'tblTempUsageDetail_20' ) start [2025-04-01 03:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808179', 'tblTempUsageDetail_20' ) end [2025-04-01 03:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:46:24] Production.INFO: ==31014== Releasing lock... [2025-04-01 03:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:46:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-01 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:47:05 [end_date_ymd] => 2025-04-01 03:47:05 [RateCDR] => 1 ) [2025-04-01 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-01 00:47:05' and `end` < '2025-04-01 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-01 03:47:18] Production.INFO: count ==1262 [2025-04-01 03:47:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:47:05 - End Time 2025-04-01 03:47:05 [2025-04-01 03:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808184', 'tblTempUsageDetail_20' ) start [2025-04-01 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808184', 'tblTempUsageDetail_20' ) end [2025-04-01 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808184', 'tblTempVendorCDR_20' ) start [2025-04-01 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808184', 'tblTempVendorCDR_20' ) end [2025-04-01 03:47:19] Production.INFO: ProcessCDR(1,14808184,1,1,2) [2025-04-01 03:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808184', 'tblTempUsageDetail_20' ) start [2025-04-01 03:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808184', 'tblTempUsageDetail_20' ) end [2025-04-01 03:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:47:23] Production.INFO: ==31118== Releasing lock... [2025-04-01 03:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:47:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-01 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:48:06 [end_date_ymd] => 2025-04-01 03:48:06 [RateCDR] => 1 ) [2025-04-01 03: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-01 00:48:06' and `end` < '2025-04-01 03: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-01 03:48:19] Production.INFO: count ==1219 [2025-04-01 03:48:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:48:06 - End Time 2025-04-01 03:48:06 [2025-04-01 03:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808189', 'tblTempUsageDetail_20' ) start [2025-04-01 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808189', 'tblTempUsageDetail_20' ) end [2025-04-01 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808189', 'tblTempVendorCDR_20' ) start [2025-04-01 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808189', 'tblTempVendorCDR_20' ) end [2025-04-01 03:48:19] Production.INFO: ProcessCDR(1,14808189,1,1,2) [2025-04-01 03:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808189', 'tblTempUsageDetail_20' ) start [2025-04-01 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808189', 'tblTempUsageDetail_20' ) end [2025-04-01 03:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:48:23] Production.INFO: ==31203== Releasing lock... [2025-04-01 03:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:48:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:49:05 [end_date_ymd] => 2025-04-01 03:49:05 [RateCDR] => 1 ) [2025-04-01 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-01 00:49:05' and `end` < '2025-04-01 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-01 03:49:18] Production.INFO: count ==1174 [2025-04-01 03:49:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:49:05 - End Time 2025-04-01 03:49:05 [2025-04-01 03:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808194', 'tblTempUsageDetail_20' ) start [2025-04-01 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808194', 'tblTempUsageDetail_20' ) end [2025-04-01 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808194', 'tblTempVendorCDR_20' ) start [2025-04-01 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808194', 'tblTempVendorCDR_20' ) end [2025-04-01 03:49:19] Production.INFO: ProcessCDR(1,14808194,1,1,2) [2025-04-01 03:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808194', 'tblTempUsageDetail_20' ) start [2025-04-01 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808194', 'tblTempUsageDetail_20' ) end [2025-04-01 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:49:22] Production.INFO: ==31286== Releasing lock... [2025-04-01 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:49:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:50:07 [end_date_ymd] => 2025-04-01 03:50:07 [RateCDR] => 1 ) [2025-04-01 03: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-01 00:50:07' and `end` < '2025-04-01 03: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-01 03:50:20] Production.INFO: count ==1159 [2025-04-01 03:50:21] Production.ERROR: pbx CDR StartTime 2025-04-01 00:50:07 - End Time 2025-04-01 03:50:07 [2025-04-01 03:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808200', 'tblTempUsageDetail_20' ) start [2025-04-01 03:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808200', 'tblTempUsageDetail_20' ) end [2025-04-01 03:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808200', 'tblTempVendorCDR_20' ) start [2025-04-01 03:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808200', 'tblTempVendorCDR_20' ) end [2025-04-01 03:50:21] Production.INFO: ProcessCDR(1,14808200,1,1,2) [2025-04-01 03:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808200', 'tblTempUsageDetail_20' ) start [2025-04-01 03:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808200', 'tblTempUsageDetail_20' ) end [2025-04-01 03:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:50:25] Production.INFO: ==31367== Releasing lock... [2025-04-01 03:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:50:25] Production.INFO: 37 MB #Memory Used# [2025-04-01 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:51:05 [end_date_ymd] => 2025-04-01 03:51:05 [RateCDR] => 1 ) [2025-04-01 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 00:51:05' and `end` < '2025-04-01 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 03:51:18] Production.INFO: count ==1155 [2025-04-01 03:51:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:51:05 - End Time 2025-04-01 03:51:05 [2025-04-01 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808205', 'tblTempUsageDetail_20' ) start [2025-04-01 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808205', 'tblTempUsageDetail_20' ) end [2025-04-01 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808205', 'tblTempVendorCDR_20' ) start [2025-04-01 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808205', 'tblTempVendorCDR_20' ) end [2025-04-01 03:51:19] Production.INFO: ProcessCDR(1,14808205,1,1,2) [2025-04-01 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808205', 'tblTempUsageDetail_20' ) start [2025-04-01 03:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808205', 'tblTempUsageDetail_20' ) end [2025-04-01 03:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:51:23] Production.INFO: ==31451== Releasing lock... [2025-04-01 03:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:51:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:52:06 [end_date_ymd] => 2025-04-01 03:52:06 [RateCDR] => 1 ) [2025-04-01 03: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-01 00:52:06' and `end` < '2025-04-01 03: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-01 03:52:19] Production.INFO: count ==1155 [2025-04-01 03:52:20] Production.ERROR: pbx CDR StartTime 2025-04-01 00:52:06 - End Time 2025-04-01 03:52:06 [2025-04-01 03:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808210', 'tblTempUsageDetail_20' ) start [2025-04-01 03:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808210', 'tblTempUsageDetail_20' ) end [2025-04-01 03:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808210', 'tblTempVendorCDR_20' ) start [2025-04-01 03:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808210', 'tblTempVendorCDR_20' ) end [2025-04-01 03:52:20] Production.INFO: ProcessCDR(1,14808210,1,1,2) [2025-04-01 03:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808210', 'tblTempUsageDetail_20' ) start [2025-04-01 03:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808210', 'tblTempUsageDetail_20' ) end [2025-04-01 03:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:52:24] Production.INFO: ==31541== Releasing lock... [2025-04-01 03:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:52:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:53:05 [end_date_ymd] => 2025-04-01 03:53:05 [RateCDR] => 1 ) [2025-04-01 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-01 00:53:05' and `end` < '2025-04-01 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-01 03:53:17] Production.INFO: count ==1155 [2025-04-01 03:53:18] Production.ERROR: pbx CDR StartTime 2025-04-01 00:53:05 - End Time 2025-04-01 03:53:05 [2025-04-01 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808215', 'tblTempUsageDetail_20' ) start [2025-04-01 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808215', 'tblTempUsageDetail_20' ) end [2025-04-01 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808215', 'tblTempVendorCDR_20' ) start [2025-04-01 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808215', 'tblTempVendorCDR_20' ) end [2025-04-01 03:53:18] Production.INFO: ProcessCDR(1,14808215,1,1,2) [2025-04-01 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808215', 'tblTempUsageDetail_20' ) start [2025-04-01 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808215', 'tblTempUsageDetail_20' ) end [2025-04-01 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:53:22] Production.INFO: ==31626== Releasing lock... [2025-04-01 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:53:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:54:06 [end_date_ymd] => 2025-04-01 03:54:06 [RateCDR] => 1 ) [2025-04-01 03: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-01 00:54:06' and `end` < '2025-04-01 03: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-01 03:54:19] Production.INFO: count ==1155 [2025-04-01 03:54:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:54:06 - End Time 2025-04-01 03:54:06 [2025-04-01 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808220', 'tblTempUsageDetail_20' ) start [2025-04-01 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808220', 'tblTempUsageDetail_20' ) end [2025-04-01 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808220', 'tblTempVendorCDR_20' ) start [2025-04-01 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808220', 'tblTempVendorCDR_20' ) end [2025-04-01 03:54:19] Production.INFO: ProcessCDR(1,14808220,1,1,2) [2025-04-01 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808220', 'tblTempUsageDetail_20' ) start [2025-04-01 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808220', 'tblTempUsageDetail_20' ) end [2025-04-01 03:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:54:23] Production.INFO: ==31705== Releasing lock... [2025-04-01 03:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:54:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:55:06 [end_date_ymd] => 2025-04-01 03:55:06 [RateCDR] => 1 ) [2025-04-01 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-01 00:55:06' and `end` < '2025-04-01 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-01 03:55:19] Production.INFO: count ==1155 [2025-04-01 03:55:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:55:06 - End Time 2025-04-01 03:55:06 [2025-04-01 03:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808225', 'tblTempUsageDetail_20' ) start [2025-04-01 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808225', 'tblTempUsageDetail_20' ) end [2025-04-01 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808225', 'tblTempVendorCDR_20' ) start [2025-04-01 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808225', 'tblTempVendorCDR_20' ) end [2025-04-01 03:55:19] Production.INFO: ProcessCDR(1,14808225,1,1,2) [2025-04-01 03:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808225', 'tblTempUsageDetail_20' ) start [2025-04-01 03:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808225', 'tblTempUsageDetail_20' ) end [2025-04-01 03:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:55:23] Production.INFO: ==31794== Releasing lock... [2025-04-01 03:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:55:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:56:06 [end_date_ymd] => 2025-04-01 03:56:06 [RateCDR] => 1 ) [2025-04-01 03: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-01 00:56:06' and `end` < '2025-04-01 03: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-01 03:56:19] Production.INFO: count ==1154 [2025-04-01 03:56:20] Production.ERROR: pbx CDR StartTime 2025-04-01 00:56:06 - End Time 2025-04-01 03:56:06 [2025-04-01 03:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808230', 'tblTempUsageDetail_20' ) start [2025-04-01 03:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808230', 'tblTempUsageDetail_20' ) end [2025-04-01 03:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808230', 'tblTempVendorCDR_20' ) start [2025-04-01 03:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808230', 'tblTempVendorCDR_20' ) end [2025-04-01 03:56:20] Production.INFO: ProcessCDR(1,14808230,1,1,2) [2025-04-01 03:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808230', 'tblTempUsageDetail_20' ) start [2025-04-01 03:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808230', 'tblTempUsageDetail_20' ) end [2025-04-01 03:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:56:24] Production.INFO: ==31916== Releasing lock... [2025-04-01 03:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:56:24] Production.INFO: 37 MB #Memory Used# [2025-04-01 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:57:05 [end_date_ymd] => 2025-04-01 03:57:05 [RateCDR] => 1 ) [2025-04-01 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-01 00:57:05' and `end` < '2025-04-01 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-01 03:57:18] Production.INFO: count ==1154 [2025-04-01 03:57:19] Production.ERROR: pbx CDR StartTime 2025-04-01 00:57:05 - End Time 2025-04-01 03:57:05 [2025-04-01 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808235', 'tblTempUsageDetail_20' ) start [2025-04-01 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808235', 'tblTempUsageDetail_20' ) end [2025-04-01 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808235', 'tblTempVendorCDR_20' ) start [2025-04-01 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808235', 'tblTempVendorCDR_20' ) end [2025-04-01 03:57:19] Production.INFO: ProcessCDR(1,14808235,1,1,2) [2025-04-01 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808235', 'tblTempUsageDetail_20' ) start [2025-04-01 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808235', 'tblTempUsageDetail_20' ) end [2025-04-01 03:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:57:23] Production.INFO: ==31996== Releasing lock... [2025-04-01 03:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:57:23] Production.INFO: 37 MB #Memory Used# [2025-04-01 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:58:06 [end_date_ymd] => 2025-04-01 03:58:06 [RateCDR] => 1 ) [2025-04-01 03: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-01 00:58:06' and `end` < '2025-04-01 03: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-01 03:58:19] Production.INFO: count ==1152 [2025-04-01 03:58:20] Production.ERROR: pbx CDR StartTime 2025-04-01 00:58:06 - End Time 2025-04-01 03:58:06 [2025-04-01 03:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808240', 'tblTempUsageDetail_20' ) start [2025-04-01 03:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808240', 'tblTempUsageDetail_20' ) end [2025-04-01 03:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808240', 'tblTempVendorCDR_20' ) start [2025-04-01 03:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808240', 'tblTempVendorCDR_20' ) end [2025-04-01 03:58:20] Production.INFO: ProcessCDR(1,14808240,1,1,2) [2025-04-01 03:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808240', 'tblTempUsageDetail_20' ) start [2025-04-01 03:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808240', 'tblTempUsageDetail_20' ) end [2025-04-01 03:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:58:24] Production.INFO: ==32079== Releasing lock... [2025-04-01 03:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:58:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-01 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 00:59:05 [end_date_ymd] => 2025-04-01 03:59:05 [RateCDR] => 1 ) [2025-04-01 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-01 00:59:05' and `end` < '2025-04-01 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-01 03:59:18] Production.INFO: count ==1151 [2025-04-01 03:59:18] Production.ERROR: pbx CDR StartTime 2025-04-01 00:59:05 - End Time 2025-04-01 03:59:05 [2025-04-01 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808245', 'tblTempUsageDetail_20' ) start [2025-04-01 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808245', 'tblTempUsageDetail_20' ) end [2025-04-01 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808245', 'tblTempVendorCDR_20' ) start [2025-04-01 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808245', 'tblTempVendorCDR_20' ) end [2025-04-01 03:59:19] Production.INFO: ProcessCDR(1,14808245,1,1,2) [2025-04-01 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 03:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808245', 'tblTempUsageDetail_20' ) start [2025-04-01 03:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808245', 'tblTempUsageDetail_20' ) end [2025-04-01 03:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 03:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 03:59:23] Production.INFO: ==32160== Releasing lock... [2025-04-01 03:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 03:59:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-01 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:00:07 [end_date_ymd] => 2025-04-01 04:00:07 [RateCDR] => 1 ) [2025-04-01 04:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 01:00:07' and `end` < '2025-04-01 04:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 04:00:20] Production.INFO: count ==1142 [2025-04-01 04:00:20] Production.ERROR: pbx CDR StartTime 2025-04-01 01:00:07 - End Time 2025-04-01 04:00:07 [2025-04-01 04:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808251', 'tblTempUsageDetail_20' ) start [2025-04-01 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808251', 'tblTempUsageDetail_20' ) end [2025-04-01 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808251', 'tblTempVendorCDR_20' ) start [2025-04-01 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808251', 'tblTempVendorCDR_20' ) end [2025-04-01 04:00:20] Production.INFO: ProcessCDR(1,14808251,1,1,2) [2025-04-01 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808251', 'tblTempUsageDetail_20' ) start [2025-04-01 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808251', 'tblTempUsageDetail_20' ) end [2025-04-01 04:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:00:24] Production.INFO: ==32268== Releasing lock... [2025-04-01 04:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:00:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-01 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:01:06 [end_date_ymd] => 2025-04-01 04:01:06 [RateCDR] => 1 ) [2025-04-01 04: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-01 01:01:06' and `end` < '2025-04-01 04: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-01 04:01:18] Production.INFO: count ==1139 [2025-04-01 04:01:20] Production.ERROR: pbx CDR StartTime 2025-04-01 01:01:06 - End Time 2025-04-01 04:01:06 [2025-04-01 04:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808255', 'tblTempUsageDetail_20' ) start [2025-04-01 04:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808255', 'tblTempUsageDetail_20' ) end [2025-04-01 04:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808255', 'tblTempVendorCDR_20' ) start [2025-04-01 04:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808255', 'tblTempVendorCDR_20' ) end [2025-04-01 04:01:20] Production.INFO: ProcessCDR(1,14808255,1,1,2) [2025-04-01 04:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808255', 'tblTempUsageDetail_20' ) start [2025-04-01 04:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808255', 'tblTempUsageDetail_20' ) end [2025-04-01 04:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:01:26] Production.INFO: ==32401== Releasing lock... [2025-04-01 04:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:01:26] Production.INFO: 37 MB #Memory Used# [2025-04-01 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:02:06 [end_date_ymd] => 2025-04-01 04:02:06 [RateCDR] => 1 ) [2025-04-01 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-01 01:02:06' and `end` < '2025-04-01 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-01 04:02:19] Production.INFO: count ==1137 [2025-04-01 04:02:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:02:06 - End Time 2025-04-01 04:02:06 [2025-04-01 04:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808262', 'tblTempUsageDetail_20' ) start [2025-04-01 04:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808262', 'tblTempUsageDetail_20' ) end [2025-04-01 04:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808262', 'tblTempVendorCDR_20' ) start [2025-04-01 04:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808262', 'tblTempVendorCDR_20' ) end [2025-04-01 04:02:20] Production.INFO: ProcessCDR(1,14808262,1,1,2) [2025-04-01 04:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808262', 'tblTempUsageDetail_20' ) start [2025-04-01 04:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808262', 'tblTempUsageDetail_20' ) end [2025-04-01 04:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:02:24] Production.INFO: ==32499== Releasing lock... [2025-04-01 04:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:02:24] Production.INFO: 37 MB #Memory Used# [2025-04-01 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:03:05 [end_date_ymd] => 2025-04-01 04:03:05 [RateCDR] => 1 ) [2025-04-01 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 01:03:05' and `end` < '2025-04-01 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 04:03:18] Production.INFO: count ==1132 [2025-04-01 04:03:18] Production.ERROR: pbx CDR StartTime 2025-04-01 01:03:05 - End Time 2025-04-01 04:03:05 [2025-04-01 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808267', 'tblTempUsageDetail_20' ) start [2025-04-01 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808267', 'tblTempUsageDetail_20' ) end [2025-04-01 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808267', 'tblTempVendorCDR_20' ) start [2025-04-01 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808267', 'tblTempVendorCDR_20' ) end [2025-04-01 04:03:19] Production.INFO: ProcessCDR(1,14808267,1,1,2) [2025-04-01 04:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808267', 'tblTempUsageDetail_20' ) start [2025-04-01 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808267', 'tblTempUsageDetail_20' ) end [2025-04-01 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:03:22] Production.INFO: ==32578== Releasing lock... [2025-04-01 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:03:22] Production.INFO: 37 MB #Memory Used# [2025-04-01 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:04:06 [end_date_ymd] => 2025-04-01 04:04:06 [RateCDR] => 1 ) [2025-04-01 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-01 01:04:06' and `end` < '2025-04-01 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-01 04:04:19] Production.INFO: count ==1132 [2025-04-01 04:04:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:04:06 - End Time 2025-04-01 04:04:06 [2025-04-01 04:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808272', 'tblTempUsageDetail_20' ) start [2025-04-01 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808272', 'tblTempUsageDetail_20' ) end [2025-04-01 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808272', 'tblTempVendorCDR_20' ) start [2025-04-01 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808272', 'tblTempVendorCDR_20' ) end [2025-04-01 04:04:19] Production.INFO: ProcessCDR(1,14808272,1,1,2) [2025-04-01 04:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808272', 'tblTempUsageDetail_20' ) start [2025-04-01 04:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808272', 'tblTempUsageDetail_20' ) end [2025-04-01 04:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:04:23] Production.INFO: ==32659== Releasing lock... [2025-04-01 04:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:04:23] Production.INFO: 37 MB #Memory Used# [2025-04-01 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:05:05 [end_date_ymd] => 2025-04-01 04:05:05 [RateCDR] => 1 ) [2025-04-01 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 01:05:05' and `end` < '2025-04-01 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 04:05:18] Production.INFO: count ==1128 [2025-04-01 04:05:18] Production.ERROR: pbx CDR StartTime 2025-04-01 01:05:05 - End Time 2025-04-01 04:05:05 [2025-04-01 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808277', 'tblTempUsageDetail_20' ) start [2025-04-01 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808277', 'tblTempUsageDetail_20' ) end [2025-04-01 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808277', 'tblTempVendorCDR_20' ) start [2025-04-01 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808277', 'tblTempVendorCDR_20' ) end [2025-04-01 04:05:18] Production.INFO: ProcessCDR(1,14808277,1,1,2) [2025-04-01 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808277', 'tblTempUsageDetail_20' ) start [2025-04-01 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808277', 'tblTempUsageDetail_20' ) end [2025-04-01 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:05:22] Production.INFO: ==32742== Releasing lock... [2025-04-01 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:05:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 04:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:06:06 [end_date_ymd] => 2025-04-01 04:06:06 [RateCDR] => 1 ) [2025-04-01 04:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 01:06:06' and `end` < '2025-04-01 04:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 04:06:18] Production.INFO: count ==1128 [2025-04-01 04:06:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:06:06 - End Time 2025-04-01 04:06:06 [2025-04-01 04:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808282', 'tblTempUsageDetail_20' ) start [2025-04-01 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808282', 'tblTempUsageDetail_20' ) end [2025-04-01 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808282', 'tblTempVendorCDR_20' ) start [2025-04-01 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808282', 'tblTempVendorCDR_20' ) end [2025-04-01 04:06:19] Production.INFO: ProcessCDR(1,14808282,1,1,2) [2025-04-01 04:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808282', 'tblTempUsageDetail_20' ) start [2025-04-01 04:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808282', 'tblTempUsageDetail_20' ) end [2025-04-01 04:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:06:23] Production.INFO: ==378== Releasing lock... [2025-04-01 04:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:06:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:07:05 [end_date_ymd] => 2025-04-01 04:07:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:07:05' and `end` < '2025-04-01 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-01 04:07:18] Production.INFO: count ==1128 [2025-04-01 04:07:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:07:05 - End Time 2025-04-01 04:07:05 [2025-04-01 04:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808287', 'tblTempUsageDetail_20' ) start [2025-04-01 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808287', 'tblTempUsageDetail_20' ) end [2025-04-01 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808287', 'tblTempVendorCDR_20' ) start [2025-04-01 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808287', 'tblTempVendorCDR_20' ) end [2025-04-01 04:07:19] Production.INFO: ProcessCDR(1,14808287,1,1,2) [2025-04-01 04:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808287', 'tblTempUsageDetail_20' ) start [2025-04-01 04:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808287', 'tblTempUsageDetail_20' ) end [2025-04-01 04:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:07:23] Production.INFO: ==462== Releasing lock... [2025-04-01 04:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:07:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:08:06 [end_date_ymd] => 2025-04-01 04:08:06 [RateCDR] => 1 ) [2025-04-01 04: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-01 01:08:06' and `end` < '2025-04-01 04: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-01 04:08:19] Production.INFO: count ==1128 [2025-04-01 04:08:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:08:06 - End Time 2025-04-01 04:08:06 [2025-04-01 04:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808292', 'tblTempUsageDetail_20' ) start [2025-04-01 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808292', 'tblTempUsageDetail_20' ) end [2025-04-01 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808292', 'tblTempVendorCDR_20' ) start [2025-04-01 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808292', 'tblTempVendorCDR_20' ) end [2025-04-01 04:08:19] Production.INFO: ProcessCDR(1,14808292,1,1,2) [2025-04-01 04:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808292', 'tblTempUsageDetail_20' ) start [2025-04-01 04:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808292', 'tblTempUsageDetail_20' ) end [2025-04-01 04:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:08:23] Production.INFO: ==557== Releasing lock... [2025-04-01 04:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:08:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:09:05 [end_date_ymd] => 2025-04-01 04:09:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:09:05' and `end` < '2025-04-01 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-01 04:09:18] Production.INFO: count ==1156 [2025-04-01 04:09:18] Production.ERROR: pbx CDR StartTime 2025-04-01 01:09:05 - End Time 2025-04-01 04:09:05 [2025-04-01 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808297', 'tblTempUsageDetail_20' ) start [2025-04-01 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808297', 'tblTempUsageDetail_20' ) end [2025-04-01 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808297', 'tblTempVendorCDR_20' ) start [2025-04-01 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808297', 'tblTempVendorCDR_20' ) end [2025-04-01 04:09:18] Production.INFO: ProcessCDR(1,14808297,1,1,2) [2025-04-01 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808297', 'tblTempUsageDetail_20' ) start [2025-04-01 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808297', 'tblTempUsageDetail_20' ) end [2025-04-01 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:09:22] Production.INFO: ==644== Releasing lock... [2025-04-01 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:09:22] Production.INFO: 37 MB #Memory Used# [2025-04-01 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:10:06 [end_date_ymd] => 2025-04-01 04:10:06 [RateCDR] => 1 ) [2025-04-01 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 01:10:06' and `end` < '2025-04-01 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 04:10:19] Production.INFO: count ==1198 [2025-04-01 04:10:20] Production.ERROR: pbx CDR StartTime 2025-04-01 01:10:06 - End Time 2025-04-01 04:10:06 [2025-04-01 04:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808303', 'tblTempUsageDetail_20' ) start [2025-04-01 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808303', 'tblTempUsageDetail_20' ) end [2025-04-01 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808303', 'tblTempVendorCDR_20' ) start [2025-04-01 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808303', 'tblTempVendorCDR_20' ) end [2025-04-01 04:10:20] Production.INFO: ProcessCDR(1,14808303,1,1,2) [2025-04-01 04:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808303', 'tblTempUsageDetail_20' ) start [2025-04-01 04:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808303', 'tblTempUsageDetail_20' ) end [2025-04-01 04:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:10:24] Production.INFO: ==760== Releasing lock... [2025-04-01 04:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:10:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:11:05 [end_date_ymd] => 2025-04-01 04:11:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:11:05' and `end` < '2025-04-01 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-01 04:11:18] Production.INFO: count ==1185 [2025-04-01 04:11:18] Production.ERROR: pbx CDR StartTime 2025-04-01 01:11:05 - End Time 2025-04-01 04:11:05 [2025-04-01 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808308', 'tblTempUsageDetail_20' ) start [2025-04-01 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808308', 'tblTempUsageDetail_20' ) end [2025-04-01 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808308', 'tblTempVendorCDR_20' ) start [2025-04-01 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808308', 'tblTempVendorCDR_20' ) end [2025-04-01 04:11:18] Production.INFO: ProcessCDR(1,14808308,1,1,2) [2025-04-01 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808308', 'tblTempUsageDetail_20' ) start [2025-04-01 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808308', 'tblTempUsageDetail_20' ) end [2025-04-01 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:11:22] Production.INFO: ==851== Releasing lock... [2025-04-01 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:11:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:12:06 [end_date_ymd] => 2025-04-01 04:12:06 [RateCDR] => 1 ) [2025-04-01 04:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 01:12:06' and `end` < '2025-04-01 04: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-01 04:12:18] Production.INFO: count ==1125 [2025-04-01 04:12:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:12:06 - End Time 2025-04-01 04:12:06 [2025-04-01 04:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808313', 'tblTempUsageDetail_20' ) start [2025-04-01 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808313', 'tblTempUsageDetail_20' ) end [2025-04-01 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808313', 'tblTempVendorCDR_20' ) start [2025-04-01 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808313', 'tblTempVendorCDR_20' ) end [2025-04-01 04:12:19] Production.INFO: ProcessCDR(1,14808313,1,1,2) [2025-04-01 04:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808313', 'tblTempUsageDetail_20' ) start [2025-04-01 04:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808313', 'tblTempUsageDetail_20' ) end [2025-04-01 04:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:12:23] Production.INFO: ==979== Releasing lock... [2025-04-01 04:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:12:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-01 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:13:05 [end_date_ymd] => 2025-04-01 04:13:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:13:05' and `end` < '2025-04-01 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-01 04:13:18] Production.INFO: count ==1124 [2025-04-01 04:13:18] Production.ERROR: pbx CDR StartTime 2025-04-01 01:13:05 - End Time 2025-04-01 04:13:05 [2025-04-01 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808318', 'tblTempUsageDetail_20' ) start [2025-04-01 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808318', 'tblTempUsageDetail_20' ) end [2025-04-01 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808318', 'tblTempVendorCDR_20' ) start [2025-04-01 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808318', 'tblTempVendorCDR_20' ) end [2025-04-01 04:13:18] Production.INFO: ProcessCDR(1,14808318,1,1,2) [2025-04-01 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808318', 'tblTempUsageDetail_20' ) start [2025-04-01 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808318', 'tblTempUsageDetail_20' ) end [2025-04-01 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:13:22] Production.INFO: ==1066== Releasing lock... [2025-04-01 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:13:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-01 04:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:14:06 [end_date_ymd] => 2025-04-01 04:14:06 [RateCDR] => 1 ) [2025-04-01 04: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-01 01:14:06' and `end` < '2025-04-01 04: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-01 04:14:18] Production.INFO: count ==1122 [2025-04-01 04:14:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:14:06 - End Time 2025-04-01 04:14:06 [2025-04-01 04:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808323', 'tblTempUsageDetail_20' ) start [2025-04-01 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808323', 'tblTempUsageDetail_20' ) end [2025-04-01 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808323', 'tblTempVendorCDR_20' ) start [2025-04-01 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808323', 'tblTempVendorCDR_20' ) end [2025-04-01 04:14:19] Production.INFO: ProcessCDR(1,14808323,1,1,2) [2025-04-01 04:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808323', 'tblTempUsageDetail_20' ) start [2025-04-01 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808323', 'tblTempUsageDetail_20' ) end [2025-04-01 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:14:22] Production.INFO: ==1152== Releasing lock... [2025-04-01 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:14:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:15:05 [end_date_ymd] => 2025-04-01 04:15:05 [RateCDR] => 1 ) [2025-04-01 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 01:15:05' and `end` < '2025-04-01 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 04:15:18] Production.INFO: count ==1122 [2025-04-01 04:15:18] Production.ERROR: pbx CDR StartTime 2025-04-01 01:15:05 - End Time 2025-04-01 04:15:05 [2025-04-01 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808328', 'tblTempUsageDetail_20' ) start [2025-04-01 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808328', 'tblTempUsageDetail_20' ) end [2025-04-01 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808328', 'tblTempVendorCDR_20' ) start [2025-04-01 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808328', 'tblTempVendorCDR_20' ) end [2025-04-01 04:15:18] Production.INFO: ProcessCDR(1,14808328,1,1,2) [2025-04-01 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808328', 'tblTempUsageDetail_20' ) start [2025-04-01 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808328', 'tblTempUsageDetail_20' ) end [2025-04-01 04:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:15:22] Production.INFO: ==1241== Releasing lock... [2025-04-01 04:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:15:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:16:06 [end_date_ymd] => 2025-04-01 04:16:06 [RateCDR] => 1 ) [2025-04-01 04: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-01 01:16:06' and `end` < '2025-04-01 04: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-01 04:16:18] Production.INFO: count ==1122 [2025-04-01 04:16:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:16:06 - End Time 2025-04-01 04:16:06 [2025-04-01 04:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808333', 'tblTempUsageDetail_20' ) start [2025-04-01 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808333', 'tblTempUsageDetail_20' ) end [2025-04-01 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808333', 'tblTempVendorCDR_20' ) start [2025-04-01 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808333', 'tblTempVendorCDR_20' ) end [2025-04-01 04:16:19] Production.INFO: ProcessCDR(1,14808333,1,1,2) [2025-04-01 04:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808333', 'tblTempUsageDetail_20' ) start [2025-04-01 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808333', 'tblTempUsageDetail_20' ) end [2025-04-01 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:16:22] Production.INFO: ==1335== Releasing lock... [2025-04-01 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:16:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:17:05 [end_date_ymd] => 2025-04-01 04:17:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:17:05' and `end` < '2025-04-01 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-01 04:17:17] Production.INFO: count ==1121 [2025-04-01 04:17:18] Production.ERROR: pbx CDR StartTime 2025-04-01 01:17:05 - End Time 2025-04-01 04:17:05 [2025-04-01 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808338', 'tblTempUsageDetail_20' ) start [2025-04-01 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808338', 'tblTempUsageDetail_20' ) end [2025-04-01 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808338', 'tblTempVendorCDR_20' ) start [2025-04-01 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808338', 'tblTempVendorCDR_20' ) end [2025-04-01 04:17:18] Production.INFO: ProcessCDR(1,14808338,1,1,2) [2025-04-01 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808338', 'tblTempUsageDetail_20' ) start [2025-04-01 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808338', 'tblTempUsageDetail_20' ) end [2025-04-01 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:17:22] Production.INFO: ==1416== Releasing lock... [2025-04-01 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:17:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:18:05 [end_date_ymd] => 2025-04-01 04:18:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:18:05' and `end` < '2025-04-01 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-01 04:18:18] Production.INFO: count ==1116 [2025-04-01 04:18:18] Production.ERROR: pbx CDR StartTime 2025-04-01 01:18:05 - End Time 2025-04-01 04:18:05 [2025-04-01 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808343', 'tblTempUsageDetail_20' ) start [2025-04-01 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808343', 'tblTempUsageDetail_20' ) end [2025-04-01 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808343', 'tblTempVendorCDR_20' ) start [2025-04-01 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808343', 'tblTempVendorCDR_20' ) end [2025-04-01 04:18:19] Production.INFO: ProcessCDR(1,14808343,1,1,2) [2025-04-01 04:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808343', 'tblTempUsageDetail_20' ) start [2025-04-01 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808343', 'tblTempUsageDetail_20' ) end [2025-04-01 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:18:22] Production.INFO: ==1497== Releasing lock... [2025-04-01 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:18:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-01 04:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:19:06 [end_date_ymd] => 2025-04-01 04:19:06 [RateCDR] => 1 ) [2025-04-01 04:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 01:19:06' and `end` < '2025-04-01 04:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 04:19:19] Production.INFO: count ==1111 [2025-04-01 04:19:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:19:06 - End Time 2025-04-01 04:19:06 [2025-04-01 04:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808348', 'tblTempUsageDetail_20' ) start [2025-04-01 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808348', 'tblTempUsageDetail_20' ) end [2025-04-01 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808348', 'tblTempVendorCDR_20' ) start [2025-04-01 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808348', 'tblTempVendorCDR_20' ) end [2025-04-01 04:19:19] Production.INFO: ProcessCDR(1,14808348,1,1,2) [2025-04-01 04:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808348', 'tblTempUsageDetail_20' ) start [2025-04-01 04:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808348', 'tblTempUsageDetail_20' ) end [2025-04-01 04:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:19:23] Production.INFO: ==1617== Releasing lock... [2025-04-01 04:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:19:23] Production.INFO: 37 MB #Memory Used# [2025-04-01 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:20:06 [end_date_ymd] => 2025-04-01 04:20:06 [RateCDR] => 1 ) [2025-04-01 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-01 01:20:06' and `end` < '2025-04-01 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-01 04:20:19] Production.INFO: count ==1101 [2025-04-01 04:20:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:20:06 - End Time 2025-04-01 04:20:06 [2025-04-01 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808353', 'tblTempUsageDetail_20' ) start [2025-04-01 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808353', 'tblTempUsageDetail_20' ) end [2025-04-01 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808353', 'tblTempVendorCDR_20' ) start [2025-04-01 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808353', 'tblTempVendorCDR_20' ) end [2025-04-01 04:20:19] Production.INFO: ProcessCDR(1,14808353,1,1,2) [2025-04-01 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808353', 'tblTempUsageDetail_20' ) start [2025-04-01 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808353', 'tblTempUsageDetail_20' ) end [2025-04-01 04:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:20:23] Production.INFO: ==1706== Releasing lock... [2025-04-01 04:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:20:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-01 04:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:21:06 [end_date_ymd] => 2025-04-01 04:21:06 [RateCDR] => 1 ) [2025-04-01 04:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 01:21:06' and `end` < '2025-04-01 04:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 04:21:19] Production.INFO: count ==1095 [2025-04-01 04:21:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:21:06 - End Time 2025-04-01 04:21:06 [2025-04-01 04:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808359', 'tblTempUsageDetail_20' ) start [2025-04-01 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808359', 'tblTempUsageDetail_20' ) end [2025-04-01 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808359', 'tblTempVendorCDR_20' ) start [2025-04-01 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808359', 'tblTempVendorCDR_20' ) end [2025-04-01 04:21:19] Production.INFO: ProcessCDR(1,14808359,1,1,2) [2025-04-01 04:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808359', 'tblTempUsageDetail_20' ) start [2025-04-01 04:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808359', 'tblTempUsageDetail_20' ) end [2025-04-01 04:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:21:23] Production.INFO: ==1793== Releasing lock... [2025-04-01 04:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:21:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:22:05 [end_date_ymd] => 2025-04-01 04:22:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:22:05' and `end` < '2025-04-01 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-01 04:22:18] Production.INFO: count ==1086 [2025-04-01 04:22:18] Production.ERROR: pbx CDR StartTime 2025-04-01 01:22:05 - End Time 2025-04-01 04:22:05 [2025-04-01 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808364', 'tblTempUsageDetail_20' ) start [2025-04-01 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808364', 'tblTempUsageDetail_20' ) end [2025-04-01 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808364', 'tblTempVendorCDR_20' ) start [2025-04-01 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808364', 'tblTempVendorCDR_20' ) end [2025-04-01 04:22:18] Production.INFO: ProcessCDR(1,14808364,1,1,2) [2025-04-01 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808364', 'tblTempUsageDetail_20' ) start [2025-04-01 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808364', 'tblTempUsageDetail_20' ) end [2025-04-01 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:22:22] Production.INFO: ==1883== Releasing lock... [2025-04-01 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:22:22] Production.INFO: 37 MB #Memory Used# [2025-04-01 04:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:23:06 [end_date_ymd] => 2025-04-01 04:23:06 [RateCDR] => 1 ) [2025-04-01 04:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 01:23:06' and `end` < '2025-04-01 04:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 04:23:19] Production.INFO: count ==1085 [2025-04-01 04:23:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:23:06 - End Time 2025-04-01 04:23:06 [2025-04-01 04:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808369', 'tblTempUsageDetail_20' ) start [2025-04-01 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808369', 'tblTempUsageDetail_20' ) end [2025-04-01 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808369', 'tblTempVendorCDR_20' ) start [2025-04-01 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808369', 'tblTempVendorCDR_20' ) end [2025-04-01 04:23:19] Production.INFO: ProcessCDR(1,14808369,1,1,2) [2025-04-01 04:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808369', 'tblTempUsageDetail_20' ) start [2025-04-01 04:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808369', 'tblTempUsageDetail_20' ) end [2025-04-01 04:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:23:24] Production.INFO: ==1966== Releasing lock... [2025-04-01 04:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:23:24] Production.INFO: 37 MB #Memory Used# [2025-04-01 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:24:05 [end_date_ymd] => 2025-04-01 04:24:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:24:05' and `end` < '2025-04-01 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-01 04:24:18] Production.INFO: count ==1085 [2025-04-01 04:24:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:24:05 - End Time 2025-04-01 04:24:05 [2025-04-01 04:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808374', 'tblTempUsageDetail_20' ) start [2025-04-01 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808374', 'tblTempUsageDetail_20' ) end [2025-04-01 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808374', 'tblTempVendorCDR_20' ) start [2025-04-01 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808374', 'tblTempVendorCDR_20' ) end [2025-04-01 04:24:19] Production.INFO: ProcessCDR(1,14808374,1,1,2) [2025-04-01 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808374', 'tblTempUsageDetail_20' ) start [2025-04-01 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808374', 'tblTempUsageDetail_20' ) end [2025-04-01 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:24:22] Production.INFO: ==2060== Releasing lock... [2025-04-01 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:24:22] Production.INFO: 37 MB #Memory Used# [2025-04-01 04:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:25:06 [end_date_ymd] => 2025-04-01 04:25:06 [RateCDR] => 1 ) [2025-04-01 04: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-01 01:25:06' and `end` < '2025-04-01 04: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-01 04:25:18] Production.INFO: count ==1085 [2025-04-01 04:25:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:25:06 - End Time 2025-04-01 04:25:06 [2025-04-01 04:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808379', 'tblTempUsageDetail_20' ) start [2025-04-01 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808379', 'tblTempUsageDetail_20' ) end [2025-04-01 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808379', 'tblTempVendorCDR_20' ) start [2025-04-01 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808379', 'tblTempVendorCDR_20' ) end [2025-04-01 04:25:19] Production.INFO: ProcessCDR(1,14808379,1,1,2) [2025-04-01 04:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808379', 'tblTempUsageDetail_20' ) start [2025-04-01 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808379', 'tblTempUsageDetail_20' ) end [2025-04-01 04:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:25:22] Production.INFO: ==2143== Releasing lock... [2025-04-01 04:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:25:22] Production.INFO: 37 MB #Memory Used# [2025-04-01 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:26:05 [end_date_ymd] => 2025-04-01 04:26:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:26:05' and `end` < '2025-04-01 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-01 04:26:18] Production.INFO: count ==1085 [2025-04-01 04:26:18] Production.ERROR: pbx CDR StartTime 2025-04-01 01:26:05 - End Time 2025-04-01 04:26:05 [2025-04-01 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808384', 'tblTempUsageDetail_20' ) start [2025-04-01 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808384', 'tblTempUsageDetail_20' ) end [2025-04-01 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808384', 'tblTempVendorCDR_20' ) start [2025-04-01 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808384', 'tblTempVendorCDR_20' ) end [2025-04-01 04:26:18] Production.INFO: ProcessCDR(1,14808384,1,1,2) [2025-04-01 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808384', 'tblTempUsageDetail_20' ) start [2025-04-01 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808384', 'tblTempUsageDetail_20' ) end [2025-04-01 04:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:26:22] Production.INFO: ==2228== Releasing lock... [2025-04-01 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:26:22] Production.INFO: 37 MB #Memory Used# [2025-04-01 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:27:05 [end_date_ymd] => 2025-04-01 04:27:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:27:05' and `end` < '2025-04-01 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-01 04:27:18] Production.INFO: count ==1084 [2025-04-01 04:27:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:27:05 - End Time 2025-04-01 04:27:05 [2025-04-01 04:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808389', 'tblTempUsageDetail_20' ) start [2025-04-01 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808389', 'tblTempUsageDetail_20' ) end [2025-04-01 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808389', 'tblTempVendorCDR_20' ) start [2025-04-01 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808389', 'tblTempVendorCDR_20' ) end [2025-04-01 04:27:19] Production.INFO: ProcessCDR(1,14808389,1,1,2) [2025-04-01 04:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808389', 'tblTempUsageDetail_20' ) start [2025-04-01 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808389', 'tblTempUsageDetail_20' ) end [2025-04-01 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:27:22] Production.INFO: ==2350== Releasing lock... [2025-04-01 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:27:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:28:05 [end_date_ymd] => 2025-04-01 04:28:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:28:05' and `end` < '2025-04-01 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-01 04:28:18] Production.INFO: count ==1083 [2025-04-01 04:28:18] Production.ERROR: pbx CDR StartTime 2025-04-01 01:28:05 - End Time 2025-04-01 04:28:05 [2025-04-01 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808394', 'tblTempUsageDetail_20' ) start [2025-04-01 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808394', 'tblTempUsageDetail_20' ) end [2025-04-01 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808394', 'tblTempVendorCDR_20' ) start [2025-04-01 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808394', 'tblTempVendorCDR_20' ) end [2025-04-01 04:28:18] Production.INFO: ProcessCDR(1,14808394,1,1,2) [2025-04-01 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808394', 'tblTempUsageDetail_20' ) start [2025-04-01 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808394', 'tblTempUsageDetail_20' ) end [2025-04-01 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:28:22] Production.INFO: ==2430== Releasing lock... [2025-04-01 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:28:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:29:05 [end_date_ymd] => 2025-04-01 04:29:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:29:05' and `end` < '2025-04-01 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-01 04:29:18] Production.INFO: count ==1083 [2025-04-01 04:29:18] Production.ERROR: pbx CDR StartTime 2025-04-01 01:29:05 - End Time 2025-04-01 04:29:05 [2025-04-01 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808399', 'tblTempUsageDetail_20' ) start [2025-04-01 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808399', 'tblTempUsageDetail_20' ) end [2025-04-01 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808399', 'tblTempVendorCDR_20' ) start [2025-04-01 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808399', 'tblTempVendorCDR_20' ) end [2025-04-01 04:29:18] Production.INFO: ProcessCDR(1,14808399,1,1,2) [2025-04-01 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808399', 'tblTempUsageDetail_20' ) start [2025-04-01 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808399', 'tblTempUsageDetail_20' ) end [2025-04-01 04:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:29:22] Production.INFO: ==2521== Releasing lock... [2025-04-01 04:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:29:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 04:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:30:07 [end_date_ymd] => 2025-04-01 04:30:07 [RateCDR] => 1 ) [2025-04-01 04: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-01 01:30:07' and `end` < '2025-04-01 04: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-01 04:30:19] Production.INFO: count ==1085 [2025-04-01 04:30:21] Production.ERROR: pbx CDR StartTime 2025-04-01 01:30:07 - End Time 2025-04-01 04:30:07 [2025-04-01 04:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808406', 'tblTempUsageDetail_20' ) start [2025-04-01 04:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808406', 'tblTempUsageDetail_20' ) end [2025-04-01 04:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808406', 'tblTempVendorCDR_20' ) start [2025-04-01 04:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808406', 'tblTempVendorCDR_20' ) end [2025-04-01 04:30:21] Production.INFO: ProcessCDR(1,14808406,1,1,2) [2025-04-01 04:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808406', 'tblTempUsageDetail_20' ) start [2025-04-01 04:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808406', 'tblTempUsageDetail_20' ) end [2025-04-01 04:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:30:26] Production.INFO: ==2604== Releasing lock... [2025-04-01 04:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:30:26] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:31:06 [end_date_ymd] => 2025-04-01 04:31:06 [RateCDR] => 1 ) [2025-04-01 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-01 01:31:06' and `end` < '2025-04-01 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-01 04:31:18] Production.INFO: count ==1085 [2025-04-01 04:31:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:31:06 - End Time 2025-04-01 04:31:06 [2025-04-01 04:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808411', 'tblTempUsageDetail_20' ) start [2025-04-01 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808411', 'tblTempUsageDetail_20' ) end [2025-04-01 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808411', 'tblTempVendorCDR_20' ) start [2025-04-01 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808411', 'tblTempVendorCDR_20' ) end [2025-04-01 04:31:19] Production.INFO: ProcessCDR(1,14808411,1,1,2) [2025-04-01 04:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808411', 'tblTempUsageDetail_20' ) start [2025-04-01 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808411', 'tblTempUsageDetail_20' ) end [2025-04-01 04:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:31:23] Production.INFO: ==2918== Releasing lock... [2025-04-01 04:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:31:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:32:05 [end_date_ymd] => 2025-04-01 04:32:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:32:05' and `end` < '2025-04-01 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-01 04:32:18] Production.INFO: count ==1085 [2025-04-01 04:32:18] Production.ERROR: pbx CDR StartTime 2025-04-01 01:32:05 - End Time 2025-04-01 04:32:05 [2025-04-01 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808416', 'tblTempUsageDetail_20' ) start [2025-04-01 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808416', 'tblTempUsageDetail_20' ) end [2025-04-01 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808416', 'tblTempVendorCDR_20' ) start [2025-04-01 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808416', 'tblTempVendorCDR_20' ) end [2025-04-01 04:32:18] Production.INFO: ProcessCDR(1,14808416,1,1,2) [2025-04-01 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808416', 'tblTempUsageDetail_20' ) start [2025-04-01 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808416', 'tblTempUsageDetail_20' ) end [2025-04-01 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:32:22] Production.INFO: ==3100== Releasing lock... [2025-04-01 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:32:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:33:05 [end_date_ymd] => 2025-04-01 04:33:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:33:05' and `end` < '2025-04-01 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-01 04:33:18] Production.INFO: count ==1071 [2025-04-01 04:33:18] Production.ERROR: pbx CDR StartTime 2025-04-01 01:33:05 - End Time 2025-04-01 04:33:05 [2025-04-01 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808421', 'tblTempUsageDetail_20' ) start [2025-04-01 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808421', 'tblTempUsageDetail_20' ) end [2025-04-01 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808421', 'tblTempVendorCDR_20' ) start [2025-04-01 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808421', 'tblTempVendorCDR_20' ) end [2025-04-01 04:33:18] Production.INFO: ProcessCDR(1,14808421,1,1,2) [2025-04-01 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808421', 'tblTempUsageDetail_20' ) start [2025-04-01 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808421', 'tblTempUsageDetail_20' ) end [2025-04-01 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:33:22] Production.INFO: ==3177== Releasing lock... [2025-04-01 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:33:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:34:05 [end_date_ymd] => 2025-04-01 04:34:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:34:05' and `end` < '2025-04-01 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-01 04:34:18] Production.INFO: count ==1070 [2025-04-01 04:34:18] Production.ERROR: pbx CDR StartTime 2025-04-01 01:34:05 - End Time 2025-04-01 04:34:05 [2025-04-01 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808426', 'tblTempUsageDetail_20' ) start [2025-04-01 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808426', 'tblTempUsageDetail_20' ) end [2025-04-01 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808426', 'tblTempVendorCDR_20' ) start [2025-04-01 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808426', 'tblTempVendorCDR_20' ) end [2025-04-01 04:34:18] Production.INFO: ProcessCDR(1,14808426,1,1,2) [2025-04-01 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808426', 'tblTempUsageDetail_20' ) start [2025-04-01 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808426', 'tblTempUsageDetail_20' ) end [2025-04-01 04:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:34:22] Production.INFO: ==3251== Releasing lock... [2025-04-01 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:34:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:35:05 [end_date_ymd] => 2025-04-01 04:35:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:35:05' and `end` < '2025-04-01 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-01 04:35:18] Production.INFO: count ==1070 [2025-04-01 04:35:18] Production.ERROR: pbx CDR StartTime 2025-04-01 01:35:05 - End Time 2025-04-01 04:35:05 [2025-04-01 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808431', 'tblTempUsageDetail_20' ) start [2025-04-01 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808431', 'tblTempUsageDetail_20' ) end [2025-04-01 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808431', 'tblTempVendorCDR_20' ) start [2025-04-01 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808431', 'tblTempVendorCDR_20' ) end [2025-04-01 04:35:18] Production.INFO: ProcessCDR(1,14808431,1,1,2) [2025-04-01 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808431', 'tblTempUsageDetail_20' ) start [2025-04-01 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808431', 'tblTempUsageDetail_20' ) end [2025-04-01 04:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:35:22] Production.INFO: ==3328== Releasing lock... [2025-04-01 04:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:35:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 04:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:36:06 [end_date_ymd] => 2025-04-01 04:36:06 [RateCDR] => 1 ) [2025-04-01 04: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-01 01:36:06' and `end` < '2025-04-01 04: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-01 04:36:19] Production.INFO: count ==1070 [2025-04-01 04:36:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:36:06 - End Time 2025-04-01 04:36:06 [2025-04-01 04:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808436', 'tblTempUsageDetail_20' ) start [2025-04-01 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808436', 'tblTempUsageDetail_20' ) end [2025-04-01 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808436', 'tblTempVendorCDR_20' ) start [2025-04-01 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808436', 'tblTempVendorCDR_20' ) end [2025-04-01 04:36:19] Production.INFO: ProcessCDR(1,14808436,1,1,2) [2025-04-01 04:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808436', 'tblTempUsageDetail_20' ) start [2025-04-01 04:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808436', 'tblTempUsageDetail_20' ) end [2025-04-01 04:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:36:23] Production.INFO: ==3405== Releasing lock... [2025-04-01 04:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:36:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:37:05 [end_date_ymd] => 2025-04-01 04:37:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:37:05' and `end` < '2025-04-01 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-01 04:37:18] Production.INFO: count ==1070 [2025-04-01 04:37:18] Production.ERROR: pbx CDR StartTime 2025-04-01 01:37:05 - End Time 2025-04-01 04:37:05 [2025-04-01 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808441', 'tblTempUsageDetail_20' ) start [2025-04-01 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808441', 'tblTempUsageDetail_20' ) end [2025-04-01 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808441', 'tblTempVendorCDR_20' ) start [2025-04-01 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808441', 'tblTempVendorCDR_20' ) end [2025-04-01 04:37:19] Production.INFO: ProcessCDR(1,14808441,1,1,2) [2025-04-01 04:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808441', 'tblTempUsageDetail_20' ) start [2025-04-01 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808441', 'tblTempUsageDetail_20' ) end [2025-04-01 04:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:37:22] Production.INFO: ==3482== Releasing lock... [2025-04-01 04:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:37:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:38:05 [end_date_ymd] => 2025-04-01 04:38:05 [RateCDR] => 1 ) [2025-04-01 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 01:38:05' and `end` < '2025-04-01 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 04:38:18] Production.INFO: count ==1070 [2025-04-01 04:38:18] Production.ERROR: pbx CDR StartTime 2025-04-01 01:38:05 - End Time 2025-04-01 04:38:05 [2025-04-01 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808446', 'tblTempUsageDetail_20' ) start [2025-04-01 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808446', 'tblTempUsageDetail_20' ) end [2025-04-01 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808446', 'tblTempVendorCDR_20' ) start [2025-04-01 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808446', 'tblTempVendorCDR_20' ) end [2025-04-01 04:38:18] Production.INFO: ProcessCDR(1,14808446,1,1,2) [2025-04-01 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808446', 'tblTempUsageDetail_20' ) start [2025-04-01 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808446', 'tblTempUsageDetail_20' ) end [2025-04-01 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:38:22] Production.INFO: ==3559== Releasing lock... [2025-04-01 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:38:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 04:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:39:06 [end_date_ymd] => 2025-04-01 04:39:06 [RateCDR] => 1 ) [2025-04-01 04: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-01 01:39:06' and `end` < '2025-04-01 04: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-01 04:39:18] Production.INFO: count ==1069 [2025-04-01 04:39:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:39:06 - End Time 2025-04-01 04:39:06 [2025-04-01 04:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808451', 'tblTempUsageDetail_20' ) start [2025-04-01 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808451', 'tblTempUsageDetail_20' ) end [2025-04-01 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808451', 'tblTempVendorCDR_20' ) start [2025-04-01 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808451', 'tblTempVendorCDR_20' ) end [2025-04-01 04:39:19] Production.INFO: ProcessCDR(1,14808451,1,1,2) [2025-04-01 04:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808451', 'tblTempUsageDetail_20' ) start [2025-04-01 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808451', 'tblTempUsageDetail_20' ) end [2025-04-01 04:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:39:22] Production.INFO: ==3649== Releasing lock... [2025-04-01 04:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:39:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-01 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:40:06 [end_date_ymd] => 2025-04-01 04:40:06 [RateCDR] => 1 ) [2025-04-01 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 01:40:06' and `end` < '2025-04-01 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-01 04:40:19] Production.INFO: count ==1068 [2025-04-01 04:40:20] Production.ERROR: pbx CDR StartTime 2025-04-01 01:40:06 - End Time 2025-04-01 04:40:06 [2025-04-01 04:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808457', 'tblTempUsageDetail_20' ) start [2025-04-01 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808457', 'tblTempUsageDetail_20' ) end [2025-04-01 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808457', 'tblTempVendorCDR_20' ) start [2025-04-01 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808457', 'tblTempVendorCDR_20' ) end [2025-04-01 04:40:20] Production.INFO: ProcessCDR(1,14808457,1,1,2) [2025-04-01 04:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808457', 'tblTempUsageDetail_20' ) start [2025-04-01 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808457', 'tblTempUsageDetail_20' ) end [2025-04-01 04:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:40:23] Production.INFO: ==3731== Releasing lock... [2025-04-01 04:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:40:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:41:05 [end_date_ymd] => 2025-04-01 04:41:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:41:05' and `end` < '2025-04-01 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-01 04:41:18] Production.INFO: count ==1069 [2025-04-01 04:41:18] Production.ERROR: pbx CDR StartTime 2025-04-01 01:41:05 - End Time 2025-04-01 04:41:05 [2025-04-01 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808462', 'tblTempUsageDetail_20' ) start [2025-04-01 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808462', 'tblTempUsageDetail_20' ) end [2025-04-01 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808462', 'tblTempVendorCDR_20' ) start [2025-04-01 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808462', 'tblTempVendorCDR_20' ) end [2025-04-01 04:41:18] Production.INFO: ProcessCDR(1,14808462,1,1,2) [2025-04-01 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808462', 'tblTempUsageDetail_20' ) start [2025-04-01 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808462', 'tblTempUsageDetail_20' ) end [2025-04-01 04:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:41:22] Production.INFO: ==3812== Releasing lock... [2025-04-01 04:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:41:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:42:05 [end_date_ymd] => 2025-04-01 04:42:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:42:05' and `end` < '2025-04-01 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-01 04:42:18] Production.INFO: count ==1073 [2025-04-01 04:42:18] Production.ERROR: pbx CDR StartTime 2025-04-01 01:42:05 - End Time 2025-04-01 04:42:05 [2025-04-01 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808467', 'tblTempUsageDetail_20' ) start [2025-04-01 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808467', 'tblTempUsageDetail_20' ) end [2025-04-01 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808467', 'tblTempVendorCDR_20' ) start [2025-04-01 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808467', 'tblTempVendorCDR_20' ) end [2025-04-01 04:42:18] Production.INFO: ProcessCDR(1,14808467,1,1,2) [2025-04-01 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808467', 'tblTempUsageDetail_20' ) start [2025-04-01 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808467', 'tblTempUsageDetail_20' ) end [2025-04-01 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:42:22] Production.INFO: ==3887== Releasing lock... [2025-04-01 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:42:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:43:05 [end_date_ymd] => 2025-04-01 04:43:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:43:05' and `end` < '2025-04-01 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-01 04:43:17] Production.INFO: count ==1069 [2025-04-01 04:43:18] Production.ERROR: pbx CDR StartTime 2025-04-01 01:43:05 - End Time 2025-04-01 04:43:05 [2025-04-01 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808472', 'tblTempUsageDetail_20' ) start [2025-04-01 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808472', 'tblTempUsageDetail_20' ) end [2025-04-01 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808472', 'tblTempVendorCDR_20' ) start [2025-04-01 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808472', 'tblTempVendorCDR_20' ) end [2025-04-01 04:43:18] Production.INFO: ProcessCDR(1,14808472,1,1,2) [2025-04-01 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808472', 'tblTempUsageDetail_20' ) start [2025-04-01 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808472', 'tblTempUsageDetail_20' ) end [2025-04-01 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:43:21] Production.INFO: ==4001== Releasing lock... [2025-04-01 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:43:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 04:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:44:06 [end_date_ymd] => 2025-04-01 04:44:06 [RateCDR] => 1 ) [2025-04-01 04: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-01 01:44:06' and `end` < '2025-04-01 04: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-01 04:44:18] Production.INFO: count ==1069 [2025-04-01 04:44:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:44:06 - End Time 2025-04-01 04:44:06 [2025-04-01 04:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808477', 'tblTempUsageDetail_20' ) start [2025-04-01 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808477', 'tblTempUsageDetail_20' ) end [2025-04-01 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808477', 'tblTempVendorCDR_20' ) start [2025-04-01 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808477', 'tblTempVendorCDR_20' ) end [2025-04-01 04:44:19] Production.INFO: ProcessCDR(1,14808477,1,1,2) [2025-04-01 04:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808477', 'tblTempUsageDetail_20' ) start [2025-04-01 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808477', 'tblTempUsageDetail_20' ) end [2025-04-01 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:44:22] Production.INFO: ==4075== Releasing lock... [2025-04-01 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:44:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:45:05 [end_date_ymd] => 2025-04-01 04:45:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:45:05' and `end` < '2025-04-01 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-01 04:45:17] Production.INFO: count ==1069 [2025-04-01 04:45:18] Production.ERROR: pbx CDR StartTime 2025-04-01 01:45:05 - End Time 2025-04-01 04:45:05 [2025-04-01 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808482', 'tblTempUsageDetail_20' ) start [2025-04-01 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808482', 'tblTempUsageDetail_20' ) end [2025-04-01 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808482', 'tblTempVendorCDR_20' ) start [2025-04-01 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808482', 'tblTempVendorCDR_20' ) end [2025-04-01 04:45:18] Production.INFO: ProcessCDR(1,14808482,1,1,2) [2025-04-01 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808482', 'tblTempUsageDetail_20' ) start [2025-04-01 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808482', 'tblTempUsageDetail_20' ) end [2025-04-01 04:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:45:22] Production.INFO: ==4157== Releasing lock... [2025-04-01 04:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:45:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:46:06 [end_date_ymd] => 2025-04-01 04:46:06 [RateCDR] => 1 ) [2025-04-01 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-01 01:46:06' and `end` < '2025-04-01 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-01 04:46:19] Production.INFO: count ==1069 [2025-04-01 04:46:20] Production.ERROR: pbx CDR StartTime 2025-04-01 01:46:06 - End Time 2025-04-01 04:46:06 [2025-04-01 04:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808487', 'tblTempUsageDetail_20' ) start [2025-04-01 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808487', 'tblTempUsageDetail_20' ) end [2025-04-01 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808487', 'tblTempVendorCDR_20' ) start [2025-04-01 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808487', 'tblTempVendorCDR_20' ) end [2025-04-01 04:46:20] Production.INFO: ProcessCDR(1,14808487,1,1,2) [2025-04-01 04:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808487', 'tblTempUsageDetail_20' ) start [2025-04-01 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808487', 'tblTempUsageDetail_20' ) end [2025-04-01 04:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:46:23] Production.INFO: ==4237== Releasing lock... [2025-04-01 04:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:46:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:47:05 [end_date_ymd] => 2025-04-01 04:47:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:47:05' and `end` < '2025-04-01 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-01 04:47:18] Production.INFO: count ==1069 [2025-04-01 04:47:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:47:05 - End Time 2025-04-01 04:47:05 [2025-04-01 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808492', 'tblTempUsageDetail_20' ) start [2025-04-01 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808492', 'tblTempUsageDetail_20' ) end [2025-04-01 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808492', 'tblTempVendorCDR_20' ) start [2025-04-01 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808492', 'tblTempVendorCDR_20' ) end [2025-04-01 04:47:19] Production.INFO: ProcessCDR(1,14808492,1,1,2) [2025-04-01 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808492', 'tblTempUsageDetail_20' ) start [2025-04-01 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808492', 'tblTempUsageDetail_20' ) end [2025-04-01 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:47:22] Production.INFO: ==4311== Releasing lock... [2025-04-01 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:47:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 04:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:48:06 [end_date_ymd] => 2025-04-01 04:48:06 [RateCDR] => 1 ) [2025-04-01 04:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 01:48:06' and `end` < '2025-04-01 04:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 04:48:18] Production.INFO: count ==1069 [2025-04-01 04:48:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:48:06 - End Time 2025-04-01 04:48:06 [2025-04-01 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808497', 'tblTempUsageDetail_20' ) start [2025-04-01 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808497', 'tblTempUsageDetail_20' ) end [2025-04-01 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808497', 'tblTempVendorCDR_20' ) start [2025-04-01 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808497', 'tblTempVendorCDR_20' ) end [2025-04-01 04:48:19] Production.INFO: ProcessCDR(1,14808497,1,1,2) [2025-04-01 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808497', 'tblTempUsageDetail_20' ) start [2025-04-01 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808497', 'tblTempUsageDetail_20' ) end [2025-04-01 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:48:23] Production.INFO: ==4388== Releasing lock... [2025-04-01 04:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:48:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:49:05 [end_date_ymd] => 2025-04-01 04:49:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:49:05' and `end` < '2025-04-01 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-01 04:49:18] Production.INFO: count ==1069 [2025-04-01 04:49:18] Production.ERROR: pbx CDR StartTime 2025-04-01 01:49:05 - End Time 2025-04-01 04:49:05 [2025-04-01 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808502', 'tblTempUsageDetail_20' ) start [2025-04-01 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808502', 'tblTempUsageDetail_20' ) end [2025-04-01 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808502', 'tblTempVendorCDR_20' ) start [2025-04-01 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808502', 'tblTempVendorCDR_20' ) end [2025-04-01 04:49:19] Production.INFO: ProcessCDR(1,14808502,1,1,2) [2025-04-01 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808502', 'tblTempUsageDetail_20' ) start [2025-04-01 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808502', 'tblTempUsageDetail_20' ) end [2025-04-01 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:49:22] Production.INFO: ==4462== Releasing lock... [2025-04-01 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:49:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:50:06 [end_date_ymd] => 2025-04-01 04:50:06 [RateCDR] => 1 ) [2025-04-01 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-01 01:50:06' and `end` < '2025-04-01 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-01 04:50:19] Production.INFO: count ==1069 [2025-04-01 04:50:20] Production.ERROR: pbx CDR StartTime 2025-04-01 01:50:06 - End Time 2025-04-01 04:50:06 [2025-04-01 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808508', 'tblTempUsageDetail_20' ) start [2025-04-01 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808508', 'tblTempUsageDetail_20' ) end [2025-04-01 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808508', 'tblTempVendorCDR_20' ) start [2025-04-01 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808508', 'tblTempVendorCDR_20' ) end [2025-04-01 04:50:20] Production.INFO: ProcessCDR(1,14808508,1,1,2) [2025-04-01 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808508', 'tblTempUsageDetail_20' ) start [2025-04-01 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808508', 'tblTempUsageDetail_20' ) end [2025-04-01 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:50:23] Production.INFO: ==4538== Releasing lock... [2025-04-01 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:50:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:51:05 [end_date_ymd] => 2025-04-01 04:51:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:51:05' and `end` < '2025-04-01 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-01 04:51:19] Production.INFO: count ==1069 [2025-04-01 04:51:20] Production.ERROR: pbx CDR StartTime 2025-04-01 01:51:05 - End Time 2025-04-01 04:51:05 [2025-04-01 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808513', 'tblTempUsageDetail_20' ) start [2025-04-01 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808513', 'tblTempUsageDetail_20' ) end [2025-04-01 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808513', 'tblTempVendorCDR_20' ) start [2025-04-01 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808513', 'tblTempVendorCDR_20' ) end [2025-04-01 04:51:20] Production.INFO: ProcessCDR(1,14808513,1,1,2) [2025-04-01 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808513', 'tblTempUsageDetail_20' ) start [2025-04-01 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808513', 'tblTempUsageDetail_20' ) end [2025-04-01 04:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:51:23] Production.INFO: ==4628== Releasing lock... [2025-04-01 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:51:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:52:05 [end_date_ymd] => 2025-04-01 04:52:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:52:05' and `end` < '2025-04-01 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-01 04:52:18] Production.INFO: count ==1069 [2025-04-01 04:52:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:52:05 - End Time 2025-04-01 04:52:05 [2025-04-01 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808518', 'tblTempUsageDetail_20' ) start [2025-04-01 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808518', 'tblTempUsageDetail_20' ) end [2025-04-01 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808518', 'tblTempVendorCDR_20' ) start [2025-04-01 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808518', 'tblTempVendorCDR_20' ) end [2025-04-01 04:52:19] Production.INFO: ProcessCDR(1,14808518,1,1,2) [2025-04-01 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808518', 'tblTempUsageDetail_20' ) start [2025-04-01 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808518', 'tblTempUsageDetail_20' ) end [2025-04-01 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:52:22] Production.INFO: ==4711== Releasing lock... [2025-04-01 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:52:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 04:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:53:06 [end_date_ymd] => 2025-04-01 04:53:06 [RateCDR] => 1 ) [2025-04-01 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-01 01:53:06' and `end` < '2025-04-01 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-01 04:53:19] Production.INFO: count ==1069 [2025-04-01 04:53:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:53:06 - End Time 2025-04-01 04:53:06 [2025-04-01 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808523', 'tblTempUsageDetail_20' ) start [2025-04-01 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808523', 'tblTempUsageDetail_20' ) end [2025-04-01 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808523', 'tblTempVendorCDR_20' ) start [2025-04-01 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808523', 'tblTempVendorCDR_20' ) end [2025-04-01 04:53:19] Production.INFO: ProcessCDR(1,14808523,1,1,2) [2025-04-01 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808523', 'tblTempUsageDetail_20' ) start [2025-04-01 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808523', 'tblTempUsageDetail_20' ) end [2025-04-01 04:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:53:23] Production.INFO: ==4804== Releasing lock... [2025-04-01 04:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:53:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:54:05 [end_date_ymd] => 2025-04-01 04:54:05 [RateCDR] => 1 ) [2025-04-01 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-01 01:54:05' and `end` < '2025-04-01 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-01 04:54:19] Production.INFO: count ==1069 [2025-04-01 04:54:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:54:05 - End Time 2025-04-01 04:54:05 [2025-04-01 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808528', 'tblTempUsageDetail_20' ) start [2025-04-01 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808528', 'tblTempUsageDetail_20' ) end [2025-04-01 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808528', 'tblTempVendorCDR_20' ) start [2025-04-01 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808528', 'tblTempVendorCDR_20' ) end [2025-04-01 04:54:19] Production.INFO: ProcessCDR(1,14808528,1,1,2) [2025-04-01 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808528', 'tblTempUsageDetail_20' ) start [2025-04-01 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808528', 'tblTempUsageDetail_20' ) end [2025-04-01 04:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:54:23] Production.INFO: ==4883== Releasing lock... [2025-04-01 04:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:54:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 04:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:55:06 [end_date_ymd] => 2025-04-01 04:55:06 [RateCDR] => 1 ) [2025-04-01 04: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-01 01:55:06' and `end` < '2025-04-01 04: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-01 04:55:18] Production.INFO: count ==1070 [2025-04-01 04:55:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:55:06 - End Time 2025-04-01 04:55:06 [2025-04-01 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808533', 'tblTempUsageDetail_20' ) start [2025-04-01 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808533', 'tblTempUsageDetail_20' ) end [2025-04-01 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808533', 'tblTempVendorCDR_20' ) start [2025-04-01 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808533', 'tblTempVendorCDR_20' ) end [2025-04-01 04:55:19] Production.INFO: ProcessCDR(1,14808533,1,1,2) [2025-04-01 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808533', 'tblTempUsageDetail_20' ) start [2025-04-01 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808533', 'tblTempUsageDetail_20' ) end [2025-04-01 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:55:22] Production.INFO: ==4960== Releasing lock... [2025-04-01 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:55:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-01 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:56:05 [end_date_ymd] => 2025-04-01 04:56:05 [RateCDR] => 1 ) [2025-04-01 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 01:56:05' and `end` < '2025-04-01 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 04:56:20] Production.INFO: count ==1073 [2025-04-01 04:56:20] Production.ERROR: pbx CDR StartTime 2025-04-01 01:56:05 - End Time 2025-04-01 04:56:05 [2025-04-01 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808538', 'tblTempUsageDetail_20' ) start [2025-04-01 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808538', 'tblTempUsageDetail_20' ) end [2025-04-01 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808538', 'tblTempVendorCDR_20' ) start [2025-04-01 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808538', 'tblTempVendorCDR_20' ) end [2025-04-01 04:56:21] Production.INFO: ProcessCDR(1,14808538,1,1,2) [2025-04-01 04:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808538', 'tblTempUsageDetail_20' ) start [2025-04-01 04:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808538', 'tblTempUsageDetail_20' ) end [2025-04-01 04:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:56:24] Production.INFO: ==5036== Releasing lock... [2025-04-01 04:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:56:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 04:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:57:06 [end_date_ymd] => 2025-04-01 04:57:06 [RateCDR] => 1 ) [2025-04-01 04:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 01:57:06' and `end` < '2025-04-01 04:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 04:57:20] Production.INFO: count ==1073 [2025-04-01 04:57:21] Production.ERROR: pbx CDR StartTime 2025-04-01 01:57:06 - End Time 2025-04-01 04:57:06 [2025-04-01 04:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808543', 'tblTempUsageDetail_20' ) start [2025-04-01 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808543', 'tblTempUsageDetail_20' ) end [2025-04-01 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808543', 'tblTempVendorCDR_20' ) start [2025-04-01 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808543', 'tblTempVendorCDR_20' ) end [2025-04-01 04:57:21] Production.INFO: ProcessCDR(1,14808543,1,1,2) [2025-04-01 04:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808543', 'tblTempUsageDetail_20' ) start [2025-04-01 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808543', 'tblTempUsageDetail_20' ) end [2025-04-01 04:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:57:24] Production.INFO: ==5115== Releasing lock... [2025-04-01 04:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:57:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:58:05 [end_date_ymd] => 2025-04-01 04:58:05 [RateCDR] => 1 ) [2025-04-01 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 01:58:05' and `end` < '2025-04-01 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 04:58:19] Production.INFO: count ==1085 [2025-04-01 04:58:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:58:05 - End Time 2025-04-01 04:58:05 [2025-04-01 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808548', 'tblTempUsageDetail_20' ) start [2025-04-01 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808548', 'tblTempUsageDetail_20' ) end [2025-04-01 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808548', 'tblTempVendorCDR_20' ) start [2025-04-01 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808548', 'tblTempVendorCDR_20' ) end [2025-04-01 04:58:19] Production.INFO: ProcessCDR(1,14808548,1,1,2) [2025-04-01 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808548', 'tblTempUsageDetail_20' ) start [2025-04-01 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808548', 'tblTempUsageDetail_20' ) end [2025-04-01 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:58:23] Production.INFO: ==5231== Releasing lock... [2025-04-01 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:58:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 01:59:05 [end_date_ymd] => 2025-04-01 04:59:05 [RateCDR] => 1 ) [2025-04-01 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 01:59:05' and `end` < '2025-04-01 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 04:59:19] Production.INFO: count ==1081 [2025-04-01 04:59:19] Production.ERROR: pbx CDR StartTime 2025-04-01 01:59:05 - End Time 2025-04-01 04:59:05 [2025-04-01 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808553', 'tblTempUsageDetail_20' ) start [2025-04-01 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808553', 'tblTempUsageDetail_20' ) end [2025-04-01 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808553', 'tblTempVendorCDR_20' ) start [2025-04-01 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808553', 'tblTempVendorCDR_20' ) end [2025-04-01 04:59:19] Production.INFO: ProcessCDR(1,14808553,1,1,2) [2025-04-01 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808553', 'tblTempUsageDetail_20' ) start [2025-04-01 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808553', 'tblTempUsageDetail_20' ) end [2025-04-01 04:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 04:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 04:59:23] Production.INFO: ==5306== Releasing lock... [2025-04-01 04:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 04:59:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-01 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:00:06 [end_date_ymd] => 2025-04-01 05:00:06 [RateCDR] => 1 ) [2025-04-01 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-01 02:00:06' and `end` < '2025-04-01 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-01 05:00:19] Production.INFO: count ==1078 [2025-04-01 05:00:20] Production.ERROR: pbx CDR StartTime 2025-04-01 02:00:06 - End Time 2025-04-01 05:00:06 [2025-04-01 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808559', 'tblTempUsageDetail_20' ) start [2025-04-01 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808559', 'tblTempUsageDetail_20' ) end [2025-04-01 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808559', 'tblTempVendorCDR_20' ) start [2025-04-01 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808559', 'tblTempVendorCDR_20' ) end [2025-04-01 05:00:20] Production.INFO: ProcessCDR(1,14808559,1,1,2) [2025-04-01 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808559', 'tblTempUsageDetail_20' ) start [2025-04-01 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808559', 'tblTempUsageDetail_20' ) end [2025-04-01 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:00:23] Production.INFO: ==5384== Releasing lock... [2025-04-01 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:00:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 05:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:01:06 [end_date_ymd] => 2025-04-01 05:01:06 [RateCDR] => 1 ) [2025-04-01 05: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-01 02:01:06' and `end` < '2025-04-01 05: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-01 05:01:21] Production.INFO: count ==1078 [2025-04-01 05:01:21] Production.ERROR: pbx CDR StartTime 2025-04-01 02:01:06 - End Time 2025-04-01 05:01:06 [2025-04-01 05:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808564', 'tblTempUsageDetail_20' ) start [2025-04-01 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808564', 'tblTempUsageDetail_20' ) end [2025-04-01 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808564', 'tblTempVendorCDR_20' ) start [2025-04-01 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808564', 'tblTempVendorCDR_20' ) end [2025-04-01 05:01:21] Production.INFO: ProcessCDR(1,14808564,1,1,2) [2025-04-01 05:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808564', 'tblTempUsageDetail_20' ) start [2025-04-01 05:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808564', 'tblTempUsageDetail_20' ) end [2025-04-01 05:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:01:25] Production.INFO: ==5473== Releasing lock... [2025-04-01 05:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:01:25] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:02:05 [end_date_ymd] => 2025-04-01 05:02:05 [RateCDR] => 1 ) [2025-04-01 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-01 02:02:05' and `end` < '2025-04-01 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-01 05:02:19] Production.INFO: count ==1078 [2025-04-01 05:02:20] Production.ERROR: pbx CDR StartTime 2025-04-01 02:02:05 - End Time 2025-04-01 05:02:05 [2025-04-01 05:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808569', 'tblTempUsageDetail_20' ) start [2025-04-01 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808569', 'tblTempUsageDetail_20' ) end [2025-04-01 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808569', 'tblTempVendorCDR_20' ) start [2025-04-01 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808569', 'tblTempVendorCDR_20' ) end [2025-04-01 05:02:20] Production.INFO: ProcessCDR(1,14808569,1,1,2) [2025-04-01 05:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808569', 'tblTempUsageDetail_20' ) start [2025-04-01 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808569', 'tblTempUsageDetail_20' ) end [2025-04-01 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:02:23] Production.INFO: ==5547== Releasing lock... [2025-04-01 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:02:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 05:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:03:06 [end_date_ymd] => 2025-04-01 05:03:06 [RateCDR] => 1 ) [2025-04-01 05: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-01 02:03:06' and `end` < '2025-04-01 05: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-01 05:03:18] Production.INFO: count ==1078 [2025-04-01 05:03:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:03:06 - End Time 2025-04-01 05:03:06 [2025-04-01 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808574', 'tblTempUsageDetail_20' ) start [2025-04-01 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808574', 'tblTempUsageDetail_20' ) end [2025-04-01 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808574', 'tblTempVendorCDR_20' ) start [2025-04-01 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808574', 'tblTempVendorCDR_20' ) end [2025-04-01 05:03:19] Production.INFO: ProcessCDR(1,14808574,1,1,2) [2025-04-01 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808574', 'tblTempUsageDetail_20' ) start [2025-04-01 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808574', 'tblTempUsageDetail_20' ) end [2025-04-01 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:03:22] Production.INFO: ==5629== Releasing lock... [2025-04-01 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:03:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:04:06 [end_date_ymd] => 2025-04-01 05:04:06 [RateCDR] => 1 ) [2025-04-01 05:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 02:04:06' and `end` < '2025-04-01 05:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 05:04:19] Production.INFO: count ==1078 [2025-04-01 05:04:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:04:06 - End Time 2025-04-01 05:04:06 [2025-04-01 05:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808579', 'tblTempUsageDetail_20' ) start [2025-04-01 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808579', 'tblTempUsageDetail_20' ) end [2025-04-01 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808579', 'tblTempVendorCDR_20' ) start [2025-04-01 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808579', 'tblTempVendorCDR_20' ) end [2025-04-01 05:04:19] Production.INFO: ProcessCDR(1,14808579,1,1,2) [2025-04-01 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808579', 'tblTempUsageDetail_20' ) start [2025-04-01 05:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808579', 'tblTempUsageDetail_20' ) end [2025-04-01 05:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:04:23] Production.INFO: ==5704== Releasing lock... [2025-04-01 05:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:04:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:05:05 [end_date_ymd] => 2025-04-01 05:05:05 [RateCDR] => 1 ) [2025-04-01 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-01 02:05:05' and `end` < '2025-04-01 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-01 05:05:18] Production.INFO: count ==1078 [2025-04-01 05:05:18] Production.ERROR: pbx CDR StartTime 2025-04-01 02:05:05 - End Time 2025-04-01 05:05:05 [2025-04-01 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808584', 'tblTempUsageDetail_20' ) start [2025-04-01 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808584', 'tblTempUsageDetail_20' ) end [2025-04-01 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808584', 'tblTempVendorCDR_20' ) start [2025-04-01 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808584', 'tblTempVendorCDR_20' ) end [2025-04-01 05:05:18] Production.INFO: ProcessCDR(1,14808584,1,1,2) [2025-04-01 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808584', 'tblTempUsageDetail_20' ) start [2025-04-01 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808584', 'tblTempUsageDetail_20' ) end [2025-04-01 05:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:05:22] Production.INFO: ==5780== Releasing lock... [2025-04-01 05:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:05:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:06:05 [end_date_ymd] => 2025-04-01 05:06:05 [RateCDR] => 1 ) [2025-04-01 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-01 02:06:05' and `end` < '2025-04-01 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-01 05:06:18] Production.INFO: count ==1078 [2025-04-01 05:06:18] Production.ERROR: pbx CDR StartTime 2025-04-01 02:06:05 - End Time 2025-04-01 05:06:05 [2025-04-01 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808589', 'tblTempUsageDetail_20' ) start [2025-04-01 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808589', 'tblTempUsageDetail_20' ) end [2025-04-01 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808589', 'tblTempVendorCDR_20' ) start [2025-04-01 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808589', 'tblTempVendorCDR_20' ) end [2025-04-01 05:06:18] Production.INFO: ProcessCDR(1,14808589,1,1,2) [2025-04-01 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808589', 'tblTempUsageDetail_20' ) start [2025-04-01 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808589', 'tblTempUsageDetail_20' ) end [2025-04-01 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:06:22] Production.INFO: ==5865== Releasing lock... [2025-04-01 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:06:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 05:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:07:06 [end_date_ymd] => 2025-04-01 05:07:06 [RateCDR] => 1 ) [2025-04-01 05:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 02:07:06' and `end` < '2025-04-01 05:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 05:07:18] Production.INFO: count ==1078 [2025-04-01 05:07:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:07:06 - End Time 2025-04-01 05:07:06 [2025-04-01 05:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808594', 'tblTempUsageDetail_20' ) start [2025-04-01 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808594', 'tblTempUsageDetail_20' ) end [2025-04-01 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808594', 'tblTempVendorCDR_20' ) start [2025-04-01 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808594', 'tblTempVendorCDR_20' ) end [2025-04-01 05:07:19] Production.INFO: ProcessCDR(1,14808594,1,1,2) [2025-04-01 05:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808594', 'tblTempUsageDetail_20' ) start [2025-04-01 05:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808594', 'tblTempUsageDetail_20' ) end [2025-04-01 05:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:07:23] Production.INFO: ==5947== Releasing lock... [2025-04-01 05:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:07:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:08:05 [end_date_ymd] => 2025-04-01 05:08:05 [RateCDR] => 1 ) [2025-04-01 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-01 02:08:05' and `end` < '2025-04-01 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-01 05:08:17] Production.INFO: count ==1078 [2025-04-01 05:08:18] Production.ERROR: pbx CDR StartTime 2025-04-01 02:08:05 - End Time 2025-04-01 05:08:05 [2025-04-01 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808599', 'tblTempUsageDetail_20' ) start [2025-04-01 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808599', 'tblTempUsageDetail_20' ) end [2025-04-01 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808599', 'tblTempVendorCDR_20' ) start [2025-04-01 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808599', 'tblTempVendorCDR_20' ) end [2025-04-01 05:08:18] Production.INFO: ProcessCDR(1,14808599,1,1,2) [2025-04-01 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808599', 'tblTempUsageDetail_20' ) start [2025-04-01 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808599', 'tblTempUsageDetail_20' ) end [2025-04-01 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:08:21] Production.INFO: ==6023== Releasing lock... [2025-04-01 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:08:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:09:05 [end_date_ymd] => 2025-04-01 05:09:05 [RateCDR] => 1 ) [2025-04-01 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-01 02:09:05' and `end` < '2025-04-01 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-01 05:09:18] Production.INFO: count ==1078 [2025-04-01 05:09:18] Production.ERROR: pbx CDR StartTime 2025-04-01 02:09:05 - End Time 2025-04-01 05:09:05 [2025-04-01 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808604', 'tblTempUsageDetail_20' ) start [2025-04-01 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808604', 'tblTempUsageDetail_20' ) end [2025-04-01 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808604', 'tblTempVendorCDR_20' ) start [2025-04-01 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808604', 'tblTempVendorCDR_20' ) end [2025-04-01 05:09:18] Production.INFO: ProcessCDR(1,14808604,1,1,2) [2025-04-01 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808604', 'tblTempUsageDetail_20' ) start [2025-04-01 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808604', 'tblTempUsageDetail_20' ) end [2025-04-01 05:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:09:22] Production.INFO: ==6099== Releasing lock... [2025-04-01 05:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:09:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:10:06 [end_date_ymd] => 2025-04-01 05:10:06 [RateCDR] => 1 ) [2025-04-01 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 02:10:06' and `end` < '2025-04-01 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 05:10:18] Production.INFO: count ==1078 [2025-04-01 05:10:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:10:06 - End Time 2025-04-01 05:10:06 [2025-04-01 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808610', 'tblTempUsageDetail_20' ) start [2025-04-01 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808610', 'tblTempUsageDetail_20' ) end [2025-04-01 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808610', 'tblTempVendorCDR_20' ) start [2025-04-01 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808610', 'tblTempVendorCDR_20' ) end [2025-04-01 05:10:19] Production.INFO: ProcessCDR(1,14808610,1,1,2) [2025-04-01 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808610', 'tblTempUsageDetail_20' ) start [2025-04-01 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808610', 'tblTempUsageDetail_20' ) end [2025-04-01 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:10:22] Production.INFO: ==6174== Releasing lock... [2025-04-01 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:10:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:11:05 [end_date_ymd] => 2025-04-01 05:11:05 [RateCDR] => 1 ) [2025-04-01 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-01 02:11:05' and `end` < '2025-04-01 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-01 05:11:18] Production.INFO: count ==1078 [2025-04-01 05:11:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:11:05 - End Time 2025-04-01 05:11:05 [2025-04-01 05:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808615', 'tblTempUsageDetail_20' ) start [2025-04-01 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808615', 'tblTempUsageDetail_20' ) end [2025-04-01 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808615', 'tblTempVendorCDR_20' ) start [2025-04-01 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808615', 'tblTempVendorCDR_20' ) end [2025-04-01 05:11:19] Production.INFO: ProcessCDR(1,14808615,1,1,2) [2025-04-01 05:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808615', 'tblTempUsageDetail_20' ) start [2025-04-01 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808615', 'tblTempUsageDetail_20' ) end [2025-04-01 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:11:22] Production.INFO: ==6256== Releasing lock... [2025-04-01 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:11:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 05:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:12:06 [end_date_ymd] => 2025-04-01 05:12:06 [RateCDR] => 1 ) [2025-04-01 05: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-01 02:12:06' and `end` < '2025-04-01 05: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-01 05:12:19] Production.INFO: count ==1076 [2025-04-01 05:12:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:12:06 - End Time 2025-04-01 05:12:06 [2025-04-01 05:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808620', 'tblTempUsageDetail_20' ) start [2025-04-01 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808620', 'tblTempUsageDetail_20' ) end [2025-04-01 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808620', 'tblTempVendorCDR_20' ) start [2025-04-01 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808620', 'tblTempVendorCDR_20' ) end [2025-04-01 05:12:19] Production.INFO: ProcessCDR(1,14808620,1,1,2) [2025-04-01 05:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808620', 'tblTempUsageDetail_20' ) start [2025-04-01 05:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808620', 'tblTempUsageDetail_20' ) end [2025-04-01 05:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:12:23] Production.INFO: ==6327== Releasing lock... [2025-04-01 05:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:12:23] Production.INFO: 37 MB #Memory Used# [2025-04-01 05:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:13:06 [end_date_ymd] => 2025-04-01 05:13:06 [RateCDR] => 1 ) [2025-04-01 05: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-01 02:13:06' and `end` < '2025-04-01 05: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-01 05:13:18] Production.INFO: count ==1074 [2025-04-01 05:13:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:13:06 - End Time 2025-04-01 05:13:06 [2025-04-01 05:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808625', 'tblTempUsageDetail_20' ) start [2025-04-01 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808625', 'tblTempUsageDetail_20' ) end [2025-04-01 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808625', 'tblTempVendorCDR_20' ) start [2025-04-01 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808625', 'tblTempVendorCDR_20' ) end [2025-04-01 05:13:19] Production.INFO: ProcessCDR(1,14808625,1,1,2) [2025-04-01 05:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808625', 'tblTempUsageDetail_20' ) start [2025-04-01 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808625', 'tblTempUsageDetail_20' ) end [2025-04-01 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:13:22] Production.INFO: ==6405== Releasing lock... [2025-04-01 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:13:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 05:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:14:06 [end_date_ymd] => 2025-04-01 05:14:06 [RateCDR] => 1 ) [2025-04-01 05:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 02:14:06' and `end` < '2025-04-01 05:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 05:14:18] Production.INFO: count ==1074 [2025-04-01 05:14:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:14:06 - End Time 2025-04-01 05:14:06 [2025-04-01 05:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808630', 'tblTempUsageDetail_20' ) start [2025-04-01 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808630', 'tblTempUsageDetail_20' ) end [2025-04-01 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808630', 'tblTempVendorCDR_20' ) start [2025-04-01 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808630', 'tblTempVendorCDR_20' ) end [2025-04-01 05:14:19] Production.INFO: ProcessCDR(1,14808630,1,1,2) [2025-04-01 05:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808630', 'tblTempUsageDetail_20' ) start [2025-04-01 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808630', 'tblTempUsageDetail_20' ) end [2025-04-01 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:14:22] Production.INFO: ==6525== Releasing lock... [2025-04-01 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:14:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 05:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:15:06 [end_date_ymd] => 2025-04-01 05:15:06 [RateCDR] => 1 ) [2025-04-01 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-01 02:15:06' and `end` < '2025-04-01 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-01 05:15:18] Production.INFO: count ==1074 [2025-04-01 05:15:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:15:06 - End Time 2025-04-01 05:15:06 [2025-04-01 05:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808635', 'tblTempUsageDetail_20' ) start [2025-04-01 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808635', 'tblTempUsageDetail_20' ) end [2025-04-01 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808635', 'tblTempVendorCDR_20' ) start [2025-04-01 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808635', 'tblTempVendorCDR_20' ) end [2025-04-01 05:15:19] Production.INFO: ProcessCDR(1,14808635,1,1,2) [2025-04-01 05:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808635', 'tblTempUsageDetail_20' ) start [2025-04-01 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808635', 'tblTempUsageDetail_20' ) end [2025-04-01 05:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:15:22] Production.INFO: ==6600== Releasing lock... [2025-04-01 05:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:15:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 05:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:16:06 [end_date_ymd] => 2025-04-01 05:16:06 [RateCDR] => 1 ) [2025-04-01 05: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-01 02:16:06' and `end` < '2025-04-01 05: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-01 05:16:19] Production.INFO: count ==1074 [2025-04-01 05:16:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:16:06 - End Time 2025-04-01 05:16:06 [2025-04-01 05:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808640', 'tblTempUsageDetail_20' ) start [2025-04-01 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808640', 'tblTempUsageDetail_20' ) end [2025-04-01 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808640', 'tblTempVendorCDR_20' ) start [2025-04-01 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808640', 'tblTempVendorCDR_20' ) end [2025-04-01 05:16:19] Production.INFO: ProcessCDR(1,14808640,1,1,2) [2025-04-01 05:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808640', 'tblTempUsageDetail_20' ) start [2025-04-01 05:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808640', 'tblTempUsageDetail_20' ) end [2025-04-01 05:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:16:23] Production.INFO: ==6693== Releasing lock... [2025-04-01 05:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:16:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:17:05 [end_date_ymd] => 2025-04-01 05:17:05 [RateCDR] => 1 ) [2025-04-01 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-01 02:17:05' and `end` < '2025-04-01 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-01 05:17:18] Production.INFO: count ==1066 [2025-04-01 05:17:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:17:05 - End Time 2025-04-01 05:17:05 [2025-04-01 05:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808645', 'tblTempUsageDetail_20' ) start [2025-04-01 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808645', 'tblTempUsageDetail_20' ) end [2025-04-01 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808645', 'tblTempVendorCDR_20' ) start [2025-04-01 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808645', 'tblTempVendorCDR_20' ) end [2025-04-01 05:17:19] Production.INFO: ProcessCDR(1,14808645,1,1,2) [2025-04-01 05:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808645', 'tblTempUsageDetail_20' ) start [2025-04-01 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808645', 'tblTempUsageDetail_20' ) end [2025-04-01 05:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:17:22] Production.INFO: ==6792== Releasing lock... [2025-04-01 05:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:17:22] Production.INFO: 38 MB #Memory Used# [2025-04-01 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:18:05 [end_date_ymd] => 2025-04-01 05:18:05 [RateCDR] => 1 ) [2025-04-01 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-01 02:18:05' and `end` < '2025-04-01 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-01 05:18:18] Production.INFO: count ==1066 [2025-04-01 05:18:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:18:05 - End Time 2025-04-01 05:18:05 [2025-04-01 05:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808650', 'tblTempUsageDetail_20' ) start [2025-04-01 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808650', 'tblTempUsageDetail_20' ) end [2025-04-01 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808650', 'tblTempVendorCDR_20' ) start [2025-04-01 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808650', 'tblTempVendorCDR_20' ) end [2025-04-01 05:18:19] Production.INFO: ProcessCDR(1,14808650,1,1,2) [2025-04-01 05:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808650', 'tblTempUsageDetail_20' ) start [2025-04-01 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808650', 'tblTempUsageDetail_20' ) end [2025-04-01 05:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:18:22] Production.INFO: ==6906== Releasing lock... [2025-04-01 05:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:18:22] Production.INFO: 38 MB #Memory Used# [2025-04-01 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:19:05 [end_date_ymd] => 2025-04-01 05:19:05 [RateCDR] => 1 ) [2025-04-01 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-01 02:19:05' and `end` < '2025-04-01 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-01 05:19:18] Production.INFO: count ==1066 [2025-04-01 05:19:18] Production.ERROR: pbx CDR StartTime 2025-04-01 02:19:05 - End Time 2025-04-01 05:19:05 [2025-04-01 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808655', 'tblTempUsageDetail_20' ) start [2025-04-01 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808655', 'tblTempUsageDetail_20' ) end [2025-04-01 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808655', 'tblTempVendorCDR_20' ) start [2025-04-01 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808655', 'tblTempVendorCDR_20' ) end [2025-04-01 05:19:19] Production.INFO: ProcessCDR(1,14808655,1,1,2) [2025-04-01 05:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808655', 'tblTempUsageDetail_20' ) start [2025-04-01 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808655', 'tblTempUsageDetail_20' ) end [2025-04-01 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:19:22] Production.INFO: ==6996== Releasing lock... [2025-04-01 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:19:22] Production.INFO: 38 MB #Memory Used# [2025-04-01 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:20:06 [end_date_ymd] => 2025-04-01 05:20:06 [RateCDR] => 1 ) [2025-04-01 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 02:20:06' and `end` < '2025-04-01 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 05:20:19] Production.INFO: count ==1066 [2025-04-01 05:20:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:20:06 - End Time 2025-04-01 05:20:06 [2025-04-01 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808661', 'tblTempUsageDetail_20' ) start [2025-04-01 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808661', 'tblTempUsageDetail_20' ) end [2025-04-01 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808661', 'tblTempVendorCDR_20' ) start [2025-04-01 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808661', 'tblTempVendorCDR_20' ) end [2025-04-01 05:20:19] Production.INFO: ProcessCDR(1,14808661,1,1,2) [2025-04-01 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808661', 'tblTempUsageDetail_20' ) start [2025-04-01 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808661', 'tblTempUsageDetail_20' ) end [2025-04-01 05:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:20:23] Production.INFO: ==7080== Releasing lock... [2025-04-01 05:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:20:23] Production.INFO: 38 MB #Memory Used# [2025-04-01 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:21:05 [end_date_ymd] => 2025-04-01 05:21:05 [RateCDR] => 1 ) [2025-04-01 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-01 02:21:05' and `end` < '2025-04-01 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-01 05:21:18] Production.INFO: count ==1066 [2025-04-01 05:21:18] Production.ERROR: pbx CDR StartTime 2025-04-01 02:21:05 - End Time 2025-04-01 05:21:05 [2025-04-01 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808666', 'tblTempUsageDetail_20' ) start [2025-04-01 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808666', 'tblTempUsageDetail_20' ) end [2025-04-01 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808666', 'tblTempVendorCDR_20' ) start [2025-04-01 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808666', 'tblTempVendorCDR_20' ) end [2025-04-01 05:21:18] Production.INFO: ProcessCDR(1,14808666,1,1,2) [2025-04-01 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808666', 'tblTempUsageDetail_20' ) start [2025-04-01 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808666', 'tblTempUsageDetail_20' ) end [2025-04-01 05:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:21:22] Production.INFO: ==7159== Releasing lock... [2025-04-01 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:21:22] Production.INFO: 38 MB #Memory Used# [2025-04-01 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:22:06 [end_date_ymd] => 2025-04-01 05:22:06 [RateCDR] => 1 ) [2025-04-01 05:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 02:22:06' and `end` < '2025-04-01 05:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 05:22:19] Production.INFO: count ==1066 [2025-04-01 05:22:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:22:06 - End Time 2025-04-01 05:22:06 [2025-04-01 05:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808671', 'tblTempUsageDetail_20' ) start [2025-04-01 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808671', 'tblTempUsageDetail_20' ) end [2025-04-01 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808671', 'tblTempVendorCDR_20' ) start [2025-04-01 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808671', 'tblTempVendorCDR_20' ) end [2025-04-01 05:22:19] Production.INFO: ProcessCDR(1,14808671,1,1,2) [2025-04-01 05:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808671', 'tblTempUsageDetail_20' ) start [2025-04-01 05:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808671', 'tblTempUsageDetail_20' ) end [2025-04-01 05:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:22:23] Production.INFO: ==7231== Releasing lock... [2025-04-01 05:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:22:23] Production.INFO: 38 MB #Memory Used# [2025-04-01 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:23:05 [end_date_ymd] => 2025-04-01 05:23:05 [RateCDR] => 1 ) [2025-04-01 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 02:23:05' and `end` < '2025-04-01 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 05:23:18] Production.INFO: count ==1066 [2025-04-01 05:23:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:23:05 - End Time 2025-04-01 05:23:05 [2025-04-01 05:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808676', 'tblTempUsageDetail_20' ) start [2025-04-01 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808676', 'tblTempUsageDetail_20' ) end [2025-04-01 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808676', 'tblTempVendorCDR_20' ) start [2025-04-01 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808676', 'tblTempVendorCDR_20' ) end [2025-04-01 05:23:19] Production.INFO: ProcessCDR(1,14808676,1,1,2) [2025-04-01 05:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808676', 'tblTempUsageDetail_20' ) start [2025-04-01 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808676', 'tblTempUsageDetail_20' ) end [2025-04-01 05:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:23:22] Production.INFO: ==7318== Releasing lock... [2025-04-01 05:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:23:22] Production.INFO: 38 MB #Memory Used# [2025-04-01 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:24:05 [end_date_ymd] => 2025-04-01 05:24:05 [RateCDR] => 1 ) [2025-04-01 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 02:24:05' and `end` < '2025-04-01 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 05:24:18] Production.INFO: count ==1066 [2025-04-01 05:24:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:24:05 - End Time 2025-04-01 05:24:05 [2025-04-01 05:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808681', 'tblTempUsageDetail_20' ) start [2025-04-01 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808681', 'tblTempUsageDetail_20' ) end [2025-04-01 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808681', 'tblTempVendorCDR_20' ) start [2025-04-01 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808681', 'tblTempVendorCDR_20' ) end [2025-04-01 05:24:19] Production.INFO: ProcessCDR(1,14808681,1,1,2) [2025-04-01 05:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808681', 'tblTempUsageDetail_20' ) start [2025-04-01 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808681', 'tblTempUsageDetail_20' ) end [2025-04-01 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:24:22] Production.INFO: ==7395== Releasing lock... [2025-04-01 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:24:22] Production.INFO: 38 MB #Memory Used# [2025-04-01 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:25:05 [end_date_ymd] => 2025-04-01 05:25:05 [RateCDR] => 1 ) [2025-04-01 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-01 02:25:05' and `end` < '2025-04-01 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-01 05:25:17] Production.INFO: count ==1066 [2025-04-01 05:25:18] Production.ERROR: pbx CDR StartTime 2025-04-01 02:25:05 - End Time 2025-04-01 05:25:05 [2025-04-01 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808685', 'tblTempUsageDetail_20' ) start [2025-04-01 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808685', 'tblTempUsageDetail_20' ) end [2025-04-01 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808685', 'tblTempVendorCDR_20' ) start [2025-04-01 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808685', 'tblTempVendorCDR_20' ) end [2025-04-01 05:25:18] Production.INFO: ProcessCDR(1,14808685,1,1,2) [2025-04-01 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808685', 'tblTempUsageDetail_20' ) start [2025-04-01 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808685', 'tblTempUsageDetail_20' ) end [2025-04-01 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:25:22] Production.INFO: ==7466== Releasing lock... [2025-04-01 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:25:22] Production.INFO: 38 MB #Memory Used# [2025-04-01 05:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:26:06 [end_date_ymd] => 2025-04-01 05:26:06 [RateCDR] => 1 ) [2025-04-01 05:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 02:26:06' and `end` < '2025-04-01 05:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 05:26:18] Production.INFO: count ==1043 [2025-04-01 05:26:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:26:06 - End Time 2025-04-01 05:26:06 [2025-04-01 05:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808691', 'tblTempUsageDetail_20' ) start [2025-04-01 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808691', 'tblTempUsageDetail_20' ) end [2025-04-01 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808691', 'tblTempVendorCDR_20' ) start [2025-04-01 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808691', 'tblTempVendorCDR_20' ) end [2025-04-01 05:26:19] Production.INFO: ProcessCDR(1,14808691,1,1,2) [2025-04-01 05:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808691', 'tblTempUsageDetail_20' ) start [2025-04-01 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808691', 'tblTempUsageDetail_20' ) end [2025-04-01 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:26:22] Production.INFO: ==7545== Releasing lock... [2025-04-01 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:26:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:27:05 [end_date_ymd] => 2025-04-01 05:27:05 [RateCDR] => 1 ) [2025-04-01 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 02:27:05' and `end` < '2025-04-01 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 05:27:18] Production.INFO: count ==1007 [2025-04-01 05:27:18] Production.ERROR: pbx CDR StartTime 2025-04-01 02:27:05 - End Time 2025-04-01 05:27:05 [2025-04-01 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808696', 'tblTempUsageDetail_20' ) start [2025-04-01 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808696', 'tblTempUsageDetail_20' ) end [2025-04-01 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808696', 'tblTempVendorCDR_20' ) start [2025-04-01 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808696', 'tblTempVendorCDR_20' ) end [2025-04-01 05:27:18] Production.INFO: ProcessCDR(1,14808696,1,1,2) [2025-04-01 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808696', 'tblTempUsageDetail_20' ) start [2025-04-01 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808696', 'tblTempUsageDetail_20' ) end [2025-04-01 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:27:22] Production.INFO: ==7615== Releasing lock... [2025-04-01 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:27:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-01 05:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:28:06 [end_date_ymd] => 2025-04-01 05:28:06 [RateCDR] => 1 ) [2025-04-01 05:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 02:28:06' and `end` < '2025-04-01 05:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 05:28:18] Production.INFO: count ==996 [2025-04-01 05:28:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:28:06 - End Time 2025-04-01 05:28:06 [2025-04-01 05:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808701', 'tblTempUsageDetail_20' ) start [2025-04-01 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808701', 'tblTempUsageDetail_20' ) end [2025-04-01 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808701', 'tblTempVendorCDR_20' ) start [2025-04-01 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808701', 'tblTempVendorCDR_20' ) end [2025-04-01 05:28:19] Production.INFO: ProcessCDR(1,14808701,1,1,2) [2025-04-01 05:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808701', 'tblTempUsageDetail_20' ) start [2025-04-01 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808701', 'tblTempUsageDetail_20' ) end [2025-04-01 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:28:22] Production.INFO: ==7685== Releasing lock... [2025-04-01 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:28:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-01 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:29:05 [end_date_ymd] => 2025-04-01 05:29:05 [RateCDR] => 1 ) [2025-04-01 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-01 02:29:05' and `end` < '2025-04-01 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-01 05:29:18] Production.INFO: count ==995 [2025-04-01 05:29:18] Production.ERROR: pbx CDR StartTime 2025-04-01 02:29:05 - End Time 2025-04-01 05:29:05 [2025-04-01 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808706', 'tblTempUsageDetail_20' ) start [2025-04-01 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808706', 'tblTempUsageDetail_20' ) end [2025-04-01 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808706', 'tblTempVendorCDR_20' ) start [2025-04-01 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808706', 'tblTempVendorCDR_20' ) end [2025-04-01 05:29:18] Production.INFO: ProcessCDR(1,14808706,1,1,2) [2025-04-01 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808706', 'tblTempUsageDetail_20' ) start [2025-04-01 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808706', 'tblTempUsageDetail_20' ) end [2025-04-01 05:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:29:22] Production.INFO: ==7796== Releasing lock... [2025-04-01 05:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:29:22] Production.INFO: 37 MB #Memory Used# [2025-04-01 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:30:06 [end_date_ymd] => 2025-04-01 05:30:06 [RateCDR] => 1 ) [2025-04-01 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 02:30:06' and `end` < '2025-04-01 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 05:30:19] Production.INFO: count ==993 [2025-04-01 05:30:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:30:06 - End Time 2025-04-01 05:30:06 [2025-04-01 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808712', 'tblTempUsageDetail_20' ) start [2025-04-01 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808712', 'tblTempUsageDetail_20' ) end [2025-04-01 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808712', 'tblTempVendorCDR_20' ) start [2025-04-01 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808712', 'tblTempVendorCDR_20' ) end [2025-04-01 05:30:19] Production.INFO: ProcessCDR(1,14808712,1,1,2) [2025-04-01 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808712', 'tblTempUsageDetail_20' ) start [2025-04-01 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808712', 'tblTempUsageDetail_20' ) end [2025-04-01 05:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:30:23] Production.INFO: ==7884== Releasing lock... [2025-04-01 05:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:30:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:31:05 [end_date_ymd] => 2025-04-01 05:31:05 [RateCDR] => 1 ) [2025-04-01 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-01 02:31:05' and `end` < '2025-04-01 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-01 05:31:17] Production.INFO: count ==993 [2025-04-01 05:31:18] Production.ERROR: pbx CDR StartTime 2025-04-01 02:31:05 - End Time 2025-04-01 05:31:05 [2025-04-01 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808717', 'tblTempUsageDetail_20' ) start [2025-04-01 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808717', 'tblTempUsageDetail_20' ) end [2025-04-01 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808717', 'tblTempVendorCDR_20' ) start [2025-04-01 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808717', 'tblTempVendorCDR_20' ) end [2025-04-01 05:31:18] Production.INFO: ProcessCDR(1,14808717,1,1,2) [2025-04-01 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808717', 'tblTempUsageDetail_20' ) start [2025-04-01 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808717', 'tblTempUsageDetail_20' ) end [2025-04-01 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:31:22] Production.INFO: ==7957== Releasing lock... [2025-04-01 05:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:31:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 05:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:32:06 [end_date_ymd] => 2025-04-01 05:32:06 [RateCDR] => 1 ) [2025-04-01 05: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-01 02:32:06' and `end` < '2025-04-01 05: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-01 05:32:19] Production.INFO: count ==993 [2025-04-01 05:32:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:32:06 - End Time 2025-04-01 05:32:06 [2025-04-01 05:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808722', 'tblTempUsageDetail_20' ) start [2025-04-01 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808722', 'tblTempUsageDetail_20' ) end [2025-04-01 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808722', 'tblTempVendorCDR_20' ) start [2025-04-01 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808722', 'tblTempVendorCDR_20' ) end [2025-04-01 05:32:19] Production.INFO: ProcessCDR(1,14808722,1,1,2) [2025-04-01 05:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808722', 'tblTempUsageDetail_20' ) start [2025-04-01 05:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808722', 'tblTempUsageDetail_20' ) end [2025-04-01 05:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:32:24] Production.INFO: ==8033== Releasing lock... [2025-04-01 05:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:32:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:33:05 [end_date_ymd] => 2025-04-01 05:33:05 [RateCDR] => 1 ) [2025-04-01 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-01 02:33:05' and `end` < '2025-04-01 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-01 05:33:18] Production.INFO: count ==993 [2025-04-01 05:33:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:33:05 - End Time 2025-04-01 05:33:05 [2025-04-01 05:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808727', 'tblTempUsageDetail_20' ) start [2025-04-01 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808727', 'tblTempUsageDetail_20' ) end [2025-04-01 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808727', 'tblTempVendorCDR_20' ) start [2025-04-01 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808727', 'tblTempVendorCDR_20' ) end [2025-04-01 05:33:19] Production.INFO: ProcessCDR(1,14808727,1,1,2) [2025-04-01 05:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808727', 'tblTempUsageDetail_20' ) start [2025-04-01 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808727', 'tblTempUsageDetail_20' ) end [2025-04-01 05:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:33:22] Production.INFO: ==8105== Releasing lock... [2025-04-01 05:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:33:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 05:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:34:06 [end_date_ymd] => 2025-04-01 05:34:06 [RateCDR] => 1 ) [2025-04-01 05:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 02:34:06' and `end` < '2025-04-01 05:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 05:34:19] Production.INFO: count ==993 [2025-04-01 05:34:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:34:06 - End Time 2025-04-01 05:34:06 [2025-04-01 05:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808732', 'tblTempUsageDetail_20' ) start [2025-04-01 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808732', 'tblTempUsageDetail_20' ) end [2025-04-01 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808732', 'tblTempVendorCDR_20' ) start [2025-04-01 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808732', 'tblTempVendorCDR_20' ) end [2025-04-01 05:34:19] Production.INFO: ProcessCDR(1,14808732,1,1,2) [2025-04-01 05:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808732', 'tblTempUsageDetail_20' ) start [2025-04-01 05:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808732', 'tblTempUsageDetail_20' ) end [2025-04-01 05:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:34:23] Production.INFO: ==8181== Releasing lock... [2025-04-01 05:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:34:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:35:05 [end_date_ymd] => 2025-04-01 05:35:05 [RateCDR] => 1 ) [2025-04-01 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-01 02:35:05' and `end` < '2025-04-01 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-01 05:35:18] Production.INFO: count ==993 [2025-04-01 05:35:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:35:05 - End Time 2025-04-01 05:35:05 [2025-04-01 05:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808737', 'tblTempUsageDetail_20' ) start [2025-04-01 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808737', 'tblTempUsageDetail_20' ) end [2025-04-01 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808737', 'tblTempVendorCDR_20' ) start [2025-04-01 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808737', 'tblTempVendorCDR_20' ) end [2025-04-01 05:35:19] Production.INFO: ProcessCDR(1,14808737,1,1,2) [2025-04-01 05:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808737', 'tblTempUsageDetail_20' ) start [2025-04-01 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808737', 'tblTempUsageDetail_20' ) end [2025-04-01 05:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:35:22] Production.INFO: ==8254== Releasing lock... [2025-04-01 05:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:35:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 05:36:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:36:07 [end_date_ymd] => 2025-04-01 05:36:07 [RateCDR] => 1 ) [2025-04-01 05:36: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-01 02:36:07' and `end` < '2025-04-01 05:36: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-01 05:36:19] Production.INFO: count ==993 [2025-04-01 05:36:20] Production.ERROR: pbx CDR StartTime 2025-04-01 02:36:07 - End Time 2025-04-01 05:36:07 [2025-04-01 05:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808742', 'tblTempUsageDetail_20' ) start [2025-04-01 05:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808742', 'tblTempUsageDetail_20' ) end [2025-04-01 05:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808742', 'tblTempVendorCDR_20' ) start [2025-04-01 05:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808742', 'tblTempVendorCDR_20' ) end [2025-04-01 05:36:20] Production.INFO: ProcessCDR(1,14808742,1,1,2) [2025-04-01 05:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808742', 'tblTempUsageDetail_20' ) start [2025-04-01 05:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808742', 'tblTempUsageDetail_20' ) end [2025-04-01 05:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:36:24] Production.INFO: ==8336== Releasing lock... [2025-04-01 05:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:36:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:37:05 [end_date_ymd] => 2025-04-01 05:37:05 [RateCDR] => 1 ) [2025-04-01 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-01 02:37:05' and `end` < '2025-04-01 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-01 05:37:18] Production.INFO: count ==993 [2025-04-01 05:37:18] Production.ERROR: pbx CDR StartTime 2025-04-01 02:37:05 - End Time 2025-04-01 05:37:05 [2025-04-01 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808747', 'tblTempUsageDetail_20' ) start [2025-04-01 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808747', 'tblTempUsageDetail_20' ) end [2025-04-01 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808747', 'tblTempVendorCDR_20' ) start [2025-04-01 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808747', 'tblTempVendorCDR_20' ) end [2025-04-01 05:37:18] Production.INFO: ProcessCDR(1,14808747,1,1,2) [2025-04-01 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808747', 'tblTempUsageDetail_20' ) start [2025-04-01 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808747', 'tblTempUsageDetail_20' ) end [2025-04-01 05:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:37:22] Production.INFO: ==8406== Releasing lock... [2025-04-01 05:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:37:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 05:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:38:06 [end_date_ymd] => 2025-04-01 05:38:06 [RateCDR] => 1 ) [2025-04-01 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-01 02:38:06' and `end` < '2025-04-01 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-01 05:38:18] Production.INFO: count ==979 [2025-04-01 05:38:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:38:06 - End Time 2025-04-01 05:38:06 [2025-04-01 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808752', 'tblTempUsageDetail_20' ) start [2025-04-01 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808752', 'tblTempUsageDetail_20' ) end [2025-04-01 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808752', 'tblTempVendorCDR_20' ) start [2025-04-01 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808752', 'tblTempVendorCDR_20' ) end [2025-04-01 05:38:19] Production.INFO: ProcessCDR(1,14808752,1,1,2) [2025-04-01 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808752', 'tblTempUsageDetail_20' ) start [2025-04-01 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808752', 'tblTempUsageDetail_20' ) end [2025-04-01 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:38:22] Production.INFO: ==8478== Releasing lock... [2025-04-01 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:38:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-01 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:39:05 [end_date_ymd] => 2025-04-01 05:39:05 [RateCDR] => 1 ) [2025-04-01 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-01 02:39:05' and `end` < '2025-04-01 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-01 05:39:18] Production.INFO: count ==979 [2025-04-01 05:39:18] Production.ERROR: pbx CDR StartTime 2025-04-01 02:39:05 - End Time 2025-04-01 05:39:05 [2025-04-01 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808757', 'tblTempUsageDetail_20' ) start [2025-04-01 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808757', 'tblTempUsageDetail_20' ) end [2025-04-01 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808757', 'tblTempVendorCDR_20' ) start [2025-04-01 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808757', 'tblTempVendorCDR_20' ) end [2025-04-01 05:39:18] Production.INFO: ProcessCDR(1,14808757,1,1,2) [2025-04-01 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808757', 'tblTempUsageDetail_20' ) start [2025-04-01 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808757', 'tblTempUsageDetail_20' ) end [2025-04-01 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:39:22] Production.INFO: ==8548== Releasing lock... [2025-04-01 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:39:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-01 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:40:06 [end_date_ymd] => 2025-04-01 05:40:06 [RateCDR] => 1 ) [2025-04-01 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-01 02:40:06' and `end` < '2025-04-01 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-01 05:40:19] Production.INFO: count ==969 [2025-04-01 05:40:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:40:06 - End Time 2025-04-01 05:40:06 [2025-04-01 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808762', 'tblTempUsageDetail_20' ) start [2025-04-01 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808762', 'tblTempUsageDetail_20' ) end [2025-04-01 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808762', 'tblTempVendorCDR_20' ) start [2025-04-01 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808762', 'tblTempVendorCDR_20' ) end [2025-04-01 05:40:19] Production.INFO: ProcessCDR(1,14808762,1,1,2) [2025-04-01 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808762', 'tblTempUsageDetail_20' ) start [2025-04-01 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808762', 'tblTempUsageDetail_20' ) end [2025-04-01 05:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:40:23] Production.INFO: ==8627== Releasing lock... [2025-04-01 05:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:40:23] Production.INFO: 36 MB #Memory Used# [2025-04-01 05:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:41:06 [end_date_ymd] => 2025-04-01 05:41:06 [RateCDR] => 1 ) [2025-04-01 05:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 02:41:06' and `end` < '2025-04-01 05:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 05:41:18] Production.INFO: count ==968 [2025-04-01 05:41:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:41:06 - End Time 2025-04-01 05:41:06 [2025-04-01 05:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808768', 'tblTempUsageDetail_20' ) start [2025-04-01 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808768', 'tblTempUsageDetail_20' ) end [2025-04-01 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808768', 'tblTempVendorCDR_20' ) start [2025-04-01 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808768', 'tblTempVendorCDR_20' ) end [2025-04-01 05:41:19] Production.INFO: ProcessCDR(1,14808768,1,1,2) [2025-04-01 05:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808768', 'tblTempUsageDetail_20' ) start [2025-04-01 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808768', 'tblTempUsageDetail_20' ) end [2025-04-01 05:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:41:22] Production.INFO: ==8705== Releasing lock... [2025-04-01 05:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:41:22] Production.INFO: 36 MB #Memory Used# [2025-04-01 05:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:42:06 [end_date_ymd] => 2025-04-01 05:42:06 [RateCDR] => 1 ) [2025-04-01 05: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-01 02:42:06' and `end` < '2025-04-01 05: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-01 05:42:18] Production.INFO: count ==968 [2025-04-01 05:42:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:42:06 - End Time 2025-04-01 05:42:06 [2025-04-01 05:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808773', 'tblTempUsageDetail_20' ) start [2025-04-01 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808773', 'tblTempUsageDetail_20' ) end [2025-04-01 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808773', 'tblTempVendorCDR_20' ) start [2025-04-01 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808773', 'tblTempVendorCDR_20' ) end [2025-04-01 05:42:19] Production.INFO: ProcessCDR(1,14808773,1,1,2) [2025-04-01 05:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808773', 'tblTempUsageDetail_20' ) start [2025-04-01 05:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808773', 'tblTempUsageDetail_20' ) end [2025-04-01 05:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:42:23] Production.INFO: ==8779== Releasing lock... [2025-04-01 05:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:42:23] Production.INFO: 36 MB #Memory Used# [2025-04-01 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:43:05 [end_date_ymd] => 2025-04-01 05:43:05 [RateCDR] => 1 ) [2025-04-01 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 02:43:05' and `end` < '2025-04-01 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 05:43:18] Production.INFO: count ==964 [2025-04-01 05:43:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:43:05 - End Time 2025-04-01 05:43:05 [2025-04-01 05:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808778', 'tblTempUsageDetail_20' ) start [2025-04-01 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808778', 'tblTempUsageDetail_20' ) end [2025-04-01 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808778', 'tblTempVendorCDR_20' ) start [2025-04-01 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808778', 'tblTempVendorCDR_20' ) end [2025-04-01 05:43:19] Production.INFO: ProcessCDR(1,14808778,1,1,2) [2025-04-01 05:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808778', 'tblTempUsageDetail_20' ) start [2025-04-01 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808778', 'tblTempUsageDetail_20' ) end [2025-04-01 05:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:43:22] Production.INFO: ==8850== Releasing lock... [2025-04-01 05:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:43:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 05:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:44:06 [end_date_ymd] => 2025-04-01 05:44:06 [RateCDR] => 1 ) [2025-04-01 05:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 02:44:06' and `end` < '2025-04-01 05:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 05:44:18] Production.INFO: count ==956 [2025-04-01 05:44:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:44:06 - End Time 2025-04-01 05:44:06 [2025-04-01 05:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808783', 'tblTempUsageDetail_20' ) start [2025-04-01 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808783', 'tblTempUsageDetail_20' ) end [2025-04-01 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808783', 'tblTempVendorCDR_20' ) start [2025-04-01 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808783', 'tblTempVendorCDR_20' ) end [2025-04-01 05:44:19] Production.INFO: ProcessCDR(1,14808783,1,1,2) [2025-04-01 05:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808783', 'tblTempUsageDetail_20' ) start [2025-04-01 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808783', 'tblTempUsageDetail_20' ) end [2025-04-01 05:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:44:22] Production.INFO: ==8966== Releasing lock... [2025-04-01 05:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:44:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-01 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:45:05 [end_date_ymd] => 2025-04-01 05:45:05 [RateCDR] => 1 ) [2025-04-01 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 02:45:05' and `end` < '2025-04-01 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 05:45:18] Production.INFO: count ==895 [2025-04-01 05:45:18] Production.ERROR: pbx CDR StartTime 2025-04-01 02:45:05 - End Time 2025-04-01 05:45:05 [2025-04-01 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808784', 'tblTempUsageDetail_20' ) start [2025-04-01 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808784', 'tblTempUsageDetail_20' ) end [2025-04-01 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808784', 'tblTempVendorCDR_20' ) start [2025-04-01 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808784', 'tblTempVendorCDR_20' ) end [2025-04-01 05:45:18] Production.INFO: ProcessCDR(1,14808784,1,1,2) [2025-04-01 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808784', 'tblTempUsageDetail_20' ) start [2025-04-01 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808784', 'tblTempUsageDetail_20' ) end [2025-04-01 05:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:45:22] Production.INFO: ==9043== Releasing lock... [2025-04-01 05:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:45:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-01 05:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:46:06 [end_date_ymd] => 2025-04-01 05:46:06 [RateCDR] => 1 ) [2025-04-01 05:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 02:46:06' and `end` < '2025-04-01 05:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 05:46:19] Production.INFO: count ==845 [2025-04-01 05:46:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:46:06 - End Time 2025-04-01 05:46:06 [2025-04-01 05:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808793', 'tblTempUsageDetail_20' ) start [2025-04-01 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808793', 'tblTempUsageDetail_20' ) end [2025-04-01 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808793', 'tblTempVendorCDR_20' ) start [2025-04-01 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808793', 'tblTempVendorCDR_20' ) end [2025-04-01 05:46:19] Production.INFO: ProcessCDR(1,14808793,1,1,2) [2025-04-01 05:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808793', 'tblTempUsageDetail_20' ) start [2025-04-01 05:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808793', 'tblTempUsageDetail_20' ) end [2025-04-01 05:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:46:23] Production.INFO: ==9120== Releasing lock... [2025-04-01 05:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:46:23] Production.INFO: 35 MB #Memory Used# [2025-04-01 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:47:05 [end_date_ymd] => 2025-04-01 05:47:05 [RateCDR] => 1 ) [2025-04-01 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-01 02:47:05' and `end` < '2025-04-01 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-01 05:47:18] Production.INFO: count ==773 [2025-04-01 05:47:18] Production.ERROR: pbx CDR StartTime 2025-04-01 02:47:05 - End Time 2025-04-01 05:47:05 [2025-04-01 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808798', 'tblTempUsageDetail_20' ) start [2025-04-01 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808798', 'tblTempUsageDetail_20' ) end [2025-04-01 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808798', 'tblTempVendorCDR_20' ) start [2025-04-01 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808798', 'tblTempVendorCDR_20' ) end [2025-04-01 05:47:19] Production.INFO: ProcessCDR(1,14808798,1,1,2) [2025-04-01 05:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808798', 'tblTempUsageDetail_20' ) start [2025-04-01 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808798', 'tblTempUsageDetail_20' ) end [2025-04-01 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:47:22] Production.INFO: ==9193== Releasing lock... [2025-04-01 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:47:22] Production.INFO: 34 MB #Memory Used# [2025-04-01 05:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:48:06 [end_date_ymd] => 2025-04-01 05:48:06 [RateCDR] => 1 ) [2025-04-01 05: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-01 02:48:06' and `end` < '2025-04-01 05: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-01 05:48:18] Production.INFO: count ==700 [2025-04-01 05:48:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:48:06 - End Time 2025-04-01 05:48:06 [2025-04-01 05:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808803', 'tblTempUsageDetail_20' ) start [2025-04-01 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808803', 'tblTempUsageDetail_20' ) end [2025-04-01 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808803', 'tblTempVendorCDR_20' ) start [2025-04-01 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808803', 'tblTempVendorCDR_20' ) end [2025-04-01 05:48:19] Production.INFO: ProcessCDR(1,14808803,1,1,2) [2025-04-01 05:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808803', 'tblTempUsageDetail_20' ) start [2025-04-01 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808803', 'tblTempUsageDetail_20' ) end [2025-04-01 05:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:48:22] Production.INFO: ==9269== Releasing lock... [2025-04-01 05:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:48:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 05:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:49:06 [end_date_ymd] => 2025-04-01 05:49:06 [RateCDR] => 1 ) [2025-04-01 05: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-01 02:49:06' and `end` < '2025-04-01 05: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-01 05:49:18] Production.INFO: count ==624 [2025-04-01 05:49:18] Production.ERROR: pbx CDR StartTime 2025-04-01 02:49:06 - End Time 2025-04-01 05:49:06 [2025-04-01 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808808', 'tblTempUsageDetail_20' ) start [2025-04-01 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808808', 'tblTempUsageDetail_20' ) end [2025-04-01 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808808', 'tblTempVendorCDR_20' ) start [2025-04-01 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808808', 'tblTempVendorCDR_20' ) end [2025-04-01 05:49:18] Production.INFO: ProcessCDR(1,14808808,1,1,2) [2025-04-01 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808808', 'tblTempUsageDetail_20' ) start [2025-04-01 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808808', 'tblTempUsageDetail_20' ) end [2025-04-01 05:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:49:22] Production.INFO: ==9349== Releasing lock... [2025-04-01 05:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:49:22] Production.INFO: 33 MB #Memory Used# [2025-04-01 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:50:06 [end_date_ymd] => 2025-04-01 05:50:06 [RateCDR] => 1 ) [2025-04-01 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-01 02:50:06' and `end` < '2025-04-01 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-01 05:50:19] Production.INFO: count ==593 [2025-04-01 05:50:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:50:06 - End Time 2025-04-01 05:50:06 [2025-04-01 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808814', 'tblTempUsageDetail_20' ) start [2025-04-01 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808814', 'tblTempUsageDetail_20' ) end [2025-04-01 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808814', 'tblTempVendorCDR_20' ) start [2025-04-01 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808814', 'tblTempVendorCDR_20' ) end [2025-04-01 05:50:19] Production.INFO: ProcessCDR(1,14808814,1,1,2) [2025-04-01 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808814', 'tblTempUsageDetail_20' ) start [2025-04-01 05:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808814', 'tblTempUsageDetail_20' ) end [2025-04-01 05:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:50:23] Production.INFO: ==9431== Releasing lock... [2025-04-01 05:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:50:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-01 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:51:05 [end_date_ymd] => 2025-04-01 05:51:05 [RateCDR] => 1 ) [2025-04-01 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-01 02:51:05' and `end` < '2025-04-01 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-01 05:51:18] Production.INFO: count ==593 [2025-04-01 05:51:18] Production.ERROR: pbx CDR StartTime 2025-04-01 02:51:05 - End Time 2025-04-01 05:51:05 [2025-04-01 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808819', 'tblTempUsageDetail_20' ) start [2025-04-01 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808819', 'tblTempUsageDetail_20' ) end [2025-04-01 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808819', 'tblTempVendorCDR_20' ) start [2025-04-01 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808819', 'tblTempVendorCDR_20' ) end [2025-04-01 05:51:18] Production.INFO: ProcessCDR(1,14808819,1,1,2) [2025-04-01 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808819', 'tblTempUsageDetail_20' ) start [2025-04-01 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808819', 'tblTempUsageDetail_20' ) end [2025-04-01 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:51:21] Production.INFO: ==9508== Releasing lock... [2025-04-01 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:51:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-01 05:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:52:06 [end_date_ymd] => 2025-04-01 05:52:06 [RateCDR] => 1 ) [2025-04-01 05: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-01 02:52:06' and `end` < '2025-04-01 05: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-01 05:52:18] Production.INFO: count ==588 [2025-04-01 05:52:18] Production.ERROR: pbx CDR StartTime 2025-04-01 02:52:06 - End Time 2025-04-01 05:52:06 [2025-04-01 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808824', 'tblTempUsageDetail_20' ) start [2025-04-01 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808824', 'tblTempUsageDetail_20' ) end [2025-04-01 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808824', 'tblTempVendorCDR_20' ) start [2025-04-01 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808824', 'tblTempVendorCDR_20' ) end [2025-04-01 05:52:18] Production.INFO: ProcessCDR(1,14808824,1,1,2) [2025-04-01 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808824', 'tblTempUsageDetail_20' ) start [2025-04-01 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808824', 'tblTempUsageDetail_20' ) end [2025-04-01 05:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:52:22] Production.INFO: ==9580== Releasing lock... [2025-04-01 05:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:52:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-01 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:53:05 [end_date_ymd] => 2025-04-01 05:53:05 [RateCDR] => 1 ) [2025-04-01 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-01 02:53:05' and `end` < '2025-04-01 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-01 05:53:18] Production.INFO: count ==514 [2025-04-01 05:53:18] Production.ERROR: pbx CDR StartTime 2025-04-01 02:53:05 - End Time 2025-04-01 05:53:05 [2025-04-01 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808829', 'tblTempUsageDetail_20' ) start [2025-04-01 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808829', 'tblTempUsageDetail_20' ) end [2025-04-01 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808829', 'tblTempVendorCDR_20' ) start [2025-04-01 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808829', 'tblTempVendorCDR_20' ) end [2025-04-01 05:53:18] Production.INFO: ProcessCDR(1,14808829,1,1,2) [2025-04-01 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808829', 'tblTempUsageDetail_20' ) start [2025-04-01 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808829', 'tblTempUsageDetail_20' ) end [2025-04-01 05:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:53:22] Production.INFO: ==9660== Releasing lock... [2025-04-01 05:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:53:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-01 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:54:05 [end_date_ymd] => 2025-04-01 05:54:05 [RateCDR] => 1 ) [2025-04-01 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-01 02:54:05' and `end` < '2025-04-01 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-01 05:54:18] Production.INFO: count ==456 [2025-04-01 05:54:18] Production.ERROR: pbx CDR StartTime 2025-04-01 02:54:05 - End Time 2025-04-01 05:54:05 [2025-04-01 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808834', 'tblTempUsageDetail_20' ) start [2025-04-01 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808834', 'tblTempUsageDetail_20' ) end [2025-04-01 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808834', 'tblTempVendorCDR_20' ) start [2025-04-01 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808834', 'tblTempVendorCDR_20' ) end [2025-04-01 05:54:18] Production.INFO: ProcessCDR(1,14808834,1,1,2) [2025-04-01 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808834', 'tblTempUsageDetail_20' ) start [2025-04-01 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808834', 'tblTempUsageDetail_20' ) end [2025-04-01 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:54:21] Production.INFO: ==9736== Releasing lock... [2025-04-01 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:54:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-01 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:55:05 [end_date_ymd] => 2025-04-01 05:55:05 [RateCDR] => 1 ) [2025-04-01 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-01 02:55:05' and `end` < '2025-04-01 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-01 05:55:18] Production.INFO: count ==456 [2025-04-01 05:55:18] Production.ERROR: pbx CDR StartTime 2025-04-01 02:55:05 - End Time 2025-04-01 05:55:05 [2025-04-01 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808839', 'tblTempUsageDetail_20' ) start [2025-04-01 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808839', 'tblTempUsageDetail_20' ) end [2025-04-01 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808839', 'tblTempVendorCDR_20' ) start [2025-04-01 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808839', 'tblTempVendorCDR_20' ) end [2025-04-01 05:55:18] Production.INFO: ProcessCDR(1,14808839,1,1,2) [2025-04-01 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808839', 'tblTempUsageDetail_20' ) start [2025-04-01 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808839', 'tblTempUsageDetail_20' ) end [2025-04-01 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:55:21] Production.INFO: ==9810== Releasing lock... [2025-04-01 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:55:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-01 05:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:56:06 [end_date_ymd] => 2025-04-01 05:56:06 [RateCDR] => 1 ) [2025-04-01 05: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-01 02:56:06' and `end` < '2025-04-01 05: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-01 05:56:18] Production.INFO: count ==443 [2025-04-01 05:56:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:56:06 - End Time 2025-04-01 05:56:06 [2025-04-01 05:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808844', 'tblTempUsageDetail_20' ) start [2025-04-01 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808844', 'tblTempUsageDetail_20' ) end [2025-04-01 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808844', 'tblTempVendorCDR_20' ) start [2025-04-01 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808844', 'tblTempVendorCDR_20' ) end [2025-04-01 05:56:19] Production.INFO: ProcessCDR(1,14808844,1,1,2) [2025-04-01 05:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808844', 'tblTempUsageDetail_20' ) start [2025-04-01 05:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808844', 'tblTempUsageDetail_20' ) end [2025-04-01 05:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:56:24] Production.INFO: ==9888== Releasing lock... [2025-04-01 05:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:56:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-01 05:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:57:04 [end_date_ymd] => 2025-04-01 05:57:04 [RateCDR] => 1 ) [2025-04-01 05:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 02:57:04' and `end` < '2025-04-01 05:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 05:57:17] Production.INFO: count ==373 [2025-04-01 05:57:17] Production.ERROR: pbx CDR StartTime 2025-04-01 02:57:04 - End Time 2025-04-01 05:57:04 [2025-04-01 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808849', 'tblTempUsageDetail_20' ) start [2025-04-01 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808849', 'tblTempUsageDetail_20' ) end [2025-04-01 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808849', 'tblTempVendorCDR_20' ) start [2025-04-01 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808849', 'tblTempVendorCDR_20' ) end [2025-04-01 05:57:17] Production.INFO: ProcessCDR(1,14808849,1,1,2) [2025-04-01 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808849', 'tblTempUsageDetail_20' ) start [2025-04-01 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808849', 'tblTempUsageDetail_20' ) end [2025-04-01 05:57:20] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:57:20] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:57:20] Production.INFO: ==9976== Releasing lock... [2025-04-01 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:57:20] Production.INFO: 31.25 MB #Memory Used# [2025-04-01 05:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:58:06 [end_date_ymd] => 2025-04-01 05:58:06 [RateCDR] => 1 ) [2025-04-01 05: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-01 02:58:06' and `end` < '2025-04-01 05: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-01 05:58:19] Production.INFO: count ==365 [2025-04-01 05:58:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:58:06 - End Time 2025-04-01 05:58:06 [2025-04-01 05:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808854', 'tblTempUsageDetail_20' ) start [2025-04-01 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808854', 'tblTempUsageDetail_20' ) end [2025-04-01 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808854', 'tblTempVendorCDR_20' ) start [2025-04-01 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808854', 'tblTempVendorCDR_20' ) end [2025-04-01 05:58:19] Production.INFO: ProcessCDR(1,14808854,1,1,2) [2025-04-01 05:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808854', 'tblTempUsageDetail_20' ) start [2025-04-01 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808854', 'tblTempUsageDetail_20' ) end [2025-04-01 05:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:58:22] Production.INFO: ==10053== Releasing lock... [2025-04-01 05:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:58:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-01 05:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 02:59:06 [end_date_ymd] => 2025-04-01 05:59:06 [RateCDR] => 1 ) [2025-04-01 05: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-01 02:59:06' and `end` < '2025-04-01 05: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-01 05:59:18] Production.INFO: count ==365 [2025-04-01 05:59:19] Production.ERROR: pbx CDR StartTime 2025-04-01 02:59:06 - End Time 2025-04-01 05:59:06 [2025-04-01 05:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808859', 'tblTempUsageDetail_20' ) start [2025-04-01 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808859', 'tblTempUsageDetail_20' ) end [2025-04-01 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808859', 'tblTempVendorCDR_20' ) start [2025-04-01 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808859', 'tblTempVendorCDR_20' ) end [2025-04-01 05:59:19] Production.INFO: ProcessCDR(1,14808859,1,1,2) [2025-04-01 05:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 05:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808859', 'tblTempUsageDetail_20' ) start [2025-04-01 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808859', 'tblTempUsageDetail_20' ) end [2025-04-01 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 05:59:22] Production.INFO: ==10178== Releasing lock... [2025-04-01 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 05:59:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-01 06:00:08] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:00:08 [end_date_ymd] => 2025-04-01 06:00:08 [RateCDR] => 1 ) [2025-04-01 06:00:08] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 03:00:08' and `end` < '2025-04-01 06:00:08' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 06:00:20] Production.INFO: count ==374 [2025-04-01 06:00:21] Production.ERROR: pbx CDR StartTime 2025-04-01 03:00:08 - End Time 2025-04-01 06:00:08 [2025-04-01 06:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808864', 'tblTempUsageDetail_20' ) start [2025-04-01 06:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808864', 'tblTempUsageDetail_20' ) end [2025-04-01 06:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808864', 'tblTempVendorCDR_20' ) start [2025-04-01 06:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808864', 'tblTempVendorCDR_20' ) end [2025-04-01 06:00:21] Production.INFO: ProcessCDR(1,14808864,1,1,2) [2025-04-01 06:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808864', 'tblTempUsageDetail_20' ) start [2025-04-01 06:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808864', 'tblTempUsageDetail_20' ) end [2025-04-01 06:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:00:25] Production.INFO: ==10301== Releasing lock... [2025-04-01 06:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:00:25] Production.INFO: 31.25 MB #Memory Used# [2025-04-01 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:01:05 [end_date_ymd] => 2025-04-01 06:01:05 [RateCDR] => 1 ) [2025-04-01 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-01 03:01:05' and `end` < '2025-04-01 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-01 06:01:18] Production.INFO: count ==377 [2025-04-01 06:01:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:01:05 - End Time 2025-04-01 06:01:05 [2025-04-01 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808870', 'tblTempUsageDetail_20' ) start [2025-04-01 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808870', 'tblTempUsageDetail_20' ) end [2025-04-01 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808870', 'tblTempVendorCDR_20' ) start [2025-04-01 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808870', 'tblTempVendorCDR_20' ) end [2025-04-01 06:01:18] Production.INFO: ProcessCDR(1,14808870,1,1,2) [2025-04-01 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808870', 'tblTempUsageDetail_20' ) start [2025-04-01 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808870', 'tblTempUsageDetail_20' ) end [2025-04-01 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:01:21] Production.INFO: ==10384== Releasing lock... [2025-04-01 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:01:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-01 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:02:06 [end_date_ymd] => 2025-04-01 06:02:06 [RateCDR] => 1 ) [2025-04-01 06: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-01 03:02:06' and `end` < '2025-04-01 06: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-01 06:02:19] Production.INFO: count ==377 [2025-04-01 06:02:19] Production.ERROR: pbx CDR StartTime 2025-04-01 03:02:06 - End Time 2025-04-01 06:02:06 [2025-04-01 06:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808875', 'tblTempUsageDetail_20' ) start [2025-04-01 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808875', 'tblTempUsageDetail_20' ) end [2025-04-01 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808875', 'tblTempVendorCDR_20' ) start [2025-04-01 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808875', 'tblTempVendorCDR_20' ) end [2025-04-01 06:02:19] Production.INFO: ProcessCDR(1,14808875,1,1,2) [2025-04-01 06:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808875', 'tblTempUsageDetail_20' ) start [2025-04-01 06:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808875', 'tblTempUsageDetail_20' ) end [2025-04-01 06:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:02:23] Production.INFO: ==10463== Releasing lock... [2025-04-01 06:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:02:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-01 06:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:03:06 [end_date_ymd] => 2025-04-01 06:03:06 [RateCDR] => 1 ) [2025-04-01 06: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-01 03:03:06' and `end` < '2025-04-01 06: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-01 06:03:18] Production.INFO: count ==377 [2025-04-01 06:03:19] Production.ERROR: pbx CDR StartTime 2025-04-01 03:03:06 - End Time 2025-04-01 06:03:06 [2025-04-01 06:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808880', 'tblTempUsageDetail_20' ) start [2025-04-01 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808880', 'tblTempUsageDetail_20' ) end [2025-04-01 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808880', 'tblTempVendorCDR_20' ) start [2025-04-01 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808880', 'tblTempVendorCDR_20' ) end [2025-04-01 06:03:19] Production.INFO: ProcessCDR(1,14808880,1,1,2) [2025-04-01 06:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808880', 'tblTempUsageDetail_20' ) start [2025-04-01 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808880', 'tblTempUsageDetail_20' ) end [2025-04-01 06:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:03:22] Production.INFO: ==10542== Releasing lock... [2025-04-01 06:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:03:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-01 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:04:06 [end_date_ymd] => 2025-04-01 06:04:06 [RateCDR] => 1 ) [2025-04-01 06:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 03:04:06' and `end` < '2025-04-01 06:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 06:04:18] Production.INFO: count ==377 [2025-04-01 06:04:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:04:06 - End Time 2025-04-01 06:04:06 [2025-04-01 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808885', 'tblTempUsageDetail_20' ) start [2025-04-01 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808885', 'tblTempUsageDetail_20' ) end [2025-04-01 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808885', 'tblTempVendorCDR_20' ) start [2025-04-01 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808885', 'tblTempVendorCDR_20' ) end [2025-04-01 06:04:18] Production.INFO: ProcessCDR(1,14808885,1,1,2) [2025-04-01 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808885', 'tblTempUsageDetail_20' ) start [2025-04-01 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808885', 'tblTempUsageDetail_20' ) end [2025-04-01 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:04:22] Production.INFO: ==10621== Releasing lock... [2025-04-01 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:04:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-01 06:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:05:06 [end_date_ymd] => 2025-04-01 06:05:06 [RateCDR] => 1 ) [2025-04-01 06: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-01 03:05:06' and `end` < '2025-04-01 06: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-01 06:05:18] Production.INFO: count ==364 [2025-04-01 06:05:19] Production.ERROR: pbx CDR StartTime 2025-04-01 03:05:06 - End Time 2025-04-01 06:05:06 [2025-04-01 06:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808890', 'tblTempUsageDetail_20' ) start [2025-04-01 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808890', 'tblTempUsageDetail_20' ) end [2025-04-01 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808890', 'tblTempVendorCDR_20' ) start [2025-04-01 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808890', 'tblTempVendorCDR_20' ) end [2025-04-01 06:05:19] Production.INFO: ProcessCDR(1,14808890,1,1,2) [2025-04-01 06:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808890', 'tblTempUsageDetail_20' ) start [2025-04-01 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808890', 'tblTempUsageDetail_20' ) end [2025-04-01 06:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:05:22] Production.INFO: ==10699== Releasing lock... [2025-04-01 06:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:05:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-01 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:06:05 [end_date_ymd] => 2025-04-01 06:06:05 [RateCDR] => 1 ) [2025-04-01 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-01 03:06:05' and `end` < '2025-04-01 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-01 06:06:17] Production.INFO: count ==362 [2025-04-01 06:06:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:06:05 - End Time 2025-04-01 06:06:05 [2025-04-01 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808895', 'tblTempUsageDetail_20' ) start [2025-04-01 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808895', 'tblTempUsageDetail_20' ) end [2025-04-01 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808895', 'tblTempVendorCDR_20' ) start [2025-04-01 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808895', 'tblTempVendorCDR_20' ) end [2025-04-01 06:06:18] Production.INFO: ProcessCDR(1,14808895,1,1,2) [2025-04-01 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808895', 'tblTempUsageDetail_20' ) start [2025-04-01 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808895', 'tblTempUsageDetail_20' ) end [2025-04-01 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:06:21] Production.INFO: ==10779== Releasing lock... [2025-04-01 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:06:21] Production.INFO: 31 MB #Memory Used# [2025-04-01 06:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:07:06 [end_date_ymd] => 2025-04-01 06:07:06 [RateCDR] => 1 ) [2025-04-01 06: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-01 03:07:06' and `end` < '2025-04-01 06: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-01 06:07:18] Production.INFO: count ==362 [2025-04-01 06:07:19] Production.ERROR: pbx CDR StartTime 2025-04-01 03:07:06 - End Time 2025-04-01 06:07:06 [2025-04-01 06:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808900', 'tblTempUsageDetail_20' ) start [2025-04-01 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808900', 'tblTempUsageDetail_20' ) end [2025-04-01 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808900', 'tblTempVendorCDR_20' ) start [2025-04-01 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808900', 'tblTempVendorCDR_20' ) end [2025-04-01 06:07:19] Production.INFO: ProcessCDR(1,14808900,1,1,2) [2025-04-01 06:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808900', 'tblTempUsageDetail_20' ) start [2025-04-01 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808900', 'tblTempUsageDetail_20' ) end [2025-04-01 06:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:07:22] Production.INFO: ==10866== Releasing lock... [2025-04-01 06:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:07:22] Production.INFO: 31 MB #Memory Used# [2025-04-01 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:08:05 [end_date_ymd] => 2025-04-01 06:08:05 [RateCDR] => 1 ) [2025-04-01 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 03:08:05' and `end` < '2025-04-01 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 06:08:18] Production.INFO: count ==362 [2025-04-01 06:08:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:08:05 - End Time 2025-04-01 06:08:05 [2025-04-01 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808905', 'tblTempUsageDetail_20' ) start [2025-04-01 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808905', 'tblTempUsageDetail_20' ) end [2025-04-01 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808905', 'tblTempVendorCDR_20' ) start [2025-04-01 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808905', 'tblTempVendorCDR_20' ) end [2025-04-01 06:08:18] Production.INFO: ProcessCDR(1,14808905,1,1,2) [2025-04-01 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808905', 'tblTempUsageDetail_20' ) start [2025-04-01 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808905', 'tblTempUsageDetail_20' ) end [2025-04-01 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:08:22] Production.INFO: ==10948== Releasing lock... [2025-04-01 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:08:22] Production.INFO: 31 MB #Memory Used# [2025-04-01 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:09:05 [end_date_ymd] => 2025-04-01 06:09:05 [RateCDR] => 1 ) [2025-04-01 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-01 03:09:05' and `end` < '2025-04-01 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-01 06:09:18] Production.INFO: count ==362 [2025-04-01 06:09:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:09:05 - End Time 2025-04-01 06:09:05 [2025-04-01 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808910', 'tblTempUsageDetail_20' ) start [2025-04-01 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808910', 'tblTempUsageDetail_20' ) end [2025-04-01 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808910', 'tblTempVendorCDR_20' ) start [2025-04-01 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808910', 'tblTempVendorCDR_20' ) end [2025-04-01 06:09:18] Production.INFO: ProcessCDR(1,14808910,1,1,2) [2025-04-01 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808910', 'tblTempUsageDetail_20' ) start [2025-04-01 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808910', 'tblTempUsageDetail_20' ) end [2025-04-01 06:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:09:22] Production.INFO: ==11039== Releasing lock... [2025-04-01 06:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:09:22] Production.INFO: 31 MB #Memory Used# [2025-04-01 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:10:06 [end_date_ymd] => 2025-04-01 06:10:06 [RateCDR] => 1 ) [2025-04-01 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-01 03:10:06' and `end` < '2025-04-01 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-01 06:10:19] Production.INFO: count ==315 [2025-04-01 06:10:19] Production.ERROR: pbx CDR StartTime 2025-04-01 03:10:06 - End Time 2025-04-01 06:10:06 [2025-04-01 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808916', 'tblTempUsageDetail_20' ) start [2025-04-01 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808916', 'tblTempUsageDetail_20' ) end [2025-04-01 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808916', 'tblTempVendorCDR_20' ) start [2025-04-01 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808916', 'tblTempVendorCDR_20' ) end [2025-04-01 06:10:19] Production.INFO: ProcessCDR(1,14808916,1,1,2) [2025-04-01 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808916', 'tblTempUsageDetail_20' ) start [2025-04-01 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808916', 'tblTempUsageDetail_20' ) end [2025-04-01 06:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:10:23] Production.INFO: ==11126== Releasing lock... [2025-04-01 06:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:10:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-01 06:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:11:06 [end_date_ymd] => 2025-04-01 06:11:06 [RateCDR] => 1 ) [2025-04-01 06: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-01 03:11:06' and `end` < '2025-04-01 06: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-01 06:11:18] Production.INFO: count ==307 [2025-04-01 06:11:19] Production.ERROR: pbx CDR StartTime 2025-04-01 03:11:06 - End Time 2025-04-01 06:11:06 [2025-04-01 06:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808921', 'tblTempUsageDetail_20' ) start [2025-04-01 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808921', 'tblTempUsageDetail_20' ) end [2025-04-01 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808921', 'tblTempVendorCDR_20' ) start [2025-04-01 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808921', 'tblTempVendorCDR_20' ) end [2025-04-01 06:11:19] Production.INFO: ProcessCDR(1,14808921,1,1,2) [2025-04-01 06:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808921', 'tblTempUsageDetail_20' ) start [2025-04-01 06:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808921', 'tblTempUsageDetail_20' ) end [2025-04-01 06:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:11:23] Production.INFO: ==11214== Releasing lock... [2025-04-01 06:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:11:23] Production.INFO: 31 MB #Memory Used# [2025-04-01 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:12:05 [end_date_ymd] => 2025-04-01 06:12:05 [RateCDR] => 1 ) [2025-04-01 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-01 03:12:05' and `end` < '2025-04-01 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-01 06:12:18] Production.INFO: count ==304 [2025-04-01 06:12:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:12:05 - End Time 2025-04-01 06:12:05 [2025-04-01 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808926', 'tblTempUsageDetail_20' ) start [2025-04-01 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808926', 'tblTempUsageDetail_20' ) end [2025-04-01 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808926', 'tblTempVendorCDR_20' ) start [2025-04-01 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808926', 'tblTempVendorCDR_20' ) end [2025-04-01 06:12:18] Production.INFO: ProcessCDR(1,14808926,1,1,2) [2025-04-01 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808926', 'tblTempUsageDetail_20' ) start [2025-04-01 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808926', 'tblTempUsageDetail_20' ) end [2025-04-01 06:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:12:22] Production.INFO: ==11298== Releasing lock... [2025-04-01 06:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:12:22] Production.INFO: 31 MB #Memory Used# [2025-04-01 06:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:13:06 [end_date_ymd] => 2025-04-01 06:13:06 [RateCDR] => 1 ) [2025-04-01 06: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-01 03:13:06' and `end` < '2025-04-01 06: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-01 06:13:18] Production.INFO: count ==301 [2025-04-01 06:13:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:13:06 - End Time 2025-04-01 06:13:06 [2025-04-01 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808931', 'tblTempUsageDetail_20' ) start [2025-04-01 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808931', 'tblTempUsageDetail_20' ) end [2025-04-01 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808931', 'tblTempVendorCDR_20' ) start [2025-04-01 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808931', 'tblTempVendorCDR_20' ) end [2025-04-01 06:13:18] Production.INFO: ProcessCDR(1,14808931,1,1,2) [2025-04-01 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808931', 'tblTempUsageDetail_20' ) start [2025-04-01 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808931', 'tblTempUsageDetail_20' ) end [2025-04-01 06:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:13:22] Production.INFO: ==11379== Releasing lock... [2025-04-01 06:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:13:22] Production.INFO: 31 MB #Memory Used# [2025-04-01 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:14:05 [end_date_ymd] => 2025-04-01 06:14:05 [RateCDR] => 1 ) [2025-04-01 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-01 03:14:05' and `end` < '2025-04-01 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-01 06:14:18] Production.INFO: count ==294 [2025-04-01 06:14:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:14:05 - End Time 2025-04-01 06:14:05 [2025-04-01 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808936', 'tblTempUsageDetail_20' ) start [2025-04-01 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808936', 'tblTempUsageDetail_20' ) end [2025-04-01 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808936', 'tblTempVendorCDR_20' ) start [2025-04-01 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808936', 'tblTempVendorCDR_20' ) end [2025-04-01 06:14:18] Production.INFO: ProcessCDR(1,14808936,1,1,2) [2025-04-01 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808936', 'tblTempUsageDetail_20' ) start [2025-04-01 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808936', 'tblTempUsageDetail_20' ) end [2025-04-01 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:14:22] Production.INFO: ==11466== Releasing lock... [2025-04-01 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:14:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-01 06:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:15:06 [end_date_ymd] => 2025-04-01 06:15:06 [RateCDR] => 1 ) [2025-04-01 06: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-01 03:15:06' and `end` < '2025-04-01 06: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-01 06:15:19] Production.INFO: count ==294 [2025-04-01 06:15:19] Production.ERROR: pbx CDR StartTime 2025-04-01 03:15:06 - End Time 2025-04-01 06:15:06 [2025-04-01 06:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808941', 'tblTempUsageDetail_20' ) start [2025-04-01 06:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808941', 'tblTempUsageDetail_20' ) end [2025-04-01 06:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808941', 'tblTempVendorCDR_20' ) start [2025-04-01 06:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808941', 'tblTempVendorCDR_20' ) end [2025-04-01 06:15:19] Production.INFO: ProcessCDR(1,14808941,1,1,2) [2025-04-01 06:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808941', 'tblTempUsageDetail_20' ) start [2025-04-01 06:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808941', 'tblTempUsageDetail_20' ) end [2025-04-01 06:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:15:23] Production.INFO: ==11595== Releasing lock... [2025-04-01 06:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:15:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-01 06:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:16:06 [end_date_ymd] => 2025-04-01 06:16:06 [RateCDR] => 1 ) [2025-04-01 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-01 03:16:06' and `end` < '2025-04-01 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-01 06:16:19] Production.INFO: count ==279 [2025-04-01 06:16:19] Production.ERROR: pbx CDR StartTime 2025-04-01 03:16:06 - End Time 2025-04-01 06:16:06 [2025-04-01 06:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808946', 'tblTempUsageDetail_20' ) start [2025-04-01 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808946', 'tblTempUsageDetail_20' ) end [2025-04-01 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808946', 'tblTempVendorCDR_20' ) start [2025-04-01 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808946', 'tblTempVendorCDR_20' ) end [2025-04-01 06:16:19] Production.INFO: ProcessCDR(1,14808946,1,1,2) [2025-04-01 06:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808946', 'tblTempUsageDetail_20' ) start [2025-04-01 06:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808946', 'tblTempUsageDetail_20' ) end [2025-04-01 06:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:16:23] Production.INFO: ==11676== Releasing lock... [2025-04-01 06:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:16:23] Production.INFO: 31 MB #Memory Used# [2025-04-01 06:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:17:06 [end_date_ymd] => 2025-04-01 06:17:06 [RateCDR] => 1 ) [2025-04-01 06:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 03:17:06' and `end` < '2025-04-01 06:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 06:17:19] Production.INFO: count ==279 [2025-04-01 06:17:19] Production.ERROR: pbx CDR StartTime 2025-04-01 03:17:06 - End Time 2025-04-01 06:17:06 [2025-04-01 06:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808951', 'tblTempUsageDetail_20' ) start [2025-04-01 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808951', 'tblTempUsageDetail_20' ) end [2025-04-01 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808951', 'tblTempVendorCDR_20' ) start [2025-04-01 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808951', 'tblTempVendorCDR_20' ) end [2025-04-01 06:17:19] Production.INFO: ProcessCDR(1,14808951,1,1,2) [2025-04-01 06:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808951', 'tblTempUsageDetail_20' ) start [2025-04-01 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808951', 'tblTempUsageDetail_20' ) end [2025-04-01 06:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:17:22] Production.INFO: ==11767== Releasing lock... [2025-04-01 06:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:17:22] Production.INFO: 31 MB #Memory Used# [2025-04-01 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:18:05 [end_date_ymd] => 2025-04-01 06:18:05 [RateCDR] => 1 ) [2025-04-01 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-01 03:18:05' and `end` < '2025-04-01 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-01 06:18:18] Production.INFO: count ==279 [2025-04-01 06:18:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:18:05 - End Time 2025-04-01 06:18:05 [2025-04-01 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808956', 'tblTempUsageDetail_20' ) start [2025-04-01 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808956', 'tblTempUsageDetail_20' ) end [2025-04-01 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808956', 'tblTempVendorCDR_20' ) start [2025-04-01 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808956', 'tblTempVendorCDR_20' ) end [2025-04-01 06:18:18] Production.INFO: ProcessCDR(1,14808956,1,1,2) [2025-04-01 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808956', 'tblTempUsageDetail_20' ) start [2025-04-01 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808956', 'tblTempUsageDetail_20' ) end [2025-04-01 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:18:21] Production.INFO: ==11858== Releasing lock... [2025-04-01 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:18:21] Production.INFO: 31 MB #Memory Used# [2025-04-01 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:19:05 [end_date_ymd] => 2025-04-01 06:19:05 [RateCDR] => 1 ) [2025-04-01 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 03:19:05' and `end` < '2025-04-01 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 06:19:18] Production.INFO: count ==266 [2025-04-01 06:19:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:19:05 - End Time 2025-04-01 06:19:05 [2025-04-01 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808961', 'tblTempUsageDetail_20' ) start [2025-04-01 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808961', 'tblTempUsageDetail_20' ) end [2025-04-01 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808961', 'tblTempVendorCDR_20' ) start [2025-04-01 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808961', 'tblTempVendorCDR_20' ) end [2025-04-01 06:19:18] Production.INFO: ProcessCDR(1,14808961,1,1,2) [2025-04-01 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808961', 'tblTempUsageDetail_20' ) start [2025-04-01 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808961', 'tblTempUsageDetail_20' ) end [2025-04-01 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:19:21] Production.INFO: ==11941== Releasing lock... [2025-04-01 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:19:21] Production.INFO: 31 MB #Memory Used# [2025-04-01 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:20:06 [end_date_ymd] => 2025-04-01 06:20:06 [RateCDR] => 1 ) [2025-04-01 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-01 03:20:06' and `end` < '2025-04-01 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-01 06:20:19] Production.INFO: count ==258 [2025-04-01 06:20:19] Production.ERROR: pbx CDR StartTime 2025-04-01 03:20:06 - End Time 2025-04-01 06:20:06 [2025-04-01 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808966', 'tblTempUsageDetail_20' ) start [2025-04-01 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808966', 'tblTempUsageDetail_20' ) end [2025-04-01 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808966', 'tblTempVendorCDR_20' ) start [2025-04-01 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808966', 'tblTempVendorCDR_20' ) end [2025-04-01 06:20:19] Production.INFO: ProcessCDR(1,14808966,1,1,2) [2025-04-01 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808966', 'tblTempUsageDetail_20' ) start [2025-04-01 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808966', 'tblTempUsageDetail_20' ) end [2025-04-01 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:20:22] Production.INFO: ==12023== Releasing lock... [2025-04-01 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:20:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-01 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:21:05 [end_date_ymd] => 2025-04-01 06:21:05 [RateCDR] => 1 ) [2025-04-01 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-01 03:21:05' and `end` < '2025-04-01 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-01 06:21:18] Production.INFO: count ==252 [2025-04-01 06:21:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:21:05 - End Time 2025-04-01 06:21:05 [2025-04-01 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808972', 'tblTempUsageDetail_20' ) start [2025-04-01 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808972', 'tblTempUsageDetail_20' ) end [2025-04-01 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808972', 'tblTempVendorCDR_20' ) start [2025-04-01 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808972', 'tblTempVendorCDR_20' ) end [2025-04-01 06:21:18] Production.INFO: ProcessCDR(1,14808972,1,1,2) [2025-04-01 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808972', 'tblTempUsageDetail_20' ) start [2025-04-01 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808972', 'tblTempUsageDetail_20' ) end [2025-04-01 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:21:21] Production.INFO: ==12114== Releasing lock... [2025-04-01 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:21:21] Production.INFO: 30 MB #Memory Used# [2025-04-01 06:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:22:06 [end_date_ymd] => 2025-04-01 06:22:06 [RateCDR] => 1 ) [2025-04-01 06:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 03:22:06' and `end` < '2025-04-01 06:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 06:22:18] Production.INFO: count ==252 [2025-04-01 06:22:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:22:06 - End Time 2025-04-01 06:22:06 [2025-04-01 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808977', 'tblTempUsageDetail_20' ) start [2025-04-01 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808977', 'tblTempUsageDetail_20' ) end [2025-04-01 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808977', 'tblTempVendorCDR_20' ) start [2025-04-01 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808977', 'tblTempVendorCDR_20' ) end [2025-04-01 06:22:18] Production.INFO: ProcessCDR(1,14808977,1,1,2) [2025-04-01 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808977', 'tblTempUsageDetail_20' ) start [2025-04-01 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808977', 'tblTempUsageDetail_20' ) end [2025-04-01 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:22:22] Production.INFO: ==12196== Releasing lock... [2025-04-01 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:22:22] Production.INFO: 30 MB #Memory Used# [2025-04-01 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:23:05 [end_date_ymd] => 2025-04-01 06:23:05 [RateCDR] => 1 ) [2025-04-01 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-01 03:23:05' and `end` < '2025-04-01 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-01 06:23:18] Production.INFO: count ==252 [2025-04-01 06:23:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:23:05 - End Time 2025-04-01 06:23:05 [2025-04-01 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808982', 'tblTempUsageDetail_20' ) start [2025-04-01 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808982', 'tblTempUsageDetail_20' ) end [2025-04-01 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808982', 'tblTempVendorCDR_20' ) start [2025-04-01 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808982', 'tblTempVendorCDR_20' ) end [2025-04-01 06:23:18] Production.INFO: ProcessCDR(1,14808982,1,1,2) [2025-04-01 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808982', 'tblTempUsageDetail_20' ) start [2025-04-01 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808982', 'tblTempUsageDetail_20' ) end [2025-04-01 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:23:21] Production.INFO: ==12280== Releasing lock... [2025-04-01 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:23:21] Production.INFO: 30 MB #Memory Used# [2025-04-01 06:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:24:06 [end_date_ymd] => 2025-04-01 06:24:06 [RateCDR] => 1 ) [2025-04-01 06:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 03:24:06' and `end` < '2025-04-01 06:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 06:24:19] Production.INFO: count ==252 [2025-04-01 06:24:19] Production.ERROR: pbx CDR StartTime 2025-04-01 03:24:06 - End Time 2025-04-01 06:24:06 [2025-04-01 06:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808987', 'tblTempUsageDetail_20' ) start [2025-04-01 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808987', 'tblTempUsageDetail_20' ) end [2025-04-01 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808987', 'tblTempVendorCDR_20' ) start [2025-04-01 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808987', 'tblTempVendorCDR_20' ) end [2025-04-01 06:24:19] Production.INFO: ProcessCDR(1,14808987,1,1,2) [2025-04-01 06:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808987', 'tblTempUsageDetail_20' ) start [2025-04-01 06:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808987', 'tblTempUsageDetail_20' ) end [2025-04-01 06:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:24:23] Production.INFO: ==12372== Releasing lock... [2025-04-01 06:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:24:23] Production.INFO: 30 MB #Memory Used# [2025-04-01 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:25:05 [end_date_ymd] => 2025-04-01 06:25:05 [RateCDR] => 1 ) [2025-04-01 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-01 03:25:05' and `end` < '2025-04-01 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-01 06:25:18] Production.INFO: count ==252 [2025-04-01 06:25:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:25:05 - End Time 2025-04-01 06:25:05 [2025-04-01 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808992', 'tblTempUsageDetail_20' ) start [2025-04-01 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808992', 'tblTempUsageDetail_20' ) end [2025-04-01 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808992', 'tblTempVendorCDR_20' ) start [2025-04-01 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808992', 'tblTempVendorCDR_20' ) end [2025-04-01 06:25:18] Production.INFO: ProcessCDR(1,14808992,1,1,2) [2025-04-01 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808992', 'tblTempUsageDetail_20' ) start [2025-04-01 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808992', 'tblTempUsageDetail_20' ) end [2025-04-01 06:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:25:22] Production.INFO: ==12462== Releasing lock... [2025-04-01 06:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:25:22] Production.INFO: 30 MB #Memory Used# [2025-04-01 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:26:05 [end_date_ymd] => 2025-04-01 06:26:05 [RateCDR] => 1 ) [2025-04-01 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-01 03:26:05' and `end` < '2025-04-01 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-01 06:26:17] Production.INFO: count ==252 [2025-04-01 06:26:17] Production.ERROR: pbx CDR StartTime 2025-04-01 03:26:05 - End Time 2025-04-01 06:26:05 [2025-04-01 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808997', 'tblTempUsageDetail_20' ) start [2025-04-01 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14808997', 'tblTempUsageDetail_20' ) end [2025-04-01 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808997', 'tblTempVendorCDR_20' ) start [2025-04-01 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14808997', 'tblTempVendorCDR_20' ) end [2025-04-01 06:26:17] Production.INFO: ProcessCDR(1,14808997,1,1,2) [2025-04-01 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14808997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14808997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14808997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14808997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808997', 'tblTempUsageDetail_20' ) start [2025-04-01 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14808997', 'tblTempUsageDetail_20' ) end [2025-04-01 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:26:21] Production.INFO: ==12550== Releasing lock... [2025-04-01 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:26:21] Production.INFO: 30 MB #Memory Used# [2025-04-01 06:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:27:06 [end_date_ymd] => 2025-04-01 06:27:06 [RateCDR] => 1 ) [2025-04-01 06: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-01 03:27:06' and `end` < '2025-04-01 06: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-01 06:27:18] Production.INFO: count ==252 [2025-04-01 06:27:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:27:06 - End Time 2025-04-01 06:27:06 [2025-04-01 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809002', 'tblTempUsageDetail_20' ) start [2025-04-01 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809002', 'tblTempUsageDetail_20' ) end [2025-04-01 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809002', 'tblTempVendorCDR_20' ) start [2025-04-01 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809002', 'tblTempVendorCDR_20' ) end [2025-04-01 06:27:18] Production.INFO: ProcessCDR(1,14809002,1,1,2) [2025-04-01 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809002', 'tblTempUsageDetail_20' ) start [2025-04-01 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809002', 'tblTempUsageDetail_20' ) end [2025-04-01 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:27:22] Production.INFO: ==12661== Releasing lock... [2025-04-01 06:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:27:22] Production.INFO: 30 MB #Memory Used# [2025-04-01 06:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:28:06 [end_date_ymd] => 2025-04-01 06:28:06 [RateCDR] => 1 ) [2025-04-01 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-01 03:28:06' and `end` < '2025-04-01 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-01 06:28:18] Production.INFO: count ==252 [2025-04-01 06:28:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:28:06 - End Time 2025-04-01 06:28:06 [2025-04-01 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809007', 'tblTempUsageDetail_20' ) start [2025-04-01 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809007', 'tblTempUsageDetail_20' ) end [2025-04-01 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809007', 'tblTempVendorCDR_20' ) start [2025-04-01 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809007', 'tblTempVendorCDR_20' ) end [2025-04-01 06:28:18] Production.INFO: ProcessCDR(1,14809007,1,1,2) [2025-04-01 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809007', 'tblTempUsageDetail_20' ) start [2025-04-01 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809007', 'tblTempUsageDetail_20' ) end [2025-04-01 06:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:28:22] Production.INFO: ==12746== Releasing lock... [2025-04-01 06:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:28:22] Production.INFO: 30 MB #Memory Used# [2025-04-01 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:29:05 [end_date_ymd] => 2025-04-01 06:29:05 [RateCDR] => 1 ) [2025-04-01 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-01 03:29:05' and `end` < '2025-04-01 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-01 06:29:18] Production.INFO: count ==252 [2025-04-01 06:29:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:29:05 - End Time 2025-04-01 06:29:05 [2025-04-01 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809012', 'tblTempUsageDetail_20' ) start [2025-04-01 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809012', 'tblTempUsageDetail_20' ) end [2025-04-01 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809012', 'tblTempVendorCDR_20' ) start [2025-04-01 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809012', 'tblTempVendorCDR_20' ) end [2025-04-01 06:29:18] Production.INFO: ProcessCDR(1,14809012,1,1,2) [2025-04-01 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809012', 'tblTempUsageDetail_20' ) start [2025-04-01 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809012', 'tblTempUsageDetail_20' ) end [2025-04-01 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:29:21] Production.INFO: ==12835== Releasing lock... [2025-04-01 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:29:21] Production.INFO: 30 MB #Memory Used# [2025-04-01 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:30:06 [end_date_ymd] => 2025-04-01 06:30:06 [RateCDR] => 1 ) [2025-04-01 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 03:30:06' and `end` < '2025-04-01 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 06:30:19] Production.INFO: count ==254 [2025-04-01 06:30:19] Production.ERROR: pbx CDR StartTime 2025-04-01 03:30:06 - End Time 2025-04-01 06:30:06 [2025-04-01 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809017', 'tblTempUsageDetail_20' ) start [2025-04-01 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809017', 'tblTempUsageDetail_20' ) end [2025-04-01 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809017', 'tblTempVendorCDR_20' ) start [2025-04-01 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809017', 'tblTempVendorCDR_20' ) end [2025-04-01 06:30:19] Production.INFO: ProcessCDR(1,14809017,1,1,2) [2025-04-01 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809017', 'tblTempUsageDetail_20' ) start [2025-04-01 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809017', 'tblTempUsageDetail_20' ) end [2025-04-01 06:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:30:23] Production.INFO: ==12914== Releasing lock... [2025-04-01 06:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:30:23] Production.INFO: 30 MB #Memory Used# [2025-04-01 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:31:05 [end_date_ymd] => 2025-04-01 06:31:05 [RateCDR] => 1 ) [2025-04-01 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-01 03:31:05' and `end` < '2025-04-01 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-01 06:31:18] Production.INFO: count ==254 [2025-04-01 06:31:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:31:05 - End Time 2025-04-01 06:31:05 [2025-04-01 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809023', 'tblTempUsageDetail_20' ) start [2025-04-01 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809023', 'tblTempUsageDetail_20' ) end [2025-04-01 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809023', 'tblTempVendorCDR_20' ) start [2025-04-01 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809023', 'tblTempVendorCDR_20' ) end [2025-04-01 06:31:18] Production.INFO: ProcessCDR(1,14809023,1,1,2) [2025-04-01 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809023', 'tblTempUsageDetail_20' ) start [2025-04-01 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809023', 'tblTempUsageDetail_20' ) end [2025-04-01 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:31:21] Production.INFO: ==13042== Releasing lock... [2025-04-01 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:31:21] Production.INFO: 30 MB #Memory Used# [2025-04-01 06:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:32:06 [end_date_ymd] => 2025-04-01 06:32:06 [RateCDR] => 1 ) [2025-04-01 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-01 03:32:06' and `end` < '2025-04-01 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-01 06:32:19] Production.INFO: count ==254 [2025-04-01 06:32:19] Production.ERROR: pbx CDR StartTime 2025-04-01 03:32:06 - End Time 2025-04-01 06:32:06 [2025-04-01 06:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809028', 'tblTempUsageDetail_20' ) start [2025-04-01 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809028', 'tblTempUsageDetail_20' ) end [2025-04-01 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809028', 'tblTempVendorCDR_20' ) start [2025-04-01 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809028', 'tblTempVendorCDR_20' ) end [2025-04-01 06:32:19] Production.INFO: ProcessCDR(1,14809028,1,1,2) [2025-04-01 06:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809028', 'tblTempUsageDetail_20' ) start [2025-04-01 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809028', 'tblTempUsageDetail_20' ) end [2025-04-01 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:32:22] Production.INFO: ==13128== Releasing lock... [2025-04-01 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:32:22] Production.INFO: 30 MB #Memory Used# [2025-04-01 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:33:05 [end_date_ymd] => 2025-04-01 06:33:05 [RateCDR] => 1 ) [2025-04-01 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 03:33:05' and `end` < '2025-04-01 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 06:33:18] Production.INFO: count ==254 [2025-04-01 06:33:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:33:05 - End Time 2025-04-01 06:33:05 [2025-04-01 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809033', 'tblTempUsageDetail_20' ) start [2025-04-01 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809033', 'tblTempUsageDetail_20' ) end [2025-04-01 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809033', 'tblTempVendorCDR_20' ) start [2025-04-01 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809033', 'tblTempVendorCDR_20' ) end [2025-04-01 06:33:18] Production.INFO: ProcessCDR(1,14809033,1,1,2) [2025-04-01 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809033', 'tblTempUsageDetail_20' ) start [2025-04-01 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809033', 'tblTempUsageDetail_20' ) end [2025-04-01 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:33:21] Production.INFO: ==13208== Releasing lock... [2025-04-01 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:33:21] Production.INFO: 30 MB #Memory Used# [2025-04-01 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:34:05 [end_date_ymd] => 2025-04-01 06:34:05 [RateCDR] => 1 ) [2025-04-01 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 03:34:05' and `end` < '2025-04-01 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 06:34:18] Production.INFO: count ==254 [2025-04-01 06:34:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:34:05 - End Time 2025-04-01 06:34:05 [2025-04-01 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809038', 'tblTempUsageDetail_20' ) start [2025-04-01 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809038', 'tblTempUsageDetail_20' ) end [2025-04-01 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809038', 'tblTempVendorCDR_20' ) start [2025-04-01 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809038', 'tblTempVendorCDR_20' ) end [2025-04-01 06:34:18] Production.INFO: ProcessCDR(1,14809038,1,1,2) [2025-04-01 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809038', 'tblTempUsageDetail_20' ) start [2025-04-01 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809038', 'tblTempUsageDetail_20' ) end [2025-04-01 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:34:21] Production.INFO: ==13300== Releasing lock... [2025-04-01 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:34:21] Production.INFO: 30 MB #Memory Used# [2025-04-01 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:35:05 [end_date_ymd] => 2025-04-01 06:35:05 [RateCDR] => 1 ) [2025-04-01 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-01 03:35:05' and `end` < '2025-04-01 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-01 06:35:17] Production.INFO: count ==254 [2025-04-01 06:35:17] Production.ERROR: pbx CDR StartTime 2025-04-01 03:35:05 - End Time 2025-04-01 06:35:05 [2025-04-01 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809043', 'tblTempUsageDetail_20' ) start [2025-04-01 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809043', 'tblTempUsageDetail_20' ) end [2025-04-01 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809043', 'tblTempVendorCDR_20' ) start [2025-04-01 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809043', 'tblTempVendorCDR_20' ) end [2025-04-01 06:35:17] Production.INFO: ProcessCDR(1,14809043,1,1,2) [2025-04-01 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809043', 'tblTempUsageDetail_20' ) start [2025-04-01 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809043', 'tblTempUsageDetail_20' ) end [2025-04-01 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:35:21] Production.INFO: ==13386== Releasing lock... [2025-04-01 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:35:21] Production.INFO: 30 MB #Memory Used# [2025-04-01 06:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:36:06 [end_date_ymd] => 2025-04-01 06:36:06 [RateCDR] => 1 ) [2025-04-01 06: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-01 03:36:06' and `end` < '2025-04-01 06: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-01 06:36:18] Production.INFO: count ==254 [2025-04-01 06:36:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:36:06 - End Time 2025-04-01 06:36:06 [2025-04-01 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809048', 'tblTempUsageDetail_20' ) start [2025-04-01 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809048', 'tblTempUsageDetail_20' ) end [2025-04-01 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809048', 'tblTempVendorCDR_20' ) start [2025-04-01 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809048', 'tblTempVendorCDR_20' ) end [2025-04-01 06:36:18] Production.INFO: ProcessCDR(1,14809048,1,1,2) [2025-04-01 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809048', 'tblTempUsageDetail_20' ) start [2025-04-01 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809048', 'tblTempUsageDetail_20' ) end [2025-04-01 06:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:36:22] Production.INFO: ==13469== Releasing lock... [2025-04-01 06:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:36:22] Production.INFO: 30 MB #Memory Used# [2025-04-01 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:37:05 [end_date_ymd] => 2025-04-01 06:37:05 [RateCDR] => 1 ) [2025-04-01 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-01 03:37:05' and `end` < '2025-04-01 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-01 06:37:17] Production.INFO: count ==254 [2025-04-01 06:37:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:37:05 - End Time 2025-04-01 06:37:05 [2025-04-01 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809053', 'tblTempUsageDetail_20' ) start [2025-04-01 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809053', 'tblTempUsageDetail_20' ) end [2025-04-01 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809053', 'tblTempVendorCDR_20' ) start [2025-04-01 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809053', 'tblTempVendorCDR_20' ) end [2025-04-01 06:37:18] Production.INFO: ProcessCDR(1,14809053,1,1,2) [2025-04-01 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809053', 'tblTempUsageDetail_20' ) start [2025-04-01 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809053', 'tblTempUsageDetail_20' ) end [2025-04-01 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:37:21] Production.INFO: ==13555== Releasing lock... [2025-04-01 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:37:21] Production.INFO: 30 MB #Memory Used# [2025-04-01 06:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:38:06 [end_date_ymd] => 2025-04-01 06:38:06 [RateCDR] => 1 ) [2025-04-01 06: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-01 03:38:06' and `end` < '2025-04-01 06: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-01 06:38:18] Production.INFO: count ==254 [2025-04-01 06:38:19] Production.ERROR: pbx CDR StartTime 2025-04-01 03:38:06 - End Time 2025-04-01 06:38:06 [2025-04-01 06:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809058', 'tblTempUsageDetail_20' ) start [2025-04-01 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809058', 'tblTempUsageDetail_20' ) end [2025-04-01 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809058', 'tblTempVendorCDR_20' ) start [2025-04-01 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809058', 'tblTempVendorCDR_20' ) end [2025-04-01 06:38:19] Production.INFO: ProcessCDR(1,14809058,1,1,2) [2025-04-01 06:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809058', 'tblTempUsageDetail_20' ) start [2025-04-01 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809058', 'tblTempUsageDetail_20' ) end [2025-04-01 06:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:38:22] Production.INFO: ==13646== Releasing lock... [2025-04-01 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:38:22] Production.INFO: 30 MB #Memory Used# [2025-04-01 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:39:05 [end_date_ymd] => 2025-04-01 06:39:05 [RateCDR] => 1 ) [2025-04-01 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 03:39:05' and `end` < '2025-04-01 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 06:39:17] Production.INFO: count ==254 [2025-04-01 06:39:17] Production.ERROR: pbx CDR StartTime 2025-04-01 03:39:05 - End Time 2025-04-01 06:39:05 [2025-04-01 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809063', 'tblTempUsageDetail_20' ) start [2025-04-01 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809063', 'tblTempUsageDetail_20' ) end [2025-04-01 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809063', 'tblTempVendorCDR_20' ) start [2025-04-01 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809063', 'tblTempVendorCDR_20' ) end [2025-04-01 06:39:17] Production.INFO: ProcessCDR(1,14809063,1,1,2) [2025-04-01 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809063', 'tblTempUsageDetail_20' ) start [2025-04-01 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809063', 'tblTempUsageDetail_20' ) end [2025-04-01 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:39:21] Production.INFO: ==13727== Releasing lock... [2025-04-01 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:39:21] Production.INFO: 30 MB #Memory Used# [2025-04-01 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:40:06 [end_date_ymd] => 2025-04-01 06:40:06 [RateCDR] => 1 ) [2025-04-01 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-01 03:40:06' and `end` < '2025-04-01 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-01 06:40:18] Production.INFO: count ==254 [2025-04-01 06:40:19] Production.ERROR: pbx CDR StartTime 2025-04-01 03:40:06 - End Time 2025-04-01 06:40:06 [2025-04-01 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809068', 'tblTempUsageDetail_20' ) start [2025-04-01 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809068', 'tblTempUsageDetail_20' ) end [2025-04-01 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809068', 'tblTempVendorCDR_20' ) start [2025-04-01 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809068', 'tblTempVendorCDR_20' ) end [2025-04-01 06:40:19] Production.INFO: ProcessCDR(1,14809068,1,1,2) [2025-04-01 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809068', 'tblTempUsageDetail_20' ) start [2025-04-01 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809068', 'tblTempUsageDetail_20' ) end [2025-04-01 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:40:22] Production.INFO: ==13813== Releasing lock... [2025-04-01 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:40:22] Production.INFO: 30 MB #Memory Used# [2025-04-01 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:41:05 [end_date_ymd] => 2025-04-01 06:41:05 [RateCDR] => 1 ) [2025-04-01 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-01 03:41:05' and `end` < '2025-04-01 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-01 06:41:18] Production.INFO: count ==254 [2025-04-01 06:41:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:41:05 - End Time 2025-04-01 06:41:05 [2025-04-01 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809074', 'tblTempUsageDetail_20' ) start [2025-04-01 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809074', 'tblTempUsageDetail_20' ) end [2025-04-01 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809074', 'tblTempVendorCDR_20' ) start [2025-04-01 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809074', 'tblTempVendorCDR_20' ) end [2025-04-01 06:41:18] Production.INFO: ProcessCDR(1,14809074,1,1,2) [2025-04-01 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809074', 'tblTempUsageDetail_20' ) start [2025-04-01 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809074', 'tblTempUsageDetail_20' ) end [2025-04-01 06:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:41:22] Production.INFO: ==13906== Releasing lock... [2025-04-01 06:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:41:22] Production.INFO: 30 MB #Memory Used# [2025-04-01 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:42:05 [end_date_ymd] => 2025-04-01 06:42:05 [RateCDR] => 1 ) [2025-04-01 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-01 03:42:05' and `end` < '2025-04-01 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-01 06:42:18] Production.INFO: count ==254 [2025-04-01 06:42:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:42:05 - End Time 2025-04-01 06:42:05 [2025-04-01 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809079', 'tblTempUsageDetail_20' ) start [2025-04-01 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809079', 'tblTempUsageDetail_20' ) end [2025-04-01 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809079', 'tblTempVendorCDR_20' ) start [2025-04-01 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809079', 'tblTempVendorCDR_20' ) end [2025-04-01 06:42:18] Production.INFO: ProcessCDR(1,14809079,1,1,2) [2025-04-01 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809079', 'tblTempUsageDetail_20' ) start [2025-04-01 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809079', 'tblTempUsageDetail_20' ) end [2025-04-01 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:42:21] Production.INFO: ==13992== Releasing lock... [2025-04-01 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:42:21] Production.INFO: 30 MB #Memory Used# [2025-04-01 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:43:05 [end_date_ymd] => 2025-04-01 06:43:05 [RateCDR] => 1 ) [2025-04-01 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-01 03:43:05' and `end` < '2025-04-01 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-01 06:43:18] Production.INFO: count ==254 [2025-04-01 06:43:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:43:05 - End Time 2025-04-01 06:43:05 [2025-04-01 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809084', 'tblTempUsageDetail_20' ) start [2025-04-01 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809084', 'tblTempUsageDetail_20' ) end [2025-04-01 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809084', 'tblTempVendorCDR_20' ) start [2025-04-01 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809084', 'tblTempVendorCDR_20' ) end [2025-04-01 06:43:18] Production.INFO: ProcessCDR(1,14809084,1,1,2) [2025-04-01 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809084', 'tblTempUsageDetail_20' ) start [2025-04-01 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809084', 'tblTempUsageDetail_20' ) end [2025-04-01 06:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:43:22] Production.INFO: ==14089== Releasing lock... [2025-04-01 06:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:43:22] Production.INFO: 30 MB #Memory Used# [2025-04-01 06:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:44:06 [end_date_ymd] => 2025-04-01 06:44:06 [RateCDR] => 1 ) [2025-04-01 06: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-01 03:44:06' and `end` < '2025-04-01 06: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-01 06:44:18] Production.INFO: count ==201 [2025-04-01 06:44:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:44:06 - End Time 2025-04-01 06:44:06 [2025-04-01 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809089', 'tblTempUsageDetail_20' ) start [2025-04-01 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809089', 'tblTempUsageDetail_20' ) end [2025-04-01 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809089', 'tblTempVendorCDR_20' ) start [2025-04-01 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809089', 'tblTempVendorCDR_20' ) end [2025-04-01 06:44:18] Production.INFO: ProcessCDR(1,14809089,1,1,2) [2025-04-01 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809089', 'tblTempUsageDetail_20' ) start [2025-04-01 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809089', 'tblTempUsageDetail_20' ) end [2025-04-01 06:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:44:22] Production.INFO: ==14177== Releasing lock... [2025-04-01 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:44:22] Production.INFO: 30 MB #Memory Used# [2025-04-01 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:45:05 [end_date_ymd] => 2025-04-01 06:45:05 [RateCDR] => 1 ) [2025-04-01 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-01 03:45:05' and `end` < '2025-04-01 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-01 06:45:17] Production.INFO: count ==172 [2025-04-01 06:45:17] Production.ERROR: pbx CDR StartTime 2025-04-01 03:45:05 - End Time 2025-04-01 06:45:05 [2025-04-01 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809094', 'tblTempUsageDetail_20' ) start [2025-04-01 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809094', 'tblTempUsageDetail_20' ) end [2025-04-01 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809094', 'tblTempVendorCDR_20' ) start [2025-04-01 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809094', 'tblTempVendorCDR_20' ) end [2025-04-01 06:45:17] Production.INFO: ProcessCDR(1,14809094,1,1,2) [2025-04-01 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809094', 'tblTempUsageDetail_20' ) start [2025-04-01 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809094', 'tblTempUsageDetail_20' ) end [2025-04-01 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:45:21] Production.INFO: ==14262== Releasing lock... [2025-04-01 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:45:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-01 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:46:05 [end_date_ymd] => 2025-04-01 06:46:05 [RateCDR] => 1 ) [2025-04-01 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 03:46:05' and `end` < '2025-04-01 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 06:46:18] Production.INFO: count ==172 [2025-04-01 06:46:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:46:05 - End Time 2025-04-01 06:46:05 [2025-04-01 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809099', 'tblTempUsageDetail_20' ) start [2025-04-01 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809099', 'tblTempUsageDetail_20' ) end [2025-04-01 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809099', 'tblTempVendorCDR_20' ) start [2025-04-01 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809099', 'tblTempVendorCDR_20' ) end [2025-04-01 06:46:18] Production.INFO: ProcessCDR(1,14809099,1,1,2) [2025-04-01 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809099', 'tblTempUsageDetail_20' ) start [2025-04-01 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809099', 'tblTempUsageDetail_20' ) end [2025-04-01 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:46:21] Production.INFO: ==14386== Releasing lock... [2025-04-01 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-01 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:47:05 [end_date_ymd] => 2025-04-01 06:47:05 [RateCDR] => 1 ) [2025-04-01 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-01 03:47:05' and `end` < '2025-04-01 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-01 06:47:17] Production.INFO: count ==172 [2025-04-01 06:47:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:47:05 - End Time 2025-04-01 06:47:05 [2025-04-01 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809104', 'tblTempUsageDetail_20' ) start [2025-04-01 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809104', 'tblTempUsageDetail_20' ) end [2025-04-01 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809104', 'tblTempVendorCDR_20' ) start [2025-04-01 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809104', 'tblTempVendorCDR_20' ) end [2025-04-01 06:47:18] Production.INFO: ProcessCDR(1,14809104,1,1,2) [2025-04-01 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809104', 'tblTempUsageDetail_20' ) start [2025-04-01 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809104', 'tblTempUsageDetail_20' ) end [2025-04-01 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:47:21] Production.INFO: ==14471== Releasing lock... [2025-04-01 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-01 06:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:48:06 [end_date_ymd] => 2025-04-01 06:48:06 [RateCDR] => 1 ) [2025-04-01 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-01 03:48:06' and `end` < '2025-04-01 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-01 06:48:18] Production.INFO: count ==172 [2025-04-01 06:48:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:48:06 - End Time 2025-04-01 06:48:06 [2025-04-01 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809109', 'tblTempUsageDetail_20' ) start [2025-04-01 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809109', 'tblTempUsageDetail_20' ) end [2025-04-01 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809109', 'tblTempVendorCDR_20' ) start [2025-04-01 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809109', 'tblTempVendorCDR_20' ) end [2025-04-01 06:48:18] Production.INFO: ProcessCDR(1,14809109,1,1,2) [2025-04-01 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809109', 'tblTempUsageDetail_20' ) start [2025-04-01 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809109', 'tblTempUsageDetail_20' ) end [2025-04-01 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:48:22] Production.INFO: ==14553== Releasing lock... [2025-04-01 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:48:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-01 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:49:05 [end_date_ymd] => 2025-04-01 06:49:05 [RateCDR] => 1 ) [2025-04-01 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-01 03:49:05' and `end` < '2025-04-01 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-01 06:49:17] Production.INFO: count ==173 [2025-04-01 06:49:17] Production.ERROR: pbx CDR StartTime 2025-04-01 03:49:05 - End Time 2025-04-01 06:49:05 [2025-04-01 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809114', 'tblTempUsageDetail_20' ) start [2025-04-01 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809114', 'tblTempUsageDetail_20' ) end [2025-04-01 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809114', 'tblTempVendorCDR_20' ) start [2025-04-01 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809114', 'tblTempVendorCDR_20' ) end [2025-04-01 06:49:17] Production.INFO: ProcessCDR(1,14809114,1,1,2) [2025-04-01 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809114', 'tblTempUsageDetail_20' ) start [2025-04-01 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809114', 'tblTempUsageDetail_20' ) end [2025-04-01 06:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:49:22] Production.INFO: ==14637== Releasing lock... [2025-04-01 06:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:49:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-01 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:50:06 [end_date_ymd] => 2025-04-01 06:50:06 [RateCDR] => 1 ) [2025-04-01 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-01 03:50:06' and `end` < '2025-04-01 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-01 06:50:19] Production.INFO: count ==181 [2025-04-01 06:50:19] Production.ERROR: pbx CDR StartTime 2025-04-01 03:50:06 - End Time 2025-04-01 06:50:06 [2025-04-01 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809120', 'tblTempUsageDetail_20' ) start [2025-04-01 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809120', 'tblTempUsageDetail_20' ) end [2025-04-01 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809120', 'tblTempVendorCDR_20' ) start [2025-04-01 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809120', 'tblTempVendorCDR_20' ) end [2025-04-01 06:50:19] Production.INFO: ProcessCDR(1,14809120,1,1,2) [2025-04-01 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809120', 'tblTempUsageDetail_20' ) start [2025-04-01 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809120', 'tblTempUsageDetail_20' ) end [2025-04-01 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:50:22] Production.INFO: ==14721== Releasing lock... [2025-04-01 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:50:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-01 06:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:51:06 [end_date_ymd] => 2025-04-01 06:51:06 [RateCDR] => 1 ) [2025-04-01 06:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 03:51:06' and `end` < '2025-04-01 06:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 06:51:18] Production.INFO: count ==182 [2025-04-01 06:51:19] Production.ERROR: pbx CDR StartTime 2025-04-01 03:51:06 - End Time 2025-04-01 06:51:06 [2025-04-01 06:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809125', 'tblTempUsageDetail_20' ) start [2025-04-01 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809125', 'tblTempUsageDetail_20' ) end [2025-04-01 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809125', 'tblTempVendorCDR_20' ) start [2025-04-01 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809125', 'tblTempVendorCDR_20' ) end [2025-04-01 06:51:19] Production.INFO: ProcessCDR(1,14809125,1,1,2) [2025-04-01 06:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809125', 'tblTempUsageDetail_20' ) start [2025-04-01 06:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809125', 'tblTempUsageDetail_20' ) end [2025-04-01 06:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:51:23] Production.INFO: ==14801== Releasing lock... [2025-04-01 06:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:51:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-01 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:52:05 [end_date_ymd] => 2025-04-01 06:52:05 [RateCDR] => 1 ) [2025-04-01 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 03:52:05' and `end` < '2025-04-01 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 06:52:18] Production.INFO: count ==182 [2025-04-01 06:52:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:52:05 - End Time 2025-04-01 06:52:05 [2025-04-01 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809130', 'tblTempUsageDetail_20' ) start [2025-04-01 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809130', 'tblTempUsageDetail_20' ) end [2025-04-01 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809130', 'tblTempVendorCDR_20' ) start [2025-04-01 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809130', 'tblTempVendorCDR_20' ) end [2025-04-01 06:52:18] Production.INFO: ProcessCDR(1,14809130,1,1,2) [2025-04-01 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809130', 'tblTempUsageDetail_20' ) start [2025-04-01 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809130', 'tblTempUsageDetail_20' ) end [2025-04-01 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:52:21] Production.INFO: ==14880== Releasing lock... [2025-04-01 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:52:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-01 06:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:53:06 [end_date_ymd] => 2025-04-01 06:53:06 [RateCDR] => 1 ) [2025-04-01 06: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-01 03:53:06' and `end` < '2025-04-01 06: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-01 06:53:18] Production.INFO: count ==182 [2025-04-01 06:53:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:53:06 - End Time 2025-04-01 06:53:06 [2025-04-01 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809135', 'tblTempUsageDetail_20' ) start [2025-04-01 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809135', 'tblTempUsageDetail_20' ) end [2025-04-01 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809135', 'tblTempVendorCDR_20' ) start [2025-04-01 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809135', 'tblTempVendorCDR_20' ) end [2025-04-01 06:53:18] Production.INFO: ProcessCDR(1,14809135,1,1,2) [2025-04-01 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809135', 'tblTempUsageDetail_20' ) start [2025-04-01 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809135', 'tblTempUsageDetail_20' ) end [2025-04-01 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:53:21] Production.INFO: ==14959== Releasing lock... [2025-04-01 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:53:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-01 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:54:05 [end_date_ymd] => 2025-04-01 06:54:05 [RateCDR] => 1 ) [2025-04-01 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 03:54:05' and `end` < '2025-04-01 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-01 06:54:17] Production.INFO: count ==182 [2025-04-01 06:54:17] Production.ERROR: pbx CDR StartTime 2025-04-01 03:54:05 - End Time 2025-04-01 06:54:05 [2025-04-01 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809140', 'tblTempUsageDetail_20' ) start [2025-04-01 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809140', 'tblTempUsageDetail_20' ) end [2025-04-01 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809140', 'tblTempVendorCDR_20' ) start [2025-04-01 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809140', 'tblTempVendorCDR_20' ) end [2025-04-01 06:54:17] Production.INFO: ProcessCDR(1,14809140,1,1,2) [2025-04-01 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809140', 'tblTempUsageDetail_20' ) start [2025-04-01 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809140', 'tblTempUsageDetail_20' ) end [2025-04-01 06:54:20] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:54:20] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:54:20] Production.INFO: ==15043== Releasing lock... [2025-04-01 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:54:20] Production.INFO: 29.75 MB #Memory Used# [2025-04-01 06:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:55:06 [end_date_ymd] => 2025-04-01 06:55:06 [RateCDR] => 1 ) [2025-04-01 06: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-01 03:55:06' and `end` < '2025-04-01 06: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-01 06:55:18] Production.INFO: count ==182 [2025-04-01 06:55:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:55:06 - End Time 2025-04-01 06:55:06 [2025-04-01 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809145', 'tblTempUsageDetail_20' ) start [2025-04-01 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809145', 'tblTempUsageDetail_20' ) end [2025-04-01 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809145', 'tblTempVendorCDR_20' ) start [2025-04-01 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809145', 'tblTempVendorCDR_20' ) end [2025-04-01 06:55:18] Production.INFO: ProcessCDR(1,14809145,1,1,2) [2025-04-01 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809145', 'tblTempUsageDetail_20' ) start [2025-04-01 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809145', 'tblTempUsageDetail_20' ) end [2025-04-01 06:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:55:22] Production.INFO: ==15124== Releasing lock... [2025-04-01 06:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:55:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-01 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:56:05 [end_date_ymd] => 2025-04-01 06:56:05 [RateCDR] => 1 ) [2025-04-01 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-01 03:56:05' and `end` < '2025-04-01 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-01 06:56:18] Production.INFO: count ==182 [2025-04-01 06:56:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:56:05 - End Time 2025-04-01 06:56:05 [2025-04-01 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809150', 'tblTempUsageDetail_20' ) start [2025-04-01 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809150', 'tblTempUsageDetail_20' ) end [2025-04-01 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809150', 'tblTempVendorCDR_20' ) start [2025-04-01 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809150', 'tblTempVendorCDR_20' ) end [2025-04-01 06:56:18] Production.INFO: ProcessCDR(1,14809150,1,1,2) [2025-04-01 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809150', 'tblTempUsageDetail_20' ) start [2025-04-01 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809150', 'tblTempUsageDetail_20' ) end [2025-04-01 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:56:21] Production.INFO: ==15202== Releasing lock... [2025-04-01 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:56:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-01 06:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:57:06 [end_date_ymd] => 2025-04-01 06:57:06 [RateCDR] => 1 ) [2025-04-01 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-01 03:57:06' and `end` < '2025-04-01 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-01 06:57:18] Production.INFO: count ==178 [2025-04-01 06:57:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:57:06 - End Time 2025-04-01 06:57:06 [2025-04-01 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809155', 'tblTempUsageDetail_20' ) start [2025-04-01 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809155', 'tblTempUsageDetail_20' ) end [2025-04-01 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809155', 'tblTempVendorCDR_20' ) start [2025-04-01 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809155', 'tblTempVendorCDR_20' ) end [2025-04-01 06:57:18] Production.INFO: ProcessCDR(1,14809155,1,1,2) [2025-04-01 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809155', 'tblTempUsageDetail_20' ) start [2025-04-01 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809155', 'tblTempUsageDetail_20' ) end [2025-04-01 06:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:57:22] Production.INFO: ==15280== Releasing lock... [2025-04-01 06:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:57:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-01 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:58:05 [end_date_ymd] => 2025-04-01 06:58:05 [RateCDR] => 1 ) [2025-04-01 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-01 03:58:05' and `end` < '2025-04-01 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-01 06:58:17] Production.INFO: count ==180 [2025-04-01 06:58:17] Production.ERROR: pbx CDR StartTime 2025-04-01 03:58:05 - End Time 2025-04-01 06:58:05 [2025-04-01 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809160', 'tblTempUsageDetail_20' ) start [2025-04-01 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809160', 'tblTempUsageDetail_20' ) end [2025-04-01 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809160', 'tblTempVendorCDR_20' ) start [2025-04-01 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809160', 'tblTempVendorCDR_20' ) end [2025-04-01 06:58:17] Production.INFO: ProcessCDR(1,14809160,1,1,2) [2025-04-01 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809160', 'tblTempUsageDetail_20' ) start [2025-04-01 06:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809160', 'tblTempUsageDetail_20' ) end [2025-04-01 06:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:58:23] Production.INFO: ==15355== Releasing lock... [2025-04-01 06:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:58:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-01 06:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 03:59:06 [end_date_ymd] => 2025-04-01 06:59:06 [RateCDR] => 1 ) [2025-04-01 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-01 03:59:06' and `end` < '2025-04-01 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-01 06:59:18] Production.INFO: count ==183 [2025-04-01 06:59:18] Production.ERROR: pbx CDR StartTime 2025-04-01 03:59:06 - End Time 2025-04-01 06:59:06 [2025-04-01 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809165', 'tblTempUsageDetail_20' ) start [2025-04-01 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809165', 'tblTempUsageDetail_20' ) end [2025-04-01 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809165', 'tblTempVendorCDR_20' ) start [2025-04-01 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809165', 'tblTempVendorCDR_20' ) end [2025-04-01 06:59:18] Production.INFO: ProcessCDR(1,14809165,1,1,2) [2025-04-01 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 06:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809165', 'tblTempUsageDetail_20' ) start [2025-04-01 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809165', 'tblTempUsageDetail_20' ) end [2025-04-01 06:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 06:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 06:59:22] Production.INFO: ==15436== Releasing lock... [2025-04-01 06:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 06:59:22] Production.INFO: 30 MB #Memory Used# [2025-04-01 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:00:06 [end_date_ymd] => 2025-04-01 07:00:06 [RateCDR] => 1 ) [2025-04-01 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-01 04:00:06' and `end` < '2025-04-01 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-01 07:00:19] Production.INFO: count ==191 [2025-04-01 07:00:19] Production.ERROR: pbx CDR StartTime 2025-04-01 04:00:06 - End Time 2025-04-01 07:00:06 [2025-04-01 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809171', 'tblTempUsageDetail_20' ) start [2025-04-01 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809171', 'tblTempUsageDetail_20' ) end [2025-04-01 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809171', 'tblTempVendorCDR_20' ) start [2025-04-01 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809171', 'tblTempVendorCDR_20' ) end [2025-04-01 07:00:19] Production.INFO: ProcessCDR(1,14809171,1,1,2) [2025-04-01 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809171', 'tblTempUsageDetail_20' ) start [2025-04-01 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809171', 'tblTempUsageDetail_20' ) end [2025-04-01 07:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:00:23] Production.INFO: ==15524== Releasing lock... [2025-04-01 07:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:00:23] Production.INFO: 30 MB #Memory Used# [2025-04-01 07:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:01:06 [end_date_ymd] => 2025-04-01 07:01:06 [RateCDR] => 1 ) [2025-04-01 07: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-01 04:01:06' and `end` < '2025-04-01 07: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-01 07:01:18] Production.INFO: count ==191 [2025-04-01 07:01:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:01:06 - End Time 2025-04-01 07:01:06 [2025-04-01 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809176', 'tblTempUsageDetail_20' ) start [2025-04-01 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809176', 'tblTempUsageDetail_20' ) end [2025-04-01 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809176', 'tblTempVendorCDR_20' ) start [2025-04-01 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809176', 'tblTempVendorCDR_20' ) end [2025-04-01 07:01:18] Production.INFO: ProcessCDR(1,14809176,1,1,2) [2025-04-01 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809176', 'tblTempUsageDetail_20' ) start [2025-04-01 07:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809176', 'tblTempUsageDetail_20' ) end [2025-04-01 07:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:01:24] Production.INFO: ==15614== Releasing lock... [2025-04-01 07:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:01:24] Production.INFO: 30 MB #Memory Used# [2025-04-01 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:02:05 [end_date_ymd] => 2025-04-01 07:02:05 [RateCDR] => 1 ) [2025-04-01 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-01 04:02:05' and `end` < '2025-04-01 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-01 07:02:18] Production.INFO: count ==191 [2025-04-01 07:02:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:02:05 - End Time 2025-04-01 07:02:05 [2025-04-01 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809181', 'tblTempUsageDetail_20' ) start [2025-04-01 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809181', 'tblTempUsageDetail_20' ) end [2025-04-01 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809181', 'tblTempVendorCDR_20' ) start [2025-04-01 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809181', 'tblTempVendorCDR_20' ) end [2025-04-01 07:02:18] Production.INFO: ProcessCDR(1,14809181,1,1,2) [2025-04-01 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809181', 'tblTempUsageDetail_20' ) start [2025-04-01 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809181', 'tblTempUsageDetail_20' ) end [2025-04-01 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:02:22] Production.INFO: ==15808== Releasing lock... [2025-04-01 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:02:22] Production.INFO: 30 MB #Memory Used# [2025-04-01 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:03:06 [end_date_ymd] => 2025-04-01 07:03:06 [RateCDR] => 1 ) [2025-04-01 07: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-01 04:03:06' and `end` < '2025-04-01 07: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-01 07:03:19] Production.INFO: count ==191 [2025-04-01 07:03:19] Production.ERROR: pbx CDR StartTime 2025-04-01 04:03:06 - End Time 2025-04-01 07:03:06 [2025-04-01 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809186', 'tblTempUsageDetail_20' ) start [2025-04-01 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809186', 'tblTempUsageDetail_20' ) end [2025-04-01 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809186', 'tblTempVendorCDR_20' ) start [2025-04-01 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809186', 'tblTempVendorCDR_20' ) end [2025-04-01 07:03:19] Production.INFO: ProcessCDR(1,14809186,1,1,2) [2025-04-01 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809186', 'tblTempUsageDetail_20' ) start [2025-04-01 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809186', 'tblTempUsageDetail_20' ) end [2025-04-01 07:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:03:23] Production.INFO: ==15885== Releasing lock... [2025-04-01 07:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:03:23] Production.INFO: 30 MB #Memory Used# [2025-04-01 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:04:05 [end_date_ymd] => 2025-04-01 07:04:05 [RateCDR] => 1 ) [2025-04-01 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 04:04:05' and `end` < '2025-04-01 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 07:04:18] Production.INFO: count ==191 [2025-04-01 07:04:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:04:05 - End Time 2025-04-01 07:04:05 [2025-04-01 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809191', 'tblTempUsageDetail_20' ) start [2025-04-01 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809191', 'tblTempUsageDetail_20' ) end [2025-04-01 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809191', 'tblTempVendorCDR_20' ) start [2025-04-01 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809191', 'tblTempVendorCDR_20' ) end [2025-04-01 07:04:18] Production.INFO: ProcessCDR(1,14809191,1,1,2) [2025-04-01 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809191', 'tblTempUsageDetail_20' ) start [2025-04-01 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809191', 'tblTempUsageDetail_20' ) end [2025-04-01 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:04:22] Production.INFO: ==15959== Releasing lock... [2025-04-01 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:04:22] Production.INFO: 30 MB #Memory Used# [2025-04-01 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:05:06 [end_date_ymd] => 2025-04-01 07:05:06 [RateCDR] => 1 ) [2025-04-01 07:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 04:05:06' and `end` < '2025-04-01 07:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 07:05:19] Production.INFO: count ==191 [2025-04-01 07:05:19] Production.ERROR: pbx CDR StartTime 2025-04-01 04:05:06 - End Time 2025-04-01 07:05:06 [2025-04-01 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809196', 'tblTempUsageDetail_20' ) start [2025-04-01 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809196', 'tblTempUsageDetail_20' ) end [2025-04-01 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809196', 'tblTempVendorCDR_20' ) start [2025-04-01 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809196', 'tblTempVendorCDR_20' ) end [2025-04-01 07:05:19] Production.INFO: ProcessCDR(1,14809196,1,1,2) [2025-04-01 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809196', 'tblTempUsageDetail_20' ) start [2025-04-01 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809196', 'tblTempUsageDetail_20' ) end [2025-04-01 07:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:05:23] Production.INFO: ==16107== Releasing lock... [2025-04-01 07:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:05:23] Production.INFO: 30 MB #Memory Used# [2025-04-01 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:06:05 [end_date_ymd] => 2025-04-01 07:06:05 [RateCDR] => 1 ) [2025-04-01 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-01 04:06:05' and `end` < '2025-04-01 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-01 07:06:19] Production.INFO: count ==191 [2025-04-01 07:06:19] Production.ERROR: pbx CDR StartTime 2025-04-01 04:06:05 - End Time 2025-04-01 07:06:05 [2025-04-01 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809201', 'tblTempUsageDetail_20' ) start [2025-04-01 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809201', 'tblTempUsageDetail_20' ) end [2025-04-01 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809201', 'tblTempVendorCDR_20' ) start [2025-04-01 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809201', 'tblTempVendorCDR_20' ) end [2025-04-01 07:06:19] Production.INFO: ProcessCDR(1,14809201,1,1,2) [2025-04-01 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809201', 'tblTempUsageDetail_20' ) start [2025-04-01 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809201', 'tblTempUsageDetail_20' ) end [2025-04-01 07:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:06:23] Production.INFO: ==16181== Releasing lock... [2025-04-01 07:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:06:23] Production.INFO: 30 MB #Memory Used# [2025-04-01 07:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:07:06 [end_date_ymd] => 2025-04-01 07:07:06 [RateCDR] => 1 ) [2025-04-01 07: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-01 04:07:06' and `end` < '2025-04-01 07: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-01 07:07:19] Production.INFO: count ==191 [2025-04-01 07:07:19] Production.ERROR: pbx CDR StartTime 2025-04-01 04:07:06 - End Time 2025-04-01 07:07:06 [2025-04-01 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809206', 'tblTempUsageDetail_20' ) start [2025-04-01 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809206', 'tblTempUsageDetail_20' ) end [2025-04-01 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809206', 'tblTempVendorCDR_20' ) start [2025-04-01 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809206', 'tblTempVendorCDR_20' ) end [2025-04-01 07:07:19] Production.INFO: ProcessCDR(1,14809206,1,1,2) [2025-04-01 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809206', 'tblTempUsageDetail_20' ) start [2025-04-01 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809206', 'tblTempUsageDetail_20' ) end [2025-04-01 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:07:22] Production.INFO: ==16260== Releasing lock... [2025-04-01 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:07:22] Production.INFO: 30 MB #Memory Used# [2025-04-01 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:08:05 [end_date_ymd] => 2025-04-01 07:08:05 [RateCDR] => 1 ) [2025-04-01 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-01 04:08:05' and `end` < '2025-04-01 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-01 07:08:18] Production.INFO: count ==191 [2025-04-01 07:08:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:08:05 - End Time 2025-04-01 07:08:05 [2025-04-01 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809211', 'tblTempUsageDetail_20' ) start [2025-04-01 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809211', 'tblTempUsageDetail_20' ) end [2025-04-01 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809211', 'tblTempVendorCDR_20' ) start [2025-04-01 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809211', 'tblTempVendorCDR_20' ) end [2025-04-01 07:08:18] Production.INFO: ProcessCDR(1,14809211,1,1,2) [2025-04-01 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809211', 'tblTempUsageDetail_20' ) start [2025-04-01 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809211', 'tblTempUsageDetail_20' ) end [2025-04-01 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:08:22] Production.INFO: ==16374== Releasing lock... [2025-04-01 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:08:22] Production.INFO: 30 MB #Memory Used# [2025-04-01 07:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:09:06 [end_date_ymd] => 2025-04-01 07:09:06 [RateCDR] => 1 ) [2025-04-01 07:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 04:09:06' and `end` < '2025-04-01 07:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 07:09:20] Production.INFO: count ==151 [2025-04-01 07:09:20] Production.ERROR: pbx CDR StartTime 2025-04-01 04:09:06 - End Time 2025-04-01 07:09:06 [2025-04-01 07:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809216', 'tblTempUsageDetail_20' ) start [2025-04-01 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809216', 'tblTempUsageDetail_20' ) end [2025-04-01 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809216', 'tblTempVendorCDR_20' ) start [2025-04-01 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809216', 'tblTempVendorCDR_20' ) end [2025-04-01 07:09:20] Production.INFO: ProcessCDR(1,14809216,1,1,2) [2025-04-01 07:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809216', 'tblTempUsageDetail_20' ) start [2025-04-01 07:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809216', 'tblTempUsageDetail_20' ) end [2025-04-01 07:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:09:24] Production.INFO: ==16488== Releasing lock... [2025-04-01 07:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:09:24] Production.INFO: 29.5 MB #Memory Used# [2025-04-01 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:10:06 [end_date_ymd] => 2025-04-01 07:10:06 [RateCDR] => 1 ) [2025-04-01 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-01 04:10:06' and `end` < '2025-04-01 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-01 07:10:19] Production.INFO: count ==87 [2025-04-01 07:10:19] Production.ERROR: pbx CDR StartTime 2025-04-01 04:10:06 - End Time 2025-04-01 07:10:06 [2025-04-01 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809222', 'tblTempUsageDetail_20' ) start [2025-04-01 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809222', 'tblTempUsageDetail_20' ) end [2025-04-01 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809222', 'tblTempVendorCDR_20' ) start [2025-04-01 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809222', 'tblTempVendorCDR_20' ) end [2025-04-01 07:10:19] Production.INFO: ProcessCDR(1,14809222,1,1,2) [2025-04-01 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809222', 'tblTempUsageDetail_20' ) start [2025-04-01 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809222', 'tblTempUsageDetail_20' ) end [2025-04-01 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:10:23] Production.INFO: ==16564== Releasing lock... [2025-04-01 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:10:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-01 07:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:11:06 [end_date_ymd] => 2025-04-01 07:11:06 [RateCDR] => 1 ) [2025-04-01 07:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 04:11:06' and `end` < '2025-04-01 07:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 07:11:18] Production.INFO: count ==87 [2025-04-01 07:11:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:11:06 - End Time 2025-04-01 07:11:06 [2025-04-01 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809227', 'tblTempUsageDetail_20' ) start [2025-04-01 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809227', 'tblTempUsageDetail_20' ) end [2025-04-01 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809227', 'tblTempVendorCDR_20' ) start [2025-04-01 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809227', 'tblTempVendorCDR_20' ) end [2025-04-01 07:11:18] Production.INFO: ProcessCDR(1,14809227,1,1,2) [2025-04-01 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809227', 'tblTempUsageDetail_20' ) start [2025-04-01 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809227', 'tblTempUsageDetail_20' ) end [2025-04-01 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:11:22] Production.INFO: ==16639== Releasing lock... [2025-04-01 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:11:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-01 07:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:12:06 [end_date_ymd] => 2025-04-01 07:12:06 [RateCDR] => 1 ) [2025-04-01 07:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 04:12:06' and `end` < '2025-04-01 07:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 07:12:20] Production.INFO: count ==87 [2025-04-01 07:12:20] Production.ERROR: pbx CDR StartTime 2025-04-01 04:12:06 - End Time 2025-04-01 07:12:06 [2025-04-01 07:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809232', 'tblTempUsageDetail_20' ) start [2025-04-01 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809232', 'tblTempUsageDetail_20' ) end [2025-04-01 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809232', 'tblTempVendorCDR_20' ) start [2025-04-01 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809232', 'tblTempVendorCDR_20' ) end [2025-04-01 07:12:20] Production.INFO: ProcessCDR(1,14809232,1,1,2) [2025-04-01 07:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809232', 'tblTempUsageDetail_20' ) start [2025-04-01 07:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809232', 'tblTempUsageDetail_20' ) end [2025-04-01 07:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:12:24] Production.INFO: ==16790== Releasing lock... [2025-04-01 07:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:12:24] Production.INFO: 28.5 MB #Memory Used# [2025-04-01 07:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:13:06 [end_date_ymd] => 2025-04-01 07:13:06 [RateCDR] => 1 ) [2025-04-01 07: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-01 04:13:06' and `end` < '2025-04-01 07: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-01 07:13:19] Production.INFO: count ==88 [2025-04-01 07:13:19] Production.ERROR: pbx CDR StartTime 2025-04-01 04:13:06 - End Time 2025-04-01 07:13:06 [2025-04-01 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809237', 'tblTempUsageDetail_20' ) start [2025-04-01 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809237', 'tblTempUsageDetail_20' ) end [2025-04-01 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809237', 'tblTempVendorCDR_20' ) start [2025-04-01 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809237', 'tblTempVendorCDR_20' ) end [2025-04-01 07:13:19] Production.INFO: ProcessCDR(1,14809237,1,1,2) [2025-04-01 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809237', 'tblTempUsageDetail_20' ) start [2025-04-01 07:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809237', 'tblTempUsageDetail_20' ) end [2025-04-01 07:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:13:25] Production.INFO: ==16867== Releasing lock... [2025-04-01 07:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:13:25] Production.INFO: 28.5 MB #Memory Used# [2025-04-01 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:14:05 [end_date_ymd] => 2025-04-01 07:14:05 [RateCDR] => 1 ) [2025-04-01 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 04:14:05' and `end` < '2025-04-01 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 07:14:19] Production.INFO: count ==92 [2025-04-01 07:14:19] Production.ERROR: pbx CDR StartTime 2025-04-01 04:14:05 - End Time 2025-04-01 07:14:05 [2025-04-01 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809242', 'tblTempUsageDetail_20' ) start [2025-04-01 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809242', 'tblTempUsageDetail_20' ) end [2025-04-01 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809242', 'tblTempVendorCDR_20' ) start [2025-04-01 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809242', 'tblTempVendorCDR_20' ) end [2025-04-01 07:14:19] Production.INFO: ProcessCDR(1,14809242,1,1,2) [2025-04-01 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809242', 'tblTempUsageDetail_20' ) start [2025-04-01 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809242', 'tblTempUsageDetail_20' ) end [2025-04-01 07:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:14:23] Production.INFO: ==16948== Releasing lock... [2025-04-01 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:14:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-01 07:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:15:06 [end_date_ymd] => 2025-04-01 07:15:06 [RateCDR] => 1 ) [2025-04-01 07: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-01 04:15:06' and `end` < '2025-04-01 07: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-01 07:15:20] Production.INFO: count ==92 [2025-04-01 07:15:20] Production.ERROR: pbx CDR StartTime 2025-04-01 04:15:06 - End Time 2025-04-01 07:15:06 [2025-04-01 07:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809247', 'tblTempUsageDetail_20' ) start [2025-04-01 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809247', 'tblTempUsageDetail_20' ) end [2025-04-01 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809247', 'tblTempVendorCDR_20' ) start [2025-04-01 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809247', 'tblTempVendorCDR_20' ) end [2025-04-01 07:15:20] Production.INFO: ProcessCDR(1,14809247,1,1,2) [2025-04-01 07:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809247', 'tblTempUsageDetail_20' ) start [2025-04-01 07:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809247', 'tblTempUsageDetail_20' ) end [2025-04-01 07:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:15:24] Production.INFO: ==17108== Releasing lock... [2025-04-01 07:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:15:24] Production.INFO: 28.75 MB #Memory Used# [2025-04-01 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:16:05 [end_date_ymd] => 2025-04-01 07:16:05 [RateCDR] => 1 ) [2025-04-01 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 04:16:05' and `end` < '2025-04-01 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 07:16:18] Production.INFO: count ==95 [2025-04-01 07:16:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:16:05 - End Time 2025-04-01 07:16:05 [2025-04-01 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809252', 'tblTempUsageDetail_20' ) start [2025-04-01 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809252', 'tblTempUsageDetail_20' ) end [2025-04-01 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809252', 'tblTempVendorCDR_20' ) start [2025-04-01 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809252', 'tblTempVendorCDR_20' ) end [2025-04-01 07:16:18] Production.INFO: ProcessCDR(1,14809252,1,1,2) [2025-04-01 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809252', 'tblTempUsageDetail_20' ) start [2025-04-01 07:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809252', 'tblTempUsageDetail_20' ) end [2025-04-01 07:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:16:24] Production.INFO: ==17210== Releasing lock... [2025-04-01 07:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:16:24] Production.INFO: 28.75 MB #Memory Used# [2025-04-01 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:17:06 [end_date_ymd] => 2025-04-01 07:17:06 [RateCDR] => 1 ) [2025-04-01 07:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 04:17:06' and `end` < '2025-04-01 07:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 07:17:19] Production.INFO: count ==95 [2025-04-01 07:17:19] Production.ERROR: pbx CDR StartTime 2025-04-01 04:17:06 - End Time 2025-04-01 07:17:06 [2025-04-01 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809257', 'tblTempUsageDetail_20' ) start [2025-04-01 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809257', 'tblTempUsageDetail_20' ) end [2025-04-01 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809257', 'tblTempVendorCDR_20' ) start [2025-04-01 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809257', 'tblTempVendorCDR_20' ) end [2025-04-01 07:17:19] Production.INFO: ProcessCDR(1,14809257,1,1,2) [2025-04-01 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809257', 'tblTempUsageDetail_20' ) start [2025-04-01 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809257', 'tblTempUsageDetail_20' ) end [2025-04-01 07:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:17:23] Production.INFO: ==17329== Releasing lock... [2025-04-01 07:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:17:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-01 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:18:05 [end_date_ymd] => 2025-04-01 07:18:05 [RateCDR] => 1 ) [2025-04-01 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 04:18:05' and `end` < '2025-04-01 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 07:18:17] Production.INFO: count ==95 [2025-04-01 07:18:17] Production.ERROR: pbx CDR StartTime 2025-04-01 04:18:05 - End Time 2025-04-01 07:18:05 [2025-04-01 07:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809260', 'tblTempUsageDetail_20' ) start [2025-04-01 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809260', 'tblTempUsageDetail_20' ) end [2025-04-01 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809260', 'tblTempVendorCDR_20' ) start [2025-04-01 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809260', 'tblTempVendorCDR_20' ) end [2025-04-01 07:18:17] Production.INFO: ProcessCDR(1,14809260,1,1,2) [2025-04-01 07:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809260', 'tblTempUsageDetail_20' ) start [2025-04-01 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809260', 'tblTempUsageDetail_20' ) end [2025-04-01 07:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:18:21] Production.INFO: ==17407== Releasing lock... [2025-04-01 07:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-01 07:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:19:06 [end_date_ymd] => 2025-04-01 07:19:06 [RateCDR] => 1 ) [2025-04-01 07: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-01 04:19:06' and `end` < '2025-04-01 07: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-01 07:19:19] Production.INFO: count ==95 [2025-04-01 07:19:19] Production.ERROR: pbx CDR StartTime 2025-04-01 04:19:06 - End Time 2025-04-01 07:19:06 [2025-04-01 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809267', 'tblTempUsageDetail_20' ) start [2025-04-01 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809267', 'tblTempUsageDetail_20' ) end [2025-04-01 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809267', 'tblTempVendorCDR_20' ) start [2025-04-01 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809267', 'tblTempVendorCDR_20' ) end [2025-04-01 07:19:19] Production.INFO: ProcessCDR(1,14809267,1,1,2) [2025-04-01 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809267', 'tblTempUsageDetail_20' ) start [2025-04-01 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809267', 'tblTempUsageDetail_20' ) end [2025-04-01 07:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:19:23] Production.INFO: ==17481== Releasing lock... [2025-04-01 07:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:19:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-01 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:20:06 [end_date_ymd] => 2025-04-01 07:20:06 [RateCDR] => 1 ) [2025-04-01 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-01 04:20:06' and `end` < '2025-04-01 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-01 07:20:19] Production.INFO: count ==99 [2025-04-01 07:20:19] Production.ERROR: pbx CDR StartTime 2025-04-01 04:20:06 - End Time 2025-04-01 07:20:06 [2025-04-01 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809273', 'tblTempUsageDetail_20' ) start [2025-04-01 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809273', 'tblTempUsageDetail_20' ) end [2025-04-01 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809273', 'tblTempVendorCDR_20' ) start [2025-04-01 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809273', 'tblTempVendorCDR_20' ) end [2025-04-01 07:20:19] Production.INFO: ProcessCDR(1,14809273,1,1,2) [2025-04-01 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809273', 'tblTempUsageDetail_20' ) start [2025-04-01 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809273', 'tblTempUsageDetail_20' ) end [2025-04-01 07:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:20:23] Production.INFO: ==17555== Releasing lock... [2025-04-01 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:20:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-01 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:21:06 [end_date_ymd] => 2025-04-01 07:21:06 [RateCDR] => 1 ) [2025-04-01 07:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 04:21:06' and `end` < '2025-04-01 07:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 07:21:18] Production.INFO: count ==99 [2025-04-01 07:21:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:21:06 - End Time 2025-04-01 07:21:06 [2025-04-01 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809278', 'tblTempUsageDetail_20' ) start [2025-04-01 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809278', 'tblTempUsageDetail_20' ) end [2025-04-01 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809278', 'tblTempVendorCDR_20' ) start [2025-04-01 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809278', 'tblTempVendorCDR_20' ) end [2025-04-01 07:21:18] Production.INFO: ProcessCDR(1,14809278,1,1,2) [2025-04-01 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809278', 'tblTempUsageDetail_20' ) start [2025-04-01 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809278', 'tblTempUsageDetail_20' ) end [2025-04-01 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:21:22] Production.INFO: ==17630== Releasing lock... [2025-04-01 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:21:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-01 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:22:05 [end_date_ymd] => 2025-04-01 07:22:05 [RateCDR] => 1 ) [2025-04-01 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-01 04:22:05' and `end` < '2025-04-01 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-01 07:22:18] Production.INFO: count ==99 [2025-04-01 07:22:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:22:05 - End Time 2025-04-01 07:22:05 [2025-04-01 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809283', 'tblTempUsageDetail_20' ) start [2025-04-01 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809283', 'tblTempUsageDetail_20' ) end [2025-04-01 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809283', 'tblTempVendorCDR_20' ) start [2025-04-01 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809283', 'tblTempVendorCDR_20' ) end [2025-04-01 07:22:18] Production.INFO: ProcessCDR(1,14809283,1,1,2) [2025-04-01 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809283', 'tblTempUsageDetail_20' ) start [2025-04-01 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809283', 'tblTempUsageDetail_20' ) end [2025-04-01 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:22:22] Production.INFO: ==17699== Releasing lock... [2025-04-01 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:22:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-01 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:23:06 [end_date_ymd] => 2025-04-01 07:23:06 [RateCDR] => 1 ) [2025-04-01 07:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 04:23:06' and `end` < '2025-04-01 07: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-01 07:23:19] Production.INFO: count ==102 [2025-04-01 07:23:19] Production.ERROR: pbx CDR StartTime 2025-04-01 04:23:06 - End Time 2025-04-01 07:23:06 [2025-04-01 07:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809288', 'tblTempUsageDetail_20' ) start [2025-04-01 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809288', 'tblTempUsageDetail_20' ) end [2025-04-01 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809288', 'tblTempVendorCDR_20' ) start [2025-04-01 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809288', 'tblTempVendorCDR_20' ) end [2025-04-01 07:23:19] Production.INFO: ProcessCDR(1,14809288,1,1,2) [2025-04-01 07:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809288', 'tblTempUsageDetail_20' ) start [2025-04-01 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809288', 'tblTempUsageDetail_20' ) end [2025-04-01 07:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:23:23] Production.INFO: ==17773== Releasing lock... [2025-04-01 07:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:23:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-01 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:24:06 [end_date_ymd] => 2025-04-01 07:24:06 [RateCDR] => 1 ) [2025-04-01 07:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 04:24:06' and `end` < '2025-04-01 07:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 07:24:19] Production.INFO: count ==106 [2025-04-01 07:24:19] Production.ERROR: pbx CDR StartTime 2025-04-01 04:24:06 - End Time 2025-04-01 07:24:06 [2025-04-01 07:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809293', 'tblTempUsageDetail_20' ) start [2025-04-01 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809293', 'tblTempUsageDetail_20' ) end [2025-04-01 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809293', 'tblTempVendorCDR_20' ) start [2025-04-01 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809293', 'tblTempVendorCDR_20' ) end [2025-04-01 07:24:19] Production.INFO: ProcessCDR(1,14809293,1,1,2) [2025-04-01 07:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809293', 'tblTempUsageDetail_20' ) start [2025-04-01 07:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809293', 'tblTempUsageDetail_20' ) end [2025-04-01 07:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:24:23] Production.INFO: ==17846== Releasing lock... [2025-04-01 07:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:24:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-01 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:25:06 [end_date_ymd] => 2025-04-01 07:25:06 [RateCDR] => 1 ) [2025-04-01 07: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-01 04:25:06' and `end` < '2025-04-01 07: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-01 07:25:18] Production.INFO: count ==106 [2025-04-01 07:25:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:25:06 - End Time 2025-04-01 07:25:06 [2025-04-01 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809298', 'tblTempUsageDetail_20' ) start [2025-04-01 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809298', 'tblTempUsageDetail_20' ) end [2025-04-01 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809298', 'tblTempVendorCDR_20' ) start [2025-04-01 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809298', 'tblTempVendorCDR_20' ) end [2025-04-01 07:25:18] Production.INFO: ProcessCDR(1,14809298,1,1,2) [2025-04-01 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809298', 'tblTempUsageDetail_20' ) start [2025-04-01 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809298', 'tblTempUsageDetail_20' ) end [2025-04-01 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:25:22] Production.INFO: ==17918== Releasing lock... [2025-04-01 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:25:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-01 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:26:05 [end_date_ymd] => 2025-04-01 07:26:05 [RateCDR] => 1 ) [2025-04-01 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-01 04:26:05' and `end` < '2025-04-01 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-01 07:26:18] Production.INFO: count ==107 [2025-04-01 07:26:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:26:05 - End Time 2025-04-01 07:26:05 [2025-04-01 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809303', 'tblTempUsageDetail_20' ) start [2025-04-01 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809303', 'tblTempUsageDetail_20' ) end [2025-04-01 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809303', 'tblTempVendorCDR_20' ) start [2025-04-01 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809303', 'tblTempVendorCDR_20' ) end [2025-04-01 07:26:18] Production.INFO: ProcessCDR(1,14809303,1,1,2) [2025-04-01 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809303', 'tblTempUsageDetail_20' ) start [2025-04-01 07:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809303', 'tblTempUsageDetail_20' ) end [2025-04-01 07:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:26:23] Production.INFO: ==17996== Releasing lock... [2025-04-01 07:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:26:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-01 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:27:06 [end_date_ymd] => 2025-04-01 07:27:06 [RateCDR] => 1 ) [2025-04-01 07: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-01 04:27:06' and `end` < '2025-04-01 07: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-01 07:27:18] Production.INFO: count ==108 [2025-04-01 07:27:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:27:06 - End Time 2025-04-01 07:27:06 [2025-04-01 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809308', 'tblTempUsageDetail_20' ) start [2025-04-01 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809308', 'tblTempUsageDetail_20' ) end [2025-04-01 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809308', 'tblTempVendorCDR_20' ) start [2025-04-01 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809308', 'tblTempVendorCDR_20' ) end [2025-04-01 07:27:18] Production.INFO: ProcessCDR(1,14809308,1,1,2) [2025-04-01 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809308', 'tblTempUsageDetail_20' ) start [2025-04-01 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809308', 'tblTempUsageDetail_20' ) end [2025-04-01 07:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:27:22] Production.INFO: ==18071== Releasing lock... [2025-04-01 07:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:27:22] Production.INFO: 29 MB #Memory Used# [2025-04-01 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:28:05 [end_date_ymd] => 2025-04-01 07:28:05 [RateCDR] => 1 ) [2025-04-01 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-01 04:28:05' and `end` < '2025-04-01 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-01 07:28:18] Production.INFO: count ==108 [2025-04-01 07:28:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:28:05 - End Time 2025-04-01 07:28:05 [2025-04-01 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809313', 'tblTempUsageDetail_20' ) start [2025-04-01 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809313', 'tblTempUsageDetail_20' ) end [2025-04-01 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809313', 'tblTempVendorCDR_20' ) start [2025-04-01 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809313', 'tblTempVendorCDR_20' ) end [2025-04-01 07:28:18] Production.INFO: ProcessCDR(1,14809313,1,1,2) [2025-04-01 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809313', 'tblTempUsageDetail_20' ) start [2025-04-01 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809313', 'tblTempUsageDetail_20' ) end [2025-04-01 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:28:21] Production.INFO: ==18147== Releasing lock... [2025-04-01 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:28:21] Production.INFO: 29 MB #Memory Used# [2025-04-01 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:29:06 [end_date_ymd] => 2025-04-01 07:29:06 [RateCDR] => 1 ) [2025-04-01 07: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-01 04:29:06' and `end` < '2025-04-01 07: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-01 07:29:18] Production.INFO: count ==108 [2025-04-01 07:29:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:29:06 - End Time 2025-04-01 07:29:06 [2025-04-01 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809318', 'tblTempUsageDetail_20' ) start [2025-04-01 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809318', 'tblTempUsageDetail_20' ) end [2025-04-01 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809318', 'tblTempVendorCDR_20' ) start [2025-04-01 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809318', 'tblTempVendorCDR_20' ) end [2025-04-01 07:29:18] Production.INFO: ProcessCDR(1,14809318,1,1,2) [2025-04-01 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809318', 'tblTempUsageDetail_20' ) start [2025-04-01 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809318', 'tblTempUsageDetail_20' ) end [2025-04-01 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:29:22] Production.INFO: ==18222== Releasing lock... [2025-04-01 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:29:22] Production.INFO: 29 MB #Memory Used# [2025-04-01 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:30:06 [end_date_ymd] => 2025-04-01 07:30:06 [RateCDR] => 1 ) [2025-04-01 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-01 04:30:06' and `end` < '2025-04-01 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-01 07:30:19] Production.INFO: count ==114 [2025-04-01 07:30:19] Production.ERROR: pbx CDR StartTime 2025-04-01 04:30:06 - End Time 2025-04-01 07:30:06 [2025-04-01 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809323', 'tblTempUsageDetail_20' ) start [2025-04-01 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809323', 'tblTempUsageDetail_20' ) end [2025-04-01 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809323', 'tblTempVendorCDR_20' ) start [2025-04-01 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809323', 'tblTempVendorCDR_20' ) end [2025-04-01 07:30:19] Production.INFO: ProcessCDR(1,14809323,1,1,2) [2025-04-01 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809323', 'tblTempUsageDetail_20' ) start [2025-04-01 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809323', 'tblTempUsageDetail_20' ) end [2025-04-01 07:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:30:23] Production.INFO: ==18300== Releasing lock... [2025-04-01 07:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:30:23] Production.INFO: 29 MB #Memory Used# [2025-04-01 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:31:06 [end_date_ymd] => 2025-04-01 07:31:06 [RateCDR] => 1 ) [2025-04-01 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-01 04:31:06' and `end` < '2025-04-01 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-01 07:31:19] Production.INFO: count ==114 [2025-04-01 07:31:19] Production.ERROR: pbx CDR StartTime 2025-04-01 04:31:06 - End Time 2025-04-01 07:31:06 [2025-04-01 07:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809329', 'tblTempUsageDetail_20' ) start [2025-04-01 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809329', 'tblTempUsageDetail_20' ) end [2025-04-01 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809329', 'tblTempVendorCDR_20' ) start [2025-04-01 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809329', 'tblTempVendorCDR_20' ) end [2025-04-01 07:31:19] Production.INFO: ProcessCDR(1,14809329,1,1,2) [2025-04-01 07:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809329', 'tblTempUsageDetail_20' ) start [2025-04-01 07:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809329', 'tblTempUsageDetail_20' ) end [2025-04-01 07:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:31:23] Production.INFO: ==18385== Releasing lock... [2025-04-01 07:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:31:23] Production.INFO: 29 MB #Memory Used# [2025-04-01 07:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:32:06 [end_date_ymd] => 2025-04-01 07:32:06 [RateCDR] => 1 ) [2025-04-01 07: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-01 04:32:06' and `end` < '2025-04-01 07: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-01 07:32:18] Production.INFO: count ==114 [2025-04-01 07:32:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:32:06 - End Time 2025-04-01 07:32:06 [2025-04-01 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809334', 'tblTempUsageDetail_20' ) start [2025-04-01 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809334', 'tblTempUsageDetail_20' ) end [2025-04-01 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809334', 'tblTempVendorCDR_20' ) start [2025-04-01 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809334', 'tblTempVendorCDR_20' ) end [2025-04-01 07:32:18] Production.INFO: ProcessCDR(1,14809334,1,1,2) [2025-04-01 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809334', 'tblTempUsageDetail_20' ) start [2025-04-01 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809334', 'tblTempUsageDetail_20' ) end [2025-04-01 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:32:22] Production.INFO: ==18456== Releasing lock... [2025-04-01 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:32:22] Production.INFO: 29 MB #Memory Used# [2025-04-01 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:33:06 [end_date_ymd] => 2025-04-01 07:33:06 [RateCDR] => 1 ) [2025-04-01 07:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 04:33:06' and `end` < '2025-04-01 07:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 07:33:19] Production.INFO: count ==115 [2025-04-01 07:33:19] Production.ERROR: pbx CDR StartTime 2025-04-01 04:33:06 - End Time 2025-04-01 07:33:06 [2025-04-01 07:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809339', 'tblTempUsageDetail_20' ) start [2025-04-01 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809339', 'tblTempUsageDetail_20' ) end [2025-04-01 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809339', 'tblTempVendorCDR_20' ) start [2025-04-01 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809339', 'tblTempVendorCDR_20' ) end [2025-04-01 07:33:19] Production.INFO: ProcessCDR(1,14809339,1,1,2) [2025-04-01 07:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809339', 'tblTempUsageDetail_20' ) start [2025-04-01 07:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809339', 'tblTempUsageDetail_20' ) end [2025-04-01 07:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:33:25] Production.INFO: ==18580== Releasing lock... [2025-04-01 07:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:33:25] Production.INFO: 29 MB #Memory Used# [2025-04-01 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:34:05 [end_date_ymd] => 2025-04-01 07:34:05 [RateCDR] => 1 ) [2025-04-01 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 04:34:05' and `end` < '2025-04-01 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 07:34:18] Production.INFO: count ==115 [2025-04-01 07:34:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:34:05 - End Time 2025-04-01 07:34:05 [2025-04-01 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809344', 'tblTempUsageDetail_20' ) start [2025-04-01 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809344', 'tblTempUsageDetail_20' ) end [2025-04-01 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809344', 'tblTempVendorCDR_20' ) start [2025-04-01 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809344', 'tblTempVendorCDR_20' ) end [2025-04-01 07:34:18] Production.INFO: ProcessCDR(1,14809344,1,1,2) [2025-04-01 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809344', 'tblTempUsageDetail_20' ) start [2025-04-01 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809344', 'tblTempUsageDetail_20' ) end [2025-04-01 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:34:22] Production.INFO: ==18651== Releasing lock... [2025-04-01 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:34:22] Production.INFO: 29 MB #Memory Used# [2025-04-01 07:35:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:35:07 [end_date_ymd] => 2025-04-01 07:35:07 [RateCDR] => 1 ) [2025-04-01 07:35: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-01 04:35:07' and `end` < '2025-04-01 07:35: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-01 07:35:19] Production.INFO: count ==116 [2025-04-01 07:35:19] Production.ERROR: pbx CDR StartTime 2025-04-01 04:35:07 - End Time 2025-04-01 07:35:07 [2025-04-01 07:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809349', 'tblTempUsageDetail_20' ) start [2025-04-01 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809349', 'tblTempUsageDetail_20' ) end [2025-04-01 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809349', 'tblTempVendorCDR_20' ) start [2025-04-01 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809349', 'tblTempVendorCDR_20' ) end [2025-04-01 07:35:19] Production.INFO: ProcessCDR(1,14809349,1,1,2) [2025-04-01 07:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809349', 'tblTempUsageDetail_20' ) start [2025-04-01 07:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809349', 'tblTempUsageDetail_20' ) end [2025-04-01 07:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:35:25] Production.INFO: ==18721== Releasing lock... [2025-04-01 07:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:35:25] Production.INFO: 29 MB #Memory Used# [2025-04-01 07:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:36:06 [end_date_ymd] => 2025-04-01 07:36:06 [RateCDR] => 1 ) [2025-04-01 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-01 04:36:06' and `end` < '2025-04-01 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-01 07:36:18] Production.INFO: count ==117 [2025-04-01 07:36:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:36:06 - End Time 2025-04-01 07:36:06 [2025-04-01 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809354', 'tblTempUsageDetail_20' ) start [2025-04-01 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809354', 'tblTempUsageDetail_20' ) end [2025-04-01 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809354', 'tblTempVendorCDR_20' ) start [2025-04-01 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809354', 'tblTempVendorCDR_20' ) end [2025-04-01 07:36:18] Production.INFO: ProcessCDR(1,14809354,1,1,2) [2025-04-01 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809354', 'tblTempUsageDetail_20' ) start [2025-04-01 07:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809354', 'tblTempUsageDetail_20' ) end [2025-04-01 07:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:36:24] Production.INFO: ==18793== Releasing lock... [2025-04-01 07:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:36:24] Production.INFO: 29 MB #Memory Used# [2025-04-01 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:37:05 [end_date_ymd] => 2025-04-01 07:37:05 [RateCDR] => 1 ) [2025-04-01 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-01 04:37:05' and `end` < '2025-04-01 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-01 07:37:18] Production.INFO: count ==117 [2025-04-01 07:37:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:37:05 - End Time 2025-04-01 07:37:05 [2025-04-01 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809359', 'tblTempUsageDetail_20' ) start [2025-04-01 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809359', 'tblTempUsageDetail_20' ) end [2025-04-01 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809359', 'tblTempVendorCDR_20' ) start [2025-04-01 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809359', 'tblTempVendorCDR_20' ) end [2025-04-01 07:37:18] Production.INFO: ProcessCDR(1,14809359,1,1,2) [2025-04-01 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809359', 'tblTempUsageDetail_20' ) start [2025-04-01 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809359', 'tblTempUsageDetail_20' ) end [2025-04-01 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:37:21] Production.INFO: ==18866== Releasing lock... [2025-04-01 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:37:21] Production.INFO: 29 MB #Memory Used# [2025-04-01 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:38:05 [end_date_ymd] => 2025-04-01 07:38:05 [RateCDR] => 1 ) [2025-04-01 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-01 04:38:05' and `end` < '2025-04-01 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-01 07:38:18] Production.INFO: count ==117 [2025-04-01 07:38:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:38:05 - End Time 2025-04-01 07:38:05 [2025-04-01 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809364', 'tblTempUsageDetail_20' ) start [2025-04-01 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809364', 'tblTempUsageDetail_20' ) end [2025-04-01 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809364', 'tblTempVendorCDR_20' ) start [2025-04-01 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809364', 'tblTempVendorCDR_20' ) end [2025-04-01 07:38:18] Production.INFO: ProcessCDR(1,14809364,1,1,2) [2025-04-01 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809364', 'tblTempUsageDetail_20' ) start [2025-04-01 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809364', 'tblTempUsageDetail_20' ) end [2025-04-01 07:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:38:22] Production.INFO: ==18937== Releasing lock... [2025-04-01 07:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:38:22] Production.INFO: 29 MB #Memory Used# [2025-04-01 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:39:05 [end_date_ymd] => 2025-04-01 07:39:05 [RateCDR] => 1 ) [2025-04-01 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-01 04:39:05' and `end` < '2025-04-01 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-01 07:39:18] Production.INFO: count ==117 [2025-04-01 07:39:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:39:05 - End Time 2025-04-01 07:39:05 [2025-04-01 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809369', 'tblTempUsageDetail_20' ) start [2025-04-01 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809369', 'tblTempUsageDetail_20' ) end [2025-04-01 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809369', 'tblTempVendorCDR_20' ) start [2025-04-01 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809369', 'tblTempVendorCDR_20' ) end [2025-04-01 07:39:18] Production.INFO: ProcessCDR(1,14809369,1,1,2) [2025-04-01 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809369', 'tblTempUsageDetail_20' ) start [2025-04-01 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809369', 'tblTempUsageDetail_20' ) end [2025-04-01 07:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:39:22] Production.INFO: ==19009== Releasing lock... [2025-04-01 07:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:39:22] Production.INFO: 29 MB #Memory Used# [2025-04-01 07:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:40:07 [end_date_ymd] => 2025-04-01 07:40:07 [RateCDR] => 1 ) [2025-04-01 07: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-01 04:40:07' and `end` < '2025-04-01 07:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 07:40:19] Production.INFO: count ==117 [2025-04-01 07:40:20] Production.ERROR: pbx CDR StartTime 2025-04-01 04:40:07 - End Time 2025-04-01 07:40:07 [2025-04-01 07:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809375', 'tblTempUsageDetail_20' ) start [2025-04-01 07:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809375', 'tblTempUsageDetail_20' ) end [2025-04-01 07:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809375', 'tblTempVendorCDR_20' ) start [2025-04-01 07:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809375', 'tblTempVendorCDR_20' ) end [2025-04-01 07:40:20] Production.INFO: ProcessCDR(1,14809375,1,1,2) [2025-04-01 07:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809375', 'tblTempUsageDetail_20' ) start [2025-04-01 07:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809375', 'tblTempUsageDetail_20' ) end [2025-04-01 07:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:40:24] Production.INFO: ==19088== Releasing lock... [2025-04-01 07:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:40:24] Production.INFO: 29 MB #Memory Used# [2025-04-01 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:41:05 [end_date_ymd] => 2025-04-01 07:41:05 [RateCDR] => 1 ) [2025-04-01 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-01 04:41:05' and `end` < '2025-04-01 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-01 07:41:17] Production.INFO: count ==114 [2025-04-01 07:41:17] Production.ERROR: pbx CDR StartTime 2025-04-01 04:41:05 - End Time 2025-04-01 07:41:05 [2025-04-01 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809380', 'tblTempUsageDetail_20' ) start [2025-04-01 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809380', 'tblTempUsageDetail_20' ) end [2025-04-01 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809380', 'tblTempVendorCDR_20' ) start [2025-04-01 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809380', 'tblTempVendorCDR_20' ) end [2025-04-01 07:41:17] Production.INFO: ProcessCDR(1,14809380,1,1,2) [2025-04-01 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809380', 'tblTempUsageDetail_20' ) start [2025-04-01 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809380', 'tblTempUsageDetail_20' ) end [2025-04-01 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:41:21] Production.INFO: ==19161== Releasing lock... [2025-04-01 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:41:21] Production.INFO: 29 MB #Memory Used# [2025-04-01 07:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:42:06 [end_date_ymd] => 2025-04-01 07:42:06 [RateCDR] => 1 ) [2025-04-01 07:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 04:42:06' and `end` < '2025-04-01 07:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 07:42:18] Production.INFO: count ==112 [2025-04-01 07:42:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:42:06 - End Time 2025-04-01 07:42:06 [2025-04-01 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809385', 'tblTempUsageDetail_20' ) start [2025-04-01 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809385', 'tblTempUsageDetail_20' ) end [2025-04-01 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809385', 'tblTempVendorCDR_20' ) start [2025-04-01 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809385', 'tblTempVendorCDR_20' ) end [2025-04-01 07:42:18] Production.INFO: ProcessCDR(1,14809385,1,1,2) [2025-04-01 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809385', 'tblTempUsageDetail_20' ) start [2025-04-01 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809385', 'tblTempUsageDetail_20' ) end [2025-04-01 07:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:42:22] Production.INFO: ==19237== Releasing lock... [2025-04-01 07:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:42:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-01 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:43:05 [end_date_ymd] => 2025-04-01 07:43:05 [RateCDR] => 1 ) [2025-04-01 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-01 04:43:05' and `end` < '2025-04-01 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-01 07:43:18] Production.INFO: count ==112 [2025-04-01 07:43:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:43:05 - End Time 2025-04-01 07:43:05 [2025-04-01 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809390', 'tblTempUsageDetail_20' ) start [2025-04-01 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809390', 'tblTempUsageDetail_20' ) end [2025-04-01 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809390', 'tblTempVendorCDR_20' ) start [2025-04-01 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809390', 'tblTempVendorCDR_20' ) end [2025-04-01 07:43:18] Production.INFO: ProcessCDR(1,14809390,1,1,2) [2025-04-01 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809390', 'tblTempUsageDetail_20' ) start [2025-04-01 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809390', 'tblTempUsageDetail_20' ) end [2025-04-01 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:43:22] Production.INFO: ==19308== Releasing lock... [2025-04-01 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:43:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-01 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:44:05 [end_date_ymd] => 2025-04-01 07:44:05 [RateCDR] => 1 ) [2025-04-01 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-01 04:44:05' and `end` < '2025-04-01 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-01 07:44:18] Production.INFO: count ==112 [2025-04-01 07:44:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:44:05 - End Time 2025-04-01 07:44:05 [2025-04-01 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809395', 'tblTempUsageDetail_20' ) start [2025-04-01 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809395', 'tblTempUsageDetail_20' ) end [2025-04-01 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809395', 'tblTempVendorCDR_20' ) start [2025-04-01 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809395', 'tblTempVendorCDR_20' ) end [2025-04-01 07:44:18] Production.INFO: ProcessCDR(1,14809395,1,1,2) [2025-04-01 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809395', 'tblTempUsageDetail_20' ) start [2025-04-01 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809395', 'tblTempUsageDetail_20' ) end [2025-04-01 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:44:22] Production.INFO: ==19379== Releasing lock... [2025-04-01 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:44:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-01 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:45:05 [end_date_ymd] => 2025-04-01 07:45:05 [RateCDR] => 1 ) [2025-04-01 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-01 04:45:05' and `end` < '2025-04-01 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-01 07:45:17] Production.INFO: count ==112 [2025-04-01 07:45:17] Production.ERROR: pbx CDR StartTime 2025-04-01 04:45:05 - End Time 2025-04-01 07:45:05 [2025-04-01 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809400', 'tblTempUsageDetail_20' ) start [2025-04-01 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809400', 'tblTempUsageDetail_20' ) end [2025-04-01 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809400', 'tblTempVendorCDR_20' ) start [2025-04-01 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809400', 'tblTempVendorCDR_20' ) end [2025-04-01 07:45:17] Production.INFO: ProcessCDR(1,14809400,1,1,2) [2025-04-01 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809400', 'tblTempUsageDetail_20' ) start [2025-04-01 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809400', 'tblTempUsageDetail_20' ) end [2025-04-01 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:45:21] Production.INFO: ==19450== Releasing lock... [2025-04-01 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-01 07:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:46:06 [end_date_ymd] => 2025-04-01 07:46:06 [RateCDR] => 1 ) [2025-04-01 07: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-01 04:46:06' and `end` < '2025-04-01 07: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-01 07:46:18] Production.INFO: count ==112 [2025-04-01 07:46:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:46:06 - End Time 2025-04-01 07:46:06 [2025-04-01 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809405', 'tblTempUsageDetail_20' ) start [2025-04-01 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809405', 'tblTempUsageDetail_20' ) end [2025-04-01 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809405', 'tblTempVendorCDR_20' ) start [2025-04-01 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809405', 'tblTempVendorCDR_20' ) end [2025-04-01 07:46:18] Production.INFO: ProcessCDR(1,14809405,1,1,2) [2025-04-01 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809405', 'tblTempUsageDetail_20' ) start [2025-04-01 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809405', 'tblTempUsageDetail_20' ) end [2025-04-01 07:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:46:22] Production.INFO: ==19529== Releasing lock... [2025-04-01 07:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:46:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-01 07:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:47:06 [end_date_ymd] => 2025-04-01 07:47:06 [RateCDR] => 1 ) [2025-04-01 07: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-01 04:47:06' and `end` < '2025-04-01 07: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-01 07:47:18] Production.INFO: count ==112 [2025-04-01 07:47:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:47:06 - End Time 2025-04-01 07:47:06 [2025-04-01 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809410', 'tblTempUsageDetail_20' ) start [2025-04-01 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809410', 'tblTempUsageDetail_20' ) end [2025-04-01 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809410', 'tblTempVendorCDR_20' ) start [2025-04-01 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809410', 'tblTempVendorCDR_20' ) end [2025-04-01 07:47:18] Production.INFO: ProcessCDR(1,14809410,1,1,2) [2025-04-01 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809410', 'tblTempUsageDetail_20' ) start [2025-04-01 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809410', 'tblTempUsageDetail_20' ) end [2025-04-01 07:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:47:22] Production.INFO: ==19610== Releasing lock... [2025-04-01 07:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:47:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-01 07:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:48:06 [end_date_ymd] => 2025-04-01 07:48:06 [RateCDR] => 1 ) [2025-04-01 07: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-01 04:48:06' and `end` < '2025-04-01 07: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-01 07:48:19] Production.INFO: count ==113 [2025-04-01 07:48:19] Production.ERROR: pbx CDR StartTime 2025-04-01 04:48:06 - End Time 2025-04-01 07:48:06 [2025-04-01 07:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809415', 'tblTempUsageDetail_20' ) start [2025-04-01 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809415', 'tblTempUsageDetail_20' ) end [2025-04-01 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809415', 'tblTempVendorCDR_20' ) start [2025-04-01 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809415', 'tblTempVendorCDR_20' ) end [2025-04-01 07:48:19] Production.INFO: ProcessCDR(1,14809415,1,1,2) [2025-04-01 07:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809415', 'tblTempUsageDetail_20' ) start [2025-04-01 07:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809415', 'tblTempUsageDetail_20' ) end [2025-04-01 07:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:48:23] Production.INFO: ==19722== Releasing lock... [2025-04-01 07:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:48:23] Production.INFO: 29 MB #Memory Used# [2025-04-01 07:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:49:06 [end_date_ymd] => 2025-04-01 07:49:06 [RateCDR] => 1 ) [2025-04-01 07: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-01 04:49:06' and `end` < '2025-04-01 07: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-01 07:49:18] Production.INFO: count ==116 [2025-04-01 07:49:19] Production.ERROR: pbx CDR StartTime 2025-04-01 04:49:06 - End Time 2025-04-01 07:49:06 [2025-04-01 07:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809420', 'tblTempUsageDetail_20' ) start [2025-04-01 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809420', 'tblTempUsageDetail_20' ) end [2025-04-01 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809420', 'tblTempVendorCDR_20' ) start [2025-04-01 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809420', 'tblTempVendorCDR_20' ) end [2025-04-01 07:49:19] Production.INFO: ProcessCDR(1,14809420,1,1,2) [2025-04-01 07:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809420', 'tblTempUsageDetail_20' ) start [2025-04-01 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809420', 'tblTempUsageDetail_20' ) end [2025-04-01 07:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:49:22] Production.INFO: ==19794== Releasing lock... [2025-04-01 07:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:49:22] Production.INFO: 29 MB #Memory Used# [2025-04-01 07:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:50:07 [end_date_ymd] => 2025-04-01 07:50:07 [RateCDR] => 1 ) [2025-04-01 07: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-01 04:50:07' and `end` < '2025-04-01 07: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-01 07:50:20] Production.INFO: count ==126 [2025-04-01 07:50:20] Production.ERROR: pbx CDR StartTime 2025-04-01 04:50:07 - End Time 2025-04-01 07:50:07 [2025-04-01 07:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809426', 'tblTempUsageDetail_20' ) start [2025-04-01 07:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809426', 'tblTempUsageDetail_20' ) end [2025-04-01 07:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809426', 'tblTempVendorCDR_20' ) start [2025-04-01 07:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809426', 'tblTempVendorCDR_20' ) end [2025-04-01 07:50:20] Production.INFO: ProcessCDR(1,14809426,1,1,2) [2025-04-01 07:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809426', 'tblTempUsageDetail_20' ) start [2025-04-01 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809426', 'tblTempUsageDetail_20' ) end [2025-04-01 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:50:23] Production.INFO: ==19881== Releasing lock... [2025-04-01 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:50:23] Production.INFO: 29 MB #Memory Used# [2025-04-01 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:51:05 [end_date_ymd] => 2025-04-01 07:51:05 [RateCDR] => 1 ) [2025-04-01 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-01 04:51:05' and `end` < '2025-04-01 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-01 07:51:18] Production.INFO: count ==135 [2025-04-01 07:51:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:51:05 - End Time 2025-04-01 07:51:05 [2025-04-01 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809431', 'tblTempUsageDetail_20' ) start [2025-04-01 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809431', 'tblTempUsageDetail_20' ) end [2025-04-01 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809431', 'tblTempVendorCDR_20' ) start [2025-04-01 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809431', 'tblTempVendorCDR_20' ) end [2025-04-01 07:51:18] Production.INFO: ProcessCDR(1,14809431,1,1,2) [2025-04-01 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809431', 'tblTempUsageDetail_20' ) start [2025-04-01 07:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809431', 'tblTempUsageDetail_20' ) end [2025-04-01 07:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:51:23] Production.INFO: ==19956== Releasing lock... [2025-04-01 07:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:51:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-01 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:52:06 [end_date_ymd] => 2025-04-01 07:52:06 [RateCDR] => 1 ) [2025-04-01 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-01 04:52:06' and `end` < '2025-04-01 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-01 07:52:19] Production.INFO: count ==141 [2025-04-01 07:52:19] Production.ERROR: pbx CDR StartTime 2025-04-01 04:52:06 - End Time 2025-04-01 07:52:06 [2025-04-01 07:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809436', 'tblTempUsageDetail_20' ) start [2025-04-01 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809436', 'tblTempUsageDetail_20' ) end [2025-04-01 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809436', 'tblTempVendorCDR_20' ) start [2025-04-01 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809436', 'tblTempVendorCDR_20' ) end [2025-04-01 07:52:19] Production.INFO: ProcessCDR(1,14809436,1,1,2) [2025-04-01 07:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809436', 'tblTempUsageDetail_20' ) start [2025-04-01 07:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809436', 'tblTempUsageDetail_20' ) end [2025-04-01 07:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:52:23] Production.INFO: ==20033== Releasing lock... [2025-04-01 07:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:52:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-01 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:53:05 [end_date_ymd] => 2025-04-01 07:53:05 [RateCDR] => 1 ) [2025-04-01 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-01 04:53:05' and `end` < '2025-04-01 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-01 07:53:18] Production.INFO: count ==142 [2025-04-01 07:53:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:53:05 - End Time 2025-04-01 07:53:05 [2025-04-01 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809441', 'tblTempUsageDetail_20' ) start [2025-04-01 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809441', 'tblTempUsageDetail_20' ) end [2025-04-01 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809441', 'tblTempVendorCDR_20' ) start [2025-04-01 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809441', 'tblTempVendorCDR_20' ) end [2025-04-01 07:53:18] Production.INFO: ProcessCDR(1,14809441,1,1,2) [2025-04-01 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809441', 'tblTempUsageDetail_20' ) start [2025-04-01 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809441', 'tblTempUsageDetail_20' ) end [2025-04-01 07:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:53:22] Production.INFO: ==20103== Releasing lock... [2025-04-01 07:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:53:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-01 07:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:54:06 [end_date_ymd] => 2025-04-01 07:54:06 [RateCDR] => 1 ) [2025-04-01 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-01 04:54:06' and `end` < '2025-04-01 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-01 07:54:19] Production.INFO: count ==147 [2025-04-01 07:54:19] Production.ERROR: pbx CDR StartTime 2025-04-01 04:54:06 - End Time 2025-04-01 07:54:06 [2025-04-01 07:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809446', 'tblTempUsageDetail_20' ) start [2025-04-01 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809446', 'tblTempUsageDetail_20' ) end [2025-04-01 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809446', 'tblTempVendorCDR_20' ) start [2025-04-01 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809446', 'tblTempVendorCDR_20' ) end [2025-04-01 07:54:19] Production.INFO: ProcessCDR(1,14809446,1,1,2) [2025-04-01 07:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809446', 'tblTempUsageDetail_20' ) start [2025-04-01 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809446', 'tblTempUsageDetail_20' ) end [2025-04-01 07:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:54:22] Production.INFO: ==20176== Releasing lock... [2025-04-01 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:54:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-01 07:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:55:06 [end_date_ymd] => 2025-04-01 07:55:06 [RateCDR] => 1 ) [2025-04-01 07: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-01 04:55:06' and `end` < '2025-04-01 07: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-01 07:55:18] Production.INFO: count ==147 [2025-04-01 07:55:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:55:06 - End Time 2025-04-01 07:55:06 [2025-04-01 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809451', 'tblTempUsageDetail_20' ) start [2025-04-01 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809451', 'tblTempUsageDetail_20' ) end [2025-04-01 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809451', 'tblTempVendorCDR_20' ) start [2025-04-01 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809451', 'tblTempVendorCDR_20' ) end [2025-04-01 07:55:18] Production.INFO: ProcessCDR(1,14809451,1,1,2) [2025-04-01 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809451', 'tblTempUsageDetail_20' ) start [2025-04-01 07:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809451', 'tblTempUsageDetail_20' ) end [2025-04-01 07:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:55:24] Production.INFO: ==20251== Releasing lock... [2025-04-01 07:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:55:24] Production.INFO: 29.5 MB #Memory Used# [2025-04-01 07:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:56:06 [end_date_ymd] => 2025-04-01 07:56:06 [RateCDR] => 1 ) [2025-04-01 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-01 04:56:06' and `end` < '2025-04-01 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-01 07:56:19] Production.INFO: count ==145 [2025-04-01 07:56:19] Production.ERROR: pbx CDR StartTime 2025-04-01 04:56:06 - End Time 2025-04-01 07:56:06 [2025-04-01 07:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809456', 'tblTempUsageDetail_20' ) start [2025-04-01 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809456', 'tblTempUsageDetail_20' ) end [2025-04-01 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809456', 'tblTempVendorCDR_20' ) start [2025-04-01 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809456', 'tblTempVendorCDR_20' ) end [2025-04-01 07:56:19] Production.INFO: ProcessCDR(1,14809456,1,1,2) [2025-04-01 07:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809456', 'tblTempUsageDetail_20' ) start [2025-04-01 07:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809456', 'tblTempUsageDetail_20' ) end [2025-04-01 07:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:56:23] Production.INFO: ==20327== Releasing lock... [2025-04-01 07:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:56:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-01 07:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:57:06 [end_date_ymd] => 2025-04-01 07:57:06 [RateCDR] => 1 ) [2025-04-01 07: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-01 04:57:06' and `end` < '2025-04-01 07: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-01 07:57:18] Production.INFO: count ==153 [2025-04-01 07:57:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:57:06 - End Time 2025-04-01 07:57:06 [2025-04-01 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809461', 'tblTempUsageDetail_20' ) start [2025-04-01 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809461', 'tblTempUsageDetail_20' ) end [2025-04-01 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809461', 'tblTempVendorCDR_20' ) start [2025-04-01 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809461', 'tblTempVendorCDR_20' ) end [2025-04-01 07:57:18] Production.INFO: ProcessCDR(1,14809461,1,1,2) [2025-04-01 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809461', 'tblTempUsageDetail_20' ) start [2025-04-01 07:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809461', 'tblTempUsageDetail_20' ) end [2025-04-01 07:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:57:24] Production.INFO: ==20405== Releasing lock... [2025-04-01 07:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:57:24] Production.INFO: 29.5 MB #Memory Used# [2025-04-01 07:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:58:06 [end_date_ymd] => 2025-04-01 07:58:06 [RateCDR] => 1 ) [2025-04-01 07: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-01 04:58:06' and `end` < '2025-04-01 07: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-01 07:58:19] Production.INFO: count ==145 [2025-04-01 07:58:19] Production.ERROR: pbx CDR StartTime 2025-04-01 04:58:06 - End Time 2025-04-01 07:58:06 [2025-04-01 07:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809466', 'tblTempUsageDetail_20' ) start [2025-04-01 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809466', 'tblTempUsageDetail_20' ) end [2025-04-01 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809466', 'tblTempVendorCDR_20' ) start [2025-04-01 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809466', 'tblTempVendorCDR_20' ) end [2025-04-01 07:58:19] Production.INFO: ProcessCDR(1,14809466,1,1,2) [2025-04-01 07:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809466', 'tblTempUsageDetail_20' ) start [2025-04-01 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809466', 'tblTempUsageDetail_20' ) end [2025-04-01 07:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:58:23] Production.INFO: ==20480== Releasing lock... [2025-04-01 07:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:58:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-01 07:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 04:59:06 [end_date_ymd] => 2025-04-01 07:59:06 [RateCDR] => 1 ) [2025-04-01 07: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-01 04:59:06' and `end` < '2025-04-01 07: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-01 07:59:18] Production.INFO: count ==149 [2025-04-01 07:59:18] Production.ERROR: pbx CDR StartTime 2025-04-01 04:59:06 - End Time 2025-04-01 07:59:06 [2025-04-01 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809471', 'tblTempUsageDetail_20' ) start [2025-04-01 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809471', 'tblTempUsageDetail_20' ) end [2025-04-01 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809471', 'tblTempVendorCDR_20' ) start [2025-04-01 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809471', 'tblTempVendorCDR_20' ) end [2025-04-01 07:59:18] Production.INFO: ProcessCDR(1,14809471,1,1,2) [2025-04-01 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 07:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809471', 'tblTempUsageDetail_20' ) start [2025-04-01 07:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809471', 'tblTempUsageDetail_20' ) end [2025-04-01 07:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 07:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 07:59:23] Production.INFO: ==20556== Releasing lock... [2025-04-01 07:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 07:59:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-01 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:00:06 [end_date_ymd] => 2025-04-01 08:00:06 [RateCDR] => 1 ) [2025-04-01 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:00:06' and `end` < '2025-04-01 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:00:19] Production.INFO: count ==161 [2025-04-01 08:00:19] Production.ERROR: pbx CDR StartTime 2025-04-01 05:00:06 - End Time 2025-04-01 08:00:06 [2025-04-01 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809477', 'tblTempUsageDetail_20' ) start [2025-04-01 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809477', 'tblTempUsageDetail_20' ) end [2025-04-01 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809477', 'tblTempVendorCDR_20' ) start [2025-04-01 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809477', 'tblTempVendorCDR_20' ) end [2025-04-01 08:00:19] Production.INFO: ProcessCDR(1,14809477,1,1,2) [2025-04-01 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809477', 'tblTempUsageDetail_20' ) start [2025-04-01 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809477', 'tblTempUsageDetail_20' ) end [2025-04-01 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:00:22] Production.INFO: ==20630== Releasing lock... [2025-04-01 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:00:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-01 08:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:01:06 [end_date_ymd] => 2025-04-01 08:01:06 [RateCDR] => 1 ) [2025-04-01 08: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-01 05:01:06' and `end` < '2025-04-01 08: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-01 08:01:18] Production.INFO: count ==161 [2025-04-01 08:01:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:01:06 - End Time 2025-04-01 08:01:06 [2025-04-01 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809482', 'tblTempUsageDetail_20' ) start [2025-04-01 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809482', 'tblTempUsageDetail_20' ) end [2025-04-01 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809482', 'tblTempVendorCDR_20' ) start [2025-04-01 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809482', 'tblTempVendorCDR_20' ) end [2025-04-01 08:01:19] Production.INFO: ProcessCDR(1,14809482,1,1,2) [2025-04-01 08:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809482', 'tblTempUsageDetail_20' ) start [2025-04-01 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809482', 'tblTempUsageDetail_20' ) end [2025-04-01 08:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:01:22] Production.INFO: ==20719== Releasing lock... [2025-04-01 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:01:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-01 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:02:05 [end_date_ymd] => 2025-04-01 08:02:05 [RateCDR] => 1 ) [2025-04-01 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-01 05:02:05' and `end` < '2025-04-01 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-01 08:02:18] Production.INFO: count ==163 [2025-04-01 08:02:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:02:05 - End Time 2025-04-01 08:02:05 [2025-04-01 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809487', 'tblTempUsageDetail_20' ) start [2025-04-01 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809487', 'tblTempUsageDetail_20' ) end [2025-04-01 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809487', 'tblTempVendorCDR_20' ) start [2025-04-01 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809487', 'tblTempVendorCDR_20' ) end [2025-04-01 08:02:18] Production.INFO: ProcessCDR(1,14809487,1,1,2) [2025-04-01 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809487', 'tblTempUsageDetail_20' ) start [2025-04-01 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809487', 'tblTempUsageDetail_20' ) end [2025-04-01 08:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:02:23] Production.INFO: ==20792== Releasing lock... [2025-04-01 08:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:02:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-01 08:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:03:06 [end_date_ymd] => 2025-04-01 08:03:06 [RateCDR] => 1 ) [2025-04-01 08: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-01 05:03:06' and `end` < '2025-04-01 08: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-01 08:03:18] Production.INFO: count ==174 [2025-04-01 08:03:19] Production.ERROR: pbx CDR StartTime 2025-04-01 05:03:06 - End Time 2025-04-01 08:03:06 [2025-04-01 08:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809492', 'tblTempUsageDetail_20' ) start [2025-04-01 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809492', 'tblTempUsageDetail_20' ) end [2025-04-01 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809492', 'tblTempVendorCDR_20' ) start [2025-04-01 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809492', 'tblTempVendorCDR_20' ) end [2025-04-01 08:03:19] Production.INFO: ProcessCDR(1,14809492,1,1,2) [2025-04-01 08:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809492', 'tblTempUsageDetail_20' ) start [2025-04-01 08:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809492', 'tblTempUsageDetail_20' ) end [2025-04-01 08:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:03:23] Production.INFO: ==20924== Releasing lock... [2025-04-01 08:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:03:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-01 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:04:06 [end_date_ymd] => 2025-04-01 08:04:06 [RateCDR] => 1 ) [2025-04-01 08:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:04:06' and `end` < '2025-04-01 08:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:04:18] Production.INFO: count ==180 [2025-04-01 08:04:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:04:06 - End Time 2025-04-01 08:04:06 [2025-04-01 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809497', 'tblTempUsageDetail_20' ) start [2025-04-01 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809497', 'tblTempUsageDetail_20' ) end [2025-04-01 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809497', 'tblTempVendorCDR_20' ) start [2025-04-01 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809497', 'tblTempVendorCDR_20' ) end [2025-04-01 08:04:18] Production.INFO: ProcessCDR(1,14809497,1,1,2) [2025-04-01 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809497', 'tblTempUsageDetail_20' ) start [2025-04-01 08:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809497', 'tblTempUsageDetail_20' ) end [2025-04-01 08:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:04:24] Production.INFO: ==21001== Releasing lock... [2025-04-01 08:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:04:24] Production.INFO: 29.75 MB #Memory Used# [2025-04-01 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:05:05 [end_date_ymd] => 2025-04-01 08:05:05 [RateCDR] => 1 ) [2025-04-01 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:05:05' and `end` < '2025-04-01 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:05:18] Production.INFO: count ==183 [2025-04-01 08:05:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:05:05 - End Time 2025-04-01 08:05:05 [2025-04-01 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809502', 'tblTempUsageDetail_20' ) start [2025-04-01 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809502', 'tblTempUsageDetail_20' ) end [2025-04-01 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809502', 'tblTempVendorCDR_20' ) start [2025-04-01 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809502', 'tblTempVendorCDR_20' ) end [2025-04-01 08:05:18] Production.INFO: ProcessCDR(1,14809502,1,1,2) [2025-04-01 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809502', 'tblTempUsageDetail_20' ) start [2025-04-01 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809502', 'tblTempUsageDetail_20' ) end [2025-04-01 08:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:05:22] Production.INFO: ==21080== Releasing lock... [2025-04-01 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:05:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-01 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:06:05 [end_date_ymd] => 2025-04-01 08:06:05 [RateCDR] => 1 ) [2025-04-01 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-01 05:06:05' and `end` < '2025-04-01 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-01 08:06:18] Production.INFO: count ==194 [2025-04-01 08:06:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:06:05 - End Time 2025-04-01 08:06:05 [2025-04-01 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809507', 'tblTempUsageDetail_20' ) start [2025-04-01 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809507', 'tblTempUsageDetail_20' ) end [2025-04-01 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809507', 'tblTempVendorCDR_20' ) start [2025-04-01 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809507', 'tblTempVendorCDR_20' ) end [2025-04-01 08:06:18] Production.INFO: ProcessCDR(1,14809507,1,1,2) [2025-04-01 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809507', 'tblTempUsageDetail_20' ) start [2025-04-01 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809507', 'tblTempUsageDetail_20' ) end [2025-04-01 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:06:22] Production.INFO: ==21152== Releasing lock... [2025-04-01 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:06:22] Production.INFO: 30 MB #Memory Used# [2025-04-01 08:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:07:06 [end_date_ymd] => 2025-04-01 08:07:06 [RateCDR] => 1 ) [2025-04-01 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-01 05:07:06' and `end` < '2025-04-01 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-01 08:07:18] Production.INFO: count ==208 [2025-04-01 08:07:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:07:06 - End Time 2025-04-01 08:07:06 [2025-04-01 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809512', 'tblTempUsageDetail_20' ) start [2025-04-01 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809512', 'tblTempUsageDetail_20' ) end [2025-04-01 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809512', 'tblTempVendorCDR_20' ) start [2025-04-01 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809512', 'tblTempVendorCDR_20' ) end [2025-04-01 08:07:18] Production.INFO: ProcessCDR(1,14809512,1,1,2) [2025-04-01 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809512', 'tblTempUsageDetail_20' ) start [2025-04-01 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809512', 'tblTempUsageDetail_20' ) end [2025-04-01 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:07:22] Production.INFO: ==21237== Releasing lock... [2025-04-01 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:07:22] Production.INFO: 30 MB #Memory Used# [2025-04-01 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:08:05 [end_date_ymd] => 2025-04-01 08:08:05 [RateCDR] => 1 ) [2025-04-01 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-01 05:08:05' and `end` < '2025-04-01 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-01 08:08:18] Production.INFO: count ==210 [2025-04-01 08:08:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:08:05 - End Time 2025-04-01 08:08:05 [2025-04-01 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809517', 'tblTempUsageDetail_20' ) start [2025-04-01 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809517', 'tblTempUsageDetail_20' ) end [2025-04-01 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809517', 'tblTempVendorCDR_20' ) start [2025-04-01 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809517', 'tblTempVendorCDR_20' ) end [2025-04-01 08:08:18] Production.INFO: ProcessCDR(1,14809517,1,1,2) [2025-04-01 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809517', 'tblTempUsageDetail_20' ) start [2025-04-01 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809517', 'tblTempUsageDetail_20' ) end [2025-04-01 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:08:22] Production.INFO: ==21308== Releasing lock... [2025-04-01 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:08:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-01 08:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:09:06 [end_date_ymd] => 2025-04-01 08:09:06 [RateCDR] => 1 ) [2025-04-01 08: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-01 05:09:06' and `end` < '2025-04-01 08: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-01 08:09:18] Production.INFO: count ==211 [2025-04-01 08:09:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:09:06 - End Time 2025-04-01 08:09:06 [2025-04-01 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809522', 'tblTempUsageDetail_20' ) start [2025-04-01 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809522', 'tblTempUsageDetail_20' ) end [2025-04-01 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809522', 'tblTempVendorCDR_20' ) start [2025-04-01 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809522', 'tblTempVendorCDR_20' ) end [2025-04-01 08:09:18] Production.INFO: ProcessCDR(1,14809522,1,1,2) [2025-04-01 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809522', 'tblTempUsageDetail_20' ) start [2025-04-01 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809522', 'tblTempUsageDetail_20' ) end [2025-04-01 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:09:22] Production.INFO: ==21385== Releasing lock... [2025-04-01 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:09:22] Production.INFO: 30 MB #Memory Used# [2025-04-01 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:10:06 [end_date_ymd] => 2025-04-01 08:10:06 [RateCDR] => 1 ) [2025-04-01 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:10:06' and `end` < '2025-04-01 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:10:18] Production.INFO: count ==239 [2025-04-01 08:10:19] Production.ERROR: pbx CDR StartTime 2025-04-01 05:10:06 - End Time 2025-04-01 08:10:06 [2025-04-01 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809527', 'tblTempUsageDetail_20' ) start [2025-04-01 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809527', 'tblTempUsageDetail_20' ) end [2025-04-01 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809527', 'tblTempVendorCDR_20' ) start [2025-04-01 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809527', 'tblTempVendorCDR_20' ) end [2025-04-01 08:10:19] Production.INFO: ProcessCDR(1,14809527,1,1,2) [2025-04-01 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809527', 'tblTempUsageDetail_20' ) start [2025-04-01 08:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809527', 'tblTempUsageDetail_20' ) end [2025-04-01 08:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:10:24] Production.INFO: ==21461== Releasing lock... [2025-04-01 08:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:10:24] Production.INFO: 30.25 MB #Memory Used# [2025-04-01 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:11:05 [end_date_ymd] => 2025-04-01 08:11:05 [RateCDR] => 1 ) [2025-04-01 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-01 05:11:05' and `end` < '2025-04-01 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-01 08:11:18] Production.INFO: count ==273 [2025-04-01 08:11:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:11:05 - End Time 2025-04-01 08:11:05 [2025-04-01 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809533', 'tblTempUsageDetail_20' ) start [2025-04-01 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809533', 'tblTempUsageDetail_20' ) end [2025-04-01 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809533', 'tblTempVendorCDR_20' ) start [2025-04-01 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809533', 'tblTempVendorCDR_20' ) end [2025-04-01 08:11:18] Production.INFO: ProcessCDR(1,14809533,1,1,2) [2025-04-01 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809533', 'tblTempUsageDetail_20' ) start [2025-04-01 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809533', 'tblTempUsageDetail_20' ) end [2025-04-01 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:11:21] Production.INFO: ==21540== Releasing lock... [2025-04-01 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:11:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-01 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:12:05 [end_date_ymd] => 2025-04-01 08:12:05 [RateCDR] => 1 ) [2025-04-01 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:12:05' and `end` < '2025-04-01 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:12:18] Production.INFO: count ==276 [2025-04-01 08:12:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:12:05 - End Time 2025-04-01 08:12:05 [2025-04-01 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809538', 'tblTempUsageDetail_20' ) start [2025-04-01 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809538', 'tblTempUsageDetail_20' ) end [2025-04-01 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809538', 'tblTempVendorCDR_20' ) start [2025-04-01 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809538', 'tblTempVendorCDR_20' ) end [2025-04-01 08:12:18] Production.INFO: ProcessCDR(1,14809538,1,1,2) [2025-04-01 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809538', 'tblTempUsageDetail_20' ) start [2025-04-01 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809538', 'tblTempUsageDetail_20' ) end [2025-04-01 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:12:22] Production.INFO: ==21612== Releasing lock... [2025-04-01 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:12:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-01 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:13:05 [end_date_ymd] => 2025-04-01 08:13:05 [RateCDR] => 1 ) [2025-04-01 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-01 05:13:05' and `end` < '2025-04-01 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-01 08:13:18] Production.INFO: count ==292 [2025-04-01 08:13:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:13:05 - End Time 2025-04-01 08:13:05 [2025-04-01 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809543', 'tblTempUsageDetail_20' ) start [2025-04-01 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809543', 'tblTempUsageDetail_20' ) end [2025-04-01 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809543', 'tblTempVendorCDR_20' ) start [2025-04-01 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809543', 'tblTempVendorCDR_20' ) end [2025-04-01 08:13:18] Production.INFO: ProcessCDR(1,14809543,1,1,2) [2025-04-01 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809543', 'tblTempUsageDetail_20' ) start [2025-04-01 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809543', 'tblTempUsageDetail_20' ) end [2025-04-01 08:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:13:22] Production.INFO: ==21689== Releasing lock... [2025-04-01 08:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:13:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-01 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:14:05 [end_date_ymd] => 2025-04-01 08:14:05 [RateCDR] => 1 ) [2025-04-01 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:14:05' and `end` < '2025-04-01 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:14:18] Production.INFO: count ==308 [2025-04-01 08:14:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:14:05 - End Time 2025-04-01 08:14:05 [2025-04-01 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809548', 'tblTempUsageDetail_20' ) start [2025-04-01 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809548', 'tblTempUsageDetail_20' ) end [2025-04-01 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809548', 'tblTempVendorCDR_20' ) start [2025-04-01 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809548', 'tblTempVendorCDR_20' ) end [2025-04-01 08:14:18] Production.INFO: ProcessCDR(1,14809548,1,1,2) [2025-04-01 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809548', 'tblTempUsageDetail_20' ) start [2025-04-01 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809548', 'tblTempUsageDetail_20' ) end [2025-04-01 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:14:21] Production.INFO: ==21759== Releasing lock... [2025-04-01 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:14:21] Production.INFO: 31 MB #Memory Used# [2025-04-01 08:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:15:06 [end_date_ymd] => 2025-04-01 08:15:06 [RateCDR] => 1 ) [2025-04-01 08: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-01 05:15:06' and `end` < '2025-04-01 08: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-01 08:15:18] Production.INFO: count ==309 [2025-04-01 08:15:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:15:06 - End Time 2025-04-01 08:15:06 [2025-04-01 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809553', 'tblTempUsageDetail_20' ) start [2025-04-01 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809553', 'tblTempUsageDetail_20' ) end [2025-04-01 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809553', 'tblTempVendorCDR_20' ) start [2025-04-01 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809553', 'tblTempVendorCDR_20' ) end [2025-04-01 08:15:18] Production.INFO: ProcessCDR(1,14809553,1,1,2) [2025-04-01 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809553', 'tblTempUsageDetail_20' ) start [2025-04-01 08:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809553', 'tblTempUsageDetail_20' ) end [2025-04-01 08:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:15:24] Production.INFO: ==21833== Releasing lock... [2025-04-01 08:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:15:24] Production.INFO: 31 MB #Memory Used# [2025-04-01 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:16:05 [end_date_ymd] => 2025-04-01 08:16:05 [RateCDR] => 1 ) [2025-04-01 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-01 05:16:05' and `end` < '2025-04-01 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-01 08:16:18] Production.INFO: count ==319 [2025-04-01 08:16:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:16:05 - End Time 2025-04-01 08:16:05 [2025-04-01 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809558', 'tblTempUsageDetail_20' ) start [2025-04-01 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809558', 'tblTempUsageDetail_20' ) end [2025-04-01 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809558', 'tblTempVendorCDR_20' ) start [2025-04-01 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809558', 'tblTempVendorCDR_20' ) end [2025-04-01 08:16:18] Production.INFO: ProcessCDR(1,14809558,1,1,2) [2025-04-01 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809558', 'tblTempUsageDetail_20' ) start [2025-04-01 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809558', 'tblTempUsageDetail_20' ) end [2025-04-01 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:16:21] Production.INFO: ==21905== Releasing lock... [2025-04-01 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:16:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-01 08:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:17:06 [end_date_ymd] => 2025-04-01 08:17:06 [RateCDR] => 1 ) [2025-04-01 08:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:17:06' and `end` < '2025-04-01 08:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:17:18] Production.INFO: count ==323 [2025-04-01 08:17:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:17:06 - End Time 2025-04-01 08:17:06 [2025-04-01 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809563', 'tblTempUsageDetail_20' ) start [2025-04-01 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809563', 'tblTempUsageDetail_20' ) end [2025-04-01 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809563', 'tblTempVendorCDR_20' ) start [2025-04-01 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809563', 'tblTempVendorCDR_20' ) end [2025-04-01 08:17:18] Production.INFO: ProcessCDR(1,14809563,1,1,2) [2025-04-01 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809563', 'tblTempUsageDetail_20' ) start [2025-04-01 08:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809563', 'tblTempUsageDetail_20' ) end [2025-04-01 08:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:17:24] Production.INFO: ==21979== Releasing lock... [2025-04-01 08:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:17:24] Production.INFO: 31.25 MB #Memory Used# [2025-04-01 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:18:05 [end_date_ymd] => 2025-04-01 08:18:05 [RateCDR] => 1 ) [2025-04-01 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-01 05:18:05' and `end` < '2025-04-01 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-01 08:18:18] Production.INFO: count ==330 [2025-04-01 08:18:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:18:05 - End Time 2025-04-01 08:18:05 [2025-04-01 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809568', 'tblTempUsageDetail_20' ) start [2025-04-01 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809568', 'tblTempUsageDetail_20' ) end [2025-04-01 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809568', 'tblTempVendorCDR_20' ) start [2025-04-01 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809568', 'tblTempVendorCDR_20' ) end [2025-04-01 08:18:18] Production.INFO: ProcessCDR(1,14809568,1,1,2) [2025-04-01 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809568', 'tblTempUsageDetail_20' ) start [2025-04-01 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809568', 'tblTempUsageDetail_20' ) end [2025-04-01 08:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:18:23] Production.INFO: ==22050== Releasing lock... [2025-04-01 08:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:18:23] Production.INFO: 31 MB #Memory Used# [2025-04-01 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:19:05 [end_date_ymd] => 2025-04-01 08:19:05 [RateCDR] => 1 ) [2025-04-01 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:19:05' and `end` < '2025-04-01 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:19:18] Production.INFO: count ==343 [2025-04-01 08:19:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:19:05 - End Time 2025-04-01 08:19:05 [2025-04-01 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809573', 'tblTempUsageDetail_20' ) start [2025-04-01 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809573', 'tblTempUsageDetail_20' ) end [2025-04-01 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809573', 'tblTempVendorCDR_20' ) start [2025-04-01 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809573', 'tblTempVendorCDR_20' ) end [2025-04-01 08:19:18] Production.INFO: ProcessCDR(1,14809573,1,1,2) [2025-04-01 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809573', 'tblTempUsageDetail_20' ) start [2025-04-01 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809573', 'tblTempUsageDetail_20' ) end [2025-04-01 08:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:19:23] Production.INFO: ==22172== Releasing lock... [2025-04-01 08:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:19:23] Production.INFO: 31 MB #Memory Used# [2025-04-01 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:20:05 [end_date_ymd] => 2025-04-01 08:20:05 [RateCDR] => 1 ) [2025-04-01 08: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-01 05:20:05' and `end` < '2025-04-01 08: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-01 08:20:18] Production.INFO: count ==356 [2025-04-01 08:20:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:20:05 - End Time 2025-04-01 08:20:05 [2025-04-01 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809579', 'tblTempUsageDetail_20' ) start [2025-04-01 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809579', 'tblTempUsageDetail_20' ) end [2025-04-01 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809579', 'tblTempVendorCDR_20' ) start [2025-04-01 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809579', 'tblTempVendorCDR_20' ) end [2025-04-01 08:20:18] Production.INFO: ProcessCDR(1,14809579,1,1,2) [2025-04-01 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809579', 'tblTempUsageDetail_20' ) start [2025-04-01 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809579', 'tblTempUsageDetail_20' ) end [2025-04-01 08:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:20:23] Production.INFO: ==22250== Releasing lock... [2025-04-01 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:20:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-01 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:21:05 [end_date_ymd] => 2025-04-01 08:21:05 [RateCDR] => 1 ) [2025-04-01 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-01 05:21:05' and `end` < '2025-04-01 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-01 08:21:18] Production.INFO: count ==380 [2025-04-01 08:21:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:21:05 - End Time 2025-04-01 08:21:05 [2025-04-01 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809584', 'tblTempUsageDetail_20' ) start [2025-04-01 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809584', 'tblTempUsageDetail_20' ) end [2025-04-01 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809584', 'tblTempVendorCDR_20' ) start [2025-04-01 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809584', 'tblTempVendorCDR_20' ) end [2025-04-01 08:21:18] Production.INFO: ProcessCDR(1,14809584,1,1,2) [2025-04-01 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809584', 'tblTempUsageDetail_20' ) start [2025-04-01 08:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809584', 'tblTempUsageDetail_20' ) end [2025-04-01 08:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:21:23] Production.INFO: ==22328== Releasing lock... [2025-04-01 08:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:21:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-01 08:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:22:06 [end_date_ymd] => 2025-04-01 08:22:06 [RateCDR] => 1 ) [2025-04-01 08:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:22:06' and `end` < '2025-04-01 08:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:22:18] Production.INFO: count ==381 [2025-04-01 08:22:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:22:06 - End Time 2025-04-01 08:22:06 [2025-04-01 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809589', 'tblTempUsageDetail_20' ) start [2025-04-01 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809589', 'tblTempUsageDetail_20' ) end [2025-04-01 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809589', 'tblTempVendorCDR_20' ) start [2025-04-01 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809589', 'tblTempVendorCDR_20' ) end [2025-04-01 08:22:18] Production.INFO: ProcessCDR(1,14809589,1,1,2) [2025-04-01 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809589', 'tblTempUsageDetail_20' ) start [2025-04-01 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809589', 'tblTempUsageDetail_20' ) end [2025-04-01 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:22:23] Production.INFO: ==22400== Releasing lock... [2025-04-01 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:22:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-01 08:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:23:06 [end_date_ymd] => 2025-04-01 08:23:06 [RateCDR] => 1 ) [2025-04-01 08: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-01 05:23:06' and `end` < '2025-04-01 08: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-01 08:23:18] Production.INFO: count ==381 [2025-04-01 08:23:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:23:06 - End Time 2025-04-01 08:23:06 [2025-04-01 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809594', 'tblTempUsageDetail_20' ) start [2025-04-01 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809594', 'tblTempUsageDetail_20' ) end [2025-04-01 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809594', 'tblTempVendorCDR_20' ) start [2025-04-01 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809594', 'tblTempVendorCDR_20' ) end [2025-04-01 08:23:18] Production.INFO: ProcessCDR(1,14809594,1,1,2) [2025-04-01 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809594', 'tblTempUsageDetail_20' ) start [2025-04-01 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809594', 'tblTempUsageDetail_20' ) end [2025-04-01 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:23:22] Production.INFO: ==22475== Releasing lock... [2025-04-01 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:23:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-01 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:24:06 [end_date_ymd] => 2025-04-01 08:24:06 [RateCDR] => 1 ) [2025-04-01 08: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-01 05:24:06' and `end` < '2025-04-01 08: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-01 08:24:19] Production.INFO: count ==398 [2025-04-01 08:24:19] Production.ERROR: pbx CDR StartTime 2025-04-01 05:24:06 - End Time 2025-04-01 08:24:06 [2025-04-01 08:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809599', 'tblTempUsageDetail_20' ) start [2025-04-01 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809599', 'tblTempUsageDetail_20' ) end [2025-04-01 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809599', 'tblTempVendorCDR_20' ) start [2025-04-01 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809599', 'tblTempVendorCDR_20' ) end [2025-04-01 08:24:19] Production.INFO: ProcessCDR(1,14809599,1,1,2) [2025-04-01 08:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809599', 'tblTempUsageDetail_20' ) start [2025-04-01 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809599', 'tblTempUsageDetail_20' ) end [2025-04-01 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:24:22] Production.INFO: ==22554== Releasing lock... [2025-04-01 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:24:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-01 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:25:05 [end_date_ymd] => 2025-04-01 08:25:05 [RateCDR] => 1 ) [2025-04-01 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:25:05' and `end` < '2025-04-01 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:25:18] Production.INFO: count ==401 [2025-04-01 08:25:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:25:05 - End Time 2025-04-01 08:25:05 [2025-04-01 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809604', 'tblTempUsageDetail_20' ) start [2025-04-01 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809604', 'tblTempUsageDetail_20' ) end [2025-04-01 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809604', 'tblTempVendorCDR_20' ) start [2025-04-01 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809604', 'tblTempVendorCDR_20' ) end [2025-04-01 08:25:18] Production.INFO: ProcessCDR(1,14809604,1,1,2) [2025-04-01 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809604', 'tblTempUsageDetail_20' ) start [2025-04-01 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809604', 'tblTempUsageDetail_20' ) end [2025-04-01 08:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:25:22] Production.INFO: ==22634== Releasing lock... [2025-04-01 08:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:25:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-01 08:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:26:06 [end_date_ymd] => 2025-04-01 08:26:06 [RateCDR] => 1 ) [2025-04-01 08: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-01 05:26:06' and `end` < '2025-04-01 08: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-01 08:26:18] Production.INFO: count ==415 [2025-04-01 08:26:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:26:06 - End Time 2025-04-01 08:26:06 [2025-04-01 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809609', 'tblTempUsageDetail_20' ) start [2025-04-01 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809609', 'tblTempUsageDetail_20' ) end [2025-04-01 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809609', 'tblTempVendorCDR_20' ) start [2025-04-01 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809609', 'tblTempVendorCDR_20' ) end [2025-04-01 08:26:18] Production.INFO: ProcessCDR(1,14809609,1,1,2) [2025-04-01 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809609', 'tblTempUsageDetail_20' ) start [2025-04-01 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809609', 'tblTempUsageDetail_20' ) end [2025-04-01 08:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:26:22] Production.INFO: ==22706== Releasing lock... [2025-04-01 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:26:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-01 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:27:05 [end_date_ymd] => 2025-04-01 08:27:05 [RateCDR] => 1 ) [2025-04-01 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:27:05' and `end` < '2025-04-01 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:27:18] Production.INFO: count ==419 [2025-04-01 08:27:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:27:05 - End Time 2025-04-01 08:27:05 [2025-04-01 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809614', 'tblTempUsageDetail_20' ) start [2025-04-01 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809614', 'tblTempUsageDetail_20' ) end [2025-04-01 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809614', 'tblTempVendorCDR_20' ) start [2025-04-01 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809614', 'tblTempVendorCDR_20' ) end [2025-04-01 08:27:18] Production.INFO: ProcessCDR(1,14809614,1,1,2) [2025-04-01 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809614', 'tblTempUsageDetail_20' ) start [2025-04-01 08:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809614', 'tblTempUsageDetail_20' ) end [2025-04-01 08:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:27:24] Production.INFO: ==22779== Releasing lock... [2025-04-01 08:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:27:24] Production.INFO: 32.25 MB #Memory Used# [2025-04-01 08:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:28:06 [end_date_ymd] => 2025-04-01 08:28:06 [RateCDR] => 1 ) [2025-04-01 08:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:28:06' and `end` < '2025-04-01 08:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:28:19] Production.INFO: count ==422 [2025-04-01 08:28:19] Production.ERROR: pbx CDR StartTime 2025-04-01 05:28:06 - End Time 2025-04-01 08:28:06 [2025-04-01 08:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809619', 'tblTempUsageDetail_20' ) start [2025-04-01 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809619', 'tblTempUsageDetail_20' ) end [2025-04-01 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809619', 'tblTempVendorCDR_20' ) start [2025-04-01 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809619', 'tblTempVendorCDR_20' ) end [2025-04-01 08:28:19] Production.INFO: ProcessCDR(1,14809619,1,1,2) [2025-04-01 08:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809619', 'tblTempUsageDetail_20' ) start [2025-04-01 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809619', 'tblTempUsageDetail_20' ) end [2025-04-01 08:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:28:23] Production.INFO: ==22853== Releasing lock... [2025-04-01 08:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:28:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-01 08:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:29:06 [end_date_ymd] => 2025-04-01 08:29:06 [RateCDR] => 1 ) [2025-04-01 08: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-01 05:29:06' and `end` < '2025-04-01 08: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-01 08:29:18] Production.INFO: count ==428 [2025-04-01 08:29:19] Production.ERROR: pbx CDR StartTime 2025-04-01 05:29:06 - End Time 2025-04-01 08:29:06 [2025-04-01 08:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809624', 'tblTempUsageDetail_20' ) start [2025-04-01 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809624', 'tblTempUsageDetail_20' ) end [2025-04-01 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809624', 'tblTempVendorCDR_20' ) start [2025-04-01 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809624', 'tblTempVendorCDR_20' ) end [2025-04-01 08:29:19] Production.INFO: ProcessCDR(1,14809624,1,1,2) [2025-04-01 08:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809624', 'tblTempUsageDetail_20' ) start [2025-04-01 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809624', 'tblTempUsageDetail_20' ) end [2025-04-01 08:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:29:23] Production.INFO: ==22926== Releasing lock... [2025-04-01 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:29:23] Production.INFO: 32 MB #Memory Used# [2025-04-01 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:30:06 [end_date_ymd] => 2025-04-01 08:30:06 [RateCDR] => 1 ) [2025-04-01 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:30:06' and `end` < '2025-04-01 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:30:18] Production.INFO: count ==448 [2025-04-01 08:30:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:30:06 - End Time 2025-04-01 08:30:06 [2025-04-01 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809630', 'tblTempUsageDetail_20' ) start [2025-04-01 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809630', 'tblTempUsageDetail_20' ) end [2025-04-01 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809630', 'tblTempVendorCDR_20' ) start [2025-04-01 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809630', 'tblTempVendorCDR_20' ) end [2025-04-01 08:30:18] Production.INFO: ProcessCDR(1,14809630,1,1,2) [2025-04-01 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809630', 'tblTempUsageDetail_20' ) start [2025-04-01 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809630', 'tblTempUsageDetail_20' ) end [2025-04-01 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:30:22] Production.INFO: ==23006== Releasing lock... [2025-04-01 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:30:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-01 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:31:05 [end_date_ymd] => 2025-04-01 08:31:05 [RateCDR] => 1 ) [2025-04-01 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-01 05:31:05' and `end` < '2025-04-01 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-01 08:31:18] Production.INFO: count ==472 [2025-04-01 08:31:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:31:05 - End Time 2025-04-01 08:31:05 [2025-04-01 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809635', 'tblTempUsageDetail_20' ) start [2025-04-01 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809635', 'tblTempUsageDetail_20' ) end [2025-04-01 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809635', 'tblTempVendorCDR_20' ) start [2025-04-01 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809635', 'tblTempVendorCDR_20' ) end [2025-04-01 08:31:18] Production.INFO: ProcessCDR(1,14809635,1,1,2) [2025-04-01 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809635', 'tblTempUsageDetail_20' ) start [2025-04-01 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809635', 'tblTempUsageDetail_20' ) end [2025-04-01 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:31:22] Production.INFO: ==23083== Releasing lock... [2025-04-01 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:31:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-01 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:32:06 [end_date_ymd] => 2025-04-01 08:32:06 [RateCDR] => 1 ) [2025-04-01 08: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-01 05:32:06' and `end` < '2025-04-01 08: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-01 08:32:18] Production.INFO: count ==473 [2025-04-01 08:32:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:32:06 - End Time 2025-04-01 08:32:06 [2025-04-01 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809640', 'tblTempUsageDetail_20' ) start [2025-04-01 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809640', 'tblTempUsageDetail_20' ) end [2025-04-01 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809640', 'tblTempVendorCDR_20' ) start [2025-04-01 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809640', 'tblTempVendorCDR_20' ) end [2025-04-01 08:32:18] Production.INFO: ProcessCDR(1,14809640,1,1,2) [2025-04-01 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809640', 'tblTempUsageDetail_20' ) start [2025-04-01 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809640', 'tblTempUsageDetail_20' ) end [2025-04-01 08:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:32:23] Production.INFO: ==23155== Releasing lock... [2025-04-01 08:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:32:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-01 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:33:05 [end_date_ymd] => 2025-04-01 08:33:05 [RateCDR] => 1 ) [2025-04-01 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-01 05:33:05' and `end` < '2025-04-01 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-01 08:33:18] Production.INFO: count ==478 [2025-04-01 08:33:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:33:05 - End Time 2025-04-01 08:33:05 [2025-04-01 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809645', 'tblTempUsageDetail_20' ) start [2025-04-01 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809645', 'tblTempUsageDetail_20' ) end [2025-04-01 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809645', 'tblTempVendorCDR_20' ) start [2025-04-01 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809645', 'tblTempVendorCDR_20' ) end [2025-04-01 08:33:18] Production.INFO: ProcessCDR(1,14809645,1,1,2) [2025-04-01 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809645', 'tblTempUsageDetail_20' ) start [2025-04-01 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809645', 'tblTempUsageDetail_20' ) end [2025-04-01 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:33:22] Production.INFO: ==23230== Releasing lock... [2025-04-01 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:33:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-01 08:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:34:06 [end_date_ymd] => 2025-04-01 08:34:06 [RateCDR] => 1 ) [2025-04-01 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-01 05:34:06' and `end` < '2025-04-01 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-01 08:34:18] Production.INFO: count ==478 [2025-04-01 08:34:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:34:06 - End Time 2025-04-01 08:34:06 [2025-04-01 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809650', 'tblTempUsageDetail_20' ) start [2025-04-01 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809650', 'tblTempUsageDetail_20' ) end [2025-04-01 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809650', 'tblTempVendorCDR_20' ) start [2025-04-01 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809650', 'tblTempVendorCDR_20' ) end [2025-04-01 08:34:18] Production.INFO: ProcessCDR(1,14809650,1,1,2) [2025-04-01 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809650', 'tblTempUsageDetail_20' ) start [2025-04-01 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809650', 'tblTempUsageDetail_20' ) end [2025-04-01 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:34:22] Production.INFO: ==23343== Releasing lock... [2025-04-01 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:34:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-01 08:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:35:06 [end_date_ymd] => 2025-04-01 08:35:06 [RateCDR] => 1 ) [2025-04-01 08: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-01 05:35:06' and `end` < '2025-04-01 08: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-01 08:35:19] Production.INFO: count ==487 [2025-04-01 08:35:19] Production.ERROR: pbx CDR StartTime 2025-04-01 05:35:06 - End Time 2025-04-01 08:35:06 [2025-04-01 08:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809655', 'tblTempUsageDetail_20' ) start [2025-04-01 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809655', 'tblTempUsageDetail_20' ) end [2025-04-01 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809655', 'tblTempVendorCDR_20' ) start [2025-04-01 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809655', 'tblTempVendorCDR_20' ) end [2025-04-01 08:35:19] Production.INFO: ProcessCDR(1,14809655,1,1,2) [2025-04-01 08:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809655', 'tblTempUsageDetail_20' ) start [2025-04-01 08:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809655', 'tblTempUsageDetail_20' ) end [2025-04-01 08:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:35:24] Production.INFO: ==23416== Releasing lock... [2025-04-01 08:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:35:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-01 08:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:36:04 [end_date_ymd] => 2025-04-01 08:36:04 [RateCDR] => 1 ) [2025-04-01 08: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-01 05:36:04' and `end` < '2025-04-01 08: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-01 08:36:17] Production.INFO: count ==493 [2025-04-01 08:36:17] Production.ERROR: pbx CDR StartTime 2025-04-01 05:36:04 - End Time 2025-04-01 08:36:04 [2025-04-01 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809659', 'tblTempUsageDetail_20' ) start [2025-04-01 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809659', 'tblTempUsageDetail_20' ) end [2025-04-01 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809659', 'tblTempVendorCDR_20' ) start [2025-04-01 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809659', 'tblTempVendorCDR_20' ) end [2025-04-01 08:36:17] Production.INFO: ProcessCDR(1,14809659,1,1,2) [2025-04-01 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809659', 'tblTempUsageDetail_20' ) start [2025-04-01 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809659', 'tblTempUsageDetail_20' ) end [2025-04-01 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:36:22] Production.INFO: ==23504== Releasing lock... [2025-04-01 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:36:22] Production.INFO: 32 MB #Memory Used# [2025-04-01 08:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:37:06 [end_date_ymd] => 2025-04-01 08:37:06 [RateCDR] => 1 ) [2025-04-01 08: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-01 05:37:06' and `end` < '2025-04-01 08: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-01 08:37:18] Production.INFO: count ==498 [2025-04-01 08:37:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:37:06 - End Time 2025-04-01 08:37:06 [2025-04-01 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809665', 'tblTempUsageDetail_20' ) start [2025-04-01 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809665', 'tblTempUsageDetail_20' ) end [2025-04-01 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809665', 'tblTempVendorCDR_20' ) start [2025-04-01 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809665', 'tblTempVendorCDR_20' ) end [2025-04-01 08:37:18] Production.INFO: ProcessCDR(1,14809665,1,1,2) [2025-04-01 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809665', 'tblTempUsageDetail_20' ) start [2025-04-01 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809665', 'tblTempUsageDetail_20' ) end [2025-04-01 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:37:22] Production.INFO: ==23575== Releasing lock... [2025-04-01 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:37:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-01 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:38:05 [end_date_ymd] => 2025-04-01 08:38:05 [RateCDR] => 1 ) [2025-04-01 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-01 05:38:05' and `end` < '2025-04-01 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-01 08:38:18] Production.INFO: count ==499 [2025-04-01 08:38:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:38:05 - End Time 2025-04-01 08:38:05 [2025-04-01 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809670', 'tblTempUsageDetail_20' ) start [2025-04-01 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809670', 'tblTempUsageDetail_20' ) end [2025-04-01 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809670', 'tblTempVendorCDR_20' ) start [2025-04-01 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809670', 'tblTempVendorCDR_20' ) end [2025-04-01 08:38:18] Production.INFO: ProcessCDR(1,14809670,1,1,2) [2025-04-01 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809670', 'tblTempUsageDetail_20' ) start [2025-04-01 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809670', 'tblTempUsageDetail_20' ) end [2025-04-01 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:38:23] Production.INFO: ==23646== Releasing lock... [2025-04-01 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:38:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-01 08:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:39:06 [end_date_ymd] => 2025-04-01 08:39:06 [RateCDR] => 1 ) [2025-04-01 08: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-01 05:39:06' and `end` < '2025-04-01 08: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-01 08:39:18] Production.INFO: count ==499 [2025-04-01 08:39:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:39:06 - End Time 2025-04-01 08:39:06 [2025-04-01 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809675', 'tblTempUsageDetail_20' ) start [2025-04-01 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809675', 'tblTempUsageDetail_20' ) end [2025-04-01 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809675', 'tblTempVendorCDR_20' ) start [2025-04-01 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809675', 'tblTempVendorCDR_20' ) end [2025-04-01 08:39:18] Production.INFO: ProcessCDR(1,14809675,1,1,2) [2025-04-01 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809675', 'tblTempUsageDetail_20' ) start [2025-04-01 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809675', 'tblTempUsageDetail_20' ) end [2025-04-01 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:39:22] Production.INFO: ==23719== Releasing lock... [2025-04-01 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:39:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-01 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:40:06 [end_date_ymd] => 2025-04-01 08:40:06 [RateCDR] => 1 ) [2025-04-01 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-01 05:40:06' and `end` < '2025-04-01 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-01 08:40:19] Production.INFO: count ==514 [2025-04-01 08:40:19] Production.ERROR: pbx CDR StartTime 2025-04-01 05:40:06 - End Time 2025-04-01 08:40:06 [2025-04-01 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809680', 'tblTempUsageDetail_20' ) start [2025-04-01 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809680', 'tblTempUsageDetail_20' ) end [2025-04-01 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809680', 'tblTempVendorCDR_20' ) start [2025-04-01 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809680', 'tblTempVendorCDR_20' ) end [2025-04-01 08:40:19] Production.INFO: ProcessCDR(1,14809680,1,1,2) [2025-04-01 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809680', 'tblTempUsageDetail_20' ) start [2025-04-01 08:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809680', 'tblTempUsageDetail_20' ) end [2025-04-01 08:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:40:25] Production.INFO: ==23794== Releasing lock... [2025-04-01 08:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:40:25] Production.INFO: 32.5 MB #Memory Used# [2025-04-01 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:41:05 [end_date_ymd] => 2025-04-01 08:41:05 [RateCDR] => 1 ) [2025-04-01 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:41:05' and `end` < '2025-04-01 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:41:18] Production.INFO: count ==556 [2025-04-01 08:41:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:41:05 - End Time 2025-04-01 08:41:05 [2025-04-01 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809686', 'tblTempUsageDetail_20' ) start [2025-04-01 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809686', 'tblTempUsageDetail_20' ) end [2025-04-01 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809686', 'tblTempVendorCDR_20' ) start [2025-04-01 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809686', 'tblTempVendorCDR_20' ) end [2025-04-01 08:41:18] Production.INFO: ProcessCDR(1,14809686,1,1,2) [2025-04-01 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809686', 'tblTempUsageDetail_20' ) start [2025-04-01 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809686', 'tblTempUsageDetail_20' ) end [2025-04-01 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:41:23] Production.INFO: ==23885== Releasing lock... [2025-04-01 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:41:23] Production.INFO: 33 MB #Memory Used# [2025-04-01 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:42:06 [end_date_ymd] => 2025-04-01 08:42:06 [RateCDR] => 1 ) [2025-04-01 08:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:42:06' and `end` < '2025-04-01 08:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:42:18] Production.INFO: count ==580 [2025-04-01 08:42:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:42:06 - End Time 2025-04-01 08:42:06 [2025-04-01 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809691', 'tblTempUsageDetail_20' ) start [2025-04-01 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809691', 'tblTempUsageDetail_20' ) end [2025-04-01 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809691', 'tblTempVendorCDR_20' ) start [2025-04-01 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809691', 'tblTempVendorCDR_20' ) end [2025-04-01 08:42:19] Production.INFO: ProcessCDR(1,14809691,1,1,2) [2025-04-01 08:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809691', 'tblTempUsageDetail_20' ) start [2025-04-01 08:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809691', 'tblTempUsageDetail_20' ) end [2025-04-01 08:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:42:24] Production.INFO: ==23956== Releasing lock... [2025-04-01 08:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:42:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-01 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:43:05 [end_date_ymd] => 2025-04-01 08:43:05 [RateCDR] => 1 ) [2025-04-01 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:43:05' and `end` < '2025-04-01 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:43:18] Production.INFO: count ==591 [2025-04-01 08:43:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:43:05 - End Time 2025-04-01 08:43:05 [2025-04-01 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809696', 'tblTempUsageDetail_20' ) start [2025-04-01 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809696', 'tblTempUsageDetail_20' ) end [2025-04-01 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809696', 'tblTempVendorCDR_20' ) start [2025-04-01 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809696', 'tblTempVendorCDR_20' ) end [2025-04-01 08:43:18] Production.INFO: ProcessCDR(1,14809696,1,1,2) [2025-04-01 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809696', 'tblTempUsageDetail_20' ) start [2025-04-01 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809696', 'tblTempUsageDetail_20' ) end [2025-04-01 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:43:21] Production.INFO: ==24034== Releasing lock... [2025-04-01 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:43:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-01 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:44:05 [end_date_ymd] => 2025-04-01 08:44:05 [RateCDR] => 1 ) [2025-04-01 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-01 05:44:05' and `end` < '2025-04-01 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-01 08:44:18] Production.INFO: count ==613 [2025-04-01 08:44:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:44:05 - End Time 2025-04-01 08:44:05 [2025-04-01 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809701', 'tblTempUsageDetail_20' ) start [2025-04-01 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809701', 'tblTempUsageDetail_20' ) end [2025-04-01 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809701', 'tblTempVendorCDR_20' ) start [2025-04-01 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809701', 'tblTempVendorCDR_20' ) end [2025-04-01 08:44:18] Production.INFO: ProcessCDR(1,14809701,1,1,2) [2025-04-01 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809701', 'tblTempUsageDetail_20' ) start [2025-04-01 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809701', 'tblTempUsageDetail_20' ) end [2025-04-01 08:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:44:23] Production.INFO: ==24109== Releasing lock... [2025-04-01 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:44:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:45:05 [end_date_ymd] => 2025-04-01 08:45:05 [RateCDR] => 1 ) [2025-04-01 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:45:05' and `end` < '2025-04-01 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:45:18] Production.INFO: count ==628 [2025-04-01 08:45:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:45:05 - End Time 2025-04-01 08:45:05 [2025-04-01 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809706', 'tblTempUsageDetail_20' ) start [2025-04-01 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809706', 'tblTempUsageDetail_20' ) end [2025-04-01 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809706', 'tblTempVendorCDR_20' ) start [2025-04-01 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809706', 'tblTempVendorCDR_20' ) end [2025-04-01 08:45:18] Production.INFO: ProcessCDR(1,14809706,1,1,2) [2025-04-01 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809706', 'tblTempUsageDetail_20' ) start [2025-04-01 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809706', 'tblTempUsageDetail_20' ) end [2025-04-01 08:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:45:23] Production.INFO: ==24180== Releasing lock... [2025-04-01 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:45:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 08:46:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:46:07 [end_date_ymd] => 2025-04-01 08:46:07 [RateCDR] => 1 ) [2025-04-01 08:46: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-01 05:46:07' and `end` < '2025-04-01 08:46: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-01 08:46:19] Production.INFO: count ==638 [2025-04-01 08:46:19] Production.ERROR: pbx CDR StartTime 2025-04-01 05:46:07 - End Time 2025-04-01 08:46:07 [2025-04-01 08:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809711', 'tblTempUsageDetail_20' ) start [2025-04-01 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809711', 'tblTempUsageDetail_20' ) end [2025-04-01 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809711', 'tblTempVendorCDR_20' ) start [2025-04-01 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809711', 'tblTempVendorCDR_20' ) end [2025-04-01 08:46:19] Production.INFO: ProcessCDR(1,14809711,1,1,2) [2025-04-01 08:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809711', 'tblTempUsageDetail_20' ) start [2025-04-01 08:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809711', 'tblTempUsageDetail_20' ) end [2025-04-01 08:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:46:25] Production.INFO: ==24251== Releasing lock... [2025-04-01 08:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:46:25] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:47:05 [end_date_ymd] => 2025-04-01 08:47:05 [RateCDR] => 1 ) [2025-04-01 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:47:05' and `end` < '2025-04-01 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:47:18] Production.INFO: count ==666 [2025-04-01 08:47:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:47:05 - End Time 2025-04-01 08:47:05 [2025-04-01 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809716', 'tblTempUsageDetail_20' ) start [2025-04-01 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809716', 'tblTempUsageDetail_20' ) end [2025-04-01 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809716', 'tblTempVendorCDR_20' ) start [2025-04-01 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809716', 'tblTempVendorCDR_20' ) end [2025-04-01 08:47:18] Production.INFO: ProcessCDR(1,14809716,1,1,2) [2025-04-01 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809716', 'tblTempUsageDetail_20' ) start [2025-04-01 08:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809716', 'tblTempUsageDetail_20' ) end [2025-04-01 08:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:47:24] Production.INFO: ==24322== Releasing lock... [2025-04-01 08:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:47:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-01 08:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:48:06 [end_date_ymd] => 2025-04-01 08:48:06 [RateCDR] => 1 ) [2025-04-01 08:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:48:06' and `end` < '2025-04-01 08:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:48:19] Production.INFO: count ==684 [2025-04-01 08:48:19] Production.ERROR: pbx CDR StartTime 2025-04-01 05:48:06 - End Time 2025-04-01 08:48:06 [2025-04-01 08:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809721', 'tblTempUsageDetail_20' ) start [2025-04-01 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809721', 'tblTempUsageDetail_20' ) end [2025-04-01 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809721', 'tblTempVendorCDR_20' ) start [2025-04-01 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809721', 'tblTempVendorCDR_20' ) end [2025-04-01 08:48:19] Production.INFO: ProcessCDR(1,14809721,1,1,2) [2025-04-01 08:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809721', 'tblTempUsageDetail_20' ) start [2025-04-01 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809721', 'tblTempUsageDetail_20' ) end [2025-04-01 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:48:23] Production.INFO: ==24393== Releasing lock... [2025-04-01 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:48:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:49:05 [end_date_ymd] => 2025-04-01 08:49:05 [RateCDR] => 1 ) [2025-04-01 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-01 05:49:05' and `end` < '2025-04-01 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-01 08:49:18] Production.INFO: count ==689 [2025-04-01 08:49:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:49:05 - End Time 2025-04-01 08:49:05 [2025-04-01 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809726', 'tblTempUsageDetail_20' ) start [2025-04-01 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809726', 'tblTempUsageDetail_20' ) end [2025-04-01 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809726', 'tblTempVendorCDR_20' ) start [2025-04-01 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809726', 'tblTempVendorCDR_20' ) end [2025-04-01 08:49:18] Production.INFO: ProcessCDR(1,14809726,1,1,2) [2025-04-01 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809726', 'tblTempUsageDetail_20' ) start [2025-04-01 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809726', 'tblTempUsageDetail_20' ) end [2025-04-01 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:49:22] Production.INFO: ==24465== Releasing lock... [2025-04-01 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:49:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-01 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:50:06 [end_date_ymd] => 2025-04-01 08:50:06 [RateCDR] => 1 ) [2025-04-01 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:50:06' and `end` < '2025-04-01 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:50:19] Production.INFO: count ==719 [2025-04-01 08:50:19] Production.ERROR: pbx CDR StartTime 2025-04-01 05:50:06 - End Time 2025-04-01 08:50:06 [2025-04-01 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809731', 'tblTempUsageDetail_20' ) start [2025-04-01 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809731', 'tblTempUsageDetail_20' ) end [2025-04-01 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809731', 'tblTempVendorCDR_20' ) start [2025-04-01 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809731', 'tblTempVendorCDR_20' ) end [2025-04-01 08:50:19] Production.INFO: ProcessCDR(1,14809731,1,1,2) [2025-04-01 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809731', 'tblTempUsageDetail_20' ) start [2025-04-01 08:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809731', 'tblTempUsageDetail_20' ) end [2025-04-01 08:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:50:25] Production.INFO: ==24581== Releasing lock... [2025-04-01 08:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:50:25] Production.INFO: 33.5 MB #Memory Used# [2025-04-01 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:51:05 [end_date_ymd] => 2025-04-01 08:51:05 [RateCDR] => 1 ) [2025-04-01 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:51:05' and `end` < '2025-04-01 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:51:18] Production.INFO: count ==778 [2025-04-01 08:51:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:51:05 - End Time 2025-04-01 08:51:05 [2025-04-01 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809737', 'tblTempUsageDetail_20' ) start [2025-04-01 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809737', 'tblTempUsageDetail_20' ) end [2025-04-01 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809737', 'tblTempVendorCDR_20' ) start [2025-04-01 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809737', 'tblTempVendorCDR_20' ) end [2025-04-01 08:51:19] Production.INFO: ProcessCDR(1,14809737,1,1,2) [2025-04-01 08:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809737', 'tblTempUsageDetail_20' ) start [2025-04-01 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809737', 'tblTempUsageDetail_20' ) end [2025-04-01 08:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:51:22] Production.INFO: ==24652== Releasing lock... [2025-04-01 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:51:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-01 08:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:52:06 [end_date_ymd] => 2025-04-01 08:52:06 [RateCDR] => 1 ) [2025-04-01 08:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:52:06' and `end` < '2025-04-01 08:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:52:18] Production.INFO: count ==799 [2025-04-01 08:52:19] Production.ERROR: pbx CDR StartTime 2025-04-01 05:52:06 - End Time 2025-04-01 08:52:06 [2025-04-01 08:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809742', 'tblTempUsageDetail_20' ) start [2025-04-01 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809742', 'tblTempUsageDetail_20' ) end [2025-04-01 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809742', 'tblTempVendorCDR_20' ) start [2025-04-01 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809742', 'tblTempVendorCDR_20' ) end [2025-04-01 08:52:19] Production.INFO: ProcessCDR(1,14809742,1,1,2) [2025-04-01 08:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809742', 'tblTempUsageDetail_20' ) start [2025-04-01 08:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809742', 'tblTempUsageDetail_20' ) end [2025-04-01 08:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:52:24] Production.INFO: ==24731== Releasing lock... [2025-04-01 08:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:52:24] Production.INFO: 34.5 MB #Memory Used# [2025-04-01 08:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:53:06 [end_date_ymd] => 2025-04-01 08:53:06 [RateCDR] => 1 ) [2025-04-01 08: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-01 05:53:06' and `end` < '2025-04-01 08: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-01 08:53:18] Production.INFO: count ==820 [2025-04-01 08:53:19] Production.ERROR: pbx CDR StartTime 2025-04-01 05:53:06 - End Time 2025-04-01 08:53:06 [2025-04-01 08:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809747', 'tblTempUsageDetail_20' ) start [2025-04-01 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809747', 'tblTempUsageDetail_20' ) end [2025-04-01 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809747', 'tblTempVendorCDR_20' ) start [2025-04-01 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809747', 'tblTempVendorCDR_20' ) end [2025-04-01 08:53:19] Production.INFO: ProcessCDR(1,14809747,1,1,2) [2025-04-01 08:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809747', 'tblTempUsageDetail_20' ) start [2025-04-01 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809747', 'tblTempUsageDetail_20' ) end [2025-04-01 08:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:53:24] Production.INFO: ==24809== Releasing lock... [2025-04-01 08:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:53:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-01 08:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:54:06 [end_date_ymd] => 2025-04-01 08:54:06 [RateCDR] => 1 ) [2025-04-01 08: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-01 05:54:06' and `end` < '2025-04-01 08: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-01 08:54:19] Production.INFO: count ==841 [2025-04-01 08:54:19] Production.ERROR: pbx CDR StartTime 2025-04-01 05:54:06 - End Time 2025-04-01 08:54:06 [2025-04-01 08:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809752', 'tblTempUsageDetail_20' ) start [2025-04-01 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809752', 'tblTempUsageDetail_20' ) end [2025-04-01 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809752', 'tblTempVendorCDR_20' ) start [2025-04-01 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809752', 'tblTempVendorCDR_20' ) end [2025-04-01 08:54:19] Production.INFO: ProcessCDR(1,14809752,1,1,2) [2025-04-01 08:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809752', 'tblTempUsageDetail_20' ) start [2025-04-01 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809752', 'tblTempUsageDetail_20' ) end [2025-04-01 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:54:23] Production.INFO: ==24906== Releasing lock... [2025-04-01 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:54:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-01 08:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:55:06 [end_date_ymd] => 2025-04-01 08:55:06 [RateCDR] => 1 ) [2025-04-01 08:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:55:06' and `end` < '2025-04-01 08:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:55:19] Production.INFO: count ==845 [2025-04-01 08:55:19] Production.ERROR: pbx CDR StartTime 2025-04-01 05:55:06 - End Time 2025-04-01 08:55:06 [2025-04-01 08:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809757', 'tblTempUsageDetail_20' ) start [2025-04-01 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809757', 'tblTempUsageDetail_20' ) end [2025-04-01 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809757', 'tblTempVendorCDR_20' ) start [2025-04-01 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809757', 'tblTempVendorCDR_20' ) end [2025-04-01 08:55:19] Production.INFO: ProcessCDR(1,14809757,1,1,2) [2025-04-01 08:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809757', 'tblTempUsageDetail_20' ) start [2025-04-01 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809757', 'tblTempUsageDetail_20' ) end [2025-04-01 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:55:23] Production.INFO: ==25001== Releasing lock... [2025-04-01 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:55:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-01 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:56:06 [end_date_ymd] => 2025-04-01 08:56:06 [RateCDR] => 1 ) [2025-04-01 08:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:56:06' and `end` < '2025-04-01 08:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:56:19] Production.INFO: count ==852 [2025-04-01 08:56:19] Production.ERROR: pbx CDR StartTime 2025-04-01 05:56:06 - End Time 2025-04-01 08:56:06 [2025-04-01 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809762', 'tblTempUsageDetail_20' ) start [2025-04-01 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809762', 'tblTempUsageDetail_20' ) end [2025-04-01 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809762', 'tblTempVendorCDR_20' ) start [2025-04-01 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809762', 'tblTempVendorCDR_20' ) end [2025-04-01 08:56:19] Production.INFO: ProcessCDR(1,14809762,1,1,2) [2025-04-01 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809762', 'tblTempUsageDetail_20' ) start [2025-04-01 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809762', 'tblTempUsageDetail_20' ) end [2025-04-01 08:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:56:24] Production.INFO: ==25095== Releasing lock... [2025-04-01 08:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:56:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-01 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:57:05 [end_date_ymd] => 2025-04-01 08:57:05 [RateCDR] => 1 ) [2025-04-01 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:57:05' and `end` < '2025-04-01 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:57:18] Production.INFO: count ==892 [2025-04-01 08:57:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:57:05 - End Time 2025-04-01 08:57:05 [2025-04-01 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809767', 'tblTempUsageDetail_20' ) start [2025-04-01 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809767', 'tblTempUsageDetail_20' ) end [2025-04-01 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809767', 'tblTempVendorCDR_20' ) start [2025-04-01 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809767', 'tblTempVendorCDR_20' ) end [2025-04-01 08:57:18] Production.INFO: ProcessCDR(1,14809767,1,1,2) [2025-04-01 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809767', 'tblTempUsageDetail_20' ) start [2025-04-01 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809767', 'tblTempUsageDetail_20' ) end [2025-04-01 08:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:57:23] Production.INFO: ==25189== Releasing lock... [2025-04-01 08:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:57:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-01 08:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:58:06 [end_date_ymd] => 2025-04-01 08:58:06 [RateCDR] => 1 ) [2025-04-01 08:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 05:58:06' and `end` < '2025-04-01 08:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 08:58:19] Production.INFO: count ==892 [2025-04-01 08:58:19] Production.ERROR: pbx CDR StartTime 2025-04-01 05:58:06 - End Time 2025-04-01 08:58:06 [2025-04-01 08:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809772', 'tblTempUsageDetail_20' ) start [2025-04-01 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809772', 'tblTempUsageDetail_20' ) end [2025-04-01 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809772', 'tblTempVendorCDR_20' ) start [2025-04-01 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809772', 'tblTempVendorCDR_20' ) end [2025-04-01 08:58:19] Production.INFO: ProcessCDR(1,14809772,1,1,2) [2025-04-01 08:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809772', 'tblTempUsageDetail_20' ) start [2025-04-01 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809772', 'tblTempUsageDetail_20' ) end [2025-04-01 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:58:23] Production.INFO: ==25295== Releasing lock... [2025-04-01 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:58:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-01 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 05:59:05 [end_date_ymd] => 2025-04-01 08:59:05 [RateCDR] => 1 ) [2025-04-01 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-01 05:59:05' and `end` < '2025-04-01 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-01 08:59:18] Production.INFO: count ==902 [2025-04-01 08:59:18] Production.ERROR: pbx CDR StartTime 2025-04-01 05:59:05 - End Time 2025-04-01 08:59:05 [2025-04-01 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809777', 'tblTempUsageDetail_20' ) start [2025-04-01 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809777', 'tblTempUsageDetail_20' ) end [2025-04-01 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809777', 'tblTempVendorCDR_20' ) start [2025-04-01 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809777', 'tblTempVendorCDR_20' ) end [2025-04-01 08:59:18] Production.INFO: ProcessCDR(1,14809777,1,1,2) [2025-04-01 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 08:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809777', 'tblTempUsageDetail_20' ) start [2025-04-01 08:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809777', 'tblTempUsageDetail_20' ) end [2025-04-01 08:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 08:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 08:59:24] Production.INFO: ==25387== Releasing lock... [2025-04-01 08:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 08:59:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-01 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:00:06 [end_date_ymd] => 2025-04-01 09:00:06 [RateCDR] => 1 ) [2025-04-01 09: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-01 06:00:06' and `end` < '2025-04-01 09: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-01 09:00:19] Production.INFO: count ==901 [2025-04-01 09:00:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:00:06 - End Time 2025-04-01 09:00:06 [2025-04-01 09:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809783', 'tblTempUsageDetail_20' ) start [2025-04-01 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809783', 'tblTempUsageDetail_20' ) end [2025-04-01 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809783', 'tblTempVendorCDR_20' ) start [2025-04-01 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809783', 'tblTempVendorCDR_20' ) end [2025-04-01 09:00:20] Production.INFO: ProcessCDR(1,14809783,1,1,2) [2025-04-01 09:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809783', 'tblTempUsageDetail_20' ) start [2025-04-01 09:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809783', 'tblTempUsageDetail_20' ) end [2025-04-01 09:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:00:25] Production.INFO: ==25484== Releasing lock... [2025-04-01 09:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:00:25] Production.INFO: 34.75 MB #Memory Used# [2025-04-01 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:01:05 [end_date_ymd] => 2025-04-01 09:01:05 [RateCDR] => 1 ) [2025-04-01 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-01 06:01:05' and `end` < '2025-04-01 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-01 09:01:18] Production.INFO: count ==955 [2025-04-01 09:01:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:01:05 - End Time 2025-04-01 09:01:05 [2025-04-01 09:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809788', 'tblTempUsageDetail_20' ) start [2025-04-01 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809788', 'tblTempUsageDetail_20' ) end [2025-04-01 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809788', 'tblTempVendorCDR_20' ) start [2025-04-01 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809788', 'tblTempVendorCDR_20' ) end [2025-04-01 09:01:19] Production.INFO: ProcessCDR(1,14809788,1,1,2) [2025-04-01 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809788', 'tblTempUsageDetail_20' ) start [2025-04-01 09:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809788', 'tblTempUsageDetail_20' ) end [2025-04-01 09:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:01:24] Production.INFO: ==25592== Releasing lock... [2025-04-01 09:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:01:24] Production.INFO: 35.5 MB #Memory Used# [2025-04-01 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:02:06 [end_date_ymd] => 2025-04-01 09:02:06 [RateCDR] => 1 ) [2025-04-01 09:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 06:02:06' and `end` < '2025-04-01 09:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 09:02:18] Production.INFO: count ==967 [2025-04-01 09:02:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:02:06 - End Time 2025-04-01 09:02:06 [2025-04-01 09:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809793', 'tblTempUsageDetail_20' ) start [2025-04-01 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809793', 'tblTempUsageDetail_20' ) end [2025-04-01 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809793', 'tblTempVendorCDR_20' ) start [2025-04-01 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809793', 'tblTempVendorCDR_20' ) end [2025-04-01 09:02:19] Production.INFO: ProcessCDR(1,14809793,1,1,2) [2025-04-01 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809793', 'tblTempUsageDetail_20' ) start [2025-04-01 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809793', 'tblTempUsageDetail_20' ) end [2025-04-01 09:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:02:23] Production.INFO: ==25690== Releasing lock... [2025-04-01 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:02:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-01 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:03:05 [end_date_ymd] => 2025-04-01 09:03:05 [RateCDR] => 1 ) [2025-04-01 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-01 06:03:05' and `end` < '2025-04-01 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-01 09:03:18] Production.INFO: count ==978 [2025-04-01 09:03:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:03:05 - End Time 2025-04-01 09:03:05 [2025-04-01 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809798', 'tblTempUsageDetail_20' ) start [2025-04-01 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809798', 'tblTempUsageDetail_20' ) end [2025-04-01 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809798', 'tblTempVendorCDR_20' ) start [2025-04-01 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809798', 'tblTempVendorCDR_20' ) end [2025-04-01 09:03:19] Production.INFO: ProcessCDR(1,14809798,1,1,2) [2025-04-01 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809798', 'tblTempUsageDetail_20' ) start [2025-04-01 09:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809798', 'tblTempUsageDetail_20' ) end [2025-04-01 09:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:03:25] Production.INFO: ==25786== Releasing lock... [2025-04-01 09:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:03:25] Production.INFO: 35.5 MB #Memory Used# [2025-04-01 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:04:06 [end_date_ymd] => 2025-04-01 09:04:06 [RateCDR] => 1 ) [2025-04-01 09:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 06:04:06' and `end` < '2025-04-01 09:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 09:04:19] Production.INFO: count ==988 [2025-04-01 09:04:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:04:06 - End Time 2025-04-01 09:04:06 [2025-04-01 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809803', 'tblTempUsageDetail_20' ) start [2025-04-01 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809803', 'tblTempUsageDetail_20' ) end [2025-04-01 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809803', 'tblTempVendorCDR_20' ) start [2025-04-01 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809803', 'tblTempVendorCDR_20' ) end [2025-04-01 09:04:19] Production.INFO: ProcessCDR(1,14809803,1,1,2) [2025-04-01 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809803', 'tblTempUsageDetail_20' ) start [2025-04-01 09:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809803', 'tblTempUsageDetail_20' ) end [2025-04-01 09:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:04:25] Production.INFO: ==25880== Releasing lock... [2025-04-01 09:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:04:25] Production.INFO: 36.25 MB #Memory Used# [2025-04-01 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:05:05 [end_date_ymd] => 2025-04-01 09:05:05 [RateCDR] => 1 ) [2025-04-01 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-01 06:05:05' and `end` < '2025-04-01 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-01 09:05:18] Production.INFO: count ==992 [2025-04-01 09:05:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:05:05 - End Time 2025-04-01 09:05:05 [2025-04-01 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809808', 'tblTempUsageDetail_20' ) start [2025-04-01 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809808', 'tblTempUsageDetail_20' ) end [2025-04-01 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809808', 'tblTempVendorCDR_20' ) start [2025-04-01 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809808', 'tblTempVendorCDR_20' ) end [2025-04-01 09:05:19] Production.INFO: ProcessCDR(1,14809808,1,1,2) [2025-04-01 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809808', 'tblTempUsageDetail_20' ) start [2025-04-01 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809808', 'tblTempUsageDetail_20' ) end [2025-04-01 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:05:23] Production.INFO: ==26011== Releasing lock... [2025-04-01 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:05:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-01 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:06:06 [end_date_ymd] => 2025-04-01 09:06:06 [RateCDR] => 1 ) [2025-04-01 09: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-01 06:06:06' and `end` < '2025-04-01 09: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-01 09:06:19] Production.INFO: count ==1031 [2025-04-01 09:06:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:06:06 - End Time 2025-04-01 09:06:06 [2025-04-01 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809813', 'tblTempUsageDetail_20' ) start [2025-04-01 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809813', 'tblTempUsageDetail_20' ) end [2025-04-01 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809813', 'tblTempVendorCDR_20' ) start [2025-04-01 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809813', 'tblTempVendorCDR_20' ) end [2025-04-01 09:06:19] Production.INFO: ProcessCDR(1,14809813,1,1,2) [2025-04-01 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809813', 'tblTempUsageDetail_20' ) start [2025-04-01 09:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809813', 'tblTempUsageDetail_20' ) end [2025-04-01 09:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:06:25] Production.INFO: ==26107== Releasing lock... [2025-04-01 09:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:06:25] Production.INFO: 36.25 MB #Memory Used# [2025-04-01 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:07:05 [end_date_ymd] => 2025-04-01 09:07:05 [RateCDR] => 1 ) [2025-04-01 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-01 06:07:05' and `end` < '2025-04-01 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-01 09:07:18] Production.INFO: count ==1046 [2025-04-01 09:07:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:07:05 - End Time 2025-04-01 09:07:05 [2025-04-01 09:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809818', 'tblTempUsageDetail_20' ) start [2025-04-01 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809818', 'tblTempUsageDetail_20' ) end [2025-04-01 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809818', 'tblTempVendorCDR_20' ) start [2025-04-01 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809818', 'tblTempVendorCDR_20' ) end [2025-04-01 09:07:19] Production.INFO: ProcessCDR(1,14809818,1,1,2) [2025-04-01 09:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809818', 'tblTempUsageDetail_20' ) start [2025-04-01 09:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809818', 'tblTempUsageDetail_20' ) end [2025-04-01 09:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:07:25] Production.INFO: ==26198== Releasing lock... [2025-04-01 09:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:07:25] Production.INFO: 36 MB #Memory Used# [2025-04-01 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:08:06 [end_date_ymd] => 2025-04-01 09:08:06 [RateCDR] => 1 ) [2025-04-01 09:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 06:08:06' and `end` < '2025-04-01 09:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 09:08:19] Production.INFO: count ==1052 [2025-04-01 09:08:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:08:06 - End Time 2025-04-01 09:08:06 [2025-04-01 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809823', 'tblTempUsageDetail_20' ) start [2025-04-01 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809823', 'tblTempUsageDetail_20' ) end [2025-04-01 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809823', 'tblTempVendorCDR_20' ) start [2025-04-01 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809823', 'tblTempVendorCDR_20' ) end [2025-04-01 09:08:19] Production.INFO: ProcessCDR(1,14809823,1,1,2) [2025-04-01 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809823', 'tblTempUsageDetail_20' ) start [2025-04-01 09:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809823', 'tblTempUsageDetail_20' ) end [2025-04-01 09:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:08:26] Production.INFO: ==26295== Releasing lock... [2025-04-01 09:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:08:26] Production.INFO: 35.75 MB #Memory Used# [2025-04-01 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:09:06 [end_date_ymd] => 2025-04-01 09:09:06 [RateCDR] => 1 ) [2025-04-01 09: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-01 06:09:06' and `end` < '2025-04-01 09: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-01 09:09:19] Production.INFO: count ==1059 [2025-04-01 09:09:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:09:06 - End Time 2025-04-01 09:09:06 [2025-04-01 09:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809828', 'tblTempUsageDetail_20' ) start [2025-04-01 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809828', 'tblTempUsageDetail_20' ) end [2025-04-01 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809828', 'tblTempVendorCDR_20' ) start [2025-04-01 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809828', 'tblTempVendorCDR_20' ) end [2025-04-01 09:09:19] Production.INFO: ProcessCDR(1,14809828,1,1,2) [2025-04-01 09:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809828', 'tblTempUsageDetail_20' ) start [2025-04-01 09:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809828', 'tblTempUsageDetail_20' ) end [2025-04-01 09:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:09:25] Production.INFO: ==26397== Releasing lock... [2025-04-01 09:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:09:25] Production.INFO: 36 MB #Memory Used# [2025-04-01 09:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:10:06 [end_date_ymd] => 2025-04-01 09:10:06 [RateCDR] => 1 ) [2025-04-01 09: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-01 06:10:06' and `end` < '2025-04-01 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 09:10:19] Production.INFO: count ==1070 [2025-04-01 09:10:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:10:06 - End Time 2025-04-01 09:10:06 [2025-04-01 09:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809833', 'tblTempUsageDetail_20' ) start [2025-04-01 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809833', 'tblTempUsageDetail_20' ) end [2025-04-01 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809833', 'tblTempVendorCDR_20' ) start [2025-04-01 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809833', 'tblTempVendorCDR_20' ) end [2025-04-01 09:10:20] Production.INFO: ProcessCDR(1,14809833,1,1,2) [2025-04-01 09:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809833', 'tblTempUsageDetail_20' ) start [2025-04-01 09:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809833', 'tblTempUsageDetail_20' ) end [2025-04-01 09:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:10:26] Production.INFO: ==26496== Releasing lock... [2025-04-01 09:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:10:26] Production.INFO: 36 MB #Memory Used# [2025-04-01 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:11:05 [end_date_ymd] => 2025-04-01 09:11:05 [RateCDR] => 1 ) [2025-04-01 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 06:11:05' and `end` < '2025-04-01 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 09:11:18] Production.INFO: count ==1145 [2025-04-01 09:11:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:11:05 - End Time 2025-04-01 09:11:05 [2025-04-01 09:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809839', 'tblTempUsageDetail_20' ) start [2025-04-01 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809839', 'tblTempUsageDetail_20' ) end [2025-04-01 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809839', 'tblTempVendorCDR_20' ) start [2025-04-01 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809839', 'tblTempVendorCDR_20' ) end [2025-04-01 09:11:19] Production.INFO: ProcessCDR(1,14809839,1,1,2) [2025-04-01 09:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809839', 'tblTempUsageDetail_20' ) start [2025-04-01 09:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809839', 'tblTempUsageDetail_20' ) end [2025-04-01 09:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:11:25] Production.INFO: ==26598== Releasing lock... [2025-04-01 09:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:11:25] Production.INFO: 37 MB #Memory Used# [2025-04-01 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:12:06 [end_date_ymd] => 2025-04-01 09:12:06 [RateCDR] => 1 ) [2025-04-01 09:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 06:12:06' and `end` < '2025-04-01 09:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 09:12:19] Production.INFO: count ==1152 [2025-04-01 09:12:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:12:06 - End Time 2025-04-01 09:12:06 [2025-04-01 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809844', 'tblTempUsageDetail_20' ) start [2025-04-01 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809844', 'tblTempUsageDetail_20' ) end [2025-04-01 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809844', 'tblTempVendorCDR_20' ) start [2025-04-01 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809844', 'tblTempVendorCDR_20' ) end [2025-04-01 09:12:19] Production.INFO: ProcessCDR(1,14809844,1,1,2) [2025-04-01 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809844', 'tblTempUsageDetail_20' ) start [2025-04-01 09:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809844', 'tblTempUsageDetail_20' ) end [2025-04-01 09:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:12:26] Production.INFO: ==26695== Releasing lock... [2025-04-01 09:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:12:26] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 09:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:13:06 [end_date_ymd] => 2025-04-01 09:13:06 [RateCDR] => 1 ) [2025-04-01 09:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 06:13:06' and `end` < '2025-04-01 09:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 09:13:19] Production.INFO: count ==1181 [2025-04-01 09:13:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:13:06 - End Time 2025-04-01 09:13:06 [2025-04-01 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809849', 'tblTempUsageDetail_20' ) start [2025-04-01 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809849', 'tblTempUsageDetail_20' ) end [2025-04-01 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809849', 'tblTempVendorCDR_20' ) start [2025-04-01 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809849', 'tblTempVendorCDR_20' ) end [2025-04-01 09:13:19] Production.INFO: ProcessCDR(1,14809849,1,1,2) [2025-04-01 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809849', 'tblTempUsageDetail_20' ) start [2025-04-01 09:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809849', 'tblTempUsageDetail_20' ) end [2025-04-01 09:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:13:26] Production.INFO: ==26787== Releasing lock... [2025-04-01 09:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:13:26] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 09:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:14:06 [end_date_ymd] => 2025-04-01 09:14:06 [RateCDR] => 1 ) [2025-04-01 09: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-01 06:14:06' and `end` < '2025-04-01 09: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-01 09:14:19] Production.INFO: count ==1202 [2025-04-01 09:14:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:14:06 - End Time 2025-04-01 09:14:06 [2025-04-01 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809854', 'tblTempUsageDetail_20' ) start [2025-04-01 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809854', 'tblTempUsageDetail_20' ) end [2025-04-01 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809854', 'tblTempVendorCDR_20' ) start [2025-04-01 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809854', 'tblTempVendorCDR_20' ) end [2025-04-01 09:14:19] Production.INFO: ProcessCDR(1,14809854,1,1,2) [2025-04-01 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809854', 'tblTempUsageDetail_20' ) start [2025-04-01 09:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809854', 'tblTempUsageDetail_20' ) end [2025-04-01 09:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:14:25] Production.INFO: ==26881== Releasing lock... [2025-04-01 09:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:14:25] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:15:05 [end_date_ymd] => 2025-04-01 09:15:05 [RateCDR] => 1 ) [2025-04-01 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-01 06:15:05' and `end` < '2025-04-01 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-01 09:15:18] Production.INFO: count ==1211 [2025-04-01 09:15:18] Production.ERROR: pbx CDR StartTime 2025-04-01 06:15:05 - End Time 2025-04-01 09:15:05 [2025-04-01 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809859', 'tblTempUsageDetail_20' ) start [2025-04-01 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809859', 'tblTempUsageDetail_20' ) end [2025-04-01 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809859', 'tblTempVendorCDR_20' ) start [2025-04-01 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809859', 'tblTempVendorCDR_20' ) end [2025-04-01 09:15:18] Production.INFO: ProcessCDR(1,14809859,1,1,2) [2025-04-01 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809859', 'tblTempUsageDetail_20' ) start [2025-04-01 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809859', 'tblTempUsageDetail_20' ) end [2025-04-01 09:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:15:25] Production.INFO: ==26972== Releasing lock... [2025-04-01 09:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:15:25] Production.INFO: 37.5 MB #Memory Used# [2025-04-01 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:16:06 [end_date_ymd] => 2025-04-01 09:16:06 [RateCDR] => 1 ) [2025-04-01 09: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-01 06:16:06' and `end` < '2025-04-01 09: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-01 09:16:19] Production.INFO: count ==1232 [2025-04-01 09:16:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:16:06 - End Time 2025-04-01 09:16:06 [2025-04-01 09:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809864', 'tblTempUsageDetail_20' ) start [2025-04-01 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809864', 'tblTempUsageDetail_20' ) end [2025-04-01 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809864', 'tblTempVendorCDR_20' ) start [2025-04-01 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809864', 'tblTempVendorCDR_20' ) end [2025-04-01 09:16:20] Production.INFO: ProcessCDR(1,14809864,1,1,2) [2025-04-01 09:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809864', 'tblTempUsageDetail_20' ) start [2025-04-01 09:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809864', 'tblTempUsageDetail_20' ) end [2025-04-01 09:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:16:26] Production.INFO: ==27073== Releasing lock... [2025-04-01 09:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:16:26] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 09:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:17:06 [end_date_ymd] => 2025-04-01 09:17:06 [RateCDR] => 1 ) [2025-04-01 09:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 06:17:06' and `end` < '2025-04-01 09:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 09:17:18] Production.INFO: count ==1277 [2025-04-01 09:17:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:17:06 - End Time 2025-04-01 09:17:06 [2025-04-01 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809869', 'tblTempUsageDetail_20' ) start [2025-04-01 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809869', 'tblTempUsageDetail_20' ) end [2025-04-01 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809869', 'tblTempVendorCDR_20' ) start [2025-04-01 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809869', 'tblTempVendorCDR_20' ) end [2025-04-01 09:17:19] Production.INFO: ProcessCDR(1,14809869,1,1,2) [2025-04-01 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809869', 'tblTempUsageDetail_20' ) start [2025-04-01 09:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809869', 'tblTempUsageDetail_20' ) end [2025-04-01 09:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:17:25] Production.INFO: ==27156== Releasing lock... [2025-04-01 09:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:17:25] Production.INFO: 37.75 MB #Memory Used# [2025-04-01 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:18:06 [end_date_ymd] => 2025-04-01 09:18:06 [RateCDR] => 1 ) [2025-04-01 09:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 06:18:06' and `end` < '2025-04-01 09:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 09:18:19] Production.INFO: count ==1294 [2025-04-01 09:18:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:18:06 - End Time 2025-04-01 09:18:06 [2025-04-01 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809874', 'tblTempUsageDetail_20' ) start [2025-04-01 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809874', 'tblTempUsageDetail_20' ) end [2025-04-01 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809874', 'tblTempVendorCDR_20' ) start [2025-04-01 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809874', 'tblTempVendorCDR_20' ) end [2025-04-01 09:18:19] Production.INFO: ProcessCDR(1,14809874,1,1,2) [2025-04-01 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809874', 'tblTempUsageDetail_20' ) start [2025-04-01 09:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809874', 'tblTempUsageDetail_20' ) end [2025-04-01 09:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:18:26] Production.INFO: ==27237== Releasing lock... [2025-04-01 09:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:18:26] Production.INFO: 37.75 MB #Memory Used# [2025-04-01 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:19:05 [end_date_ymd] => 2025-04-01 09:19:05 [RateCDR] => 1 ) [2025-04-01 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-01 06:19:05' and `end` < '2025-04-01 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-01 09:19:18] Production.INFO: count ==1319 [2025-04-01 09:19:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:19:05 - End Time 2025-04-01 09:19:05 [2025-04-01 09:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809879', 'tblTempUsageDetail_20' ) start [2025-04-01 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809879', 'tblTempUsageDetail_20' ) end [2025-04-01 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809879', 'tblTempVendorCDR_20' ) start [2025-04-01 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809879', 'tblTempVendorCDR_20' ) end [2025-04-01 09:19:19] Production.INFO: ProcessCDR(1,14809879,1,1,2) [2025-04-01 09:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809879', 'tblTempUsageDetail_20' ) start [2025-04-01 09:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809879', 'tblTempUsageDetail_20' ) end [2025-04-01 09:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:19:25] Production.INFO: ==27313== Releasing lock... [2025-04-01 09:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:19:25] Production.INFO: 38 MB #Memory Used# [2025-04-01 09:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:20:07 [end_date_ymd] => 2025-04-01 09:20:07 [RateCDR] => 1 ) [2025-04-01 09: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-01 06:20:07' and `end` < '2025-04-01 09: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-01 09:20:20] Production.INFO: count ==1333 [2025-04-01 09:20:21] Production.ERROR: pbx CDR StartTime 2025-04-01 06:20:07 - End Time 2025-04-01 09:20:07 [2025-04-01 09:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809885', 'tblTempUsageDetail_20' ) start [2025-04-01 09:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809885', 'tblTempUsageDetail_20' ) end [2025-04-01 09:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809885', 'tblTempVendorCDR_20' ) start [2025-04-01 09:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809885', 'tblTempVendorCDR_20' ) end [2025-04-01 09:20:21] Production.INFO: ProcessCDR(1,14809885,1,1,2) [2025-04-01 09:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809885', 'tblTempUsageDetail_20' ) start [2025-04-01 09:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809885', 'tblTempUsageDetail_20' ) end [2025-04-01 09:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:20:27] Production.INFO: ==27387== Releasing lock... [2025-04-01 09:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:20:27] Production.INFO: 37.75 MB #Memory Used# [2025-04-01 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:21:05 [end_date_ymd] => 2025-04-01 09:21:05 [RateCDR] => 1 ) [2025-04-01 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-01 06:21:05' and `end` < '2025-04-01 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-01 09:21:18] Production.INFO: count ==1417 [2025-04-01 09:21:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:21:05 - End Time 2025-04-01 09:21:05 [2025-04-01 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809890', 'tblTempUsageDetail_20' ) start [2025-04-01 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809890', 'tblTempUsageDetail_20' ) end [2025-04-01 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809890', 'tblTempVendorCDR_20' ) start [2025-04-01 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809890', 'tblTempVendorCDR_20' ) end [2025-04-01 09:21:19] Production.INFO: ProcessCDR(1,14809890,1,1,2) [2025-04-01 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809890', 'tblTempUsageDetail_20' ) start [2025-04-01 09:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809890', 'tblTempUsageDetail_20' ) end [2025-04-01 09:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:21:25] Production.INFO: ==27505== Releasing lock... [2025-04-01 09:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:21:25] Production.INFO: 38.75 MB #Memory Used# [2025-04-01 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:22:06 [end_date_ymd] => 2025-04-01 09:22:06 [RateCDR] => 1 ) [2025-04-01 09:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 06:22:06' and `end` < '2025-04-01 09:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 09:22:19] Production.INFO: count ==1457 [2025-04-01 09:22:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:22:06 - End Time 2025-04-01 09:22:06 [2025-04-01 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809895', 'tblTempUsageDetail_20' ) start [2025-04-01 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809895', 'tblTempUsageDetail_20' ) end [2025-04-01 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809895', 'tblTempVendorCDR_20' ) start [2025-04-01 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809895', 'tblTempVendorCDR_20' ) end [2025-04-01 09:22:19] Production.INFO: ProcessCDR(1,14809895,1,1,2) [2025-04-01 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809895', 'tblTempUsageDetail_20' ) start [2025-04-01 09:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809895', 'tblTempUsageDetail_20' ) end [2025-04-01 09:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:22:25] Production.INFO: ==27577== Releasing lock... [2025-04-01 09:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:22:25] Production.INFO: 39 MB #Memory Used# [2025-04-01 09:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:23:06 [end_date_ymd] => 2025-04-01 09:23:06 [RateCDR] => 1 ) [2025-04-01 09: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-01 06:23:06' and `end` < '2025-04-01 09: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-01 09:23:19] Production.INFO: count ==1477 [2025-04-01 09:23:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:23:06 - End Time 2025-04-01 09:23:06 [2025-04-01 09:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809900', 'tblTempUsageDetail_20' ) start [2025-04-01 09:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809900', 'tblTempUsageDetail_20' ) end [2025-04-01 09:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809900', 'tblTempVendorCDR_20' ) start [2025-04-01 09:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809900', 'tblTempVendorCDR_20' ) end [2025-04-01 09:23:20] Production.INFO: ProcessCDR(1,14809900,1,1,2) [2025-04-01 09:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809900', 'tblTempUsageDetail_20' ) start [2025-04-01 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809900', 'tblTempUsageDetail_20' ) end [2025-04-01 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:23:24] Production.INFO: ==27658== Releasing lock... [2025-04-01 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:23:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-01 09:24:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:24:07 [end_date_ymd] => 2025-04-01 09:24:07 [RateCDR] => 1 ) [2025-04-01 09:24: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-01 06:24:07' and `end` < '2025-04-01 09:24: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-01 09:24:20] Production.INFO: count ==1516 [2025-04-01 09:24:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:24:07 - End Time 2025-04-01 09:24:07 [2025-04-01 09:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809905', 'tblTempUsageDetail_20' ) start [2025-04-01 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809905', 'tblTempUsageDetail_20' ) end [2025-04-01 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809905', 'tblTempVendorCDR_20' ) start [2025-04-01 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809905', 'tblTempVendorCDR_20' ) end [2025-04-01 09:24:20] Production.INFO: ProcessCDR(1,14809905,1,1,2) [2025-04-01 09:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809905', 'tblTempUsageDetail_20' ) start [2025-04-01 09:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809905', 'tblTempUsageDetail_20' ) end [2025-04-01 09:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:24:26] Production.INFO: ==27730== Releasing lock... [2025-04-01 09:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:24:26] Production.INFO: 39.75 MB #Memory Used# [2025-04-01 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:25:06 [end_date_ymd] => 2025-04-01 09:25:06 [RateCDR] => 1 ) [2025-04-01 09: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-01 06:25:06' and `end` < '2025-04-01 09: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-01 09:25:19] Production.INFO: count ==1546 [2025-04-01 09:25:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:25:06 - End Time 2025-04-01 09:25:06 [2025-04-01 09:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809910', 'tblTempUsageDetail_20' ) start [2025-04-01 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809910', 'tblTempUsageDetail_20' ) end [2025-04-01 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809910', 'tblTempVendorCDR_20' ) start [2025-04-01 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809910', 'tblTempVendorCDR_20' ) end [2025-04-01 09:25:20] Production.INFO: ProcessCDR(1,14809910,1,1,2) [2025-04-01 09:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809910', 'tblTempUsageDetail_20' ) start [2025-04-01 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809910', 'tblTempUsageDetail_20' ) end [2025-04-01 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:25:26] Production.INFO: ==27802== Releasing lock... [2025-04-01 09:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:25:26] Production.INFO: 40.25 MB #Memory Used# [2025-04-01 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:26:05 [end_date_ymd] => 2025-04-01 09:26:05 [RateCDR] => 1 ) [2025-04-01 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-01 06:26:05' and `end` < '2025-04-01 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-01 09:26:18] Production.INFO: count ==1572 [2025-04-01 09:26:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:26:05 - End Time 2025-04-01 09:26:05 [2025-04-01 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809915', 'tblTempUsageDetail_20' ) start [2025-04-01 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809915', 'tblTempUsageDetail_20' ) end [2025-04-01 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809915', 'tblTempVendorCDR_20' ) start [2025-04-01 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809915', 'tblTempVendorCDR_20' ) end [2025-04-01 09:26:19] Production.INFO: ProcessCDR(1,14809915,1,1,2) [2025-04-01 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809915', 'tblTempUsageDetail_20' ) start [2025-04-01 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809915', 'tblTempUsageDetail_20' ) end [2025-04-01 09:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:26:24] Production.INFO: ==27879== Releasing lock... [2025-04-01 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:26:24] Production.INFO: 40 MB #Memory Used# [2025-04-01 09:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:27:06 [end_date_ymd] => 2025-04-01 09:27:06 [RateCDR] => 1 ) [2025-04-01 09:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 06:27:06' and `end` < '2025-04-01 09:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 09:27:19] Production.INFO: count ==1589 [2025-04-01 09:27:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:27:06 - End Time 2025-04-01 09:27:06 [2025-04-01 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809920', 'tblTempUsageDetail_20' ) start [2025-04-01 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809920', 'tblTempUsageDetail_20' ) end [2025-04-01 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809920', 'tblTempVendorCDR_20' ) start [2025-04-01 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809920', 'tblTempVendorCDR_20' ) end [2025-04-01 09:27:19] Production.INFO: ProcessCDR(1,14809920,1,1,2) [2025-04-01 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809920', 'tblTempUsageDetail_20' ) start [2025-04-01 09:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809920', 'tblTempUsageDetail_20' ) end [2025-04-01 09:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:27:25] Production.INFO: ==27959== Releasing lock... [2025-04-01 09:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:27:25] Production.INFO: 40 MB #Memory Used# [2025-04-01 09:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:28:05 [end_date_ymd] => 2025-04-01 09:28:05 [RateCDR] => 1 ) [2025-04-01 09: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-01 06:28:05' and `end` < '2025-04-01 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-01 09:28:18] Production.INFO: count ==1607 [2025-04-01 09:28:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:28:05 - End Time 2025-04-01 09:28:05 [2025-04-01 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809925', 'tblTempUsageDetail_20' ) start [2025-04-01 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809925', 'tblTempUsageDetail_20' ) end [2025-04-01 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809925', 'tblTempVendorCDR_20' ) start [2025-04-01 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809925', 'tblTempVendorCDR_20' ) end [2025-04-01 09:28:19] Production.INFO: ProcessCDR(1,14809925,1,1,2) [2025-04-01 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809925', 'tblTempUsageDetail_20' ) start [2025-04-01 09:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809925', 'tblTempUsageDetail_20' ) end [2025-04-01 09:28:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:28:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:28:25] Production.INFO: ==28031== Releasing lock... [2025-04-01 09:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:28:25] Production.INFO: 40 MB #Memory Used# [2025-04-01 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:29:05 [end_date_ymd] => 2025-04-01 09:29:05 [RateCDR] => 1 ) [2025-04-01 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-01 06:29:05' and `end` < '2025-04-01 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-01 09:29:18] Production.INFO: count ==1619 [2025-04-01 09:29:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:29:05 - End Time 2025-04-01 09:29:05 [2025-04-01 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809930', 'tblTempUsageDetail_20' ) start [2025-04-01 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809930', 'tblTempUsageDetail_20' ) end [2025-04-01 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809930', 'tblTempVendorCDR_20' ) start [2025-04-01 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809930', 'tblTempVendorCDR_20' ) end [2025-04-01 09:29:19] Production.INFO: ProcessCDR(1,14809930,1,1,2) [2025-04-01 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809930', 'tblTempUsageDetail_20' ) start [2025-04-01 09:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809930', 'tblTempUsageDetail_20' ) end [2025-04-01 09:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:29:25] Production.INFO: ==28111== Releasing lock... [2025-04-01 09:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:29:25] Production.INFO: 40.25 MB #Memory Used# [2025-04-01 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:30:06 [end_date_ymd] => 2025-04-01 09:30:06 [RateCDR] => 1 ) [2025-04-01 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-01 06:30:06' and `end` < '2025-04-01 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-01 09:30:19] Production.INFO: count ==1630 [2025-04-01 09:30:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:30:06 - End Time 2025-04-01 09:30:06 [2025-04-01 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809936', 'tblTempUsageDetail_20' ) start [2025-04-01 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809936', 'tblTempUsageDetail_20' ) end [2025-04-01 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809936', 'tblTempVendorCDR_20' ) start [2025-04-01 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809936', 'tblTempVendorCDR_20' ) end [2025-04-01 09:30:20] Production.INFO: ProcessCDR(1,14809936,1,1,2) [2025-04-01 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809936', 'tblTempUsageDetail_20' ) start [2025-04-01 09:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809936', 'tblTempUsageDetail_20' ) end [2025-04-01 09:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:30:26] Production.INFO: ==28189== Releasing lock... [2025-04-01 09:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:30:26] Production.INFO: 40.25 MB #Memory Used# [2025-04-01 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:31:05 [end_date_ymd] => 2025-04-01 09:31:05 [RateCDR] => 1 ) [2025-04-01 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-01 06:31:05' and `end` < '2025-04-01 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-01 09:31:19] Production.INFO: count ==1711 [2025-04-01 09:31:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:31:05 - End Time 2025-04-01 09:31:05 [2025-04-01 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809941', 'tblTempUsageDetail_20' ) start [2025-04-01 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809941', 'tblTempUsageDetail_20' ) end [2025-04-01 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809941', 'tblTempVendorCDR_20' ) start [2025-04-01 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809941', 'tblTempVendorCDR_20' ) end [2025-04-01 09:31:19] Production.INFO: ProcessCDR(1,14809941,1,1,2) [2025-04-01 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809941', 'tblTempUsageDetail_20' ) start [2025-04-01 09:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809941', 'tblTempUsageDetail_20' ) end [2025-04-01 09:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:31:25] Production.INFO: ==28268== Releasing lock... [2025-04-01 09:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:31:25] Production.INFO: 41 MB #Memory Used# [2025-04-01 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:32:05 [end_date_ymd] => 2025-04-01 09:32:05 [RateCDR] => 1 ) [2025-04-01 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-01 06:32:05' and `end` < '2025-04-01 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-01 09:32:18] Production.INFO: count ==1726 [2025-04-01 09:32:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:32:05 - End Time 2025-04-01 09:32:05 [2025-04-01 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809946', 'tblTempUsageDetail_20' ) start [2025-04-01 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809946', 'tblTempUsageDetail_20' ) end [2025-04-01 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809946', 'tblTempVendorCDR_20' ) start [2025-04-01 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809946', 'tblTempVendorCDR_20' ) end [2025-04-01 09:32:19] Production.INFO: ProcessCDR(1,14809946,1,1,2) [2025-04-01 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809946', 'tblTempUsageDetail_20' ) start [2025-04-01 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809946', 'tblTempUsageDetail_20' ) end [2025-04-01 09:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:32:25] Production.INFO: ==28341== Releasing lock... [2025-04-01 09:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:32:25] Production.INFO: 41 MB #Memory Used# [2025-04-01 09:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:33:06 [end_date_ymd] => 2025-04-01 09:33:06 [RateCDR] => 1 ) [2025-04-01 09:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 06:33:06' and `end` < '2025-04-01 09:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 09:33:19] Production.INFO: count ==1743 [2025-04-01 09:33:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:33:06 - End Time 2025-04-01 09:33:06 [2025-04-01 09:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809951', 'tblTempUsageDetail_20' ) start [2025-04-01 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809951', 'tblTempUsageDetail_20' ) end [2025-04-01 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809951', 'tblTempVendorCDR_20' ) start [2025-04-01 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809951', 'tblTempVendorCDR_20' ) end [2025-04-01 09:33:20] Production.INFO: ProcessCDR(1,14809951,1,1,2) [2025-04-01 09:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809951', 'tblTempUsageDetail_20' ) start [2025-04-01 09:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809951', 'tblTempUsageDetail_20' ) end [2025-04-01 09:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:33:26] Production.INFO: ==28417== Releasing lock... [2025-04-01 09:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:33:26] Production.INFO: 41.25 MB #Memory Used# [2025-04-01 09:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:34:06 [end_date_ymd] => 2025-04-01 09:34:06 [RateCDR] => 1 ) [2025-04-01 09: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-01 06:34:06' and `end` < '2025-04-01 09: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-01 09:34:19] Production.INFO: count ==1758 [2025-04-01 09:34:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:34:06 - End Time 2025-04-01 09:34:06 [2025-04-01 09:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809956', 'tblTempUsageDetail_20' ) start [2025-04-01 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809956', 'tblTempUsageDetail_20' ) end [2025-04-01 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809956', 'tblTempVendorCDR_20' ) start [2025-04-01 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809956', 'tblTempVendorCDR_20' ) end [2025-04-01 09:34:20] Production.INFO: ProcessCDR(1,14809956,1,1,2) [2025-04-01 09:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809956', 'tblTempUsageDetail_20' ) start [2025-04-01 09:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809956', 'tblTempUsageDetail_20' ) end [2025-04-01 09:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:34:26] Production.INFO: ==28492== Releasing lock... [2025-04-01 09:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:34:26] Production.INFO: 41.25 MB #Memory Used# [2025-04-01 09:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:35:06 [end_date_ymd] => 2025-04-01 09:35:06 [RateCDR] => 1 ) [2025-04-01 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-01 06:35:06' and `end` < '2025-04-01 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-01 09:35:19] Production.INFO: count ==1779 [2025-04-01 09:35:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:35:06 - End Time 2025-04-01 09:35:06 [2025-04-01 09:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809961', 'tblTempUsageDetail_20' ) start [2025-04-01 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809961', 'tblTempUsageDetail_20' ) end [2025-04-01 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809961', 'tblTempVendorCDR_20' ) start [2025-04-01 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809961', 'tblTempVendorCDR_20' ) end [2025-04-01 09:35:20] Production.INFO: ProcessCDR(1,14809961,1,1,2) [2025-04-01 09:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809961', 'tblTempUsageDetail_20' ) start [2025-04-01 09:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809961', 'tblTempUsageDetail_20' ) end [2025-04-01 09:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:35:26] Production.INFO: ==28567== Releasing lock... [2025-04-01 09:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:35:26] Production.INFO: 42 MB #Memory Used# [2025-04-01 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:36:06 [end_date_ymd] => 2025-04-01 09:36:06 [RateCDR] => 1 ) [2025-04-01 09: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-01 06:36:06' and `end` < '2025-04-01 09: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-01 09:36:19] Production.INFO: count ==1795 [2025-04-01 09:36:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:36:06 - End Time 2025-04-01 09:36:06 [2025-04-01 09:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809966', 'tblTempUsageDetail_20' ) start [2025-04-01 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809966', 'tblTempUsageDetail_20' ) end [2025-04-01 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809966', 'tblTempVendorCDR_20' ) start [2025-04-01 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809966', 'tblTempVendorCDR_20' ) end [2025-04-01 09:36:20] Production.INFO: ProcessCDR(1,14809966,1,1,2) [2025-04-01 09:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809966', 'tblTempUsageDetail_20' ) start [2025-04-01 09:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809966', 'tblTempUsageDetail_20' ) end [2025-04-01 09:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:36:25] Production.INFO: ==28678== Releasing lock... [2025-04-01 09:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:36:25] Production.INFO: 41.75 MB #Memory Used# [2025-04-01 09:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:37:06 [end_date_ymd] => 2025-04-01 09:37:06 [RateCDR] => 1 ) [2025-04-01 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-01 06:37:06' and `end` < '2025-04-01 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-01 09:37:19] Production.INFO: count ==1801 [2025-04-01 09:37:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:37:06 - End Time 2025-04-01 09:37:06 [2025-04-01 09:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809971', 'tblTempUsageDetail_20' ) start [2025-04-01 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809971', 'tblTempUsageDetail_20' ) end [2025-04-01 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809971', 'tblTempVendorCDR_20' ) start [2025-04-01 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809971', 'tblTempVendorCDR_20' ) end [2025-04-01 09:37:20] Production.INFO: ProcessCDR(1,14809971,1,1,2) [2025-04-01 09:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809971', 'tblTempUsageDetail_20' ) start [2025-04-01 09:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809971', 'tblTempUsageDetail_20' ) end [2025-04-01 09:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:37:26] Production.INFO: ==28760== Releasing lock... [2025-04-01 09:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:37:26] Production.INFO: 42 MB #Memory Used# [2025-04-01 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:38:05 [end_date_ymd] => 2025-04-01 09:38:05 [RateCDR] => 1 ) [2025-04-01 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-01 06:38:05' and `end` < '2025-04-01 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-01 09:38:18] Production.INFO: count ==1808 [2025-04-01 09:38:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:38:05 - End Time 2025-04-01 09:38:05 [2025-04-01 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809976', 'tblTempUsageDetail_20' ) start [2025-04-01 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809976', 'tblTempUsageDetail_20' ) end [2025-04-01 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809976', 'tblTempVendorCDR_20' ) start [2025-04-01 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809976', 'tblTempVendorCDR_20' ) end [2025-04-01 09:38:19] Production.INFO: ProcessCDR(1,14809976,1,1,2) [2025-04-01 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809976', 'tblTempUsageDetail_20' ) start [2025-04-01 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809976', 'tblTempUsageDetail_20' ) end [2025-04-01 09:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:38:25] Production.INFO: ==28837== Releasing lock... [2025-04-01 09:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:38:25] Production.INFO: 41.75 MB #Memory Used# [2025-04-01 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:39:05 [end_date_ymd] => 2025-04-01 09:39:05 [RateCDR] => 1 ) [2025-04-01 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-01 06:39:05' and `end` < '2025-04-01 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-01 09:39:18] Production.INFO: count ==1811 [2025-04-01 09:39:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:39:05 - End Time 2025-04-01 09:39:05 [2025-04-01 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809981', 'tblTempUsageDetail_20' ) start [2025-04-01 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809981', 'tblTempUsageDetail_20' ) end [2025-04-01 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809981', 'tblTempVendorCDR_20' ) start [2025-04-01 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809981', 'tblTempVendorCDR_20' ) end [2025-04-01 09:39:19] Production.INFO: ProcessCDR(1,14809981,1,1,2) [2025-04-01 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809981', 'tblTempUsageDetail_20' ) start [2025-04-01 09:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809981', 'tblTempUsageDetail_20' ) end [2025-04-01 09:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:39:25] Production.INFO: ==28909== Releasing lock... [2025-04-01 09:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:39:25] Production.INFO: 41.75 MB #Memory Used# [2025-04-01 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:40:06 [end_date_ymd] => 2025-04-01 09:40:06 [RateCDR] => 1 ) [2025-04-01 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-01 06:40:06' and `end` < '2025-04-01 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-01 09:40:19] Production.INFO: count ==1832 [2025-04-01 09:40:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:40:06 - End Time 2025-04-01 09:40:06 [2025-04-01 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809986', 'tblTempUsageDetail_20' ) start [2025-04-01 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809986', 'tblTempUsageDetail_20' ) end [2025-04-01 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809986', 'tblTempVendorCDR_20' ) start [2025-04-01 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809986', 'tblTempVendorCDR_20' ) end [2025-04-01 09:40:20] Production.INFO: ProcessCDR(1,14809986,1,1,2) [2025-04-01 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809986', 'tblTempUsageDetail_20' ) start [2025-04-01 09:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809986', 'tblTempUsageDetail_20' ) end [2025-04-01 09:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:40:26] Production.INFO: ==28991== Releasing lock... [2025-04-01 09:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:40:26] Production.INFO: 41.75 MB #Memory Used# [2025-04-01 09:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:41:06 [end_date_ymd] => 2025-04-01 09:41:06 [RateCDR] => 1 ) [2025-04-01 09:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 06:41:06' and `end` < '2025-04-01 09:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 09:41:19] Production.INFO: count ==2000 [2025-04-01 09:41:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:41:06 - End Time 2025-04-01 09:41:06 [2025-04-01 09:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809992', 'tblTempUsageDetail_20' ) start [2025-04-01 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809992', 'tblTempUsageDetail_20' ) end [2025-04-01 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809992', 'tblTempVendorCDR_20' ) start [2025-04-01 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809992', 'tblTempVendorCDR_20' ) end [2025-04-01 09:41:20] Production.INFO: ProcessCDR(1,14809992,1,1,2) [2025-04-01 09:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809992', 'tblTempUsageDetail_20' ) start [2025-04-01 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809992', 'tblTempUsageDetail_20' ) end [2025-04-01 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:41:24] Production.INFO: ==29071== Releasing lock... [2025-04-01 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:41:24] Production.INFO: 43 MB #Memory Used# [2025-04-01 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:42:05 [end_date_ymd] => 2025-04-01 09:42:05 [RateCDR] => 1 ) [2025-04-01 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-01 06:42:05' and `end` < '2025-04-01 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-01 09:42:18] Production.INFO: count ==2016 [2025-04-01 09:42:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:42:05 - End Time 2025-04-01 09:42:05 [2025-04-01 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809997', 'tblTempUsageDetail_20' ) start [2025-04-01 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14809997', 'tblTempUsageDetail_20' ) end [2025-04-01 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809997', 'tblTempVendorCDR_20' ) start [2025-04-01 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14809997', 'tblTempVendorCDR_20' ) end [2025-04-01 09:42:19] Production.INFO: ProcessCDR(1,14809997,1,1,2) [2025-04-01 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14809997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14809997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14809997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14809997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809997', 'tblTempUsageDetail_20' ) start [2025-04-01 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14809997', 'tblTempUsageDetail_20' ) end [2025-04-01 09:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:42:25] Production.INFO: ==29158== Releasing lock... [2025-04-01 09:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:42:25] Production.INFO: 43.25 MB #Memory Used# [2025-04-01 09:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:43:06 [end_date_ymd] => 2025-04-01 09:43:06 [RateCDR] => 1 ) [2025-04-01 09: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-01 06:43:06' and `end` < '2025-04-01 09: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-01 09:43:19] Production.INFO: count ==2038 [2025-04-01 09:43:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:43:06 - End Time 2025-04-01 09:43:06 [2025-04-01 09:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810002', 'tblTempUsageDetail_20' ) start [2025-04-01 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810002', 'tblTempUsageDetail_20' ) end [2025-04-01 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810002', 'tblTempVendorCDR_20' ) start [2025-04-01 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810002', 'tblTempVendorCDR_20' ) end [2025-04-01 09:43:20] Production.INFO: ProcessCDR(1,14810002,1,1,2) [2025-04-01 09:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810002', 'tblTempUsageDetail_20' ) start [2025-04-01 09:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810002', 'tblTempUsageDetail_20' ) end [2025-04-01 09:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:43:26] Production.INFO: ==29238== Releasing lock... [2025-04-01 09:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:43:26] Production.INFO: 43.25 MB #Memory Used# [2025-04-01 09:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:44:06 [end_date_ymd] => 2025-04-01 09:44:06 [RateCDR] => 1 ) [2025-04-01 09: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-01 06:44:06' and `end` < '2025-04-01 09: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-01 09:44:18] Production.INFO: count ==2068 [2025-04-01 09:44:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:44:06 - End Time 2025-04-01 09:44:06 [2025-04-01 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810007', 'tblTempUsageDetail_20' ) start [2025-04-01 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810007', 'tblTempUsageDetail_20' ) end [2025-04-01 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810007', 'tblTempVendorCDR_20' ) start [2025-04-01 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810007', 'tblTempVendorCDR_20' ) end [2025-04-01 09:44:20] Production.INFO: ProcessCDR(1,14810007,1,1,2) [2025-04-01 09:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810007', 'tblTempUsageDetail_20' ) start [2025-04-01 09:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810007', 'tblTempUsageDetail_20' ) end [2025-04-01 09:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:44:26] Production.INFO: ==29322== Releasing lock... [2025-04-01 09:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:44:26] Production.INFO: 43.5 MB #Memory Used# [2025-04-01 09:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:45:06 [end_date_ymd] => 2025-04-01 09:45:06 [RateCDR] => 1 ) [2025-04-01 09: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-01 06:45:06' and `end` < '2025-04-01 09: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-01 09:45:19] Production.INFO: count ==2075 [2025-04-01 09:45:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:45:06 - End Time 2025-04-01 09:45:06 [2025-04-01 09:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810012', 'tblTempUsageDetail_20' ) start [2025-04-01 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810012', 'tblTempUsageDetail_20' ) end [2025-04-01 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810012', 'tblTempVendorCDR_20' ) start [2025-04-01 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810012', 'tblTempVendorCDR_20' ) end [2025-04-01 09:45:20] Production.INFO: ProcessCDR(1,14810012,1,1,2) [2025-04-01 09:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810012', 'tblTempUsageDetail_20' ) start [2025-04-01 09:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810012', 'tblTempUsageDetail_20' ) end [2025-04-01 09:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:45:26] Production.INFO: ==29400== Releasing lock... [2025-04-01 09:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:45:26] Production.INFO: 44 MB #Memory Used# [2025-04-01 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:46:05 [end_date_ymd] => 2025-04-01 09:46:05 [RateCDR] => 1 ) [2025-04-01 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-01 06:46:05' and `end` < '2025-04-01 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-01 09:46:18] Production.INFO: count ==2074 [2025-04-01 09:46:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:46:05 - End Time 2025-04-01 09:46:05 [2025-04-01 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810017', 'tblTempUsageDetail_20' ) start [2025-04-01 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810017', 'tblTempUsageDetail_20' ) end [2025-04-01 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810017', 'tblTempVendorCDR_20' ) start [2025-04-01 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810017', 'tblTempVendorCDR_20' ) end [2025-04-01 09:46:19] Production.INFO: ProcessCDR(1,14810017,1,1,2) [2025-04-01 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810017', 'tblTempUsageDetail_20' ) start [2025-04-01 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810017', 'tblTempUsageDetail_20' ) end [2025-04-01 09:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:46:23] Production.INFO: ==29477== Releasing lock... [2025-04-01 09:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:46:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-01 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:47:06 [end_date_ymd] => 2025-04-01 09:47:06 [RateCDR] => 1 ) [2025-04-01 09: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-01 06:47:06' and `end` < '2025-04-01 09: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-01 09:47:19] Production.INFO: count ==2097 [2025-04-01 09:47:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:47:06 - End Time 2025-04-01 09:47:06 [2025-04-01 09:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810022', 'tblTempUsageDetail_20' ) start [2025-04-01 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810022', 'tblTempUsageDetail_20' ) end [2025-04-01 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810022', 'tblTempVendorCDR_20' ) start [2025-04-01 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810022', 'tblTempVendorCDR_20' ) end [2025-04-01 09:47:20] Production.INFO: ProcessCDR(1,14810022,1,1,2) [2025-04-01 09:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810022', 'tblTempUsageDetail_20' ) start [2025-04-01 09:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810022', 'tblTempUsageDetail_20' ) end [2025-04-01 09:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:47:26] Production.INFO: ==29547== Releasing lock... [2025-04-01 09:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:47:26] Production.INFO: 43.75 MB #Memory Used# [2025-04-01 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:48:05 [end_date_ymd] => 2025-04-01 09:48:05 [RateCDR] => 1 ) [2025-04-01 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-01 06:48:05' and `end` < '2025-04-01 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-01 09:48:18] Production.INFO: count ==2113 [2025-04-01 09:48:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:48:05 - End Time 2025-04-01 09:48:05 [2025-04-01 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810027', 'tblTempUsageDetail_20' ) start [2025-04-01 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810027', 'tblTempUsageDetail_20' ) end [2025-04-01 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810027', 'tblTempVendorCDR_20' ) start [2025-04-01 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810027', 'tblTempVendorCDR_20' ) end [2025-04-01 09:48:19] Production.INFO: ProcessCDR(1,14810027,1,1,2) [2025-04-01 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810027', 'tblTempUsageDetail_20' ) start [2025-04-01 09:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810027', 'tblTempUsageDetail_20' ) end [2025-04-01 09:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:48:25] Production.INFO: ==29627== Releasing lock... [2025-04-01 09:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:48:25] Production.INFO: 44.25 MB #Memory Used# [2025-04-01 09:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:49:06 [end_date_ymd] => 2025-04-01 09:49:06 [RateCDR] => 1 ) [2025-04-01 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-01 06:49:06' and `end` < '2025-04-01 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-01 09:49:19] Production.INFO: count ==2121 [2025-04-01 09:49:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:49:06 - End Time 2025-04-01 09:49:06 [2025-04-01 09:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810032', 'tblTempUsageDetail_20' ) start [2025-04-01 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810032', 'tblTempUsageDetail_20' ) end [2025-04-01 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810032', 'tblTempVendorCDR_20' ) start [2025-04-01 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810032', 'tblTempVendorCDR_20' ) end [2025-04-01 09:49:20] Production.INFO: ProcessCDR(1,14810032,1,1,2) [2025-04-01 09:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810032', 'tblTempUsageDetail_20' ) start [2025-04-01 09:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810032', 'tblTempUsageDetail_20' ) end [2025-04-01 09:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:49:26] Production.INFO: ==29701== Releasing lock... [2025-04-01 09:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:49:26] Production.INFO: 44 MB #Memory Used# [2025-04-01 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:50:06 [end_date_ymd] => 2025-04-01 09:50:06 [RateCDR] => 1 ) [2025-04-01 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-01 06:50:06' and `end` < '2025-04-01 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-01 09:50:19] Production.INFO: count ==2136 [2025-04-01 09:50:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:50:06 - End Time 2025-04-01 09:50:06 [2025-04-01 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810038', 'tblTempUsageDetail_20' ) start [2025-04-01 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810038', 'tblTempUsageDetail_20' ) end [2025-04-01 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810038', 'tblTempVendorCDR_20' ) start [2025-04-01 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810038', 'tblTempVendorCDR_20' ) end [2025-04-01 09:50:20] Production.INFO: ProcessCDR(1,14810038,1,1,2) [2025-04-01 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810038', 'tblTempUsageDetail_20' ) start [2025-04-01 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810038', 'tblTempUsageDetail_20' ) end [2025-04-01 09:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:50:24] Production.INFO: ==29779== Releasing lock... [2025-04-01 09:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:50:24] Production.INFO: 44 MB #Memory Used# [2025-04-01 09:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:51:06 [end_date_ymd] => 2025-04-01 09:51:06 [RateCDR] => 1 ) [2025-04-01 09: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-01 06:51:06' and `end` < '2025-04-01 09: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-01 09:51:19] Production.INFO: count ==2255 [2025-04-01 09:51:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:51:06 - End Time 2025-04-01 09:51:06 [2025-04-01 09:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810043', 'tblTempUsageDetail_20' ) start [2025-04-01 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810043', 'tblTempUsageDetail_20' ) end [2025-04-01 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810043', 'tblTempVendorCDR_20' ) start [2025-04-01 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810043', 'tblTempVendorCDR_20' ) end [2025-04-01 09:51:20] Production.INFO: ProcessCDR(1,14810043,1,1,2) [2025-04-01 09:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810043', 'tblTempUsageDetail_20' ) start [2025-04-01 09:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810043', 'tblTempUsageDetail_20' ) end [2025-04-01 09:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:51:26] Production.INFO: ==29861== Releasing lock... [2025-04-01 09:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:51:26] Production.INFO: 45.25 MB #Memory Used# [2025-04-01 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:52:05 [end_date_ymd] => 2025-04-01 09:52:05 [RateCDR] => 1 ) [2025-04-01 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-01 06:52:05' and `end` < '2025-04-01 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-01 09:52:19] Production.INFO: count ==2281 [2025-04-01 09:52:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:52:05 - End Time 2025-04-01 09:52:05 [2025-04-01 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810048', 'tblTempUsageDetail_20' ) start [2025-04-01 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810048', 'tblTempUsageDetail_20' ) end [2025-04-01 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810048', 'tblTempVendorCDR_20' ) start [2025-04-01 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810048', 'tblTempVendorCDR_20' ) end [2025-04-01 09:52:19] Production.INFO: ProcessCDR(1,14810048,1,1,2) [2025-04-01 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810048', 'tblTempUsageDetail_20' ) start [2025-04-01 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810048', 'tblTempUsageDetail_20' ) end [2025-04-01 09:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:52:25] Production.INFO: ==29978== Releasing lock... [2025-04-01 09:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:52:25] Production.INFO: 45.25 MB #Memory Used# [2025-04-01 09:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:53:06 [end_date_ymd] => 2025-04-01 09:53:06 [RateCDR] => 1 ) [2025-04-01 09:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 06:53:06' and `end` < '2025-04-01 09:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 09:53:19] Production.INFO: count ==2287 [2025-04-01 09:53:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:53:06 - End Time 2025-04-01 09:53:06 [2025-04-01 09:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810053', 'tblTempUsageDetail_20' ) start [2025-04-01 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810053', 'tblTempUsageDetail_20' ) end [2025-04-01 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810053', 'tblTempVendorCDR_20' ) start [2025-04-01 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810053', 'tblTempVendorCDR_20' ) end [2025-04-01 09:53:20] Production.INFO: ProcessCDR(1,14810053,1,1,2) [2025-04-01 09:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810053', 'tblTempUsageDetail_20' ) start [2025-04-01 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810053', 'tblTempUsageDetail_20' ) end [2025-04-01 09:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:53:25] Production.INFO: ==30052== Releasing lock... [2025-04-01 09:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:53:25] Production.INFO: 45.25 MB #Memory Used# [2025-04-01 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:54:05 [end_date_ymd] => 2025-04-01 09:54:05 [RateCDR] => 1 ) [2025-04-01 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-01 06:54:05' and `end` < '2025-04-01 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-01 09:54:18] Production.INFO: count ==2301 [2025-04-01 09:54:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:54:05 - End Time 2025-04-01 09:54:05 [2025-04-01 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810058', 'tblTempUsageDetail_20' ) start [2025-04-01 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810058', 'tblTempUsageDetail_20' ) end [2025-04-01 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810058', 'tblTempVendorCDR_20' ) start [2025-04-01 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810058', 'tblTempVendorCDR_20' ) end [2025-04-01 09:54:19] Production.INFO: ProcessCDR(1,14810058,1,1,2) [2025-04-01 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810058', 'tblTempUsageDetail_20' ) start [2025-04-01 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810058', 'tblTempUsageDetail_20' ) end [2025-04-01 09:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:54:25] Production.INFO: ==30124== Releasing lock... [2025-04-01 09:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:54:25] Production.INFO: 45.25 MB #Memory Used# [2025-04-01 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:55:06 [end_date_ymd] => 2025-04-01 09:55:06 [RateCDR] => 1 ) [2025-04-01 09: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-01 06:55:06' and `end` < '2025-04-01 09: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-01 09:55:20] Production.INFO: count ==2309 [2025-04-01 09:55:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:55:06 - End Time 2025-04-01 09:55:06 [2025-04-01 09:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810063', 'tblTempUsageDetail_20' ) start [2025-04-01 09:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810063', 'tblTempUsageDetail_20' ) end [2025-04-01 09:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810063', 'tblTempVendorCDR_20' ) start [2025-04-01 09:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810063', 'tblTempVendorCDR_20' ) end [2025-04-01 09:55:21] Production.INFO: ProcessCDR(1,14810063,1,1,2) [2025-04-01 09:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810063', 'tblTempUsageDetail_20' ) start [2025-04-01 09:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810063', 'tblTempUsageDetail_20' ) end [2025-04-01 09:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:55:27] Production.INFO: ==30203== Releasing lock... [2025-04-01 09:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:55:27] Production.INFO: 45.5 MB #Memory Used# [2025-04-01 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:56:06 [end_date_ymd] => 2025-04-01 09:56:06 [RateCDR] => 1 ) [2025-04-01 09:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 06:56:06' and `end` < '2025-04-01 09:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 09:56:19] Production.INFO: count ==2345 [2025-04-01 09:56:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:56:06 - End Time 2025-04-01 09:56:06 [2025-04-01 09:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810068', 'tblTempUsageDetail_20' ) start [2025-04-01 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810068', 'tblTempUsageDetail_20' ) end [2025-04-01 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810068', 'tblTempVendorCDR_20' ) start [2025-04-01 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810068', 'tblTempVendorCDR_20' ) end [2025-04-01 09:56:20] Production.INFO: ProcessCDR(1,14810068,1,1,2) [2025-04-01 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810068', 'tblTempUsageDetail_20' ) start [2025-04-01 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810068', 'tblTempUsageDetail_20' ) end [2025-04-01 09:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:56:25] Production.INFO: ==30275== Releasing lock... [2025-04-01 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:56:25] Production.INFO: 45.75 MB #Memory Used# [2025-04-01 09:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:57:06 [end_date_ymd] => 2025-04-01 09:57:06 [RateCDR] => 1 ) [2025-04-01 09:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 06:57:06' and `end` < '2025-04-01 09:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 09:57:19] Production.INFO: count ==2358 [2025-04-01 09:57:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:57:06 - End Time 2025-04-01 09:57:06 [2025-04-01 09:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810073', 'tblTempUsageDetail_20' ) start [2025-04-01 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810073', 'tblTempUsageDetail_20' ) end [2025-04-01 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810073', 'tblTempVendorCDR_20' ) start [2025-04-01 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810073', 'tblTempVendorCDR_20' ) end [2025-04-01 09:57:20] Production.INFO: ProcessCDR(1,14810073,1,1,2) [2025-04-01 09:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810073', 'tblTempUsageDetail_20' ) start [2025-04-01 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810073', 'tblTempUsageDetail_20' ) end [2025-04-01 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:57:24] Production.INFO: ==30348== Releasing lock... [2025-04-01 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:57:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-01 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:58:05 [end_date_ymd] => 2025-04-01 09:58:05 [RateCDR] => 1 ) [2025-04-01 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-01 06:58:05' and `end` < '2025-04-01 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-01 09:58:18] Production.INFO: count ==2359 [2025-04-01 09:58:19] Production.ERROR: pbx CDR StartTime 2025-04-01 06:58:05 - End Time 2025-04-01 09:58:05 [2025-04-01 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810078', 'tblTempUsageDetail_20' ) start [2025-04-01 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810078', 'tblTempUsageDetail_20' ) end [2025-04-01 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810078', 'tblTempVendorCDR_20' ) start [2025-04-01 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810078', 'tblTempVendorCDR_20' ) end [2025-04-01 09:58:19] Production.INFO: ProcessCDR(1,14810078,1,1,2) [2025-04-01 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810078', 'tblTempUsageDetail_20' ) start [2025-04-01 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810078', 'tblTempUsageDetail_20' ) end [2025-04-01 09:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:58:25] Production.INFO: ==30423== Releasing lock... [2025-04-01 09:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:58:25] Production.INFO: 45.75 MB #Memory Used# [2025-04-01 09:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 06:59:06 [end_date_ymd] => 2025-04-01 09:59:06 [RateCDR] => 1 ) [2025-04-01 09:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 06:59:06' and `end` < '2025-04-01 09:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 09:59:19] Production.INFO: count ==2377 [2025-04-01 09:59:20] Production.ERROR: pbx CDR StartTime 2025-04-01 06:59:06 - End Time 2025-04-01 09:59:06 [2025-04-01 09:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810083', 'tblTempUsageDetail_20' ) start [2025-04-01 09:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810083', 'tblTempUsageDetail_20' ) end [2025-04-01 09:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810083', 'tblTempVendorCDR_20' ) start [2025-04-01 09:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810083', 'tblTempVendorCDR_20' ) end [2025-04-01 09:59:21] Production.INFO: ProcessCDR(1,14810083,1,1,2) [2025-04-01 09:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 09:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 09:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810083', 'tblTempUsageDetail_20' ) start [2025-04-01 09:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810083', 'tblTempUsageDetail_20' ) end [2025-04-01 09:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 09:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 09:59:27] Production.INFO: ==30505== Releasing lock... [2025-04-01 09:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 09:59:27] Production.INFO: 46 MB #Memory Used# [2025-04-01 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:00:06 [end_date_ymd] => 2025-04-01 10:00:06 [RateCDR] => 1 ) [2025-04-01 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-01 07:00:06' and `end` < '2025-04-01 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-01 10:00:19] Production.INFO: count ==2403 [2025-04-01 10:00:20] Production.ERROR: pbx CDR StartTime 2025-04-01 07:00:06 - End Time 2025-04-01 10:00:06 [2025-04-01 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810088', 'tblTempUsageDetail_20' ) start [2025-04-01 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810088', 'tblTempUsageDetail_20' ) end [2025-04-01 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810088', 'tblTempVendorCDR_20' ) start [2025-04-01 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810088', 'tblTempVendorCDR_20' ) end [2025-04-01 10:00:21] Production.INFO: ProcessCDR(1,14810088,1,1,2) [2025-04-01 10:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810088', 'tblTempUsageDetail_20' ) start [2025-04-01 10:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810088', 'tblTempUsageDetail_20' ) end [2025-04-01 10:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:00:27] Production.INFO: ==30593== Releasing lock... [2025-04-01 10:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:00:27] Production.INFO: 46 MB #Memory Used# [2025-04-01 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:01:06 [end_date_ymd] => 2025-04-01 10:01:06 [RateCDR] => 1 ) [2025-04-01 10:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:01:06' and `end` < '2025-04-01 10:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:01:19] Production.INFO: count ==2522 [2025-04-01 10:01:20] Production.ERROR: pbx CDR StartTime 2025-04-01 07:01:06 - End Time 2025-04-01 10:01:06 [2025-04-01 10:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810094', 'tblTempUsageDetail_20' ) start [2025-04-01 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810094', 'tblTempUsageDetail_20' ) end [2025-04-01 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810094', 'tblTempVendorCDR_20' ) start [2025-04-01 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810094', 'tblTempVendorCDR_20' ) end [2025-04-01 10:01:20] Production.INFO: ProcessCDR(1,14810094,1,1,2) [2025-04-01 10:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810094', 'tblTempUsageDetail_20' ) start [2025-04-01 10:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810094', 'tblTempUsageDetail_20' ) end [2025-04-01 10:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:01:26] Production.INFO: ==30692== Releasing lock... [2025-04-01 10:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:01:26] Production.INFO: 47.25 MB #Memory Used# [2025-04-01 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:02:05 [end_date_ymd] => 2025-04-01 10:02:05 [RateCDR] => 1 ) [2025-04-01 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-01 07:02:05' and `end` < '2025-04-01 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-01 10:02:18] Production.INFO: count ==2542 [2025-04-01 10:02:20] Production.ERROR: pbx CDR StartTime 2025-04-01 07:02:05 - End Time 2025-04-01 10:02:05 [2025-04-01 10:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810099', 'tblTempUsageDetail_20' ) start [2025-04-01 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810099', 'tblTempUsageDetail_20' ) end [2025-04-01 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810099', 'tblTempVendorCDR_20' ) start [2025-04-01 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810099', 'tblTempVendorCDR_20' ) end [2025-04-01 10:02:20] Production.INFO: ProcessCDR(1,14810099,1,1,2) [2025-04-01 10:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810099', 'tblTempUsageDetail_20' ) start [2025-04-01 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810099', 'tblTempUsageDetail_20' ) end [2025-04-01 10:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:02:26] Production.INFO: ==30765== Releasing lock... [2025-04-01 10:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:02:26] Production.INFO: 47.25 MB #Memory Used# [2025-04-01 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:03:06 [end_date_ymd] => 2025-04-01 10:03:06 [RateCDR] => 1 ) [2025-04-01 10:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:03:06' and `end` < '2025-04-01 10:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:03:19] Production.INFO: count ==2558 [2025-04-01 10:03:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:03:06 - End Time 2025-04-01 10:03:06 [2025-04-01 10:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810104', 'tblTempUsageDetail_20' ) start [2025-04-01 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810104', 'tblTempUsageDetail_20' ) end [2025-04-01 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810104', 'tblTempVendorCDR_20' ) start [2025-04-01 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810104', 'tblTempVendorCDR_20' ) end [2025-04-01 10:03:21] Production.INFO: ProcessCDR(1,14810104,1,1,2) [2025-04-01 10:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810104', 'tblTempUsageDetail_20' ) start [2025-04-01 10:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810104', 'tblTempUsageDetail_20' ) end [2025-04-01 10:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:03:27] Production.INFO: ==30847== Releasing lock... [2025-04-01 10:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:03:27] Production.INFO: 47.25 MB #Memory Used# [2025-04-01 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:04:06 [end_date_ymd] => 2025-04-01 10:04:06 [RateCDR] => 1 ) [2025-04-01 10: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-01 07:04:06' and `end` < '2025-04-01 10: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-01 10:04:19] Production.INFO: count ==2578 [2025-04-01 10:04:20] Production.ERROR: pbx CDR StartTime 2025-04-01 07:04:06 - End Time 2025-04-01 10:04:06 [2025-04-01 10:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810109', 'tblTempUsageDetail_20' ) start [2025-04-01 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810109', 'tblTempUsageDetail_20' ) end [2025-04-01 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810109', 'tblTempVendorCDR_20' ) start [2025-04-01 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810109', 'tblTempVendorCDR_20' ) end [2025-04-01 10:04:20] Production.INFO: ProcessCDR(1,14810109,1,1,2) [2025-04-01 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810109', 'tblTempUsageDetail_20' ) start [2025-04-01 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810109', 'tblTempUsageDetail_20' ) end [2025-04-01 10:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:04:26] Production.INFO: ==30921== Releasing lock... [2025-04-01 10:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:04:26] Production.INFO: 47.5 MB #Memory Used# [2025-04-01 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:05:06 [end_date_ymd] => 2025-04-01 10:05:06 [RateCDR] => 1 ) [2025-04-01 10:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:05:06' and `end` < '2025-04-01 10:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:05:19] Production.INFO: count ==2600 [2025-04-01 10:05:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:05:06 - End Time 2025-04-01 10:05:06 [2025-04-01 10:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810114', 'tblTempUsageDetail_20' ) start [2025-04-01 10:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810114', 'tblTempUsageDetail_20' ) end [2025-04-01 10:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810114', 'tblTempVendorCDR_20' ) start [2025-04-01 10:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810114', 'tblTempVendorCDR_20' ) end [2025-04-01 10:05:21] Production.INFO: ProcessCDR(1,14810114,1,1,2) [2025-04-01 10:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810114', 'tblTempUsageDetail_20' ) start [2025-04-01 10:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810114', 'tblTempUsageDetail_20' ) end [2025-04-01 10:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:05:27] Production.INFO: ==31003== Releasing lock... [2025-04-01 10:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:05:27] Production.INFO: 47.5 MB #Memory Used# [2025-04-01 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:06:05 [end_date_ymd] => 2025-04-01 10:06:05 [RateCDR] => 1 ) [2025-04-01 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-01 07:06:05' and `end` < '2025-04-01 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-01 10:06:19] Production.INFO: count ==2616 [2025-04-01 10:06:20] Production.ERROR: pbx CDR StartTime 2025-04-01 07:06:05 - End Time 2025-04-01 10:06:05 [2025-04-01 10:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810119', 'tblTempUsageDetail_20' ) start [2025-04-01 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810119', 'tblTempUsageDetail_20' ) end [2025-04-01 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810119', 'tblTempVendorCDR_20' ) start [2025-04-01 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810119', 'tblTempVendorCDR_20' ) end [2025-04-01 10:06:20] Production.INFO: ProcessCDR(1,14810119,1,1,2) [2025-04-01 10:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810119', 'tblTempUsageDetail_20' ) start [2025-04-01 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810119', 'tblTempUsageDetail_20' ) end [2025-04-01 10:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:06:26] Production.INFO: ==31080== Releasing lock... [2025-04-01 10:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:06:26] Production.INFO: 47.75 MB #Memory Used# [2025-04-01 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:07:06 [end_date_ymd] => 2025-04-01 10:07:06 [RateCDR] => 1 ) [2025-04-01 10:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:07:06' and `end` < '2025-04-01 10:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:07:19] Production.INFO: count ==2632 [2025-04-01 10:07:20] Production.ERROR: pbx CDR StartTime 2025-04-01 07:07:06 - End Time 2025-04-01 10:07:06 [2025-04-01 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810124', 'tblTempUsageDetail_20' ) start [2025-04-01 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810124', 'tblTempUsageDetail_20' ) end [2025-04-01 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810124', 'tblTempVendorCDR_20' ) start [2025-04-01 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810124', 'tblTempVendorCDR_20' ) end [2025-04-01 10:07:20] Production.INFO: ProcessCDR(1,14810124,1,1,2) [2025-04-01 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810124', 'tblTempUsageDetail_20' ) start [2025-04-01 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810124', 'tblTempUsageDetail_20' ) end [2025-04-01 10:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:07:27] Production.INFO: ==31201== Releasing lock... [2025-04-01 10:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:07:27] Production.INFO: 47.75 MB #Memory Used# [2025-04-01 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:08:05 [end_date_ymd] => 2025-04-01 10:08:05 [RateCDR] => 1 ) [2025-04-01 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-01 07:08:05' and `end` < '2025-04-01 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-01 10:08:19] Production.INFO: count ==2644 [2025-04-01 10:08:20] Production.ERROR: pbx CDR StartTime 2025-04-01 07:08:05 - End Time 2025-04-01 10:08:05 [2025-04-01 10:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810129', 'tblTempUsageDetail_20' ) start [2025-04-01 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810129', 'tblTempUsageDetail_20' ) end [2025-04-01 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810129', 'tblTempVendorCDR_20' ) start [2025-04-01 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810129', 'tblTempVendorCDR_20' ) end [2025-04-01 10:08:20] Production.INFO: ProcessCDR(1,14810129,1,1,2) [2025-04-01 10:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810129', 'tblTempUsageDetail_20' ) start [2025-04-01 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810129', 'tblTempUsageDetail_20' ) end [2025-04-01 10:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:08:26] Production.INFO: ==31277== Releasing lock... [2025-04-01 10:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:08:26] Production.INFO: 47.75 MB #Memory Used# [2025-04-01 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:09:06 [end_date_ymd] => 2025-04-01 10:09:06 [RateCDR] => 1 ) [2025-04-01 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-01 07:09:06' and `end` < '2025-04-01 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-01 10:09:19] Production.INFO: count ==2662 [2025-04-01 10:09:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:09:06 - End Time 2025-04-01 10:09:06 [2025-04-01 10:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810134', 'tblTempUsageDetail_20' ) start [2025-04-01 10:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810134', 'tblTempUsageDetail_20' ) end [2025-04-01 10:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810134', 'tblTempVendorCDR_20' ) start [2025-04-01 10:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810134', 'tblTempVendorCDR_20' ) end [2025-04-01 10:09:21] Production.INFO: ProcessCDR(1,14810134,1,1,2) [2025-04-01 10:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810134', 'tblTempUsageDetail_20' ) start [2025-04-01 10:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810134', 'tblTempUsageDetail_20' ) end [2025-04-01 10:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:09:27] Production.INFO: ==31353== Releasing lock... [2025-04-01 10:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:09:27] Production.INFO: 48 MB #Memory Used# [2025-04-01 10:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:10:07 [end_date_ymd] => 2025-04-01 10:10:07 [RateCDR] => 1 ) [2025-04-01 10: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-01 07:10:07' and `end` < '2025-04-01 10: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-01 10:10:20] Production.INFO: count ==2740 [2025-04-01 10:10:22] Production.ERROR: pbx CDR StartTime 2025-04-01 07:10:07 - End Time 2025-04-01 10:10:07 [2025-04-01 10:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810140', 'tblTempUsageDetail_20' ) start [2025-04-01 10:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810140', 'tblTempUsageDetail_20' ) end [2025-04-01 10:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810140', 'tblTempVendorCDR_20' ) start [2025-04-01 10:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810140', 'tblTempVendorCDR_20' ) end [2025-04-01 10:10:22] Production.INFO: ProcessCDR(1,14810140,1,1,2) [2025-04-01 10:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810140', 'tblTempUsageDetail_20' ) start [2025-04-01 10:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810140', 'tblTempUsageDetail_20' ) end [2025-04-01 10:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:10:28] Production.INFO: ==31444== Releasing lock... [2025-04-01 10:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:10:28] Production.INFO: 48.5 MB #Memory Used# [2025-04-01 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:11:06 [end_date_ymd] => 2025-04-01 10:11:06 [RateCDR] => 1 ) [2025-04-01 10:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:11:06' and `end` < '2025-04-01 10:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:11:19] Production.INFO: count ==2890 [2025-04-01 10:11:20] Production.ERROR: pbx CDR StartTime 2025-04-01 07:11:06 - End Time 2025-04-01 10:11:06 [2025-04-01 10:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810145', 'tblTempUsageDetail_20' ) start [2025-04-01 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810145', 'tblTempUsageDetail_20' ) end [2025-04-01 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810145', 'tblTempVendorCDR_20' ) start [2025-04-01 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810145', 'tblTempVendorCDR_20' ) end [2025-04-01 10:11:21] Production.INFO: ProcessCDR(1,14810145,1,1,2) [2025-04-01 10:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810145', 'tblTempUsageDetail_20' ) start [2025-04-01 10:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810145', 'tblTempUsageDetail_20' ) end [2025-04-01 10:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:11:26] Production.INFO: ==31525== Releasing lock... [2025-04-01 10:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:11:26] Production.INFO: 49.25 MB #Memory Used# [2025-04-01 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:12:05 [end_date_ymd] => 2025-04-01 10:12:05 [RateCDR] => 1 ) [2025-04-01 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-01 07:12:05' and `end` < '2025-04-01 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-01 10:12:18] Production.INFO: count ==2938 [2025-04-01 10:12:20] Production.ERROR: pbx CDR StartTime 2025-04-01 07:12:05 - End Time 2025-04-01 10:12:05 [2025-04-01 10:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810150', 'tblTempUsageDetail_20' ) start [2025-04-01 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810150', 'tblTempUsageDetail_20' ) end [2025-04-01 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810150', 'tblTempVendorCDR_20' ) start [2025-04-01 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810150', 'tblTempVendorCDR_20' ) end [2025-04-01 10:12:20] Production.INFO: ProcessCDR(1,14810150,1,1,2) [2025-04-01 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810150', 'tblTempUsageDetail_20' ) start [2025-04-01 10:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810150', 'tblTempUsageDetail_20' ) end [2025-04-01 10:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:12:26] Production.INFO: ==31599== Releasing lock... [2025-04-01 10:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:12:26] Production.INFO: 49.75 MB #Memory Used# [2025-04-01 10:13:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:13:07 [end_date_ymd] => 2025-04-01 10:13:07 [RateCDR] => 1 ) [2025-04-01 10:13: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-01 07:13:07' and `end` < '2025-04-01 10:13: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-01 10:13:20] Production.INFO: count ==2971 [2025-04-01 10:13:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:13:07 - End Time 2025-04-01 10:13:07 [2025-04-01 10:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810155', 'tblTempUsageDetail_20' ) start [2025-04-01 10:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810155', 'tblTempUsageDetail_20' ) end [2025-04-01 10:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810155', 'tblTempVendorCDR_20' ) start [2025-04-01 10:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810155', 'tblTempVendorCDR_20' ) end [2025-04-01 10:13:21] Production.INFO: ProcessCDR(1,14810155,1,1,2) [2025-04-01 10:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810155', 'tblTempUsageDetail_20' ) start [2025-04-01 10:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810155', 'tblTempUsageDetail_20' ) end [2025-04-01 10:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:13:27] Production.INFO: ==31678== Releasing lock... [2025-04-01 10:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:13:27] Production.INFO: 51 MB #Memory Used# [2025-04-01 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:14:06 [end_date_ymd] => 2025-04-01 10:14:06 [RateCDR] => 1 ) [2025-04-01 10:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:14:06' and `end` < '2025-04-01 10:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:14:19] Production.INFO: count ==2976 [2025-04-01 10:14:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:14:06 - End Time 2025-04-01 10:14:06 [2025-04-01 10:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810160', 'tblTempUsageDetail_20' ) start [2025-04-01 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810160', 'tblTempUsageDetail_20' ) end [2025-04-01 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810160', 'tblTempVendorCDR_20' ) start [2025-04-01 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810160', 'tblTempVendorCDR_20' ) end [2025-04-01 10:14:21] Production.INFO: ProcessCDR(1,14810160,1,1,2) [2025-04-01 10:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810160', 'tblTempUsageDetail_20' ) start [2025-04-01 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810160', 'tblTempUsageDetail_20' ) end [2025-04-01 10:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:14:27] Production.INFO: ==31753== Releasing lock... [2025-04-01 10:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:14:27] Production.INFO: 51 MB #Memory Used# [2025-04-01 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:15:05 [end_date_ymd] => 2025-04-01 10:15:05 [RateCDR] => 1 ) [2025-04-01 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-01 07:15:05' and `end` < '2025-04-01 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-01 10:15:19] Production.INFO: count ==2989 [2025-04-01 10:15:20] Production.ERROR: pbx CDR StartTime 2025-04-01 07:15:05 - End Time 2025-04-01 10:15:05 [2025-04-01 10:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810165', 'tblTempUsageDetail_20' ) start [2025-04-01 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810165', 'tblTempUsageDetail_20' ) end [2025-04-01 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810165', 'tblTempVendorCDR_20' ) start [2025-04-01 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810165', 'tblTempVendorCDR_20' ) end [2025-04-01 10:15:20] Production.INFO: ProcessCDR(1,14810165,1,1,2) [2025-04-01 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810165', 'tblTempUsageDetail_20' ) start [2025-04-01 10:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810165', 'tblTempUsageDetail_20' ) end [2025-04-01 10:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:15:26] Production.INFO: ==31829== Releasing lock... [2025-04-01 10:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:15:26] Production.INFO: 50.5 MB #Memory Used# [2025-04-01 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:16:06 [end_date_ymd] => 2025-04-01 10:16:06 [RateCDR] => 1 ) [2025-04-01 10:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:16:06' and `end` < '2025-04-01 10:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:16:19] Production.INFO: count ==3007 [2025-04-01 10:16:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:16:06 - End Time 2025-04-01 10:16:06 [2025-04-01 10:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810170', 'tblTempUsageDetail_20' ) start [2025-04-01 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810170', 'tblTempUsageDetail_20' ) end [2025-04-01 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810170', 'tblTempVendorCDR_20' ) start [2025-04-01 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810170', 'tblTempVendorCDR_20' ) end [2025-04-01 10:16:21] Production.INFO: ProcessCDR(1,14810170,1,1,2) [2025-04-01 10:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810170', 'tblTempUsageDetail_20' ) start [2025-04-01 10:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810170', 'tblTempUsageDetail_20' ) end [2025-04-01 10:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:16:26] Production.INFO: ==31918== Releasing lock... [2025-04-01 10:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:16:26] Production.INFO: 50.75 MB #Memory Used# [2025-04-01 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:17:05 [end_date_ymd] => 2025-04-01 10:17:05 [RateCDR] => 1 ) [2025-04-01 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-01 07:17:05' and `end` < '2025-04-01 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-01 10:17:18] Production.INFO: count ==3035 [2025-04-01 10:17:20] Production.ERROR: pbx CDR StartTime 2025-04-01 07:17:05 - End Time 2025-04-01 10:17:05 [2025-04-01 10:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810175', 'tblTempUsageDetail_20' ) start [2025-04-01 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810175', 'tblTempUsageDetail_20' ) end [2025-04-01 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810175', 'tblTempVendorCDR_20' ) start [2025-04-01 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810175', 'tblTempVendorCDR_20' ) end [2025-04-01 10:17:20] Production.INFO: ProcessCDR(1,14810175,1,1,2) [2025-04-01 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810175', 'tblTempUsageDetail_20' ) start [2025-04-01 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810175', 'tblTempUsageDetail_20' ) end [2025-04-01 10:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:17:26] Production.INFO: ==31996== Releasing lock... [2025-04-01 10:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:17:26] Production.INFO: 51.25 MB #Memory Used# [2025-04-01 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:18:06 [end_date_ymd] => 2025-04-01 10:18:06 [RateCDR] => 1 ) [2025-04-01 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-01 07:18:06' and `end` < '2025-04-01 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-01 10:18:19] Production.INFO: count ==3050 [2025-04-01 10:18:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:18:06 - End Time 2025-04-01 10:18:06 [2025-04-01 10:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810180', 'tblTempUsageDetail_20' ) start [2025-04-01 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810180', 'tblTempUsageDetail_20' ) end [2025-04-01 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810180', 'tblTempVendorCDR_20' ) start [2025-04-01 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810180', 'tblTempVendorCDR_20' ) end [2025-04-01 10:18:21] Production.INFO: ProcessCDR(1,14810180,1,1,2) [2025-04-01 10:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810180', 'tblTempUsageDetail_20' ) start [2025-04-01 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810180', 'tblTempUsageDetail_20' ) end [2025-04-01 10:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:18:26] Production.INFO: ==32080== Releasing lock... [2025-04-01 10:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:18:26] Production.INFO: 51.75 MB #Memory Used# [2025-04-01 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:19:06 [end_date_ymd] => 2025-04-01 10:19:06 [RateCDR] => 1 ) [2025-04-01 10: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-01 07:19:06' and `end` < '2025-04-01 10: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-01 10:19:19] Production.INFO: count ==3076 [2025-04-01 10:19:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:19:06 - End Time 2025-04-01 10:19:06 [2025-04-01 10:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810185', 'tblTempUsageDetail_20' ) start [2025-04-01 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810185', 'tblTempUsageDetail_20' ) end [2025-04-01 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810185', 'tblTempVendorCDR_20' ) start [2025-04-01 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810185', 'tblTempVendorCDR_20' ) end [2025-04-01 10:19:21] Production.INFO: ProcessCDR(1,14810185,1,1,2) [2025-04-01 10:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810185', 'tblTempUsageDetail_20' ) start [2025-04-01 10:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810185', 'tblTempUsageDetail_20' ) end [2025-04-01 10:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:19:27] Production.INFO: ==32159== Releasing lock... [2025-04-01 10:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:19:27] Production.INFO: 52 MB #Memory Used# [2025-04-01 10:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:20:07 [end_date_ymd] => 2025-04-01 10:20:07 [RateCDR] => 1 ) [2025-04-01 10:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:20:07' and `end` < '2025-04-01 10:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:20:20] Production.INFO: count ==3100 [2025-04-01 10:20:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:20:07 - End Time 2025-04-01 10:20:07 [2025-04-01 10:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810191', 'tblTempUsageDetail_20' ) start [2025-04-01 10:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810191', 'tblTempUsageDetail_20' ) end [2025-04-01 10:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810191', 'tblTempVendorCDR_20' ) start [2025-04-01 10:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810191', 'tblTempVendorCDR_20' ) end [2025-04-01 10:20:22] Production.INFO: ProcessCDR(1,14810191,1,1,2) [2025-04-01 10:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810191', 'tblTempUsageDetail_20' ) start [2025-04-01 10:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810191', 'tblTempUsageDetail_20' ) end [2025-04-01 10:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:20:27] Production.INFO: ==32246== Releasing lock... [2025-04-01 10:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:20:27] Production.INFO: 51.75 MB #Memory Used# [2025-04-01 10:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:21:06 [end_date_ymd] => 2025-04-01 10:21:06 [RateCDR] => 1 ) [2025-04-01 10:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:21:06' and `end` < '2025-04-01 10:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:21:19] Production.INFO: count ==3165 [2025-04-01 10:21:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:21:06 - End Time 2025-04-01 10:21:06 [2025-04-01 10:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810196', 'tblTempUsageDetail_20' ) start [2025-04-01 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810196', 'tblTempUsageDetail_20' ) end [2025-04-01 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810196', 'tblTempVendorCDR_20' ) start [2025-04-01 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810196', 'tblTempVendorCDR_20' ) end [2025-04-01 10:21:21] Production.INFO: ProcessCDR(1,14810196,1,1,2) [2025-04-01 10:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810196', 'tblTempUsageDetail_20' ) start [2025-04-01 10:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810196', 'tblTempUsageDetail_20' ) end [2025-04-01 10:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:21:26] Production.INFO: ==32328== Releasing lock... [2025-04-01 10:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:21:26] Production.INFO: 51.5 MB #Memory Used# [2025-04-01 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:22:06 [end_date_ymd] => 2025-04-01 10:22:06 [RateCDR] => 1 ) [2025-04-01 10: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-01 07:22:06' and `end` < '2025-04-01 10: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-01 10:22:19] Production.INFO: count ==3183 [2025-04-01 10:22:20] Production.ERROR: pbx CDR StartTime 2025-04-01 07:22:06 - End Time 2025-04-01 10:22:06 [2025-04-01 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810201', 'tblTempUsageDetail_20' ) start [2025-04-01 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810201', 'tblTempUsageDetail_20' ) end [2025-04-01 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810201', 'tblTempVendorCDR_20' ) start [2025-04-01 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810201', 'tblTempVendorCDR_20' ) end [2025-04-01 10:22:20] Production.INFO: ProcessCDR(1,14810201,1,1,2) [2025-04-01 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810201', 'tblTempUsageDetail_20' ) start [2025-04-01 10:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810201', 'tblTempUsageDetail_20' ) end [2025-04-01 10:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:22:26] Production.INFO: ==32442== Releasing lock... [2025-04-01 10:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:22:26] Production.INFO: 52.25 MB #Memory Used# [2025-04-01 10:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:23:06 [end_date_ymd] => 2025-04-01 10:23:06 [RateCDR] => 1 ) [2025-04-01 10: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-01 07:23:06' and `end` < '2025-04-01 10: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-01 10:23:19] Production.INFO: count ==3186 [2025-04-01 10:23:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:23:06 - End Time 2025-04-01 10:23:06 [2025-04-01 10:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810206', 'tblTempUsageDetail_20' ) start [2025-04-01 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810206', 'tblTempUsageDetail_20' ) end [2025-04-01 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810206', 'tblTempVendorCDR_20' ) start [2025-04-01 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810206', 'tblTempVendorCDR_20' ) end [2025-04-01 10:23:21] Production.INFO: ProcessCDR(1,14810206,1,1,2) [2025-04-01 10:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810206', 'tblTempUsageDetail_20' ) start [2025-04-01 10:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810206', 'tblTempUsageDetail_20' ) end [2025-04-01 10:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:23:26] Production.INFO: ==32518== Releasing lock... [2025-04-01 10:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:23:26] Production.INFO: 51.75 MB #Memory Used# [2025-04-01 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:24:06 [end_date_ymd] => 2025-04-01 10:24:06 [RateCDR] => 1 ) [2025-04-01 10:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:24:06' and `end` < '2025-04-01 10:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:24:19] Production.INFO: count ==3206 [2025-04-01 10:24:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:24:06 - End Time 2025-04-01 10:24:06 [2025-04-01 10:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810211', 'tblTempUsageDetail_20' ) start [2025-04-01 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810211', 'tblTempUsageDetail_20' ) end [2025-04-01 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810211', 'tblTempVendorCDR_20' ) start [2025-04-01 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810211', 'tblTempVendorCDR_20' ) end [2025-04-01 10:24:21] Production.INFO: ProcessCDR(1,14810211,1,1,2) [2025-04-01 10:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810211', 'tblTempUsageDetail_20' ) start [2025-04-01 10:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810211', 'tblTempUsageDetail_20' ) end [2025-04-01 10:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:24:27] Production.INFO: ==32595== Releasing lock... [2025-04-01 10:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:24:27] Production.INFO: 52 MB #Memory Used# [2025-04-01 10:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:25:04 [end_date_ymd] => 2025-04-01 10:25:04 [RateCDR] => 1 ) [2025-04-01 10: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-01 07:25:04' and `end` < '2025-04-01 10:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:25:18] Production.INFO: count ==3217 [2025-04-01 10:25:19] Production.ERROR: pbx CDR StartTime 2025-04-01 07:25:04 - End Time 2025-04-01 10:25:04 [2025-04-01 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810216', 'tblTempUsageDetail_20' ) start [2025-04-01 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810216', 'tblTempUsageDetail_20' ) end [2025-04-01 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810216', 'tblTempVendorCDR_20' ) start [2025-04-01 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810216', 'tblTempVendorCDR_20' ) end [2025-04-01 10:25:19] Production.INFO: ProcessCDR(1,14810216,1,1,2) [2025-04-01 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810216', 'tblTempUsageDetail_20' ) start [2025-04-01 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810216', 'tblTempUsageDetail_20' ) end [2025-04-01 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:25:25] Production.INFO: ==32671== Releasing lock... [2025-04-01 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:25:25] Production.INFO: 52 MB #Memory Used# [2025-04-01 10:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:26:06 [end_date_ymd] => 2025-04-01 10:26:06 [RateCDR] => 1 ) [2025-04-01 10:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:26:06' and `end` < '2025-04-01 10:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:26:19] Production.INFO: count ==3233 [2025-04-01 10:26:20] Production.ERROR: pbx CDR StartTime 2025-04-01 07:26:06 - End Time 2025-04-01 10:26:06 [2025-04-01 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810221', 'tblTempUsageDetail_20' ) start [2025-04-01 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810221', 'tblTempUsageDetail_20' ) end [2025-04-01 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810221', 'tblTempVendorCDR_20' ) start [2025-04-01 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810221', 'tblTempVendorCDR_20' ) end [2025-04-01 10:26:21] Production.INFO: ProcessCDR(1,14810221,1,1,2) [2025-04-01 10:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810221', 'tblTempUsageDetail_20' ) start [2025-04-01 10:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810221', 'tblTempUsageDetail_20' ) end [2025-04-01 10:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:26:27] Production.INFO: ==32756== Releasing lock... [2025-04-01 10:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:26:27] Production.INFO: 52.25 MB #Memory Used# [2025-04-01 10:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:27:06 [end_date_ymd] => 2025-04-01 10:27:06 [RateCDR] => 1 ) [2025-04-01 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-01 07:27:06' and `end` < '2025-04-01 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-01 10:27:19] Production.INFO: count ==3255 [2025-04-01 10:27:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:27:06 - End Time 2025-04-01 10:27:06 [2025-04-01 10:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810226', 'tblTempUsageDetail_20' ) start [2025-04-01 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810226', 'tblTempUsageDetail_20' ) end [2025-04-01 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810226', 'tblTempVendorCDR_20' ) start [2025-04-01 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810226', 'tblTempVendorCDR_20' ) end [2025-04-01 10:27:21] Production.INFO: ProcessCDR(1,14810226,1,1,2) [2025-04-01 10:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810226', 'tblTempUsageDetail_20' ) start [2025-04-01 10:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810226', 'tblTempUsageDetail_20' ) end [2025-04-01 10:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:27:27] Production.INFO: ==382== Releasing lock... [2025-04-01 10:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:27:27] Production.INFO: 52.75 MB #Memory Used# [2025-04-01 10:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:28:06 [end_date_ymd] => 2025-04-01 10:28:06 [RateCDR] => 1 ) [2025-04-01 10:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:28:06' and `end` < '2025-04-01 10:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:28:20] Production.INFO: count ==3278 [2025-04-01 10:28:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:28:06 - End Time 2025-04-01 10:28:06 [2025-04-01 10:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810231', 'tblTempUsageDetail_20' ) start [2025-04-01 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810231', 'tblTempUsageDetail_20' ) end [2025-04-01 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810231', 'tblTempVendorCDR_20' ) start [2025-04-01 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810231', 'tblTempVendorCDR_20' ) end [2025-04-01 10:28:21] Production.INFO: ProcessCDR(1,14810231,1,1,2) [2025-04-01 10:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810231', 'tblTempUsageDetail_20' ) start [2025-04-01 10:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810231', 'tblTempUsageDetail_20' ) end [2025-04-01 10:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:28:27] Production.INFO: ==456== Releasing lock... [2025-04-01 10:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:28:27] Production.INFO: 53.5 MB #Memory Used# [2025-04-01 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:29:06 [end_date_ymd] => 2025-04-01 10:29:06 [RateCDR] => 1 ) [2025-04-01 10:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:29:06' and `end` < '2025-04-01 10:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:29:19] Production.INFO: count ==3299 [2025-04-01 10:29:20] Production.ERROR: pbx CDR StartTime 2025-04-01 07:29:06 - End Time 2025-04-01 10:29:06 [2025-04-01 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810236', 'tblTempUsageDetail_20' ) start [2025-04-01 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810236', 'tblTempUsageDetail_20' ) end [2025-04-01 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810236', 'tblTempVendorCDR_20' ) start [2025-04-01 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810236', 'tblTempVendorCDR_20' ) end [2025-04-01 10:29:21] Production.INFO: ProcessCDR(1,14810236,1,1,2) [2025-04-01 10:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810236', 'tblTempUsageDetail_20' ) start [2025-04-01 10:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810236', 'tblTempUsageDetail_20' ) end [2025-04-01 10:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:29:27] Production.INFO: ==538== Releasing lock... [2025-04-01 10:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:29:27] Production.INFO: 53.5 MB #Memory Used# [2025-04-01 10:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:30:07 [end_date_ymd] => 2025-04-01 10:30:07 [RateCDR] => 1 ) [2025-04-01 10:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:30:07' and `end` < '2025-04-01 10:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:30:21] Production.INFO: count ==3314 [2025-04-01 10:30:22] Production.ERROR: pbx CDR StartTime 2025-04-01 07:30:07 - End Time 2025-04-01 10:30:07 [2025-04-01 10:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810242', 'tblTempUsageDetail_20' ) start [2025-04-01 10:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810242', 'tblTempUsageDetail_20' ) end [2025-04-01 10:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810242', 'tblTempVendorCDR_20' ) start [2025-04-01 10:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810242', 'tblTempVendorCDR_20' ) end [2025-04-01 10:30:22] Production.INFO: ProcessCDR(1,14810242,1,1,2) [2025-04-01 10:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810242', 'tblTempUsageDetail_20' ) start [2025-04-01 10:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810242', 'tblTempUsageDetail_20' ) end [2025-04-01 10:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:30:28] Production.INFO: ==626== Releasing lock... [2025-04-01 10:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:30:28] Production.INFO: 53.25 MB #Memory Used# [2025-04-01 10:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:31:06 [end_date_ymd] => 2025-04-01 10:31:06 [RateCDR] => 1 ) [2025-04-01 10: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-01 07:31:06' and `end` < '2025-04-01 10: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-01 10:31:19] Production.INFO: count ==3429 [2025-04-01 10:31:20] Production.ERROR: pbx CDR StartTime 2025-04-01 07:31:06 - End Time 2025-04-01 10:31:06 [2025-04-01 10:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810247', 'tblTempUsageDetail_20' ) start [2025-04-01 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810247', 'tblTempUsageDetail_20' ) end [2025-04-01 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810247', 'tblTempVendorCDR_20' ) start [2025-04-01 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810247', 'tblTempVendorCDR_20' ) end [2025-04-01 10:31:21] Production.INFO: ProcessCDR(1,14810247,1,1,2) [2025-04-01 10:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810247', 'tblTempUsageDetail_20' ) start [2025-04-01 10:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810247', 'tblTempUsageDetail_20' ) end [2025-04-01 10:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:31:27] Production.INFO: ==727== Releasing lock... [2025-04-01 10:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:31:27] Production.INFO: 53.75 MB #Memory Used# [2025-04-01 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:32:06 [end_date_ymd] => 2025-04-01 10:32:06 [RateCDR] => 1 ) [2025-04-01 10:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:32:06' and `end` < '2025-04-01 10:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:32:19] Production.INFO: count ==3435 [2025-04-01 10:32:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:32:06 - End Time 2025-04-01 10:32:06 [2025-04-01 10:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810252', 'tblTempUsageDetail_20' ) start [2025-04-01 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810252', 'tblTempUsageDetail_20' ) end [2025-04-01 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810252', 'tblTempVendorCDR_20' ) start [2025-04-01 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810252', 'tblTempVendorCDR_20' ) end [2025-04-01 10:32:21] Production.INFO: ProcessCDR(1,14810252,1,1,2) [2025-04-01 10:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810252', 'tblTempUsageDetail_20' ) start [2025-04-01 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810252', 'tblTempUsageDetail_20' ) end [2025-04-01 10:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:32:26] Production.INFO: ==806== Releasing lock... [2025-04-01 10:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:32:26] Production.INFO: 54.25 MB #Memory Used# [2025-04-01 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:33:05 [end_date_ymd] => 2025-04-01 10:33:05 [RateCDR] => 1 ) [2025-04-01 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-01 07:33:05' and `end` < '2025-04-01 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-01 10:33:19] Production.INFO: count ==3438 [2025-04-01 10:33:20] Production.ERROR: pbx CDR StartTime 2025-04-01 07:33:05 - End Time 2025-04-01 10:33:05 [2025-04-01 10:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810257', 'tblTempUsageDetail_20' ) start [2025-04-01 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810257', 'tblTempUsageDetail_20' ) end [2025-04-01 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810257', 'tblTempVendorCDR_20' ) start [2025-04-01 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810257', 'tblTempVendorCDR_20' ) end [2025-04-01 10:33:20] Production.INFO: ProcessCDR(1,14810257,1,1,2) [2025-04-01 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810257', 'tblTempUsageDetail_20' ) start [2025-04-01 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810257', 'tblTempUsageDetail_20' ) end [2025-04-01 10:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:33:26] Production.INFO: ==891== Releasing lock... [2025-04-01 10:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:33:26] Production.INFO: 54.5 MB #Memory Used# [2025-04-01 10:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:34:06 [end_date_ymd] => 2025-04-01 10:34:06 [RateCDR] => 1 ) [2025-04-01 10: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-01 07:34:06' and `end` < '2025-04-01 10: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-01 10:34:20] Production.INFO: count ==3452 [2025-04-01 10:34:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:34:06 - End Time 2025-04-01 10:34:06 [2025-04-01 10:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810262', 'tblTempUsageDetail_20' ) start [2025-04-01 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810262', 'tblTempUsageDetail_20' ) end [2025-04-01 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810262', 'tblTempVendorCDR_20' ) start [2025-04-01 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810262', 'tblTempVendorCDR_20' ) end [2025-04-01 10:34:21] Production.INFO: ProcessCDR(1,14810262,1,1,2) [2025-04-01 10:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810262', 'tblTempUsageDetail_20' ) start [2025-04-01 10:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810262', 'tblTempUsageDetail_20' ) end [2025-04-01 10:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:34:27] Production.INFO: ==969== Releasing lock... [2025-04-01 10:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:34:27] Production.INFO: 54.5 MB #Memory Used# [2025-04-01 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:35:06 [end_date_ymd] => 2025-04-01 10:35:06 [RateCDR] => 1 ) [2025-04-01 10:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:35:06' and `end` < '2025-04-01 10:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:35:19] Production.INFO: count ==3465 [2025-04-01 10:35:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:35:06 - End Time 2025-04-01 10:35:06 [2025-04-01 10:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810267', 'tblTempUsageDetail_20' ) start [2025-04-01 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810267', 'tblTempUsageDetail_20' ) end [2025-04-01 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810267', 'tblTempVendorCDR_20' ) start [2025-04-01 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810267', 'tblTempVendorCDR_20' ) end [2025-04-01 10:35:21] Production.INFO: ProcessCDR(1,14810267,1,1,2) [2025-04-01 10:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810267', 'tblTempUsageDetail_20' ) start [2025-04-01 10:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810267', 'tblTempUsageDetail_20' ) end [2025-04-01 10:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:35:26] Production.INFO: ==1049== Releasing lock... [2025-04-01 10:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:35:26] Production.INFO: 53.75 MB #Memory Used# [2025-04-01 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:36:06 [end_date_ymd] => 2025-04-01 10:36:06 [RateCDR] => 1 ) [2025-04-01 10:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:36:06' and `end` < '2025-04-01 10:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:36:19] Production.INFO: count ==3474 [2025-04-01 10:36:20] Production.ERROR: pbx CDR StartTime 2025-04-01 07:36:06 - End Time 2025-04-01 10:36:06 [2025-04-01 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810272', 'tblTempUsageDetail_20' ) start [2025-04-01 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810272', 'tblTempUsageDetail_20' ) end [2025-04-01 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810272', 'tblTempVendorCDR_20' ) start [2025-04-01 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810272', 'tblTempVendorCDR_20' ) end [2025-04-01 10:36:21] Production.INFO: ProcessCDR(1,14810272,1,1,2) [2025-04-01 10:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810272', 'tblTempUsageDetail_20' ) start [2025-04-01 10:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810272', 'tblTempUsageDetail_20' ) end [2025-04-01 10:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:36:26] Production.INFO: ==1128== Releasing lock... [2025-04-01 10:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:36:26] Production.INFO: 54.5 MB #Memory Used# [2025-04-01 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:37:05 [end_date_ymd] => 2025-04-01 10:37:05 [RateCDR] => 1 ) [2025-04-01 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-01 07:37:05' and `end` < '2025-04-01 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-01 10:37:18] Production.INFO: count ==3482 [2025-04-01 10:37:20] Production.ERROR: pbx CDR StartTime 2025-04-01 07:37:05 - End Time 2025-04-01 10:37:05 [2025-04-01 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810277', 'tblTempUsageDetail_20' ) start [2025-04-01 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810277', 'tblTempUsageDetail_20' ) end [2025-04-01 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810277', 'tblTempVendorCDR_20' ) start [2025-04-01 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810277', 'tblTempVendorCDR_20' ) end [2025-04-01 10:37:20] Production.INFO: ProcessCDR(1,14810277,1,1,2) [2025-04-01 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810277', 'tblTempUsageDetail_20' ) start [2025-04-01 10:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810277', 'tblTempUsageDetail_20' ) end [2025-04-01 10:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:37:26] Production.INFO: ==1218== Releasing lock... [2025-04-01 10:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:37:26] Production.INFO: 54.5 MB #Memory Used# [2025-04-01 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:38:06 [end_date_ymd] => 2025-04-01 10:38:06 [RateCDR] => 1 ) [2025-04-01 10:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:38:06' and `end` < '2025-04-01 10:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:38:19] Production.INFO: count ==3491 [2025-04-01 10:38:20] Production.ERROR: pbx CDR StartTime 2025-04-01 07:38:06 - End Time 2025-04-01 10:38:06 [2025-04-01 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810282', 'tblTempUsageDetail_20' ) start [2025-04-01 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810282', 'tblTempUsageDetail_20' ) end [2025-04-01 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810282', 'tblTempVendorCDR_20' ) start [2025-04-01 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810282', 'tblTempVendorCDR_20' ) end [2025-04-01 10:38:21] Production.INFO: ProcessCDR(1,14810282,1,1,2) [2025-04-01 10:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810282', 'tblTempUsageDetail_20' ) start [2025-04-01 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810282', 'tblTempUsageDetail_20' ) end [2025-04-01 10:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:38:26] Production.INFO: ==1341== Releasing lock... [2025-04-01 10:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:38:26] Production.INFO: 54 MB #Memory Used# [2025-04-01 10:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:39:06 [end_date_ymd] => 2025-04-01 10:39:06 [RateCDR] => 1 ) [2025-04-01 10: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-01 07:39:06' and `end` < '2025-04-01 10: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-01 10:39:19] Production.INFO: count ==3504 [2025-04-01 10:39:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:39:06 - End Time 2025-04-01 10:39:06 [2025-04-01 10:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810287', 'tblTempUsageDetail_20' ) start [2025-04-01 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810287', 'tblTempUsageDetail_20' ) end [2025-04-01 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810287', 'tblTempVendorCDR_20' ) start [2025-04-01 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810287', 'tblTempVendorCDR_20' ) end [2025-04-01 10:39:21] Production.INFO: ProcessCDR(1,14810287,1,1,2) [2025-04-01 10:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810287', 'tblTempUsageDetail_20' ) start [2025-04-01 10:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810287', 'tblTempUsageDetail_20' ) end [2025-04-01 10:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:39:27] Production.INFO: ==1421== Releasing lock... [2025-04-01 10:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:39:27] Production.INFO: 55 MB #Memory Used# [2025-04-01 10:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:40:07 [end_date_ymd] => 2025-04-01 10:40:07 [RateCDR] => 1 ) [2025-04-01 10:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:40:07' and `end` < '2025-04-01 10:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:40:20] Production.INFO: count ==3540 [2025-04-01 10:40:22] Production.ERROR: pbx CDR StartTime 2025-04-01 07:40:07 - End Time 2025-04-01 10:40:07 [2025-04-01 10:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810293', 'tblTempUsageDetail_20' ) start [2025-04-01 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810293', 'tblTempUsageDetail_20' ) end [2025-04-01 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810293', 'tblTempVendorCDR_20' ) start [2025-04-01 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810293', 'tblTempVendorCDR_20' ) end [2025-04-01 10:40:22] Production.INFO: ProcessCDR(1,14810293,1,1,2) [2025-04-01 10:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810293', 'tblTempUsageDetail_20' ) start [2025-04-01 10:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810293', 'tblTempUsageDetail_20' ) end [2025-04-01 10:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:40:28] Production.INFO: ==1505== Releasing lock... [2025-04-01 10:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:40:28] Production.INFO: 55.25 MB #Memory Used# [2025-04-01 10:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:41:06 [end_date_ymd] => 2025-04-01 10:41:06 [RateCDR] => 1 ) [2025-04-01 10:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:41:06' and `end` < '2025-04-01 10:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:41:19] Production.INFO: count ==3644 [2025-04-01 10:41:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:41:06 - End Time 2025-04-01 10:41:06 [2025-04-01 10:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810298', 'tblTempUsageDetail_20' ) start [2025-04-01 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810298', 'tblTempUsageDetail_20' ) end [2025-04-01 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810298', 'tblTempVendorCDR_20' ) start [2025-04-01 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810298', 'tblTempVendorCDR_20' ) end [2025-04-01 10:41:21] Production.INFO: ProcessCDR(1,14810298,1,1,2) [2025-04-01 10:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810298', 'tblTempUsageDetail_20' ) start [2025-04-01 10:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810298', 'tblTempUsageDetail_20' ) end [2025-04-01 10:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:41:27] Production.INFO: ==1613== Releasing lock... [2025-04-01 10:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:41:27] Production.INFO: 56.25 MB #Memory Used# [2025-04-01 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:42:06 [end_date_ymd] => 2025-04-01 10:42:06 [RateCDR] => 1 ) [2025-04-01 10:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:42:06' and `end` < '2025-04-01 10:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:42:20] Production.INFO: count ==3678 [2025-04-01 10:42:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:42:06 - End Time 2025-04-01 10:42:06 [2025-04-01 10:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810303', 'tblTempUsageDetail_20' ) start [2025-04-01 10:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810303', 'tblTempUsageDetail_20' ) end [2025-04-01 10:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810303', 'tblTempVendorCDR_20' ) start [2025-04-01 10:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810303', 'tblTempVendorCDR_20' ) end [2025-04-01 10:42:22] Production.INFO: ProcessCDR(1,14810303,1,1,2) [2025-04-01 10:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810303', 'tblTempUsageDetail_20' ) start [2025-04-01 10:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810303', 'tblTempUsageDetail_20' ) end [2025-04-01 10:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:42:27] Production.INFO: ==1692== Releasing lock... [2025-04-01 10:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:42:27] Production.INFO: 56.5 MB #Memory Used# [2025-04-01 10:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:43:06 [end_date_ymd] => 2025-04-01 10:43:06 [RateCDR] => 1 ) [2025-04-01 10: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-01 07:43:06' and `end` < '2025-04-01 10: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-01 10:43:19] Production.INFO: count ==3688 [2025-04-01 10:43:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:43:06 - End Time 2025-04-01 10:43:06 [2025-04-01 10:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810308', 'tblTempUsageDetail_20' ) start [2025-04-01 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810308', 'tblTempUsageDetail_20' ) end [2025-04-01 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810308', 'tblTempVendorCDR_20' ) start [2025-04-01 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810308', 'tblTempVendorCDR_20' ) end [2025-04-01 10:43:21] Production.INFO: ProcessCDR(1,14810308,1,1,2) [2025-04-01 10:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810308', 'tblTempUsageDetail_20' ) start [2025-04-01 10:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810308', 'tblTempUsageDetail_20' ) end [2025-04-01 10:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:43:27] Production.INFO: ==1769== Releasing lock... [2025-04-01 10:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:43:27] Production.INFO: 56 MB #Memory Used# [2025-04-01 10:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:44:06 [end_date_ymd] => 2025-04-01 10:44:06 [RateCDR] => 1 ) [2025-04-01 10: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-01 07:44:06' and `end` < '2025-04-01 10: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-01 10:44:20] Production.INFO: count ==3715 [2025-04-01 10:44:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:44:06 - End Time 2025-04-01 10:44:06 [2025-04-01 10:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810313', 'tblTempUsageDetail_20' ) start [2025-04-01 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810313', 'tblTempUsageDetail_20' ) end [2025-04-01 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810313', 'tblTempVendorCDR_20' ) start [2025-04-01 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810313', 'tblTempVendorCDR_20' ) end [2025-04-01 10:44:21] Production.INFO: ProcessCDR(1,14810313,1,1,2) [2025-04-01 10:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810313', 'tblTempUsageDetail_20' ) start [2025-04-01 10:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810313', 'tblTempUsageDetail_20' ) end [2025-04-01 10:44:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:44:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:44:28] Production.INFO: ==1847== Releasing lock... [2025-04-01 10:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:44:28] Production.INFO: 55.75 MB #Memory Used# [2025-04-01 10:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:45:06 [end_date_ymd] => 2025-04-01 10:45:06 [RateCDR] => 1 ) [2025-04-01 10:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:45:06' and `end` < '2025-04-01 10:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:45:19] Production.INFO: count ==3758 [2025-04-01 10:45:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:45:06 - End Time 2025-04-01 10:45:06 [2025-04-01 10:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810318', 'tblTempUsageDetail_20' ) start [2025-04-01 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810318', 'tblTempUsageDetail_20' ) end [2025-04-01 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810318', 'tblTempVendorCDR_20' ) start [2025-04-01 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810318', 'tblTempVendorCDR_20' ) end [2025-04-01 10:45:21] Production.INFO: ProcessCDR(1,14810318,1,1,2) [2025-04-01 10:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810318', 'tblTempUsageDetail_20' ) start [2025-04-01 10:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810318', 'tblTempUsageDetail_20' ) end [2025-04-01 10:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:45:27] Production.INFO: ==1921== Releasing lock... [2025-04-01 10:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:45:27] Production.INFO: 56.25 MB #Memory Used# [2025-04-01 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:46:06 [end_date_ymd] => 2025-04-01 10:46:06 [RateCDR] => 1 ) [2025-04-01 10:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:46:06' and `end` < '2025-04-01 10:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:46:19] Production.INFO: count ==3787 [2025-04-01 10:46:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:46:06 - End Time 2025-04-01 10:46:06 [2025-04-01 10:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810323', 'tblTempUsageDetail_20' ) start [2025-04-01 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810323', 'tblTempUsageDetail_20' ) end [2025-04-01 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810323', 'tblTempVendorCDR_20' ) start [2025-04-01 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810323', 'tblTempVendorCDR_20' ) end [2025-04-01 10:46:21] Production.INFO: ProcessCDR(1,14810323,1,1,2) [2025-04-01 10:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810323', 'tblTempUsageDetail_20' ) start [2025-04-01 10:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810323', 'tblTempUsageDetail_20' ) end [2025-04-01 10:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:46:27] Production.INFO: ==1992== Releasing lock... [2025-04-01 10:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:46:27] Production.INFO: 56.25 MB #Memory Used# [2025-04-01 10:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:47:06 [end_date_ymd] => 2025-04-01 10:47:06 [RateCDR] => 1 ) [2025-04-01 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-01 07:47:06' and `end` < '2025-04-01 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-01 10:47:19] Production.INFO: count ==3800 [2025-04-01 10:47:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:47:06 - End Time 2025-04-01 10:47:06 [2025-04-01 10:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810328', 'tblTempUsageDetail_20' ) start [2025-04-01 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810328', 'tblTempUsageDetail_20' ) end [2025-04-01 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810328', 'tblTempVendorCDR_20' ) start [2025-04-01 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810328', 'tblTempVendorCDR_20' ) end [2025-04-01 10:47:21] Production.INFO: ProcessCDR(1,14810328,1,1,2) [2025-04-01 10:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810328', 'tblTempUsageDetail_20' ) start [2025-04-01 10:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810328', 'tblTempUsageDetail_20' ) end [2025-04-01 10:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:47:27] Production.INFO: ==2065== Releasing lock... [2025-04-01 10:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:47:27] Production.INFO: 56.25 MB #Memory Used# [2025-04-01 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:48:05 [end_date_ymd] => 2025-04-01 10:48:05 [RateCDR] => 1 ) [2025-04-01 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-01 07:48:05' and `end` < '2025-04-01 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-01 10:48:19] Production.INFO: count ==3805 [2025-04-01 10:48:20] Production.ERROR: pbx CDR StartTime 2025-04-01 07:48:05 - End Time 2025-04-01 10:48:05 [2025-04-01 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810333', 'tblTempUsageDetail_20' ) start [2025-04-01 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810333', 'tblTempUsageDetail_20' ) end [2025-04-01 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810333', 'tblTempVendorCDR_20' ) start [2025-04-01 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810333', 'tblTempVendorCDR_20' ) end [2025-04-01 10:48:20] Production.INFO: ProcessCDR(1,14810333,1,1,2) [2025-04-01 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810333', 'tblTempUsageDetail_20' ) start [2025-04-01 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810333', 'tblTempUsageDetail_20' ) end [2025-04-01 10:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:48:26] Production.INFO: ==2141== Releasing lock... [2025-04-01 10:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:48:26] Production.INFO: 56.5 MB #Memory Used# [2025-04-01 10:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:49:06 [end_date_ymd] => 2025-04-01 10:49:06 [RateCDR] => 1 ) [2025-04-01 10: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-01 07:49:06' and `end` < '2025-04-01 10: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-01 10:49:20] Production.INFO: count ==3847 [2025-04-01 10:49:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:49:06 - End Time 2025-04-01 10:49:06 [2025-04-01 10:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810338', 'tblTempUsageDetail_20' ) start [2025-04-01 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810338', 'tblTempUsageDetail_20' ) end [2025-04-01 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810338', 'tblTempVendorCDR_20' ) start [2025-04-01 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810338', 'tblTempVendorCDR_20' ) end [2025-04-01 10:49:21] Production.INFO: ProcessCDR(1,14810338,1,1,2) [2025-04-01 10:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810338', 'tblTempUsageDetail_20' ) start [2025-04-01 10:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810338', 'tblTempUsageDetail_20' ) end [2025-04-01 10:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:49:27] Production.INFO: ==2221== Releasing lock... [2025-04-01 10:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:49:27] Production.INFO: 56.75 MB #Memory Used# [2025-04-01 10:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:50:07 [end_date_ymd] => 2025-04-01 10:50:07 [RateCDR] => 1 ) [2025-04-01 10: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-01 07:50:07' and `end` < '2025-04-01 10: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-01 10:50:20] Production.INFO: count ==3864 [2025-04-01 10:50:22] Production.ERROR: pbx CDR StartTime 2025-04-01 07:50:07 - End Time 2025-04-01 10:50:07 [2025-04-01 10:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810344', 'tblTempUsageDetail_20' ) start [2025-04-01 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810344', 'tblTempUsageDetail_20' ) end [2025-04-01 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810344', 'tblTempVendorCDR_20' ) start [2025-04-01 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810344', 'tblTempVendorCDR_20' ) end [2025-04-01 10:50:22] Production.INFO: ProcessCDR(1,14810344,1,1,2) [2025-04-01 10:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810344', 'tblTempUsageDetail_20' ) start [2025-04-01 10:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810344', 'tblTempUsageDetail_20' ) end [2025-04-01 10:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:50:28] Production.INFO: ==2299== Releasing lock... [2025-04-01 10:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:50:28] Production.INFO: 56.75 MB #Memory Used# [2025-04-01 10:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:51:06 [end_date_ymd] => 2025-04-01 10:51:06 [RateCDR] => 1 ) [2025-04-01 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-01 07:51:06' and `end` < '2025-04-01 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-01 10:51:20] Production.INFO: count ==3957 [2025-04-01 10:51:22] Production.ERROR: pbx CDR StartTime 2025-04-01 07:51:06 - End Time 2025-04-01 10:51:06 [2025-04-01 10:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810349', 'tblTempUsageDetail_20' ) start [2025-04-01 10:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810349', 'tblTempUsageDetail_20' ) end [2025-04-01 10:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810349', 'tblTempVendorCDR_20' ) start [2025-04-01 10:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810349', 'tblTempVendorCDR_20' ) end [2025-04-01 10:51:22] Production.INFO: ProcessCDR(1,14810349,1,1,2) [2025-04-01 10:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810349', 'tblTempUsageDetail_20' ) start [2025-04-01 10:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810349', 'tblTempUsageDetail_20' ) end [2025-04-01 10:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:51:27] Production.INFO: ==2372== Releasing lock... [2025-04-01 10:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:51:27] Production.INFO: 57.5 MB #Memory Used# [2025-04-01 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:52:05 [end_date_ymd] => 2025-04-01 10:52:05 [RateCDR] => 1 ) [2025-04-01 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-01 07:52:05' and `end` < '2025-04-01 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-01 10:52:19] Production.INFO: count ==3964 [2025-04-01 10:52:20] Production.ERROR: pbx CDR StartTime 2025-04-01 07:52:05 - End Time 2025-04-01 10:52:05 [2025-04-01 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810354', 'tblTempUsageDetail_20' ) start [2025-04-01 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810354', 'tblTempUsageDetail_20' ) end [2025-04-01 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810354', 'tblTempVendorCDR_20' ) start [2025-04-01 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810354', 'tblTempVendorCDR_20' ) end [2025-04-01 10:52:21] Production.INFO: ProcessCDR(1,14810354,1,1,2) [2025-04-01 10:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810354', 'tblTempUsageDetail_20' ) start [2025-04-01 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810354', 'tblTempUsageDetail_20' ) end [2025-04-01 10:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:52:26] Production.INFO: ==2448== Releasing lock... [2025-04-01 10:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:52:26] Production.INFO: 57.5 MB #Memory Used# [2025-04-01 10:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:53:06 [end_date_ymd] => 2025-04-01 10:53:06 [RateCDR] => 1 ) [2025-04-01 10:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:53:06' and `end` < '2025-04-01 10:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:53:19] Production.INFO: count ==3974 [2025-04-01 10:53:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:53:06 - End Time 2025-04-01 10:53:06 [2025-04-01 10:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810359', 'tblTempUsageDetail_20' ) start [2025-04-01 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810359', 'tblTempUsageDetail_20' ) end [2025-04-01 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810359', 'tblTempVendorCDR_20' ) start [2025-04-01 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810359', 'tblTempVendorCDR_20' ) end [2025-04-01 10:53:21] Production.INFO: ProcessCDR(1,14810359,1,1,2) [2025-04-01 10:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810359', 'tblTempUsageDetail_20' ) start [2025-04-01 10:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810359', 'tblTempUsageDetail_20' ) end [2025-04-01 10:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:53:27] Production.INFO: ==2563== Releasing lock... [2025-04-01 10:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:53:27] Production.INFO: 57.75 MB #Memory Used# [2025-04-01 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:54:05 [end_date_ymd] => 2025-04-01 10:54:05 [RateCDR] => 1 ) [2025-04-01 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:54:05' and `end` < '2025-04-01 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:54:18] Production.INFO: count ==3984 [2025-04-01 10:54:20] Production.ERROR: pbx CDR StartTime 2025-04-01 07:54:05 - End Time 2025-04-01 10:54:05 [2025-04-01 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810364', 'tblTempUsageDetail_20' ) start [2025-04-01 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810364', 'tblTempUsageDetail_20' ) end [2025-04-01 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810364', 'tblTempVendorCDR_20' ) start [2025-04-01 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810364', 'tblTempVendorCDR_20' ) end [2025-04-01 10:54:20] Production.INFO: ProcessCDR(1,14810364,1,1,2) [2025-04-01 10:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810364', 'tblTempUsageDetail_20' ) start [2025-04-01 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810364', 'tblTempUsageDetail_20' ) end [2025-04-01 10:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:54:26] Production.INFO: ==2632== Releasing lock... [2025-04-01 10:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:54:26] Production.INFO: 58 MB #Memory Used# [2025-04-01 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:55:05 [end_date_ymd] => 2025-04-01 10:55:05 [RateCDR] => 1 ) [2025-04-01 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-01 07:55:05' and `end` < '2025-04-01 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-01 10:55:19] Production.INFO: count ==3988 [2025-04-01 10:55:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:55:05 - End Time 2025-04-01 10:55:05 [2025-04-01 10:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810369', 'tblTempUsageDetail_20' ) start [2025-04-01 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810369', 'tblTempUsageDetail_20' ) end [2025-04-01 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810369', 'tblTempVendorCDR_20' ) start [2025-04-01 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810369', 'tblTempVendorCDR_20' ) end [2025-04-01 10:55:21] Production.INFO: ProcessCDR(1,14810369,1,1,2) [2025-04-01 10:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810369', 'tblTempUsageDetail_20' ) start [2025-04-01 10:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810369', 'tblTempUsageDetail_20' ) end [2025-04-01 10:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:55:27] Production.INFO: ==2713== Releasing lock... [2025-04-01 10:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:55:27] Production.INFO: 57.75 MB #Memory Used# [2025-04-01 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:56:05 [end_date_ymd] => 2025-04-01 10:56:05 [RateCDR] => 1 ) [2025-04-01 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-01 07:56:05' and `end` < '2025-04-01 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-01 10:56:19] Production.INFO: count ==4024 [2025-04-01 10:56:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:56:05 - End Time 2025-04-01 10:56:05 [2025-04-01 10:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810374', 'tblTempUsageDetail_20' ) start [2025-04-01 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810374', 'tblTempUsageDetail_20' ) end [2025-04-01 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810374', 'tblTempVendorCDR_20' ) start [2025-04-01 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810374', 'tblTempVendorCDR_20' ) end [2025-04-01 10:56:21] Production.INFO: ProcessCDR(1,14810374,1,1,2) [2025-04-01 10:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810374', 'tblTempUsageDetail_20' ) start [2025-04-01 10:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810374', 'tblTempUsageDetail_20' ) end [2025-04-01 10:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:56:27] Production.INFO: ==2802== Releasing lock... [2025-04-01 10:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:56:27] Production.INFO: 58 MB #Memory Used# [2025-04-01 10:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:57:06 [end_date_ymd] => 2025-04-01 10:57:06 [RateCDR] => 1 ) [2025-04-01 10:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:57:06' and `end` < '2025-04-01 10:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:57:19] Production.INFO: count ==4031 [2025-04-01 10:57:21] Production.ERROR: pbx CDR StartTime 2025-04-01 07:57:06 - End Time 2025-04-01 10:57:06 [2025-04-01 10:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810379', 'tblTempUsageDetail_20' ) start [2025-04-01 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810379', 'tblTempUsageDetail_20' ) end [2025-04-01 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810379', 'tblTempVendorCDR_20' ) start [2025-04-01 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810379', 'tblTempVendorCDR_20' ) end [2025-04-01 10:57:21] Production.INFO: ProcessCDR(1,14810379,1,1,2) [2025-04-01 10:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810379', 'tblTempUsageDetail_20' ) start [2025-04-01 10:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810379', 'tblTempUsageDetail_20' ) end [2025-04-01 10:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:57:27] Production.INFO: ==2871== Releasing lock... [2025-04-01 10:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:57:27] Production.INFO: 58 MB #Memory Used# [2025-04-01 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:58:05 [end_date_ymd] => 2025-04-01 10:58:05 [RateCDR] => 1 ) [2025-04-01 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-01 07:58:05' and `end` < '2025-04-01 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-01 10:58:19] Production.INFO: count ==4049 [2025-04-01 10:58:20] Production.ERROR: pbx CDR StartTime 2025-04-01 07:58:05 - End Time 2025-04-01 10:58:05 [2025-04-01 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810384', 'tblTempUsageDetail_20' ) start [2025-04-01 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810384', 'tblTempUsageDetail_20' ) end [2025-04-01 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810384', 'tblTempVendorCDR_20' ) start [2025-04-01 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810384', 'tblTempVendorCDR_20' ) end [2025-04-01 10:58:21] Production.INFO: ProcessCDR(1,14810384,1,1,2) [2025-04-01 10:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810384', 'tblTempUsageDetail_20' ) start [2025-04-01 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810384', 'tblTempUsageDetail_20' ) end [2025-04-01 10:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:58:27] Production.INFO: ==2943== Releasing lock... [2025-04-01 10:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:58:27] Production.INFO: 58.25 MB #Memory Used# [2025-04-01 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 07:59:06 [end_date_ymd] => 2025-04-01 10:59:06 [RateCDR] => 1 ) [2025-04-01 10:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 07:59:06' and `end` < '2025-04-01 10:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 10:59:20] Production.INFO: count ==4080 [2025-04-01 10:59:22] Production.ERROR: pbx CDR StartTime 2025-04-01 07:59:06 - End Time 2025-04-01 10:59:06 [2025-04-01 10:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 10:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810389', 'tblTempUsageDetail_20' ) start [2025-04-01 10:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810389', 'tblTempUsageDetail_20' ) end [2025-04-01 10:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810389', 'tblTempVendorCDR_20' ) start [2025-04-01 10:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810389', 'tblTempVendorCDR_20' ) end [2025-04-01 10:59:22] Production.INFO: ProcessCDR(1,14810389,1,1,2) [2025-04-01 10:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 10:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 10:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810389', 'tblTempUsageDetail_20' ) start [2025-04-01 10:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810389', 'tblTempUsageDetail_20' ) end [2025-04-01 10:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 10:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 10:59:27] Production.INFO: ==3014== Releasing lock... [2025-04-01 10:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 10:59:27] Production.INFO: 58.5 MB #Memory Used# [2025-04-01 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:00:07 [end_date_ymd] => 2025-04-01 11:00:07 [RateCDR] => 1 ) [2025-04-01 11:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 08:00:07' and `end` < '2025-04-01 11:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 11:00:21] Production.INFO: count ==4106 [2025-04-01 11:00:23] Production.ERROR: pbx CDR StartTime 2025-04-01 08:00:07 - End Time 2025-04-01 11:00:07 [2025-04-01 11:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810394', 'tblTempUsageDetail_20' ) start [2025-04-01 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810394', 'tblTempUsageDetail_20' ) end [2025-04-01 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810394', 'tblTempVendorCDR_20' ) start [2025-04-01 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810394', 'tblTempVendorCDR_20' ) end [2025-04-01 11:00:23] Production.INFO: ProcessCDR(1,14810394,1,1,2) [2025-04-01 11:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810394', 'tblTempUsageDetail_20' ) start [2025-04-01 11:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810394', 'tblTempUsageDetail_20' ) end [2025-04-01 11:00:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:00:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:00:29] Production.INFO: ==3106== Releasing lock... [2025-04-01 11:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:00:29] Production.INFO: 58.75 MB #Memory Used# [2025-04-01 11:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:01:06 [end_date_ymd] => 2025-04-01 11:01:06 [RateCDR] => 1 ) [2025-04-01 11:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 08:01:06' and `end` < '2025-04-01 11:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 11:01:20] Production.INFO: count ==4215 [2025-04-01 11:01:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:01:06 - End Time 2025-04-01 11:01:06 [2025-04-01 11:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810400', 'tblTempUsageDetail_20' ) start [2025-04-01 11:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810400', 'tblTempUsageDetail_20' ) end [2025-04-01 11:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810400', 'tblTempVendorCDR_20' ) start [2025-04-01 11:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810400', 'tblTempVendorCDR_20' ) end [2025-04-01 11:01:22] Production.INFO: ProcessCDR(1,14810400,1,1,2) [2025-04-01 11:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810400', 'tblTempUsageDetail_20' ) start [2025-04-01 11:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810400', 'tblTempUsageDetail_20' ) end [2025-04-01 11:01:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:01:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:01:28] Production.INFO: ==3204== Releasing lock... [2025-04-01 11:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:01:28] Production.INFO: 59.5 MB #Memory Used# [2025-04-01 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:02:06 [end_date_ymd] => 2025-04-01 11:02:06 [RateCDR] => 1 ) [2025-04-01 11:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 08:02:06' and `end` < '2025-04-01 11:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 11:02:19] Production.INFO: count ==4230 [2025-04-01 11:02:21] Production.ERROR: pbx CDR StartTime 2025-04-01 08:02:06 - End Time 2025-04-01 11:02:06 [2025-04-01 11:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810405', 'tblTempUsageDetail_20' ) start [2025-04-01 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810405', 'tblTempUsageDetail_20' ) end [2025-04-01 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810405', 'tblTempVendorCDR_20' ) start [2025-04-01 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810405', 'tblTempVendorCDR_20' ) end [2025-04-01 11:02:21] Production.INFO: ProcessCDR(1,14810405,1,1,2) [2025-04-01 11:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810405', 'tblTempUsageDetail_20' ) start [2025-04-01 11:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810405', 'tblTempUsageDetail_20' ) end [2025-04-01 11:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:02:27] Production.INFO: ==3354== Releasing lock... [2025-04-01 11:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:02:27] Production.INFO: 59.5 MB #Memory Used# [2025-04-01 11:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:03:06 [end_date_ymd] => 2025-04-01 11:03:06 [RateCDR] => 1 ) [2025-04-01 11: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-01 08:03:06' and `end` < '2025-04-01 11: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-01 11:03:19] Production.INFO: count ==4234 [2025-04-01 11:03:21] Production.ERROR: pbx CDR StartTime 2025-04-01 08:03:06 - End Time 2025-04-01 11:03:06 [2025-04-01 11:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810410', 'tblTempUsageDetail_20' ) start [2025-04-01 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810410', 'tblTempUsageDetail_20' ) end [2025-04-01 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810410', 'tblTempVendorCDR_20' ) start [2025-04-01 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810410', 'tblTempVendorCDR_20' ) end [2025-04-01 11:03:21] Production.INFO: ProcessCDR(1,14810410,1,1,2) [2025-04-01 11:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810410', 'tblTempUsageDetail_20' ) start [2025-04-01 11:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810410', 'tblTempUsageDetail_20' ) end [2025-04-01 11:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:03:27] Production.INFO: ==3429== Releasing lock... [2025-04-01 11:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:03:27] Production.INFO: 59.75 MB #Memory Used# [2025-04-01 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:04:05 [end_date_ymd] => 2025-04-01 11:04:05 [RateCDR] => 1 ) [2025-04-01 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-01 08:04:05' and `end` < '2025-04-01 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-01 11:04:19] Production.INFO: count ==4245 [2025-04-01 11:04:21] Production.ERROR: pbx CDR StartTime 2025-04-01 08:04:05 - End Time 2025-04-01 11:04:05 [2025-04-01 11:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810415', 'tblTempUsageDetail_20' ) start [2025-04-01 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810415', 'tblTempUsageDetail_20' ) end [2025-04-01 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810415', 'tblTempVendorCDR_20' ) start [2025-04-01 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810415', 'tblTempVendorCDR_20' ) end [2025-04-01 11:04:21] Production.INFO: ProcessCDR(1,14810415,1,1,2) [2025-04-01 11:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810415', 'tblTempUsageDetail_20' ) start [2025-04-01 11:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810415', 'tblTempUsageDetail_20' ) end [2025-04-01 11:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:04:27] Production.INFO: ==3506== Releasing lock... [2025-04-01 11:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:04:27] Production.INFO: 59.75 MB #Memory Used# [2025-04-01 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:05:05 [end_date_ymd] => 2025-04-01 11:05:05 [RateCDR] => 1 ) [2025-04-01 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 08:05:05' and `end` < '2025-04-01 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 11:05:19] Production.INFO: count ==4270 [2025-04-01 11:05:21] Production.ERROR: pbx CDR StartTime 2025-04-01 08:05:05 - End Time 2025-04-01 11:05:05 [2025-04-01 11:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810420', 'tblTempUsageDetail_20' ) start [2025-04-01 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810420', 'tblTempUsageDetail_20' ) end [2025-04-01 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810420', 'tblTempVendorCDR_20' ) start [2025-04-01 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810420', 'tblTempVendorCDR_20' ) end [2025-04-01 11:05:21] Production.INFO: ProcessCDR(1,14810420,1,1,2) [2025-04-01 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810420', 'tblTempUsageDetail_20' ) start [2025-04-01 11:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810420', 'tblTempUsageDetail_20' ) end [2025-04-01 11:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:05:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:05:28] Production.INFO: ==3656== Releasing lock... [2025-04-01 11:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:05:28] Production.INFO: 60 MB #Memory Used# [2025-04-01 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:06:06 [end_date_ymd] => 2025-04-01 11:06:06 [RateCDR] => 1 ) [2025-04-01 11:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 08:06:06' and `end` < '2025-04-01 11:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 11:06:20] Production.INFO: count ==4271 [2025-04-01 11:06:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:06:06 - End Time 2025-04-01 11:06:06 [2025-04-01 11:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810425', 'tblTempUsageDetail_20' ) start [2025-04-01 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810425', 'tblTempUsageDetail_20' ) end [2025-04-01 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810425', 'tblTempVendorCDR_20' ) start [2025-04-01 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810425', 'tblTempVendorCDR_20' ) end [2025-04-01 11:06:22] Production.INFO: ProcessCDR(1,14810425,1,1,2) [2025-04-01 11:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810425', 'tblTempUsageDetail_20' ) start [2025-04-01 11:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810425', 'tblTempUsageDetail_20' ) end [2025-04-01 11:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:06:28] Production.INFO: ==3738== Releasing lock... [2025-04-01 11:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:06:28] Production.INFO: 60 MB #Memory Used# [2025-04-01 11:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:07:06 [end_date_ymd] => 2025-04-01 11:07:06 [RateCDR] => 1 ) [2025-04-01 11:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 08:07:06' and `end` < '2025-04-01 11:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 11:07:20] Production.INFO: count ==4259 [2025-04-01 11:07:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:07:06 - End Time 2025-04-01 11:07:06 [2025-04-01 11:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810430', 'tblTempUsageDetail_20' ) start [2025-04-01 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810430', 'tblTempUsageDetail_20' ) end [2025-04-01 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810430', 'tblTempVendorCDR_20' ) start [2025-04-01 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810430', 'tblTempVendorCDR_20' ) end [2025-04-01 11:07:22] Production.INFO: ProcessCDR(1,14810430,1,1,2) [2025-04-01 11:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810430', 'tblTempUsageDetail_20' ) start [2025-04-01 11:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810430', 'tblTempUsageDetail_20' ) end [2025-04-01 11:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:07:27] Production.INFO: ==3828== Releasing lock... [2025-04-01 11:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:07:27] Production.INFO: 59.75 MB #Memory Used# [2025-04-01 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:08:06 [end_date_ymd] => 2025-04-01 11:08:06 [RateCDR] => 1 ) [2025-04-01 11: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-01 08:08:06' and `end` < '2025-04-01 11: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-01 11:08:20] Production.INFO: count ==4293 [2025-04-01 11:08:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:08:06 - End Time 2025-04-01 11:08:06 [2025-04-01 11:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810435', 'tblTempUsageDetail_20' ) start [2025-04-01 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810435', 'tblTempUsageDetail_20' ) end [2025-04-01 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810435', 'tblTempVendorCDR_20' ) start [2025-04-01 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810435', 'tblTempVendorCDR_20' ) end [2025-04-01 11:08:22] Production.INFO: ProcessCDR(1,14810435,1,1,2) [2025-04-01 11:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810435', 'tblTempUsageDetail_20' ) start [2025-04-01 11:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810435', 'tblTempUsageDetail_20' ) end [2025-04-01 11:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:08:28] Production.INFO: ==3918== Releasing lock... [2025-04-01 11:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:08:28] Production.INFO: 60 MB #Memory Used# [2025-04-01 11:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:09:06 [end_date_ymd] => 2025-04-01 11:09:06 [RateCDR] => 1 ) [2025-04-01 11: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-01 08:09:06' and `end` < '2025-04-01 11: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-01 11:09:20] Production.INFO: count ==4302 [2025-04-01 11:09:21] Production.ERROR: pbx CDR StartTime 2025-04-01 08:09:06 - End Time 2025-04-01 11:09:06 [2025-04-01 11:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810440', 'tblTempUsageDetail_20' ) start [2025-04-01 11:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810440', 'tblTempUsageDetail_20' ) end [2025-04-01 11:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810440', 'tblTempVendorCDR_20' ) start [2025-04-01 11:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810440', 'tblTempVendorCDR_20' ) end [2025-04-01 11:09:22] Production.INFO: ProcessCDR(1,14810440,1,1,2) [2025-04-01 11:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810440', 'tblTempUsageDetail_20' ) start [2025-04-01 11:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810440', 'tblTempUsageDetail_20' ) end [2025-04-01 11:09:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:09:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:09:28] Production.INFO: ==4138== Releasing lock... [2025-04-01 11:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:09:28] Production.INFO: 60.25 MB #Memory Used# [2025-04-01 11:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:10:07 [end_date_ymd] => 2025-04-01 11:10:07 [RateCDR] => 1 ) [2025-04-01 11: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-01 08:10:07' and `end` < '2025-04-01 11: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-01 11:10:21] Production.INFO: count ==4325 [2025-04-01 11:10:23] Production.ERROR: pbx CDR StartTime 2025-04-01 08:10:07 - End Time 2025-04-01 11:10:07 [2025-04-01 11:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810445', 'tblTempUsageDetail_20' ) start [2025-04-01 11:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810445', 'tblTempUsageDetail_20' ) end [2025-04-01 11:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810445', 'tblTempVendorCDR_20' ) start [2025-04-01 11:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810445', 'tblTempVendorCDR_20' ) end [2025-04-01 11:10:23] Production.INFO: ProcessCDR(1,14810445,1,1,2) [2025-04-01 11:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810445', 'tblTempUsageDetail_20' ) start [2025-04-01 11:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810445', 'tblTempUsageDetail_20' ) end [2025-04-01 11:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:10:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:10:29] Production.INFO: ==4230== Releasing lock... [2025-04-01 11:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:10:29] Production.INFO: 60.25 MB #Memory Used# [2025-04-01 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:11:05 [end_date_ymd] => 2025-04-01 11:11:05 [RateCDR] => 1 ) [2025-04-01 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-01 08:11:05' and `end` < '2025-04-01 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-01 11:11:19] Production.INFO: count ==4424 [2025-04-01 11:11:21] Production.ERROR: pbx CDR StartTime 2025-04-01 08:11:05 - End Time 2025-04-01 11:11:05 [2025-04-01 11:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810451', 'tblTempUsageDetail_20' ) start [2025-04-01 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810451', 'tblTempUsageDetail_20' ) end [2025-04-01 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810451', 'tblTempVendorCDR_20' ) start [2025-04-01 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810451', 'tblTempVendorCDR_20' ) end [2025-04-01 11:11:21] Production.INFO: ProcessCDR(1,14810451,1,1,2) [2025-04-01 11:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810451', 'tblTempUsageDetail_20' ) start [2025-04-01 11:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810451', 'tblTempUsageDetail_20' ) end [2025-04-01 11:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:11:27] Production.INFO: ==4305== Releasing lock... [2025-04-01 11:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:11:27] Production.INFO: 61 MB #Memory Used# [2025-04-01 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:12:06 [end_date_ymd] => 2025-04-01 11:12:06 [RateCDR] => 1 ) [2025-04-01 11:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 08:12:06' and `end` < '2025-04-01 11:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 11:12:19] Production.INFO: count ==4430 [2025-04-01 11:12:21] Production.ERROR: pbx CDR StartTime 2025-04-01 08:12:06 - End Time 2025-04-01 11:12:06 [2025-04-01 11:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810456', 'tblTempUsageDetail_20' ) start [2025-04-01 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810456', 'tblTempUsageDetail_20' ) end [2025-04-01 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810456', 'tblTempVendorCDR_20' ) start [2025-04-01 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810456', 'tblTempVendorCDR_20' ) end [2025-04-01 11:12:21] Production.INFO: ProcessCDR(1,14810456,1,1,2) [2025-04-01 11:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810456', 'tblTempUsageDetail_20' ) start [2025-04-01 11:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810456', 'tblTempUsageDetail_20' ) end [2025-04-01 11:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:12:27] Production.INFO: ==4454== Releasing lock... [2025-04-01 11:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:12:27] Production.INFO: 61 MB #Memory Used# [2025-04-01 11:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:13:06 [end_date_ymd] => 2025-04-01 11:13:06 [RateCDR] => 1 ) [2025-04-01 11: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-01 08:13:06' and `end` < '2025-04-01 11: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-01 11:13:20] Production.INFO: count ==4447 [2025-04-01 11:13:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:13:06 - End Time 2025-04-01 11:13:06 [2025-04-01 11:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810461', 'tblTempUsageDetail_20' ) start [2025-04-01 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810461', 'tblTempUsageDetail_20' ) end [2025-04-01 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810461', 'tblTempVendorCDR_20' ) start [2025-04-01 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810461', 'tblTempVendorCDR_20' ) end [2025-04-01 11:13:22] Production.INFO: ProcessCDR(1,14810461,1,1,2) [2025-04-01 11:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810461', 'tblTempUsageDetail_20' ) start [2025-04-01 11:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810461', 'tblTempUsageDetail_20' ) end [2025-04-01 11:13:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:13:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:13:28] Production.INFO: ==4525== Releasing lock... [2025-04-01 11:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:13:28] Production.INFO: 61.25 MB #Memory Used# [2025-04-01 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:14:05 [end_date_ymd] => 2025-04-01 11:14:05 [RateCDR] => 1 ) [2025-04-01 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-01 08:14:05' and `end` < '2025-04-01 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-01 11:14:19] Production.INFO: count ==4461 [2025-04-01 11:14:21] Production.ERROR: pbx CDR StartTime 2025-04-01 08:14:05 - End Time 2025-04-01 11:14:05 [2025-04-01 11:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810466', 'tblTempUsageDetail_20' ) start [2025-04-01 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810466', 'tblTempUsageDetail_20' ) end [2025-04-01 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810466', 'tblTempVendorCDR_20' ) start [2025-04-01 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810466', 'tblTempVendorCDR_20' ) end [2025-04-01 11:14:21] Production.INFO: ProcessCDR(1,14810466,1,1,2) [2025-04-01 11:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810466', 'tblTempUsageDetail_20' ) start [2025-04-01 11:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810466', 'tblTempUsageDetail_20' ) end [2025-04-01 11:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:14:27] Production.INFO: ==4602== Releasing lock... [2025-04-01 11:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:14:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-01 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:15:05 [end_date_ymd] => 2025-04-01 11:15:05 [RateCDR] => 1 ) [2025-04-01 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 08:15:05' and `end` < '2025-04-01 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 11:15:19] Production.INFO: count ==4470 [2025-04-01 11:15:21] Production.ERROR: pbx CDR StartTime 2025-04-01 08:15:05 - End Time 2025-04-01 11:15:05 [2025-04-01 11:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810471', 'tblTempUsageDetail_20' ) start [2025-04-01 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810471', 'tblTempUsageDetail_20' ) end [2025-04-01 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810471', 'tblTempVendorCDR_20' ) start [2025-04-01 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810471', 'tblTempVendorCDR_20' ) end [2025-04-01 11:15:21] Production.INFO: ProcessCDR(1,14810471,1,1,2) [2025-04-01 11:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810471', 'tblTempUsageDetail_20' ) start [2025-04-01 11:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810471', 'tblTempUsageDetail_20' ) end [2025-04-01 11:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:15:27] Production.INFO: ==4718== Releasing lock... [2025-04-01 11:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:15:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-01 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:16:05 [end_date_ymd] => 2025-04-01 11:16:05 [RateCDR] => 1 ) [2025-04-01 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-01 08:16:05' and `end` < '2025-04-01 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-01 11:16:19] Production.INFO: count ==4489 [2025-04-01 11:16:21] Production.ERROR: pbx CDR StartTime 2025-04-01 08:16:05 - End Time 2025-04-01 11:16:05 [2025-04-01 11:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810476', 'tblTempUsageDetail_20' ) start [2025-04-01 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810476', 'tblTempUsageDetail_20' ) end [2025-04-01 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810476', 'tblTempVendorCDR_20' ) start [2025-04-01 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810476', 'tblTempVendorCDR_20' ) end [2025-04-01 11:16:21] Production.INFO: ProcessCDR(1,14810476,1,1,2) [2025-04-01 11:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810476', 'tblTempUsageDetail_20' ) start [2025-04-01 11:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810476', 'tblTempUsageDetail_20' ) end [2025-04-01 11:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:16:27] Production.INFO: ==4827== Releasing lock... [2025-04-01 11:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:16:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-01 11:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:17:06 [end_date_ymd] => 2025-04-01 11:17:06 [RateCDR] => 1 ) [2025-04-01 11:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 08:17:06' and `end` < '2025-04-01 11:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 11:17:20] Production.INFO: count ==4479 [2025-04-01 11:17:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:17:06 - End Time 2025-04-01 11:17:06 [2025-04-01 11:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810481', 'tblTempUsageDetail_20' ) start [2025-04-01 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810481', 'tblTempUsageDetail_20' ) end [2025-04-01 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810481', 'tblTempVendorCDR_20' ) start [2025-04-01 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810481', 'tblTempVendorCDR_20' ) end [2025-04-01 11:17:22] Production.INFO: ProcessCDR(1,14810481,1,1,2) [2025-04-01 11:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810481', 'tblTempUsageDetail_20' ) start [2025-04-01 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810481', 'tblTempUsageDetail_20' ) end [2025-04-01 11:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:17:26] Production.INFO: ==4899== Releasing lock... [2025-04-01 11:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:17:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-01 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:18:05 [end_date_ymd] => 2025-04-01 11:18:05 [RateCDR] => 1 ) [2025-04-01 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-01 08:18:05' and `end` < '2025-04-01 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-01 11:18:19] Production.INFO: count ==4489 [2025-04-01 11:18:21] Production.ERROR: pbx CDR StartTime 2025-04-01 08:18:05 - End Time 2025-04-01 11:18:05 [2025-04-01 11:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810486', 'tblTempUsageDetail_20' ) start [2025-04-01 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810486', 'tblTempUsageDetail_20' ) end [2025-04-01 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810486', 'tblTempVendorCDR_20' ) start [2025-04-01 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810486', 'tblTempVendorCDR_20' ) end [2025-04-01 11:18:21] Production.INFO: ProcessCDR(1,14810486,1,1,2) [2025-04-01 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810486', 'tblTempUsageDetail_20' ) start [2025-04-01 11:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810486', 'tblTempUsageDetail_20' ) end [2025-04-01 11:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:18:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:18:28] Production.INFO: ==4972== Releasing lock... [2025-04-01 11:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:18:28] Production.INFO: 61.5 MB #Memory Used# [2025-04-01 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:19:06 [end_date_ymd] => 2025-04-01 11:19:06 [RateCDR] => 1 ) [2025-04-01 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-01 08:19:06' and `end` < '2025-04-01 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-01 11:19:20] Production.INFO: count ==4491 [2025-04-01 11:19:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:19:06 - End Time 2025-04-01 11:19:06 [2025-04-01 11:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810491', 'tblTempUsageDetail_20' ) start [2025-04-01 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810491', 'tblTempUsageDetail_20' ) end [2025-04-01 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810491', 'tblTempVendorCDR_20' ) start [2025-04-01 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810491', 'tblTempVendorCDR_20' ) end [2025-04-01 11:19:22] Production.INFO: ProcessCDR(1,14810491,1,1,2) [2025-04-01 11:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810491', 'tblTempUsageDetail_20' ) start [2025-04-01 11:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810491', 'tblTempUsageDetail_20' ) end [2025-04-01 11:19:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:19:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:19:28] Production.INFO: ==5056== Releasing lock... [2025-04-01 11:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:19:28] Production.INFO: 61.5 MB #Memory Used# [2025-04-01 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:20:06 [end_date_ymd] => 2025-04-01 11:20:06 [RateCDR] => 1 ) [2025-04-01 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 08:20:06' and `end` < '2025-04-01 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 11:20:20] Production.INFO: count ==4513 [2025-04-01 11:20:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:20:06 - End Time 2025-04-01 11:20:06 [2025-04-01 11:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810497', 'tblTempUsageDetail_20' ) start [2025-04-01 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810497', 'tblTempUsageDetail_20' ) end [2025-04-01 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810497', 'tblTempVendorCDR_20' ) start [2025-04-01 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810497', 'tblTempVendorCDR_20' ) end [2025-04-01 11:20:22] Production.INFO: ProcessCDR(1,14810497,1,1,2) [2025-04-01 11:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810497', 'tblTempUsageDetail_20' ) start [2025-04-01 11:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810497', 'tblTempUsageDetail_20' ) end [2025-04-01 11:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:20:28] Production.INFO: ==5132== Releasing lock... [2025-04-01 11:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:20:28] Production.INFO: 61.75 MB #Memory Used# [2025-04-01 11:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:21:06 [end_date_ymd] => 2025-04-01 11:21:06 [RateCDR] => 1 ) [2025-04-01 11:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 08:21:06' and `end` < '2025-04-01 11:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 11:21:20] Production.INFO: count ==4629 [2025-04-01 11:21:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:21:06 - End Time 2025-04-01 11:21:06 [2025-04-01 11:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810502', 'tblTempUsageDetail_20' ) start [2025-04-01 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810502', 'tblTempUsageDetail_20' ) end [2025-04-01 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810502', 'tblTempVendorCDR_20' ) start [2025-04-01 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810502', 'tblTempVendorCDR_20' ) end [2025-04-01 11:21:22] Production.INFO: ProcessCDR(1,14810502,1,1,2) [2025-04-01 11:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810502', 'tblTempUsageDetail_20' ) start [2025-04-01 11:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810502', 'tblTempUsageDetail_20' ) end [2025-04-01 11:21:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:21:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:21:28] Production.INFO: ==5215== Releasing lock... [2025-04-01 11:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:21:28] Production.INFO: 62.5 MB #Memory Used# [2025-04-01 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:22:06 [end_date_ymd] => 2025-04-01 11:22:06 [RateCDR] => 1 ) [2025-04-01 11: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-01 08:22:06' and `end` < '2025-04-01 11: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-01 11:22:20] Production.INFO: count ==4653 [2025-04-01 11:22:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:22:06 - End Time 2025-04-01 11:22:06 [2025-04-01 11:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810507', 'tblTempUsageDetail_20' ) start [2025-04-01 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810507', 'tblTempUsageDetail_20' ) end [2025-04-01 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810507', 'tblTempVendorCDR_20' ) start [2025-04-01 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810507', 'tblTempVendorCDR_20' ) end [2025-04-01 11:22:22] Production.INFO: ProcessCDR(1,14810507,1,1,2) [2025-04-01 11:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810507', 'tblTempUsageDetail_20' ) start [2025-04-01 11:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810507', 'tblTempUsageDetail_20' ) end [2025-04-01 11:22:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:22:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:22:28] Production.INFO: ==5293== Releasing lock... [2025-04-01 11:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:22:28] Production.INFO: 62.75 MB #Memory Used# [2025-04-01 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:23:06 [end_date_ymd] => 2025-04-01 11:23:06 [RateCDR] => 1 ) [2025-04-01 11: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-01 08:23:06' and `end` < '2025-04-01 11: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-01 11:23:20] Production.INFO: count ==4671 [2025-04-01 11:23:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:23:06 - End Time 2025-04-01 11:23:06 [2025-04-01 11:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810512', 'tblTempUsageDetail_20' ) start [2025-04-01 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810512', 'tblTempUsageDetail_20' ) end [2025-04-01 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810512', 'tblTempVendorCDR_20' ) start [2025-04-01 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810512', 'tblTempVendorCDR_20' ) end [2025-04-01 11:23:22] Production.INFO: ProcessCDR(1,14810512,1,1,2) [2025-04-01 11:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810512', 'tblTempUsageDetail_20' ) start [2025-04-01 11:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810512', 'tblTempUsageDetail_20' ) end [2025-04-01 11:23:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:23:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:23:28] Production.INFO: ==5369== Releasing lock... [2025-04-01 11:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:23:28] Production.INFO: 63 MB #Memory Used# [2025-04-01 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:24:05 [end_date_ymd] => 2025-04-01 11:24:05 [RateCDR] => 1 ) [2025-04-01 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 08:24:05' and `end` < '2025-04-01 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 11:24:19] Production.INFO: count ==4679 [2025-04-01 11:24:21] Production.ERROR: pbx CDR StartTime 2025-04-01 08:24:05 - End Time 2025-04-01 11:24:05 [2025-04-01 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810517', 'tblTempUsageDetail_20' ) start [2025-04-01 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810517', 'tblTempUsageDetail_20' ) end [2025-04-01 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810517', 'tblTempVendorCDR_20' ) start [2025-04-01 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810517', 'tblTempVendorCDR_20' ) end [2025-04-01 11:24:21] Production.INFO: ProcessCDR(1,14810517,1,1,2) [2025-04-01 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810517', 'tblTempUsageDetail_20' ) start [2025-04-01 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810517', 'tblTempUsageDetail_20' ) end [2025-04-01 11:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:24:27] Production.INFO: ==5479== Releasing lock... [2025-04-01 11:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:24:27] Production.INFO: 63 MB #Memory Used# [2025-04-01 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:25:06 [end_date_ymd] => 2025-04-01 11:25:06 [RateCDR] => 1 ) [2025-04-01 11: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-01 08:25:06' and `end` < '2025-04-01 11: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-01 11:25:20] Production.INFO: count ==4698 [2025-04-01 11:25:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:25:06 - End Time 2025-04-01 11:25:06 [2025-04-01 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810522', 'tblTempUsageDetail_20' ) start [2025-04-01 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810522', 'tblTempUsageDetail_20' ) end [2025-04-01 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810522', 'tblTempVendorCDR_20' ) start [2025-04-01 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810522', 'tblTempVendorCDR_20' ) end [2025-04-01 11:25:22] Production.INFO: ProcessCDR(1,14810522,1,1,2) [2025-04-01 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810522', 'tblTempUsageDetail_20' ) start [2025-04-01 11:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810522', 'tblTempUsageDetail_20' ) end [2025-04-01 11:25:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:25:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:25:28] Production.INFO: ==5553== Releasing lock... [2025-04-01 11:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:25:28] Production.INFO: 63 MB #Memory Used# [2025-04-01 11:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:26:06 [end_date_ymd] => 2025-04-01 11:26:06 [RateCDR] => 1 ) [2025-04-01 11:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 08:26:06' and `end` < '2025-04-01 11:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 11:26:20] Production.INFO: count ==4705 [2025-04-01 11:26:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:26:06 - End Time 2025-04-01 11:26:06 [2025-04-01 11:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810527', 'tblTempUsageDetail_20' ) start [2025-04-01 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810527', 'tblTempUsageDetail_20' ) end [2025-04-01 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810527', 'tblTempVendorCDR_20' ) start [2025-04-01 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810527', 'tblTempVendorCDR_20' ) end [2025-04-01 11:26:22] Production.INFO: ProcessCDR(1,14810527,1,1,2) [2025-04-01 11:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810527', 'tblTempUsageDetail_20' ) start [2025-04-01 11:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810527', 'tblTempUsageDetail_20' ) end [2025-04-01 11:26:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:26:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:26:28] Production.INFO: ==5626== Releasing lock... [2025-04-01 11:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:26:28] Production.INFO: 63.25 MB #Memory Used# [2025-04-01 11:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:27:06 [end_date_ymd] => 2025-04-01 11:27:06 [RateCDR] => 1 ) [2025-04-01 11: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-01 08:27:06' and `end` < '2025-04-01 11: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-01 11:27:20] Production.INFO: count ==4775 [2025-04-01 11:27:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:27:06 - End Time 2025-04-01 11:27:06 [2025-04-01 11:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810532', 'tblTempUsageDetail_20' ) start [2025-04-01 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810532', 'tblTempUsageDetail_20' ) end [2025-04-01 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810532', 'tblTempVendorCDR_20' ) start [2025-04-01 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810532', 'tblTempVendorCDR_20' ) end [2025-04-01 11:27:22] Production.INFO: ProcessCDR(1,14810532,1,1,2) [2025-04-01 11:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810532', 'tblTempUsageDetail_20' ) start [2025-04-01 11:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810532', 'tblTempUsageDetail_20' ) end [2025-04-01 11:27:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:27:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:27:28] Production.INFO: ==5697== Releasing lock... [2025-04-01 11:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:27:28] Production.INFO: 63.75 MB #Memory Used# [2025-04-01 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:28:05 [end_date_ymd] => 2025-04-01 11:28:05 [RateCDR] => 1 ) [2025-04-01 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-01 08:28:05' and `end` < '2025-04-01 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-01 11:28:19] Production.INFO: count ==4780 [2025-04-01 11:28:21] Production.ERROR: pbx CDR StartTime 2025-04-01 08:28:05 - End Time 2025-04-01 11:28:05 [2025-04-01 11:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810537', 'tblTempUsageDetail_20' ) start [2025-04-01 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810537', 'tblTempUsageDetail_20' ) end [2025-04-01 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810537', 'tblTempVendorCDR_20' ) start [2025-04-01 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810537', 'tblTempVendorCDR_20' ) end [2025-04-01 11:28:21] Production.INFO: ProcessCDR(1,14810537,1,1,2) [2025-04-01 11:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810537', 'tblTempUsageDetail_20' ) start [2025-04-01 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810537', 'tblTempUsageDetail_20' ) end [2025-04-01 11:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:28:27] Production.INFO: ==5769== Releasing lock... [2025-04-01 11:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:28:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-01 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:29:06 [end_date_ymd] => 2025-04-01 11:29:06 [RateCDR] => 1 ) [2025-04-01 11: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-01 08:29:06' and `end` < '2025-04-01 11: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-01 11:29:20] Production.INFO: count ==4829 [2025-04-01 11:29:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:29:06 - End Time 2025-04-01 11:29:06 [2025-04-01 11:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810542', 'tblTempUsageDetail_20' ) start [2025-04-01 11:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810542', 'tblTempUsageDetail_20' ) end [2025-04-01 11:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810542', 'tblTempVendorCDR_20' ) start [2025-04-01 11:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810542', 'tblTempVendorCDR_20' ) end [2025-04-01 11:29:22] Production.INFO: ProcessCDR(1,14810542,1,1,2) [2025-04-01 11:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810542', 'tblTempUsageDetail_20' ) start [2025-04-01 11:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810542', 'tblTempUsageDetail_20' ) end [2025-04-01 11:29:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:29:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:29:28] Production.INFO: ==5838== Releasing lock... [2025-04-01 11:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:29:28] Production.INFO: 64 MB #Memory Used# [2025-04-01 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:30:06 [end_date_ymd] => 2025-04-01 11:30:06 [RateCDR] => 1 ) [2025-04-01 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-01 08:30:06' and `end` < '2025-04-01 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-01 11:30:20] Production.INFO: count ==4853 [2025-04-01 11:30:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:30:06 - End Time 2025-04-01 11:30:06 [2025-04-01 11:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810548', 'tblTempUsageDetail_20' ) start [2025-04-01 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810548', 'tblTempUsageDetail_20' ) end [2025-04-01 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810548', 'tblTempVendorCDR_20' ) start [2025-04-01 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810548', 'tblTempVendorCDR_20' ) end [2025-04-01 11:30:22] Production.INFO: ProcessCDR(1,14810548,1,1,2) [2025-04-01 11:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810548', 'tblTempUsageDetail_20' ) start [2025-04-01 11:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810548', 'tblTempUsageDetail_20' ) end [2025-04-01 11:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:30:28] Production.INFO: ==5914== Releasing lock... [2025-04-01 11:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:30:28] Production.INFO: 64.25 MB #Memory Used# [2025-04-01 11:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:31:06 [end_date_ymd] => 2025-04-01 11:31:06 [RateCDR] => 1 ) [2025-04-01 11:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 08:31:06' and `end` < '2025-04-01 11:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 11:31:20] Production.INFO: count ==4948 [2025-04-01 11:31:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:31:06 - End Time 2025-04-01 11:31:06 [2025-04-01 11:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810553', 'tblTempUsageDetail_20' ) start [2025-04-01 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810553', 'tblTempUsageDetail_20' ) end [2025-04-01 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810553', 'tblTempVendorCDR_20' ) start [2025-04-01 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810553', 'tblTempVendorCDR_20' ) end [2025-04-01 11:31:22] Production.INFO: ProcessCDR(1,14810553,1,1,2) [2025-04-01 11:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810553', 'tblTempUsageDetail_20' ) start [2025-04-01 11:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810553', 'tblTempUsageDetail_20' ) end [2025-04-01 11:31:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:31:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:31:28] Production.INFO: ==5989== Releasing lock... [2025-04-01 11:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:31:28] Production.INFO: 65 MB #Memory Used# [2025-04-01 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:32:06 [end_date_ymd] => 2025-04-01 11:32:06 [RateCDR] => 1 ) [2025-04-01 11: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-01 08:32:06' and `end` < '2025-04-01 11: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-01 11:32:19] Production.INFO: count ==4959 [2025-04-01 11:32:21] Production.ERROR: pbx CDR StartTime 2025-04-01 08:32:06 - End Time 2025-04-01 11:32:06 [2025-04-01 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810558', 'tblTempUsageDetail_20' ) start [2025-04-01 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810558', 'tblTempUsageDetail_20' ) end [2025-04-01 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810558', 'tblTempVendorCDR_20' ) start [2025-04-01 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810558', 'tblTempVendorCDR_20' ) end [2025-04-01 11:32:22] Production.INFO: ProcessCDR(1,14810558,1,1,2) [2025-04-01 11:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810558', 'tblTempUsageDetail_20' ) start [2025-04-01 11:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810558', 'tblTempUsageDetail_20' ) end [2025-04-01 11:32:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:32:28] Production.INFO: ==6059== Releasing lock... [2025-04-01 11:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:32:28] Production.INFO: 65 MB #Memory Used# [2025-04-01 11:33:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:33:07 [end_date_ymd] => 2025-04-01 11:33:07 [RateCDR] => 1 ) [2025-04-01 11: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-01 08:33:07' and `end` < '2025-04-01 11: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-01 11:33:20] Production.INFO: count ==4972 [2025-04-01 11:33:23] Production.ERROR: pbx CDR StartTime 2025-04-01 08:33:07 - End Time 2025-04-01 11:33:07 [2025-04-01 11:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810563', 'tblTempUsageDetail_20' ) start [2025-04-01 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810563', 'tblTempUsageDetail_20' ) end [2025-04-01 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810563', 'tblTempVendorCDR_20' ) start [2025-04-01 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810563', 'tblTempVendorCDR_20' ) end [2025-04-01 11:33:23] Production.INFO: ProcessCDR(1,14810563,1,1,2) [2025-04-01 11:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810563', 'tblTempUsageDetail_20' ) start [2025-04-01 11:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810563', 'tblTempUsageDetail_20' ) end [2025-04-01 11:33:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:33:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:33:29] Production.INFO: ==6136== Releasing lock... [2025-04-01 11:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:33:29] Production.INFO: 65.25 MB #Memory Used# [2025-04-01 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:34:05 [end_date_ymd] => 2025-04-01 11:34:05 [RateCDR] => 1 ) [2025-04-01 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-01 08:34:05' and `end` < '2025-04-01 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-01 11:34:19] Production.INFO: count ==4997 [2025-04-01 11:34:21] Production.ERROR: pbx CDR StartTime 2025-04-01 08:34:05 - End Time 2025-04-01 11:34:05 [2025-04-01 11:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810568', 'tblTempUsageDetail_20' ) start [2025-04-01 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810568', 'tblTempUsageDetail_20' ) end [2025-04-01 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810568', 'tblTempVendorCDR_20' ) start [2025-04-01 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810568', 'tblTempVendorCDR_20' ) end [2025-04-01 11:34:21] Production.INFO: ProcessCDR(1,14810568,1,1,2) [2025-04-01 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810568', 'tblTempUsageDetail_20' ) start [2025-04-01 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810568', 'tblTempUsageDetail_20' ) end [2025-04-01 11:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:34:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:34:28] Production.INFO: ==6212== Releasing lock... [2025-04-01 11:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:34:28] Production.INFO: 65.25 MB #Memory Used# [2025-04-01 11:35:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:35:07 [end_date_ymd] => 2025-04-01 11:35:07 [RateCDR] => 1 ) [2025-04-01 11:35: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-01 08:35:07' and `end` < '2025-04-01 11:35: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-01 11:35:21] Production.INFO: count ==5013 [2025-04-01 11:35:23] Production.ERROR: pbx CDR StartTime 2025-04-01 08:35:07 - End Time 2025-04-01 11:35:07 [2025-04-01 11:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810573', 'tblTempUsageDetail_20' ) start [2025-04-01 11:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810573', 'tblTempUsageDetail_20' ) end [2025-04-01 11:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810573', 'tblTempVendorCDR_20' ) start [2025-04-01 11:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810573', 'tblTempVendorCDR_20' ) end [2025-04-01 11:35:23] Production.INFO: ProcessCDR(1,14810573,1,1,2) [2025-04-01 11:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810573', 'tblTempUsageDetail_20' ) start [2025-04-01 11:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810573', 'tblTempUsageDetail_20' ) end [2025-04-01 11:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:35:27] Production.INFO: ==6292== Releasing lock... [2025-04-01 11:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:35:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-01 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:36:06 [end_date_ymd] => 2025-04-01 11:36:06 [RateCDR] => 1 ) [2025-04-01 11:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 08:36:06' and `end` < '2025-04-01 11:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 11:36:19] Production.INFO: count ==5013 [2025-04-01 11:36:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:36:06 - End Time 2025-04-01 11:36:06 [2025-04-01 11:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810578', 'tblTempUsageDetail_20' ) start [2025-04-01 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810578', 'tblTempUsageDetail_20' ) end [2025-04-01 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810578', 'tblTempVendorCDR_20' ) start [2025-04-01 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810578', 'tblTempVendorCDR_20' ) end [2025-04-01 11:36:22] Production.INFO: ProcessCDR(1,14810578,1,1,2) [2025-04-01 11:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810578', 'tblTempUsageDetail_20' ) start [2025-04-01 11:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810578', 'tblTempUsageDetail_20' ) end [2025-04-01 11:36:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:36:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:36:28] Production.INFO: ==6361== Releasing lock... [2025-04-01 11:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:36:28] Production.INFO: 65.5 MB #Memory Used# [2025-04-01 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:37:05 [end_date_ymd] => 2025-04-01 11:37:05 [RateCDR] => 1 ) [2025-04-01 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-01 08:37:05' and `end` < '2025-04-01 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-01 11:37:19] Production.INFO: count ==5020 [2025-04-01 11:37:21] Production.ERROR: pbx CDR StartTime 2025-04-01 08:37:05 - End Time 2025-04-01 11:37:05 [2025-04-01 11:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810583', 'tblTempUsageDetail_20' ) start [2025-04-01 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810583', 'tblTempUsageDetail_20' ) end [2025-04-01 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810583', 'tblTempVendorCDR_20' ) start [2025-04-01 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810583', 'tblTempVendorCDR_20' ) end [2025-04-01 11:37:22] Production.INFO: ProcessCDR(1,14810583,1,1,2) [2025-04-01 11:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810583', 'tblTempUsageDetail_20' ) start [2025-04-01 11:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810583', 'tblTempUsageDetail_20' ) end [2025-04-01 11:37:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:37:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:37:28] Production.INFO: ==6436== Releasing lock... [2025-04-01 11:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:37:28] Production.INFO: 65.5 MB #Memory Used# [2025-04-01 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:38:06 [end_date_ymd] => 2025-04-01 11:38:06 [RateCDR] => 1 ) [2025-04-01 11: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-01 08:38:06' and `end` < '2025-04-01 11: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-01 11:38:19] Production.INFO: count ==5048 [2025-04-01 11:38:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:38:06 - End Time 2025-04-01 11:38:06 [2025-04-01 11:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810588', 'tblTempUsageDetail_20' ) start [2025-04-01 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810588', 'tblTempUsageDetail_20' ) end [2025-04-01 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810588', 'tblTempVendorCDR_20' ) start [2025-04-01 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810588', 'tblTempVendorCDR_20' ) end [2025-04-01 11:38:22] Production.INFO: ProcessCDR(1,14810588,1,1,2) [2025-04-01 11:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810588', 'tblTempUsageDetail_20' ) start [2025-04-01 11:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810588', 'tblTempUsageDetail_20' ) end [2025-04-01 11:38:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:38:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:38:28] Production.INFO: ==6518== Releasing lock... [2025-04-01 11:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:38:28] Production.INFO: 65.75 MB #Memory Used# [2025-04-01 11:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:39:06 [end_date_ymd] => 2025-04-01 11:39:06 [RateCDR] => 1 ) [2025-04-01 11: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-01 08:39:06' and `end` < '2025-04-01 11: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-01 11:39:19] Production.INFO: count ==5055 [2025-04-01 11:39:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:39:06 - End Time 2025-04-01 11:39:06 [2025-04-01 11:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810593', 'tblTempUsageDetail_20' ) start [2025-04-01 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810593', 'tblTempUsageDetail_20' ) end [2025-04-01 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810593', 'tblTempVendorCDR_20' ) start [2025-04-01 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810593', 'tblTempVendorCDR_20' ) end [2025-04-01 11:39:22] Production.INFO: ProcessCDR(1,14810593,1,1,2) [2025-04-01 11:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810593', 'tblTempUsageDetail_20' ) start [2025-04-01 11:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810593', 'tblTempUsageDetail_20' ) end [2025-04-01 11:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:39:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:39:28] Production.INFO: ==6596== Releasing lock... [2025-04-01 11:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:39:28] Production.INFO: 65.75 MB #Memory Used# [2025-04-01 11:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:40:07 [end_date_ymd] => 2025-04-01 11:40:07 [RateCDR] => 1 ) [2025-04-01 11: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-01 08:40:07' and `end` < '2025-04-01 11:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 11:40:20] Production.INFO: count ==5054 [2025-04-01 11:40:23] Production.ERROR: pbx CDR StartTime 2025-04-01 08:40:07 - End Time 2025-04-01 11:40:07 [2025-04-01 11:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810599', 'tblTempUsageDetail_20' ) start [2025-04-01 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810599', 'tblTempUsageDetail_20' ) end [2025-04-01 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810599', 'tblTempVendorCDR_20' ) start [2025-04-01 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810599', 'tblTempVendorCDR_20' ) end [2025-04-01 11:40:23] Production.INFO: ProcessCDR(1,14810599,1,1,2) [2025-04-01 11:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810599', 'tblTempUsageDetail_20' ) start [2025-04-01 11:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810599', 'tblTempUsageDetail_20' ) end [2025-04-01 11:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:40:28] Production.INFO: ==6710== Releasing lock... [2025-04-01 11:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:40:28] Production.INFO: 65.75 MB #Memory Used# [2025-04-01 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:41:05 [end_date_ymd] => 2025-04-01 11:41:05 [RateCDR] => 1 ) [2025-04-01 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-01 08:41:05' and `end` < '2025-04-01 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-01 11:41:19] Production.INFO: count ==5095 [2025-04-01 11:41:21] Production.ERROR: pbx CDR StartTime 2025-04-01 08:41:05 - End Time 2025-04-01 11:41:05 [2025-04-01 11:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810604', 'tblTempUsageDetail_20' ) start [2025-04-01 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810604', 'tblTempUsageDetail_20' ) end [2025-04-01 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810604', 'tblTempVendorCDR_20' ) start [2025-04-01 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810604', 'tblTempVendorCDR_20' ) end [2025-04-01 11:41:21] Production.INFO: ProcessCDR(1,14810604,1,1,2) [2025-04-01 11:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810604', 'tblTempUsageDetail_20' ) start [2025-04-01 11:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810604', 'tblTempUsageDetail_20' ) end [2025-04-01 11:41:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:41:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:41:28] Production.INFO: ==6784== Releasing lock... [2025-04-01 11:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:41:28] Production.INFO: 66 MB #Memory Used# [2025-04-01 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:42:06 [end_date_ymd] => 2025-04-01 11:42:06 [RateCDR] => 1 ) [2025-04-01 11:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 08:42:06' and `end` < '2025-04-01 11:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 11:42:20] Production.INFO: count ==5105 [2025-04-01 11:42:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:42:06 - End Time 2025-04-01 11:42:06 [2025-04-01 11:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810609', 'tblTempUsageDetail_20' ) start [2025-04-01 11:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810609', 'tblTempUsageDetail_20' ) end [2025-04-01 11:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810609', 'tblTempVendorCDR_20' ) start [2025-04-01 11:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810609', 'tblTempVendorCDR_20' ) end [2025-04-01 11:42:23] Production.INFO: ProcessCDR(1,14810609,1,1,2) [2025-04-01 11:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810609', 'tblTempUsageDetail_20' ) start [2025-04-01 11:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810609', 'tblTempUsageDetail_20' ) end [2025-04-01 11:42:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:42:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:42:29] Production.INFO: ==6857== Releasing lock... [2025-04-01 11:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:42:29] Production.INFO: 66.25 MB #Memory Used# [2025-04-01 11:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:43:06 [end_date_ymd] => 2025-04-01 11:43:06 [RateCDR] => 1 ) [2025-04-01 11:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 08:43:06' and `end` < '2025-04-01 11:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 11:43:19] Production.INFO: count ==5103 [2025-04-01 11:43:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:43:06 - End Time 2025-04-01 11:43:06 [2025-04-01 11:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810614', 'tblTempUsageDetail_20' ) start [2025-04-01 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810614', 'tblTempUsageDetail_20' ) end [2025-04-01 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810614', 'tblTempVendorCDR_20' ) start [2025-04-01 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810614', 'tblTempVendorCDR_20' ) end [2025-04-01 11:43:22] Production.INFO: ProcessCDR(1,14810614,1,1,2) [2025-04-01 11:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810614', 'tblTempUsageDetail_20' ) start [2025-04-01 11:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810614', 'tblTempUsageDetail_20' ) end [2025-04-01 11:43:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:43:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:43:28] Production.INFO: ==6932== Releasing lock... [2025-04-01 11:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:43:28] Production.INFO: 66.25 MB #Memory Used# [2025-04-01 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:44:06 [end_date_ymd] => 2025-04-01 11:44:06 [RateCDR] => 1 ) [2025-04-01 11: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-01 08:44:06' and `end` < '2025-04-01 11: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-01 11:44:20] Production.INFO: count ==5109 [2025-04-01 11:44:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:44:06 - End Time 2025-04-01 11:44:06 [2025-04-01 11:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810619', 'tblTempUsageDetail_20' ) start [2025-04-01 11:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810619', 'tblTempUsageDetail_20' ) end [2025-04-01 11:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810619', 'tblTempVendorCDR_20' ) start [2025-04-01 11:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810619', 'tblTempVendorCDR_20' ) end [2025-04-01 11:44:23] Production.INFO: ProcessCDR(1,14810619,1,1,2) [2025-04-01 11:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810619', 'tblTempUsageDetail_20' ) start [2025-04-01 11:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810619', 'tblTempUsageDetail_20' ) end [2025-04-01 11:44:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:44:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:44:29] Production.INFO: ==7005== Releasing lock... [2025-04-01 11:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:44:29] Production.INFO: 66.25 MB #Memory Used# [2025-04-01 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:45:05 [end_date_ymd] => 2025-04-01 11:45:05 [RateCDR] => 1 ) [2025-04-01 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-01 08:45:05' and `end` < '2025-04-01 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-01 11:45:19] Production.INFO: count ==5120 [2025-04-01 11:45:21] Production.ERROR: pbx CDR StartTime 2025-04-01 08:45:05 - End Time 2025-04-01 11:45:05 [2025-04-01 11:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810624', 'tblTempUsageDetail_20' ) start [2025-04-01 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810624', 'tblTempUsageDetail_20' ) end [2025-04-01 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810624', 'tblTempVendorCDR_20' ) start [2025-04-01 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810624', 'tblTempVendorCDR_20' ) end [2025-04-01 11:45:21] Production.INFO: ProcessCDR(1,14810624,1,1,2) [2025-04-01 11:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810624', 'tblTempUsageDetail_20' ) start [2025-04-01 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810624', 'tblTempUsageDetail_20' ) end [2025-04-01 11:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:45:27] Production.INFO: ==7075== Releasing lock... [2025-04-01 11:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:45:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-01 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:46:06 [end_date_ymd] => 2025-04-01 11:46:06 [RateCDR] => 1 ) [2025-04-01 11: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-01 08:46:06' and `end` < '2025-04-01 11: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-01 11:46:20] Production.INFO: count ==5110 [2025-04-01 11:46:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:46:06 - End Time 2025-04-01 11:46:06 [2025-04-01 11:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810629', 'tblTempUsageDetail_20' ) start [2025-04-01 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810629', 'tblTempUsageDetail_20' ) end [2025-04-01 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810629', 'tblTempVendorCDR_20' ) start [2025-04-01 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810629', 'tblTempVendorCDR_20' ) end [2025-04-01 11:46:22] Production.INFO: ProcessCDR(1,14810629,1,1,2) [2025-04-01 11:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810629', 'tblTempUsageDetail_20' ) start [2025-04-01 11:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810629', 'tblTempUsageDetail_20' ) end [2025-04-01 11:46:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:46:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:46:28] Production.INFO: ==7146== Releasing lock... [2025-04-01 11:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:46:28] Production.INFO: 66.25 MB #Memory Used# [2025-04-01 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:47:06 [end_date_ymd] => 2025-04-01 11:47:06 [RateCDR] => 1 ) [2025-04-01 11:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 08:47:06' and `end` < '2025-04-01 11:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 11:47:19] Production.INFO: count ==5131 [2025-04-01 11:47:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:47:06 - End Time 2025-04-01 11:47:06 [2025-04-01 11:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810634', 'tblTempUsageDetail_20' ) start [2025-04-01 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810634', 'tblTempUsageDetail_20' ) end [2025-04-01 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810634', 'tblTempVendorCDR_20' ) start [2025-04-01 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810634', 'tblTempVendorCDR_20' ) end [2025-04-01 11:47:22] Production.INFO: ProcessCDR(1,14810634,1,1,2) [2025-04-01 11:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810634', 'tblTempUsageDetail_20' ) start [2025-04-01 11:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810634', 'tblTempUsageDetail_20' ) end [2025-04-01 11:47:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:47:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:47:28] Production.INFO: ==7221== Releasing lock... [2025-04-01 11:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:47:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-01 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:48:06 [end_date_ymd] => 2025-04-01 11:48:06 [RateCDR] => 1 ) [2025-04-01 11:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 08:48:06' and `end` < '2025-04-01 11:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 11:48:20] Production.INFO: count ==5123 [2025-04-01 11:48:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:48:06 - End Time 2025-04-01 11:48:06 [2025-04-01 11:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810639', 'tblTempUsageDetail_20' ) start [2025-04-01 11:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810639', 'tblTempUsageDetail_20' ) end [2025-04-01 11:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810639', 'tblTempVendorCDR_20' ) start [2025-04-01 11:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810639', 'tblTempVendorCDR_20' ) end [2025-04-01 11:48:23] Production.INFO: ProcessCDR(1,14810639,1,1,2) [2025-04-01 11:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810639', 'tblTempUsageDetail_20' ) start [2025-04-01 11:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810639', 'tblTempUsageDetail_20' ) end [2025-04-01 11:48:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:48:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:48:28] Production.INFO: ==7295== Releasing lock... [2025-04-01 11:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:48:28] Production.INFO: 66.25 MB #Memory Used# [2025-04-01 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:49:05 [end_date_ymd] => 2025-04-01 11:49:05 [RateCDR] => 1 ) [2025-04-01 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-01 08:49:05' and `end` < '2025-04-01 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-01 11:49:19] Production.INFO: count ==5139 [2025-04-01 11:49:21] Production.ERROR: pbx CDR StartTime 2025-04-01 08:49:05 - End Time 2025-04-01 11:49:05 [2025-04-01 11:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810644', 'tblTempUsageDetail_20' ) start [2025-04-01 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810644', 'tblTempUsageDetail_20' ) end [2025-04-01 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810644', 'tblTempVendorCDR_20' ) start [2025-04-01 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810644', 'tblTempVendorCDR_20' ) end [2025-04-01 11:49:22] Production.INFO: ProcessCDR(1,14810644,1,1,2) [2025-04-01 11:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810644', 'tblTempUsageDetail_20' ) start [2025-04-01 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810644', 'tblTempUsageDetail_20' ) end [2025-04-01 11:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:49:26] Production.INFO: ==7366== Releasing lock... [2025-04-01 11:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:49:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-01 11:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:50:07 [end_date_ymd] => 2025-04-01 11:50:07 [RateCDR] => 1 ) [2025-04-01 11: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-01 08:50:07' and `end` < '2025-04-01 11: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-01 11:50:21] Production.INFO: count ==5119 [2025-04-01 11:50:23] Production.ERROR: pbx CDR StartTime 2025-04-01 08:50:07 - End Time 2025-04-01 11:50:07 [2025-04-01 11:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810650', 'tblTempUsageDetail_20' ) start [2025-04-01 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810650', 'tblTempUsageDetail_20' ) end [2025-04-01 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810650', 'tblTempVendorCDR_20' ) start [2025-04-01 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810650', 'tblTempVendorCDR_20' ) end [2025-04-01 11:50:23] Production.INFO: ProcessCDR(1,14810650,1,1,2) [2025-04-01 11:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810650', 'tblTempUsageDetail_20' ) start [2025-04-01 11:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810650', 'tblTempUsageDetail_20' ) end [2025-04-01 11:50:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:50:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:50:29] Production.INFO: ==7440== Releasing lock... [2025-04-01 11:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:50:29] Production.INFO: 66.25 MB #Memory Used# [2025-04-01 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:51:05 [end_date_ymd] => 2025-04-01 11:51:05 [RateCDR] => 1 ) [2025-04-01 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-01 08:51:05' and `end` < '2025-04-01 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-01 11:51:19] Production.INFO: count ==5152 [2025-04-01 11:51:21] Production.ERROR: pbx CDR StartTime 2025-04-01 08:51:05 - End Time 2025-04-01 11:51:05 [2025-04-01 11:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810655', 'tblTempUsageDetail_20' ) start [2025-04-01 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810655', 'tblTempUsageDetail_20' ) end [2025-04-01 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810655', 'tblTempVendorCDR_20' ) start [2025-04-01 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810655', 'tblTempVendorCDR_20' ) end [2025-04-01 11:51:21] Production.INFO: ProcessCDR(1,14810655,1,1,2) [2025-04-01 11:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810655', 'tblTempUsageDetail_20' ) start [2025-04-01 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810655', 'tblTempUsageDetail_20' ) end [2025-04-01 11:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:51:27] Production.INFO: ==7512== Releasing lock... [2025-04-01 11:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:51:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-01 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:52:06 [end_date_ymd] => 2025-04-01 11:52:06 [RateCDR] => 1 ) [2025-04-01 11:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 08:52:06' and `end` < '2025-04-01 11:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 11:52:20] Production.INFO: count ==5137 [2025-04-01 11:52:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:52:06 - End Time 2025-04-01 11:52:06 [2025-04-01 11:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810660', 'tblTempUsageDetail_20' ) start [2025-04-01 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810660', 'tblTempUsageDetail_20' ) end [2025-04-01 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810660', 'tblTempVendorCDR_20' ) start [2025-04-01 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810660', 'tblTempVendorCDR_20' ) end [2025-04-01 11:52:22] Production.INFO: ProcessCDR(1,14810660,1,1,2) [2025-04-01 11:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810660', 'tblTempUsageDetail_20' ) start [2025-04-01 11:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810660', 'tblTempUsageDetail_20' ) end [2025-04-01 11:52:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:52:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:52:28] Production.INFO: ==7590== Releasing lock... [2025-04-01 11:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:52:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-01 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:53:05 [end_date_ymd] => 2025-04-01 11:53:05 [RateCDR] => 1 ) [2025-04-01 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-01 08:53:05' and `end` < '2025-04-01 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-01 11:53:19] Production.INFO: count ==5114 [2025-04-01 11:53:21] Production.ERROR: pbx CDR StartTime 2025-04-01 08:53:05 - End Time 2025-04-01 11:53:05 [2025-04-01 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810665', 'tblTempUsageDetail_20' ) start [2025-04-01 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810665', 'tblTempUsageDetail_20' ) end [2025-04-01 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810665', 'tblTempVendorCDR_20' ) start [2025-04-01 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810665', 'tblTempVendorCDR_20' ) end [2025-04-01 11:53:21] Production.INFO: ProcessCDR(1,14810665,1,1,2) [2025-04-01 11:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810665', 'tblTempUsageDetail_20' ) start [2025-04-01 11:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810665', 'tblTempUsageDetail_20' ) end [2025-04-01 11:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:53:27] Production.INFO: ==7666== Releasing lock... [2025-04-01 11:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:53:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-01 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:54:06 [end_date_ymd] => 2025-04-01 11:54:06 [RateCDR] => 1 ) [2025-04-01 11:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 08:54:06' and `end` < '2025-04-01 11:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 11:54:20] Production.INFO: count ==5101 [2025-04-01 11:54:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:54:06 - End Time 2025-04-01 11:54:06 [2025-04-01 11:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810670', 'tblTempUsageDetail_20' ) start [2025-04-01 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810670', 'tblTempUsageDetail_20' ) end [2025-04-01 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810670', 'tblTempVendorCDR_20' ) start [2025-04-01 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810670', 'tblTempVendorCDR_20' ) end [2025-04-01 11:54:22] Production.INFO: ProcessCDR(1,14810670,1,1,2) [2025-04-01 11:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810670', 'tblTempUsageDetail_20' ) start [2025-04-01 11:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810670', 'tblTempUsageDetail_20' ) end [2025-04-01 11:54:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:54:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:54:28] Production.INFO: ==7741== Releasing lock... [2025-04-01 11:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:54:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-01 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:55:05 [end_date_ymd] => 2025-04-01 11:55:05 [RateCDR] => 1 ) [2025-04-01 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-01 08:55:05' and `end` < '2025-04-01 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-01 11:55:19] Production.INFO: count ==5115 [2025-04-01 11:55:21] Production.ERROR: pbx CDR StartTime 2025-04-01 08:55:05 - End Time 2025-04-01 11:55:05 [2025-04-01 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810675', 'tblTempUsageDetail_20' ) start [2025-04-01 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810675', 'tblTempUsageDetail_20' ) end [2025-04-01 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810675', 'tblTempVendorCDR_20' ) start [2025-04-01 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810675', 'tblTempVendorCDR_20' ) end [2025-04-01 11:55:22] Production.INFO: ProcessCDR(1,14810675,1,1,2) [2025-04-01 11:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810675', 'tblTempUsageDetail_20' ) start [2025-04-01 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810675', 'tblTempUsageDetail_20' ) end [2025-04-01 11:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:55:27] Production.INFO: ==7858== Releasing lock... [2025-04-01 11:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:55:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-01 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:56:06 [end_date_ymd] => 2025-04-01 11:56:06 [RateCDR] => 1 ) [2025-04-01 11:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 08:56:06' and `end` < '2025-04-01 11:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 11:56:19] Production.INFO: count ==5150 [2025-04-01 11:56:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:56:06 - End Time 2025-04-01 11:56:06 [2025-04-01 11:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810680', 'tblTempUsageDetail_20' ) start [2025-04-01 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810680', 'tblTempUsageDetail_20' ) end [2025-04-01 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810680', 'tblTempVendorCDR_20' ) start [2025-04-01 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810680', 'tblTempVendorCDR_20' ) end [2025-04-01 11:56:22] Production.INFO: ProcessCDR(1,14810680,1,1,2) [2025-04-01 11:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810680', 'tblTempUsageDetail_20' ) start [2025-04-01 11:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810680', 'tblTempUsageDetail_20' ) end [2025-04-01 11:56:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:56:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:56:28] Production.INFO: ==7935== Releasing lock... [2025-04-01 11:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:56:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-01 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:57:05 [end_date_ymd] => 2025-04-01 11:57:05 [RateCDR] => 1 ) [2025-04-01 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-01 08:57:05' and `end` < '2025-04-01 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-01 11:57:19] Production.INFO: count ==5146 [2025-04-01 11:57:21] Production.ERROR: pbx CDR StartTime 2025-04-01 08:57:05 - End Time 2025-04-01 11:57:05 [2025-04-01 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810685', 'tblTempUsageDetail_20' ) start [2025-04-01 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810685', 'tblTempUsageDetail_20' ) end [2025-04-01 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810685', 'tblTempVendorCDR_20' ) start [2025-04-01 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810685', 'tblTempVendorCDR_20' ) end [2025-04-01 11:57:21] Production.INFO: ProcessCDR(1,14810685,1,1,2) [2025-04-01 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810685', 'tblTempUsageDetail_20' ) start [2025-04-01 11:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810685', 'tblTempUsageDetail_20' ) end [2025-04-01 11:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:57:27] Production.INFO: ==8005== Releasing lock... [2025-04-01 11:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:57:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-01 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:58:05 [end_date_ymd] => 2025-04-01 11:58:05 [RateCDR] => 1 ) [2025-04-01 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 08:58:05' and `end` < '2025-04-01 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 11:58:19] Production.INFO: count ==5154 [2025-04-01 11:58:21] Production.ERROR: pbx CDR StartTime 2025-04-01 08:58:05 - End Time 2025-04-01 11:58:05 [2025-04-01 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810690', 'tblTempUsageDetail_20' ) start [2025-04-01 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810690', 'tblTempUsageDetail_20' ) end [2025-04-01 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810690', 'tblTempVendorCDR_20' ) start [2025-04-01 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810690', 'tblTempVendorCDR_20' ) end [2025-04-01 11:58:22] Production.INFO: ProcessCDR(1,14810690,1,1,2) [2025-04-01 11:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810690', 'tblTempUsageDetail_20' ) start [2025-04-01 11:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810690', 'tblTempUsageDetail_20' ) end [2025-04-01 11:58:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:58:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:58:28] Production.INFO: ==8085== Releasing lock... [2025-04-01 11:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:58:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-01 11:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 08:59:06 [end_date_ymd] => 2025-04-01 11:59:06 [RateCDR] => 1 ) [2025-04-01 11: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-01 08:59:06' and `end` < '2025-04-01 11: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-01 11:59:19] Production.INFO: count ==5157 [2025-04-01 11:59:22] Production.ERROR: pbx CDR StartTime 2025-04-01 08:59:06 - End Time 2025-04-01 11:59:06 [2025-04-01 11:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810695', 'tblTempUsageDetail_20' ) start [2025-04-01 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810695', 'tblTempUsageDetail_20' ) end [2025-04-01 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810695', 'tblTempVendorCDR_20' ) start [2025-04-01 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810695', 'tblTempVendorCDR_20' ) end [2025-04-01 11:59:22] Production.INFO: ProcessCDR(1,14810695,1,1,2) [2025-04-01 11:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 11:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 11:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810695', 'tblTempUsageDetail_20' ) start [2025-04-01 11:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810695', 'tblTempUsageDetail_20' ) end [2025-04-01 11:59:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 11:59:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 11:59:28] Production.INFO: ==8170== Releasing lock... [2025-04-01 11:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 11:59:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-01 12:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:00:07 [end_date_ymd] => 2025-04-01 12:00:07 [RateCDR] => 1 ) [2025-04-01 12:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 09:00:07' and `end` < '2025-04-01 12:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 12:00:21] Production.INFO: count ==5177 [2025-04-01 12:00:23] Production.ERROR: pbx CDR StartTime 2025-04-01 09:00:07 - End Time 2025-04-01 12:00:07 [2025-04-01 12:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810701', 'tblTempUsageDetail_20' ) start [2025-04-01 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810701', 'tblTempUsageDetail_20' ) end [2025-04-01 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810701', 'tblTempVendorCDR_20' ) start [2025-04-01 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810701', 'tblTempVendorCDR_20' ) end [2025-04-01 12:00:23] Production.INFO: ProcessCDR(1,14810701,1,1,2) [2025-04-01 12:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810701', 'tblTempUsageDetail_20' ) start [2025-04-01 12:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810701', 'tblTempUsageDetail_20' ) end [2025-04-01 12:00:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:00:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:00:29] Production.INFO: ==8245== Releasing lock... [2025-04-01 12:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:00:29] Production.INFO: 66.75 MB #Memory Used# [2025-04-01 12:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:01:06 [end_date_ymd] => 2025-04-01 12:01:06 [RateCDR] => 1 ) [2025-04-01 12: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-01 09:01:06' and `end` < '2025-04-01 12: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-01 12:01:19] Production.INFO: count ==5223 [2025-04-01 12:01:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:01:06 - End Time 2025-04-01 12:01:06 [2025-04-01 12:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810706', 'tblTempUsageDetail_20' ) start [2025-04-01 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810706', 'tblTempUsageDetail_20' ) end [2025-04-01 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810706', 'tblTempVendorCDR_20' ) start [2025-04-01 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810706', 'tblTempVendorCDR_20' ) end [2025-04-01 12:01:22] Production.INFO: ProcessCDR(1,14810706,1,1,2) [2025-04-01 12:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810706', 'tblTempUsageDetail_20' ) start [2025-04-01 12:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810706', 'tblTempUsageDetail_20' ) end [2025-04-01 12:01:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:01:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:01:28] Production.INFO: ==8332== Releasing lock... [2025-04-01 12:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:01:28] Production.INFO: 67 MB #Memory Used# [2025-04-01 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:02:06 [end_date_ymd] => 2025-04-01 12:02:06 [RateCDR] => 1 ) [2025-04-01 12:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 09:02:06' and `end` < '2025-04-01 12:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 12:02:20] Production.INFO: count ==5221 [2025-04-01 12:02:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:02:06 - End Time 2025-04-01 12:02:06 [2025-04-01 12:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810711', 'tblTempUsageDetail_20' ) start [2025-04-01 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810711', 'tblTempUsageDetail_20' ) end [2025-04-01 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810711', 'tblTempVendorCDR_20' ) start [2025-04-01 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810711', 'tblTempVendorCDR_20' ) end [2025-04-01 12:02:22] Production.INFO: ProcessCDR(1,14810711,1,1,2) [2025-04-01 12:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810711', 'tblTempUsageDetail_20' ) start [2025-04-01 12:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810711', 'tblTempUsageDetail_20' ) end [2025-04-01 12:02:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:02:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:02:29] Production.INFO: ==8412== Releasing lock... [2025-04-01 12:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:02:29] Production.INFO: 67 MB #Memory Used# [2025-04-01 12:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:03:06 [end_date_ymd] => 2025-04-01 12:03:06 [RateCDR] => 1 ) [2025-04-01 12:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 09:03:06' and `end` < '2025-04-01 12:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 12:03:20] Production.INFO: count ==5227 [2025-04-01 12:03:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:03:06 - End Time 2025-04-01 12:03:06 [2025-04-01 12:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810716', 'tblTempUsageDetail_20' ) start [2025-04-01 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810716', 'tblTempUsageDetail_20' ) end [2025-04-01 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810716', 'tblTempVendorCDR_20' ) start [2025-04-01 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810716', 'tblTempVendorCDR_20' ) end [2025-04-01 12:03:22] Production.INFO: ProcessCDR(1,14810716,1,1,2) [2025-04-01 12:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810716', 'tblTempUsageDetail_20' ) start [2025-04-01 12:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810716', 'tblTempUsageDetail_20' ) end [2025-04-01 12:03:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:03:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:03:29] Production.INFO: ==8489== Releasing lock... [2025-04-01 12:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:03:29] Production.INFO: 67 MB #Memory Used# [2025-04-01 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:04:06 [end_date_ymd] => 2025-04-01 12:04:06 [RateCDR] => 1 ) [2025-04-01 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-01 09:04:06' and `end` < '2025-04-01 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-01 12:04:19] Production.INFO: count ==5220 [2025-04-01 12:04:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:04:06 - End Time 2025-04-01 12:04:06 [2025-04-01 12:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810721', 'tblTempUsageDetail_20' ) start [2025-04-01 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810721', 'tblTempUsageDetail_20' ) end [2025-04-01 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810721', 'tblTempVendorCDR_20' ) start [2025-04-01 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810721', 'tblTempVendorCDR_20' ) end [2025-04-01 12:04:22] Production.INFO: ProcessCDR(1,14810721,1,1,2) [2025-04-01 12:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810721', 'tblTempUsageDetail_20' ) start [2025-04-01 12:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810721', 'tblTempUsageDetail_20' ) end [2025-04-01 12:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:04:28] Production.INFO: ==8570== Releasing lock... [2025-04-01 12:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:04:28] Production.INFO: 67 MB #Memory Used# [2025-04-01 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:05:05 [end_date_ymd] => 2025-04-01 12:05:05 [RateCDR] => 1 ) [2025-04-01 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-01 09:05:05' and `end` < '2025-04-01 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-01 12:05:19] Production.INFO: count ==5228 [2025-04-01 12:05:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:05:05 - End Time 2025-04-01 12:05:05 [2025-04-01 12:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810726', 'tblTempUsageDetail_20' ) start [2025-04-01 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810726', 'tblTempUsageDetail_20' ) end [2025-04-01 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810726', 'tblTempVendorCDR_20' ) start [2025-04-01 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810726', 'tblTempVendorCDR_20' ) end [2025-04-01 12:05:22] Production.INFO: ProcessCDR(1,14810726,1,1,2) [2025-04-01 12:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810726', 'tblTempUsageDetail_20' ) start [2025-04-01 12:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810726', 'tblTempUsageDetail_20' ) end [2025-04-01 12:05:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:05:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:05:28] Production.INFO: ==8649== Releasing lock... [2025-04-01 12:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:05:28] Production.INFO: 67 MB #Memory Used# [2025-04-01 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:06:06 [end_date_ymd] => 2025-04-01 12:06:06 [RateCDR] => 1 ) [2025-04-01 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-01 09:06:06' and `end` < '2025-04-01 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-01 12:06:19] Production.INFO: count ==5230 [2025-04-01 12:06:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:06:06 - End Time 2025-04-01 12:06:06 [2025-04-01 12:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810731', 'tblTempUsageDetail_20' ) start [2025-04-01 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810731', 'tblTempUsageDetail_20' ) end [2025-04-01 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810731', 'tblTempVendorCDR_20' ) start [2025-04-01 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810731', 'tblTempVendorCDR_20' ) end [2025-04-01 12:06:22] Production.INFO: ProcessCDR(1,14810731,1,1,2) [2025-04-01 12:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810731', 'tblTempUsageDetail_20' ) start [2025-04-01 12:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810731', 'tblTempUsageDetail_20' ) end [2025-04-01 12:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:06:28] Production.INFO: ==8734== Releasing lock... [2025-04-01 12:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:06:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:07:06 [end_date_ymd] => 2025-04-01 12:07:06 [RateCDR] => 1 ) [2025-04-01 12:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 09:07:06' and `end` < '2025-04-01 12:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 12:07:20] Production.INFO: count ==5232 [2025-04-01 12:07:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:07:06 - End Time 2025-04-01 12:07:06 [2025-04-01 12:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810736', 'tblTempUsageDetail_20' ) start [2025-04-01 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810736', 'tblTempUsageDetail_20' ) end [2025-04-01 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810736', 'tblTempVendorCDR_20' ) start [2025-04-01 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810736', 'tblTempVendorCDR_20' ) end [2025-04-01 12:07:22] Production.INFO: ProcessCDR(1,14810736,1,1,2) [2025-04-01 12:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810736', 'tblTempUsageDetail_20' ) start [2025-04-01 12:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810736', 'tblTempUsageDetail_20' ) end [2025-04-01 12:07:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:07:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:07:29] Production.INFO: ==8819== Releasing lock... [2025-04-01 12:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:07:29] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:08:06 [end_date_ymd] => 2025-04-01 12:08:06 [RateCDR] => 1 ) [2025-04-01 12:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 09:08:06' and `end` < '2025-04-01 12:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 12:08:20] Production.INFO: count ==5230 [2025-04-01 12:08:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:08:06 - End Time 2025-04-01 12:08:06 [2025-04-01 12:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810741', 'tblTempUsageDetail_20' ) start [2025-04-01 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810741', 'tblTempUsageDetail_20' ) end [2025-04-01 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810741', 'tblTempVendorCDR_20' ) start [2025-04-01 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810741', 'tblTempVendorCDR_20' ) end [2025-04-01 12:08:22] Production.INFO: ProcessCDR(1,14810741,1,1,2) [2025-04-01 12:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810741', 'tblTempUsageDetail_20' ) start [2025-04-01 12:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810741', 'tblTempUsageDetail_20' ) end [2025-04-01 12:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:08:28] Production.INFO: ==8900== Releasing lock... [2025-04-01 12:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:08:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 12:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:09:06 [end_date_ymd] => 2025-04-01 12:09:06 [RateCDR] => 1 ) [2025-04-01 12:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 09:09:06' and `end` < '2025-04-01 12:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 12:09:20] Production.INFO: count ==5271 [2025-04-01 12:09:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:09:06 - End Time 2025-04-01 12:09:06 [2025-04-01 12:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810746', 'tblTempUsageDetail_20' ) start [2025-04-01 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810746', 'tblTempUsageDetail_20' ) end [2025-04-01 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810746', 'tblTempVendorCDR_20' ) start [2025-04-01 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810746', 'tblTempVendorCDR_20' ) end [2025-04-01 12:09:22] Production.INFO: ProcessCDR(1,14810746,1,1,2) [2025-04-01 12:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810746', 'tblTempUsageDetail_20' ) start [2025-04-01 12:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810746', 'tblTempUsageDetail_20' ) end [2025-04-01 12:09:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:09:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:09:29] Production.INFO: ==8989== Releasing lock... [2025-04-01 12:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:09:29] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:10:06 [end_date_ymd] => 2025-04-01 12:10:06 [RateCDR] => 1 ) [2025-04-01 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-01 09:10:06' and `end` < '2025-04-01 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-01 12:10:20] Production.INFO: count ==5261 [2025-04-01 12:10:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:10:06 - End Time 2025-04-01 12:10:06 [2025-04-01 12:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810751', 'tblTempUsageDetail_20' ) start [2025-04-01 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810751', 'tblTempUsageDetail_20' ) end [2025-04-01 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810751', 'tblTempVendorCDR_20' ) start [2025-04-01 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810751', 'tblTempVendorCDR_20' ) end [2025-04-01 12:10:22] Production.INFO: ProcessCDR(1,14810751,1,1,2) [2025-04-01 12:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810751', 'tblTempUsageDetail_20' ) start [2025-04-01 12:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810751', 'tblTempUsageDetail_20' ) end [2025-04-01 12:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:10:28] Production.INFO: ==9077== Releasing lock... [2025-04-01 12:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:10:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:11:05 [end_date_ymd] => 2025-04-01 12:11:05 [RateCDR] => 1 ) [2025-04-01 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 09:11:05' and `end` < '2025-04-01 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 12:11:19] Production.INFO: count ==5311 [2025-04-01 12:11:21] Production.ERROR: pbx CDR StartTime 2025-04-01 09:11:05 - End Time 2025-04-01 12:11:05 [2025-04-01 12:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810757', 'tblTempUsageDetail_20' ) start [2025-04-01 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810757', 'tblTempUsageDetail_20' ) end [2025-04-01 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810757', 'tblTempVendorCDR_20' ) start [2025-04-01 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810757', 'tblTempVendorCDR_20' ) end [2025-04-01 12:11:21] Production.INFO: ProcessCDR(1,14810757,1,1,2) [2025-04-01 12:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810757', 'tblTempUsageDetail_20' ) start [2025-04-01 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810757', 'tblTempUsageDetail_20' ) end [2025-04-01 12:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:11:27] Production.INFO: ==9199== Releasing lock... [2025-04-01 12:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:11:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:12:06 [end_date_ymd] => 2025-04-01 12:12:06 [RateCDR] => 1 ) [2025-04-01 12:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 09:12:06' and `end` < '2025-04-01 12:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 12:12:19] Production.INFO: count ==5306 [2025-04-01 12:12:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:12:06 - End Time 2025-04-01 12:12:06 [2025-04-01 12:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810762', 'tblTempUsageDetail_20' ) start [2025-04-01 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810762', 'tblTempUsageDetail_20' ) end [2025-04-01 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810762', 'tblTempVendorCDR_20' ) start [2025-04-01 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810762', 'tblTempVendorCDR_20' ) end [2025-04-01 12:12:22] Production.INFO: ProcessCDR(1,14810762,1,1,2) [2025-04-01 12:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810762', 'tblTempUsageDetail_20' ) start [2025-04-01 12:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810762', 'tblTempUsageDetail_20' ) end [2025-04-01 12:12:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:12:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:12:28] Production.INFO: ==9282== Releasing lock... [2025-04-01 12:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:12:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:13:05 [end_date_ymd] => 2025-04-01 12:13:05 [RateCDR] => 1 ) [2025-04-01 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-01 09:13:05' and `end` < '2025-04-01 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-01 12:13:19] Production.INFO: count ==5270 [2025-04-01 12:13:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:13:05 - End Time 2025-04-01 12:13:05 [2025-04-01 12:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810767', 'tblTempUsageDetail_20' ) start [2025-04-01 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810767', 'tblTempUsageDetail_20' ) end [2025-04-01 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810767', 'tblTempVendorCDR_20' ) start [2025-04-01 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810767', 'tblTempVendorCDR_20' ) end [2025-04-01 12:13:22] Production.INFO: ProcessCDR(1,14810767,1,1,2) [2025-04-01 12:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810767', 'tblTempUsageDetail_20' ) start [2025-04-01 12:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810767', 'tblTempUsageDetail_20' ) end [2025-04-01 12:13:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:13:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:13:28] Production.INFO: ==9369== Releasing lock... [2025-04-01 12:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:13:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:14:06 [end_date_ymd] => 2025-04-01 12:14:06 [RateCDR] => 1 ) [2025-04-01 12: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-01 09:14:06' and `end` < '2025-04-01 12: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-01 12:14:20] Production.INFO: count ==5264 [2025-04-01 12:14:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:14:06 - End Time 2025-04-01 12:14:06 [2025-04-01 12:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810772', 'tblTempUsageDetail_20' ) start [2025-04-01 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810772', 'tblTempUsageDetail_20' ) end [2025-04-01 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810772', 'tblTempVendorCDR_20' ) start [2025-04-01 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810772', 'tblTempVendorCDR_20' ) end [2025-04-01 12:14:23] Production.INFO: ProcessCDR(1,14810772,1,1,2) [2025-04-01 12:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810772', 'tblTempUsageDetail_20' ) start [2025-04-01 12:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810772', 'tblTempUsageDetail_20' ) end [2025-04-01 12:14:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:14:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:14:28] Production.INFO: ==9449== Releasing lock... [2025-04-01 12:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:14:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:15:06 [end_date_ymd] => 2025-04-01 12:15:06 [RateCDR] => 1 ) [2025-04-01 12: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-01 09:15:06' and `end` < '2025-04-01 12: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-01 12:15:19] Production.INFO: count ==5260 [2025-04-01 12:15:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:15:06 - End Time 2025-04-01 12:15:06 [2025-04-01 12:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810777', 'tblTempUsageDetail_20' ) start [2025-04-01 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810777', 'tblTempUsageDetail_20' ) end [2025-04-01 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810777', 'tblTempVendorCDR_20' ) start [2025-04-01 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810777', 'tblTempVendorCDR_20' ) end [2025-04-01 12:15:22] Production.INFO: ProcessCDR(1,14810777,1,1,2) [2025-04-01 12:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810777', 'tblTempUsageDetail_20' ) start [2025-04-01 12:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810777', 'tblTempUsageDetail_20' ) end [2025-04-01 12:15:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:15:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:15:28] Production.INFO: ==9532== Releasing lock... [2025-04-01 12:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:15:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:16:06 [end_date_ymd] => 2025-04-01 12:16:06 [RateCDR] => 1 ) [2025-04-01 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-01 09:16:06' and `end` < '2025-04-01 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-01 12:16:20] Production.INFO: count ==5247 [2025-04-01 12:16:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:16:06 - End Time 2025-04-01 12:16:06 [2025-04-01 12:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810782', 'tblTempUsageDetail_20' ) start [2025-04-01 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810782', 'tblTempUsageDetail_20' ) end [2025-04-01 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810782', 'tblTempVendorCDR_20' ) start [2025-04-01 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810782', 'tblTempVendorCDR_20' ) end [2025-04-01 12:16:23] Production.INFO: ProcessCDR(1,14810782,1,1,2) [2025-04-01 12:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810782', 'tblTempUsageDetail_20' ) start [2025-04-01 12:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810782', 'tblTempUsageDetail_20' ) end [2025-04-01 12:16:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:16:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:16:28] Production.INFO: ==9621== Releasing lock... [2025-04-01 12:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:16:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:17:05 [end_date_ymd] => 2025-04-01 12:17:05 [RateCDR] => 1 ) [2025-04-01 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-01 09:17:05' and `end` < '2025-04-01 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-01 12:17:19] Production.INFO: count ==5238 [2025-04-01 12:17:21] Production.ERROR: pbx CDR StartTime 2025-04-01 09:17:05 - End Time 2025-04-01 12:17:05 [2025-04-01 12:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810787', 'tblTempUsageDetail_20' ) start [2025-04-01 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810787', 'tblTempUsageDetail_20' ) end [2025-04-01 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810787', 'tblTempVendorCDR_20' ) start [2025-04-01 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810787', 'tblTempVendorCDR_20' ) end [2025-04-01 12:17:22] Production.INFO: ProcessCDR(1,14810787,1,1,2) [2025-04-01 12:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810787', 'tblTempUsageDetail_20' ) start [2025-04-01 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810787', 'tblTempUsageDetail_20' ) end [2025-04-01 12:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:17:27] Production.INFO: ==9706== Releasing lock... [2025-04-01 12:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:17:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:18:06 [end_date_ymd] => 2025-04-01 12:18:06 [RateCDR] => 1 ) [2025-04-01 12: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-01 09:18:06' and `end` < '2025-04-01 12: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-01 12:18:20] Production.INFO: count ==5236 [2025-04-01 12:18:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:18:06 - End Time 2025-04-01 12:18:06 [2025-04-01 12:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810792', 'tblTempUsageDetail_20' ) start [2025-04-01 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810792', 'tblTempUsageDetail_20' ) end [2025-04-01 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810792', 'tblTempVendorCDR_20' ) start [2025-04-01 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810792', 'tblTempVendorCDR_20' ) end [2025-04-01 12:18:22] Production.INFO: ProcessCDR(1,14810792,1,1,2) [2025-04-01 12:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810792', 'tblTempUsageDetail_20' ) start [2025-04-01 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810792', 'tblTempUsageDetail_20' ) end [2025-04-01 12:18:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:18:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:18:28] Production.INFO: ==9788== Releasing lock... [2025-04-01 12:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:18:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:19:05 [end_date_ymd] => 2025-04-01 12:19:05 [RateCDR] => 1 ) [2025-04-01 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-01 09:19:05' and `end` < '2025-04-01 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-01 12:19:19] Production.INFO: count ==5256 [2025-04-01 12:19:21] Production.ERROR: pbx CDR StartTime 2025-04-01 09:19:05 - End Time 2025-04-01 12:19:05 [2025-04-01 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810797', 'tblTempUsageDetail_20' ) start [2025-04-01 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810797', 'tblTempUsageDetail_20' ) end [2025-04-01 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810797', 'tblTempVendorCDR_20' ) start [2025-04-01 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810797', 'tblTempVendorCDR_20' ) end [2025-04-01 12:19:21] Production.INFO: ProcessCDR(1,14810797,1,1,2) [2025-04-01 12:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810797', 'tblTempUsageDetail_20' ) start [2025-04-01 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810797', 'tblTempUsageDetail_20' ) end [2025-04-01 12:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:19:27] Production.INFO: ==9869== Releasing lock... [2025-04-01 12:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:19:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 12:20:08] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:20:08 [end_date_ymd] => 2025-04-01 12:20:08 [RateCDR] => 1 ) [2025-04-01 12:20:08] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 09:20:08' and `end` < '2025-04-01 12:20:08' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 12:20:21] Production.INFO: count ==5252 [2025-04-01 12:20:24] Production.ERROR: pbx CDR StartTime 2025-04-01 09:20:08 - End Time 2025-04-01 12:20:08 [2025-04-01 12:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810803', 'tblTempUsageDetail_20' ) start [2025-04-01 12:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810803', 'tblTempUsageDetail_20' ) end [2025-04-01 12:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810803', 'tblTempVendorCDR_20' ) start [2025-04-01 12:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810803', 'tblTempVendorCDR_20' ) end [2025-04-01 12:20:24] Production.INFO: ProcessCDR(1,14810803,1,1,2) [2025-04-01 12:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810803', 'tblTempUsageDetail_20' ) start [2025-04-01 12:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810803', 'tblTempUsageDetail_20' ) end [2025-04-01 12:20:30] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:20:30] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:20:30] Production.INFO: ==9954== Releasing lock... [2025-04-01 12:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:20:30] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:21:05 [end_date_ymd] => 2025-04-01 12:21:05 [RateCDR] => 1 ) [2025-04-01 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-01 09:21:05' and `end` < '2025-04-01 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-01 12:21:19] Production.INFO: count ==5291 [2025-04-01 12:21:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:21:05 - End Time 2025-04-01 12:21:05 [2025-04-01 12:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810808', 'tblTempUsageDetail_20' ) start [2025-04-01 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810808', 'tblTempUsageDetail_20' ) end [2025-04-01 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810808', 'tblTempVendorCDR_20' ) start [2025-04-01 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810808', 'tblTempVendorCDR_20' ) end [2025-04-01 12:21:22] Production.INFO: ProcessCDR(1,14810808,1,1,2) [2025-04-01 12:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810808', 'tblTempUsageDetail_20' ) start [2025-04-01 12:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810808', 'tblTempUsageDetail_20' ) end [2025-04-01 12:21:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:21:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:21:28] Production.INFO: ==10040== Releasing lock... [2025-04-01 12:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:21:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:22:06 [end_date_ymd] => 2025-04-01 12:22:06 [RateCDR] => 1 ) [2025-04-01 12:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 09:22:06' and `end` < '2025-04-01 12:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 12:22:20] Production.INFO: count ==5270 [2025-04-01 12:22:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:22:06 - End Time 2025-04-01 12:22:06 [2025-04-01 12:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810813', 'tblTempUsageDetail_20' ) start [2025-04-01 12:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810813', 'tblTempUsageDetail_20' ) end [2025-04-01 12:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810813', 'tblTempVendorCDR_20' ) start [2025-04-01 12:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810813', 'tblTempVendorCDR_20' ) end [2025-04-01 12:22:23] Production.INFO: ProcessCDR(1,14810813,1,1,2) [2025-04-01 12:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810813', 'tblTempUsageDetail_20' ) start [2025-04-01 12:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810813', 'tblTempUsageDetail_20' ) end [2025-04-01 12:22:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:22:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:22:29] Production.INFO: ==10122== Releasing lock... [2025-04-01 12:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:22:29] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 12:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:23:06 [end_date_ymd] => 2025-04-01 12:23:06 [RateCDR] => 1 ) [2025-04-01 12: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-01 09:23:06' and `end` < '2025-04-01 12: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-01 12:23:19] Production.INFO: count ==5262 [2025-04-01 12:23:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:23:06 - End Time 2025-04-01 12:23:06 [2025-04-01 12:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810818', 'tblTempUsageDetail_20' ) start [2025-04-01 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810818', 'tblTempUsageDetail_20' ) end [2025-04-01 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810818', 'tblTempVendorCDR_20' ) start [2025-04-01 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810818', 'tblTempVendorCDR_20' ) end [2025-04-01 12:23:22] Production.INFO: ProcessCDR(1,14810818,1,1,2) [2025-04-01 12:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810818', 'tblTempUsageDetail_20' ) start [2025-04-01 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810818', 'tblTempUsageDetail_20' ) end [2025-04-01 12:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:23:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:23:28] Production.INFO: ==10211== Releasing lock... [2025-04-01 12:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:23:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:24:05 [end_date_ymd] => 2025-04-01 12:24:05 [RateCDR] => 1 ) [2025-04-01 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 09:24:05' and `end` < '2025-04-01 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 12:24:19] Production.INFO: count ==5266 [2025-04-01 12:24:21] Production.ERROR: pbx CDR StartTime 2025-04-01 09:24:05 - End Time 2025-04-01 12:24:05 [2025-04-01 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810823', 'tblTempUsageDetail_20' ) start [2025-04-01 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810823', 'tblTempUsageDetail_20' ) end [2025-04-01 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810823', 'tblTempVendorCDR_20' ) start [2025-04-01 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810823', 'tblTempVendorCDR_20' ) end [2025-04-01 12:24:21] Production.INFO: ProcessCDR(1,14810823,1,1,2) [2025-04-01 12:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810823', 'tblTempUsageDetail_20' ) start [2025-04-01 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810823', 'tblTempUsageDetail_20' ) end [2025-04-01 12:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:24:26] Production.INFO: ==10294== Releasing lock... [2025-04-01 12:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:24:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:25:06 [end_date_ymd] => 2025-04-01 12:25:06 [RateCDR] => 1 ) [2025-04-01 12: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-01 09:25:06' and `end` < '2025-04-01 12: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-01 12:25:20] Production.INFO: count ==5260 [2025-04-01 12:25:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:25:06 - End Time 2025-04-01 12:25:06 [2025-04-01 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810828', 'tblTempUsageDetail_20' ) start [2025-04-01 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810828', 'tblTempUsageDetail_20' ) end [2025-04-01 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810828', 'tblTempVendorCDR_20' ) start [2025-04-01 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810828', 'tblTempVendorCDR_20' ) end [2025-04-01 12:25:22] Production.INFO: ProcessCDR(1,14810828,1,1,2) [2025-04-01 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810828', 'tblTempUsageDetail_20' ) start [2025-04-01 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810828', 'tblTempUsageDetail_20' ) end [2025-04-01 12:25:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:25:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:25:28] Production.INFO: ==10379== Releasing lock... [2025-04-01 12:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:25:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:26:05 [end_date_ymd] => 2025-04-01 12:26:05 [RateCDR] => 1 ) [2025-04-01 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-01 09:26:05' and `end` < '2025-04-01 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-01 12:26:19] Production.INFO: count ==5261 [2025-04-01 12:26:21] Production.ERROR: pbx CDR StartTime 2025-04-01 09:26:05 - End Time 2025-04-01 12:26:05 [2025-04-01 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810833', 'tblTempUsageDetail_20' ) start [2025-04-01 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810833', 'tblTempUsageDetail_20' ) end [2025-04-01 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810833', 'tblTempVendorCDR_20' ) start [2025-04-01 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810833', 'tblTempVendorCDR_20' ) end [2025-04-01 12:26:22] Production.INFO: ProcessCDR(1,14810833,1,1,2) [2025-04-01 12:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810833', 'tblTempUsageDetail_20' ) start [2025-04-01 12:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810833', 'tblTempUsageDetail_20' ) end [2025-04-01 12:26:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:26:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:26:28] Production.INFO: ==10498== Releasing lock... [2025-04-01 12:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:26:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:27:05 [end_date_ymd] => 2025-04-01 12:27:05 [RateCDR] => 1 ) [2025-04-01 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-01 09:27:05' and `end` < '2025-04-01 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-01 12:27:19] Production.INFO: count ==5267 [2025-04-01 12:27:21] Production.ERROR: pbx CDR StartTime 2025-04-01 09:27:05 - End Time 2025-04-01 12:27:05 [2025-04-01 12:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810838', 'tblTempUsageDetail_20' ) start [2025-04-01 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810838', 'tblTempUsageDetail_20' ) end [2025-04-01 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810838', 'tblTempVendorCDR_20' ) start [2025-04-01 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810838', 'tblTempVendorCDR_20' ) end [2025-04-01 12:27:22] Production.INFO: ProcessCDR(1,14810838,1,1,2) [2025-04-01 12:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810838', 'tblTempUsageDetail_20' ) start [2025-04-01 12:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810838', 'tblTempUsageDetail_20' ) end [2025-04-01 12:27:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:27:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:27:28] Production.INFO: ==10582== Releasing lock... [2025-04-01 12:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:27:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:28:06 [end_date_ymd] => 2025-04-01 12:28:06 [RateCDR] => 1 ) [2025-04-01 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-01 09:28:06' and `end` < '2025-04-01 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-01 12:28:20] Production.INFO: count ==5280 [2025-04-01 12:28:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:28:06 - End Time 2025-04-01 12:28:06 [2025-04-01 12:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810843', 'tblTempUsageDetail_20' ) start [2025-04-01 12:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810843', 'tblTempUsageDetail_20' ) end [2025-04-01 12:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810843', 'tblTempVendorCDR_20' ) start [2025-04-01 12:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810843', 'tblTempVendorCDR_20' ) end [2025-04-01 12:28:23] Production.INFO: ProcessCDR(1,14810843,1,1,2) [2025-04-01 12:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810843', 'tblTempUsageDetail_20' ) start [2025-04-01 12:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810843', 'tblTempUsageDetail_20' ) end [2025-04-01 12:28:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:28:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:28:29] Production.INFO: ==10664== Releasing lock... [2025-04-01 12:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:28:29] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:29:06 [end_date_ymd] => 2025-04-01 12:29:06 [RateCDR] => 1 ) [2025-04-01 12: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-01 09:29:06' and `end` < '2025-04-01 12: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-01 12:29:20] Production.INFO: count ==5289 [2025-04-01 12:29:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:29:06 - End Time 2025-04-01 12:29:06 [2025-04-01 12:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810848', 'tblTempUsageDetail_20' ) start [2025-04-01 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810848', 'tblTempUsageDetail_20' ) end [2025-04-01 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810848', 'tblTempVendorCDR_20' ) start [2025-04-01 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810848', 'tblTempVendorCDR_20' ) end [2025-04-01 12:29:22] Production.INFO: ProcessCDR(1,14810848,1,1,2) [2025-04-01 12:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810848', 'tblTempUsageDetail_20' ) start [2025-04-01 12:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810848', 'tblTempUsageDetail_20' ) end [2025-04-01 12:29:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:29:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:29:28] Production.INFO: ==10741== Releasing lock... [2025-04-01 12:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:29:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 12:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:30:07 [end_date_ymd] => 2025-04-01 12:30:07 [RateCDR] => 1 ) [2025-04-01 12: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-01 09:30:07' and `end` < '2025-04-01 12: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-01 12:30:20] Production.INFO: count ==5305 [2025-04-01 12:30:23] Production.ERROR: pbx CDR StartTime 2025-04-01 09:30:07 - End Time 2025-04-01 12:30:07 [2025-04-01 12:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810854', 'tblTempUsageDetail_20' ) start [2025-04-01 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810854', 'tblTempUsageDetail_20' ) end [2025-04-01 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810854', 'tblTempVendorCDR_20' ) start [2025-04-01 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810854', 'tblTempVendorCDR_20' ) end [2025-04-01 12:30:23] Production.INFO: ProcessCDR(1,14810854,1,1,2) [2025-04-01 12:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810854', 'tblTempUsageDetail_20' ) start [2025-04-01 12:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810854', 'tblTempUsageDetail_20' ) end [2025-04-01 12:30:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:30:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:30:29] Production.INFO: ==10830== Releasing lock... [2025-04-01 12:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:30:29] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 12:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:31:06 [end_date_ymd] => 2025-04-01 12:31:06 [RateCDR] => 1 ) [2025-04-01 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-01 09:31:06' and `end` < '2025-04-01 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-01 12:31:20] Production.INFO: count ==5329 [2025-04-01 12:31:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:31:06 - End Time 2025-04-01 12:31:06 [2025-04-01 12:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810859', 'tblTempUsageDetail_20' ) start [2025-04-01 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810859', 'tblTempUsageDetail_20' ) end [2025-04-01 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810859', 'tblTempVendorCDR_20' ) start [2025-04-01 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810859', 'tblTempVendorCDR_20' ) end [2025-04-01 12:31:22] Production.INFO: ProcessCDR(1,14810859,1,1,2) [2025-04-01 12:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810859', 'tblTempUsageDetail_20' ) start [2025-04-01 12:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810859', 'tblTempUsageDetail_20' ) end [2025-04-01 12:31:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:31:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:31:28] Production.INFO: ==10920== Releasing lock... [2025-04-01 12:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:31:28] Production.INFO: 68 MB #Memory Used# [2025-04-01 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:32:05 [end_date_ymd] => 2025-04-01 12:32:05 [RateCDR] => 1 ) [2025-04-01 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-01 09:32:05' and `end` < '2025-04-01 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-01 12:32:19] Production.INFO: count ==5319 [2025-04-01 12:32:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:32:05 - End Time 2025-04-01 12:32:05 [2025-04-01 12:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810864', 'tblTempUsageDetail_20' ) start [2025-04-01 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810864', 'tblTempUsageDetail_20' ) end [2025-04-01 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810864', 'tblTempVendorCDR_20' ) start [2025-04-01 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810864', 'tblTempVendorCDR_20' ) end [2025-04-01 12:32:22] Production.INFO: ProcessCDR(1,14810864,1,1,2) [2025-04-01 12:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810864', 'tblTempUsageDetail_20' ) start [2025-04-01 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810864', 'tblTempUsageDetail_20' ) end [2025-04-01 12:32:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:32:28] Production.INFO: ==11006== Releasing lock... [2025-04-01 12:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:32:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 12:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:33:06 [end_date_ymd] => 2025-04-01 12:33:06 [RateCDR] => 1 ) [2025-04-01 12:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 09:33:06' and `end` < '2025-04-01 12:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 12:33:20] Production.INFO: count ==5331 [2025-04-01 12:33:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:33:06 - End Time 2025-04-01 12:33:06 [2025-04-01 12:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810869', 'tblTempUsageDetail_20' ) start [2025-04-01 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810869', 'tblTempUsageDetail_20' ) end [2025-04-01 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810869', 'tblTempVendorCDR_20' ) start [2025-04-01 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810869', 'tblTempVendorCDR_20' ) end [2025-04-01 12:33:22] Production.INFO: ProcessCDR(1,14810869,1,1,2) [2025-04-01 12:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810869', 'tblTempUsageDetail_20' ) start [2025-04-01 12:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810869', 'tblTempUsageDetail_20' ) end [2025-04-01 12:33:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:33:28] Production.INFO: ==11088== Releasing lock... [2025-04-01 12:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:33:28] Production.INFO: 68 MB #Memory Used# [2025-04-01 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:34:06 [end_date_ymd] => 2025-04-01 12:34:06 [RateCDR] => 1 ) [2025-04-01 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-01 09:34:06' and `end` < '2025-04-01 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-01 12:34:19] Production.INFO: count ==5330 [2025-04-01 12:34:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:34:06 - End Time 2025-04-01 12:34:06 [2025-04-01 12:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810874', 'tblTempUsageDetail_20' ) start [2025-04-01 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810874', 'tblTempUsageDetail_20' ) end [2025-04-01 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810874', 'tblTempVendorCDR_20' ) start [2025-04-01 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810874', 'tblTempVendorCDR_20' ) end [2025-04-01 12:34:22] Production.INFO: ProcessCDR(1,14810874,1,1,2) [2025-04-01 12:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810874', 'tblTempUsageDetail_20' ) start [2025-04-01 12:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810874', 'tblTempUsageDetail_20' ) end [2025-04-01 12:34:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:34:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:34:29] Production.INFO: ==11171== Releasing lock... [2025-04-01 12:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:34:29] Production.INFO: 68 MB #Memory Used# [2025-04-01 12:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:35:06 [end_date_ymd] => 2025-04-01 12:35:06 [RateCDR] => 1 ) [2025-04-01 12: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-01 09:35:06' and `end` < '2025-04-01 12: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-01 12:35:20] Production.INFO: count ==5350 [2025-04-01 12:35:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:35:06 - End Time 2025-04-01 12:35:06 [2025-04-01 12:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810879', 'tblTempUsageDetail_20' ) start [2025-04-01 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810879', 'tblTempUsageDetail_20' ) end [2025-04-01 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810879', 'tblTempVendorCDR_20' ) start [2025-04-01 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810879', 'tblTempVendorCDR_20' ) end [2025-04-01 12:35:22] Production.INFO: ProcessCDR(1,14810879,1,1,2) [2025-04-01 12:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810879', 'tblTempUsageDetail_20' ) start [2025-04-01 12:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810879', 'tblTempUsageDetail_20' ) end [2025-04-01 12:35:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:35:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:35:29] Production.INFO: ==11258== Releasing lock... [2025-04-01 12:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:35:29] Production.INFO: 68 MB #Memory Used# [2025-04-01 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:36:05 [end_date_ymd] => 2025-04-01 12:36:05 [RateCDR] => 1 ) [2025-04-01 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 09:36:05' and `end` < '2025-04-01 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 12:36:19] Production.INFO: count ==5359 [2025-04-01 12:36:21] Production.ERROR: pbx CDR StartTime 2025-04-01 09:36:05 - End Time 2025-04-01 12:36:05 [2025-04-01 12:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810884', 'tblTempUsageDetail_20' ) start [2025-04-01 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810884', 'tblTempUsageDetail_20' ) end [2025-04-01 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810884', 'tblTempVendorCDR_20' ) start [2025-04-01 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810884', 'tblTempVendorCDR_20' ) end [2025-04-01 12:36:21] Production.INFO: ProcessCDR(1,14810884,1,1,2) [2025-04-01 12:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810884', 'tblTempUsageDetail_20' ) start [2025-04-01 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810884', 'tblTempUsageDetail_20' ) end [2025-04-01 12:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:36:27] Production.INFO: ==11343== Releasing lock... [2025-04-01 12:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:36:27] Production.INFO: 68 MB #Memory Used# [2025-04-01 12:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:37:06 [end_date_ymd] => 2025-04-01 12:37:06 [RateCDR] => 1 ) [2025-04-01 12: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-01 09:37:06' and `end` < '2025-04-01 12: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-01 12:37:20] Production.INFO: count ==5340 [2025-04-01 12:37:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:37:06 - End Time 2025-04-01 12:37:06 [2025-04-01 12:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810889', 'tblTempUsageDetail_20' ) start [2025-04-01 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810889', 'tblTempUsageDetail_20' ) end [2025-04-01 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810889', 'tblTempVendorCDR_20' ) start [2025-04-01 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810889', 'tblTempVendorCDR_20' ) end [2025-04-01 12:37:22] Production.INFO: ProcessCDR(1,14810889,1,1,2) [2025-04-01 12:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810889', 'tblTempUsageDetail_20' ) start [2025-04-01 12:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810889', 'tblTempUsageDetail_20' ) end [2025-04-01 12:37:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:37:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:37:28] Production.INFO: ==11428== Releasing lock... [2025-04-01 12:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:37:28] Production.INFO: 68 MB #Memory Used# [2025-04-01 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:38:06 [end_date_ymd] => 2025-04-01 12:38:06 [RateCDR] => 1 ) [2025-04-01 12: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-01 09:38:06' and `end` < '2025-04-01 12: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-01 12:38:19] Production.INFO: count ==5359 [2025-04-01 12:38:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:38:06 - End Time 2025-04-01 12:38:06 [2025-04-01 12:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810894', 'tblTempUsageDetail_20' ) start [2025-04-01 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810894', 'tblTempUsageDetail_20' ) end [2025-04-01 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810894', 'tblTempVendorCDR_20' ) start [2025-04-01 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810894', 'tblTempVendorCDR_20' ) end [2025-04-01 12:38:22] Production.INFO: ProcessCDR(1,14810894,1,1,2) [2025-04-01 12:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810894', 'tblTempUsageDetail_20' ) start [2025-04-01 12:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810894', 'tblTempUsageDetail_20' ) end [2025-04-01 12:38:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:38:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:38:28] Production.INFO: ==11507== Releasing lock... [2025-04-01 12:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:38:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 12:39:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:39:07 [end_date_ymd] => 2025-04-01 12:39:07 [RateCDR] => 1 ) [2025-04-01 12:39: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-01 09:39:07' and `end` < '2025-04-01 12:39: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-01 12:39:20] Production.INFO: count ==5361 [2025-04-01 12:39:23] Production.ERROR: pbx CDR StartTime 2025-04-01 09:39:07 - End Time 2025-04-01 12:39:07 [2025-04-01 12:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810899', 'tblTempUsageDetail_20' ) start [2025-04-01 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810899', 'tblTempUsageDetail_20' ) end [2025-04-01 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810899', 'tblTempVendorCDR_20' ) start [2025-04-01 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810899', 'tblTempVendorCDR_20' ) end [2025-04-01 12:39:23] Production.INFO: ProcessCDR(1,14810899,1,1,2) [2025-04-01 12:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810899', 'tblTempUsageDetail_20' ) start [2025-04-01 12:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810899', 'tblTempUsageDetail_20' ) end [2025-04-01 12:39:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:39:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:39:29] Production.INFO: ==11588== Releasing lock... [2025-04-01 12:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:39:29] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 12:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:40:07 [end_date_ymd] => 2025-04-01 12:40:07 [RateCDR] => 1 ) [2025-04-01 12: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-01 09:40:07' and `end` < '2025-04-01 12:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 12:40:21] Production.INFO: count ==5345 [2025-04-01 12:40:23] Production.ERROR: pbx CDR StartTime 2025-04-01 09:40:07 - End Time 2025-04-01 12:40:07 [2025-04-01 12:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810905', 'tblTempUsageDetail_20' ) start [2025-04-01 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810905', 'tblTempUsageDetail_20' ) end [2025-04-01 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810905', 'tblTempVendorCDR_20' ) start [2025-04-01 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810905', 'tblTempVendorCDR_20' ) end [2025-04-01 12:40:23] Production.INFO: ProcessCDR(1,14810905,1,1,2) [2025-04-01 12:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810905', 'tblTempUsageDetail_20' ) start [2025-04-01 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810905', 'tblTempUsageDetail_20' ) end [2025-04-01 12:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:40:27] Production.INFO: ==11671== Releasing lock... [2025-04-01 12:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:40:27] Production.INFO: 68 MB #Memory Used# [2025-04-01 12:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:41:06 [end_date_ymd] => 2025-04-01 12:41:06 [RateCDR] => 1 ) [2025-04-01 12:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 09:41:06' and `end` < '2025-04-01 12:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 12:41:19] Production.INFO: count ==5332 [2025-04-01 12:41:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:41:06 - End Time 2025-04-01 12:41:06 [2025-04-01 12:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810910', 'tblTempUsageDetail_20' ) start [2025-04-01 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810910', 'tblTempUsageDetail_20' ) end [2025-04-01 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810910', 'tblTempVendorCDR_20' ) start [2025-04-01 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810910', 'tblTempVendorCDR_20' ) end [2025-04-01 12:41:22] Production.INFO: ProcessCDR(1,14810910,1,1,2) [2025-04-01 12:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810910', 'tblTempUsageDetail_20' ) start [2025-04-01 12:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810910', 'tblTempUsageDetail_20' ) end [2025-04-01 12:41:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:41:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:41:28] Production.INFO: ==11755== Releasing lock... [2025-04-01 12:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:41:28] Production.INFO: 68 MB #Memory Used# [2025-04-01 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:42:06 [end_date_ymd] => 2025-04-01 12:42:06 [RateCDR] => 1 ) [2025-04-01 12: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-01 09:42:06' and `end` < '2025-04-01 12: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-01 12:42:20] Production.INFO: count ==5336 [2025-04-01 12:42:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:42:06 - End Time 2025-04-01 12:42:06 [2025-04-01 12:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810915', 'tblTempUsageDetail_20' ) start [2025-04-01 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810915', 'tblTempUsageDetail_20' ) end [2025-04-01 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810915', 'tblTempVendorCDR_20' ) start [2025-04-01 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810915', 'tblTempVendorCDR_20' ) end [2025-04-01 12:42:22] Production.INFO: ProcessCDR(1,14810915,1,1,2) [2025-04-01 12:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810915', 'tblTempUsageDetail_20' ) start [2025-04-01 12:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810915', 'tblTempUsageDetail_20' ) end [2025-04-01 12:42:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:42:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:42:28] Production.INFO: ==11873== Releasing lock... [2025-04-01 12:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:42:28] Production.INFO: 68 MB #Memory Used# [2025-04-01 12:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:43:06 [end_date_ymd] => 2025-04-01 12:43:06 [RateCDR] => 1 ) [2025-04-01 12: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-01 09:43:06' and `end` < '2025-04-01 12: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-01 12:43:20] Production.INFO: count ==5350 [2025-04-01 12:43:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:43:06 - End Time 2025-04-01 12:43:06 [2025-04-01 12:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810920', 'tblTempUsageDetail_20' ) start [2025-04-01 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810920', 'tblTempUsageDetail_20' ) end [2025-04-01 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810920', 'tblTempVendorCDR_20' ) start [2025-04-01 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810920', 'tblTempVendorCDR_20' ) end [2025-04-01 12:43:23] Production.INFO: ProcessCDR(1,14810920,1,1,2) [2025-04-01 12:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810920', 'tblTempUsageDetail_20' ) start [2025-04-01 12:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810920', 'tblTempUsageDetail_20' ) end [2025-04-01 12:43:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:43:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:43:28] Production.INFO: ==11952== Releasing lock... [2025-04-01 12:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:43:28] Production.INFO: 68 MB #Memory Used# [2025-04-01 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:44:06 [end_date_ymd] => 2025-04-01 12:44:06 [RateCDR] => 1 ) [2025-04-01 12: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-01 09:44:06' and `end` < '2025-04-01 12: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-01 12:44:20] Production.INFO: count ==5342 [2025-04-01 12:44:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:44:06 - End Time 2025-04-01 12:44:06 [2025-04-01 12:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810925', 'tblTempUsageDetail_20' ) start [2025-04-01 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810925', 'tblTempUsageDetail_20' ) end [2025-04-01 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810925', 'tblTempVendorCDR_20' ) start [2025-04-01 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810925', 'tblTempVendorCDR_20' ) end [2025-04-01 12:44:22] Production.INFO: ProcessCDR(1,14810925,1,1,2) [2025-04-01 12:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810925', 'tblTempUsageDetail_20' ) start [2025-04-01 12:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810925', 'tblTempUsageDetail_20' ) end [2025-04-01 12:44:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:44:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:44:28] Production.INFO: ==12036== Releasing lock... [2025-04-01 12:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:44:28] Production.INFO: 68 MB #Memory Used# [2025-04-01 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:45:05 [end_date_ymd] => 2025-04-01 12:45:05 [RateCDR] => 1 ) [2025-04-01 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-01 09:45:05' and `end` < '2025-04-01 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-01 12:45:19] Production.INFO: count ==5350 [2025-04-01 12:45:21] Production.ERROR: pbx CDR StartTime 2025-04-01 09:45:05 - End Time 2025-04-01 12:45:05 [2025-04-01 12:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810930', 'tblTempUsageDetail_20' ) start [2025-04-01 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810930', 'tblTempUsageDetail_20' ) end [2025-04-01 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810930', 'tblTempVendorCDR_20' ) start [2025-04-01 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810930', 'tblTempVendorCDR_20' ) end [2025-04-01 12:45:22] Production.INFO: ProcessCDR(1,14810930,1,1,2) [2025-04-01 12:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810930', 'tblTempUsageDetail_20' ) start [2025-04-01 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810930', 'tblTempUsageDetail_20' ) end [2025-04-01 12:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:45:27] Production.INFO: ==12112== Releasing lock... [2025-04-01 12:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:45:27] Production.INFO: 68 MB #Memory Used# [2025-04-01 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:46:06 [end_date_ymd] => 2025-04-01 12:46:06 [RateCDR] => 1 ) [2025-04-01 12: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-01 09:46:06' and `end` < '2025-04-01 12: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-01 12:46:20] Production.INFO: count ==5380 [2025-04-01 12:46:23] Production.ERROR: pbx CDR StartTime 2025-04-01 09:46:06 - End Time 2025-04-01 12:46:06 [2025-04-01 12:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810935', 'tblTempUsageDetail_20' ) start [2025-04-01 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810935', 'tblTempUsageDetail_20' ) end [2025-04-01 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810935', 'tblTempVendorCDR_20' ) start [2025-04-01 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810935', 'tblTempVendorCDR_20' ) end [2025-04-01 12:46:23] Production.INFO: ProcessCDR(1,14810935,1,1,2) [2025-04-01 12:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810935', 'tblTempUsageDetail_20' ) start [2025-04-01 12:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810935', 'tblTempUsageDetail_20' ) end [2025-04-01 12:46:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:46:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:46:29] Production.INFO: ==12189== Releasing lock... [2025-04-01 12:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:46:29] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:47:05 [end_date_ymd] => 2025-04-01 12:47:05 [RateCDR] => 1 ) [2025-04-01 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-01 09:47:05' and `end` < '2025-04-01 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-01 12:47:22] Production.INFO: count ==5353 [2025-04-01 12:47:24] Production.ERROR: pbx CDR StartTime 2025-04-01 09:47:05 - End Time 2025-04-01 12:47:05 [2025-04-01 12:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810940', 'tblTempUsageDetail_20' ) start [2025-04-01 12:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810940', 'tblTempUsageDetail_20' ) end [2025-04-01 12:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810940', 'tblTempVendorCDR_20' ) start [2025-04-01 12:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810940', 'tblTempVendorCDR_20' ) end [2025-04-01 12:47:24] Production.INFO: ProcessCDR(1,14810940,1,1,2) [2025-04-01 12:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810940', 'tblTempUsageDetail_20' ) start [2025-04-01 12:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810940', 'tblTempUsageDetail_20' ) end [2025-04-01 12:47:30] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:47:30] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:47:30] Production.INFO: ==12266== Releasing lock... [2025-04-01 12:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:47:30] Production.INFO: 68 MB #Memory Used# [2025-04-01 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:48:06 [end_date_ymd] => 2025-04-01 12:48:06 [RateCDR] => 1 ) [2025-04-01 12: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-01 09:48:06' and `end` < '2025-04-01 12: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-01 12:48:20] Production.INFO: count ==5364 [2025-04-01 12:48:23] Production.ERROR: pbx CDR StartTime 2025-04-01 09:48:06 - End Time 2025-04-01 12:48:06 [2025-04-01 12:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810945', 'tblTempUsageDetail_20' ) start [2025-04-01 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810945', 'tblTempUsageDetail_20' ) end [2025-04-01 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810945', 'tblTempVendorCDR_20' ) start [2025-04-01 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810945', 'tblTempVendorCDR_20' ) end [2025-04-01 12:48:23] Production.INFO: ProcessCDR(1,14810945,1,1,2) [2025-04-01 12:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810945', 'tblTempUsageDetail_20' ) start [2025-04-01 12:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810945', 'tblTempUsageDetail_20' ) end [2025-04-01 12:48:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:48:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:48:29] Production.INFO: ==12342== Releasing lock... [2025-04-01 12:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:48:29] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:49:05 [end_date_ymd] => 2025-04-01 12:49:05 [RateCDR] => 1 ) [2025-04-01 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-01 09:49:05' and `end` < '2025-04-01 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-01 12:49:19] Production.INFO: count ==5373 [2025-04-01 12:49:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:49:05 - End Time 2025-04-01 12:49:05 [2025-04-01 12:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810950', 'tblTempUsageDetail_20' ) start [2025-04-01 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810950', 'tblTempUsageDetail_20' ) end [2025-04-01 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810950', 'tblTempVendorCDR_20' ) start [2025-04-01 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810950', 'tblTempVendorCDR_20' ) end [2025-04-01 12:49:22] Production.INFO: ProcessCDR(1,14810950,1,1,2) [2025-04-01 12:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810950', 'tblTempUsageDetail_20' ) start [2025-04-01 12:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810950', 'tblTempUsageDetail_20' ) end [2025-04-01 12:49:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:49:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:49:28] Production.INFO: ==12416== Releasing lock... [2025-04-01 12:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:49:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 12:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:50:07 [end_date_ymd] => 2025-04-01 12:50:07 [RateCDR] => 1 ) [2025-04-01 12: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-01 09:50:07' and `end` < '2025-04-01 12: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-01 12:50:21] Production.INFO: count ==5361 [2025-04-01 12:50:23] Production.ERROR: pbx CDR StartTime 2025-04-01 09:50:07 - End Time 2025-04-01 12:50:07 [2025-04-01 12:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810955', 'tblTempUsageDetail_20' ) start [2025-04-01 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810955', 'tblTempUsageDetail_20' ) end [2025-04-01 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810955', 'tblTempVendorCDR_20' ) start [2025-04-01 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810955', 'tblTempVendorCDR_20' ) end [2025-04-01 12:50:23] Production.INFO: ProcessCDR(1,14810955,1,1,2) [2025-04-01 12:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810955', 'tblTempUsageDetail_20' ) start [2025-04-01 12:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810955', 'tblTempUsageDetail_20' ) end [2025-04-01 12:50:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:50:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:50:29] Production.INFO: ==12494== Releasing lock... [2025-04-01 12:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:50:29] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:51:05 [end_date_ymd] => 2025-04-01 12:51:05 [RateCDR] => 1 ) [2025-04-01 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-01 09:51:05' and `end` < '2025-04-01 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-01 12:51:19] Production.INFO: count ==5365 [2025-04-01 12:51:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:51:05 - End Time 2025-04-01 12:51:05 [2025-04-01 12:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810961', 'tblTempUsageDetail_20' ) start [2025-04-01 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810961', 'tblTempUsageDetail_20' ) end [2025-04-01 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810961', 'tblTempVendorCDR_20' ) start [2025-04-01 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810961', 'tblTempVendorCDR_20' ) end [2025-04-01 12:51:22] Production.INFO: ProcessCDR(1,14810961,1,1,2) [2025-04-01 12:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810961', 'tblTempUsageDetail_20' ) start [2025-04-01 12:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810961', 'tblTempUsageDetail_20' ) end [2025-04-01 12:51:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:51:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:51:28] Production.INFO: ==12571== Releasing lock... [2025-04-01 12:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:51:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:52:06 [end_date_ymd] => 2025-04-01 12:52:06 [RateCDR] => 1 ) [2025-04-01 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-01 09:52:06' and `end` < '2025-04-01 12: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-01 12:52:21] Production.INFO: count ==5375 [2025-04-01 12:52:23] Production.ERROR: pbx CDR StartTime 2025-04-01 09:52:06 - End Time 2025-04-01 12:52:06 [2025-04-01 12:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810966', 'tblTempUsageDetail_20' ) start [2025-04-01 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810966', 'tblTempUsageDetail_20' ) end [2025-04-01 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810966', 'tblTempVendorCDR_20' ) start [2025-04-01 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810966', 'tblTempVendorCDR_20' ) end [2025-04-01 12:52:23] Production.INFO: ProcessCDR(1,14810966,1,1,2) [2025-04-01 12:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810966', 'tblTempUsageDetail_20' ) start [2025-04-01 12:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810966', 'tblTempUsageDetail_20' ) end [2025-04-01 12:52:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:52:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:52:29] Production.INFO: ==12650== Releasing lock... [2025-04-01 12:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:52:29] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:53:05 [end_date_ymd] => 2025-04-01 12:53:05 [RateCDR] => 1 ) [2025-04-01 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 09:53:05' and `end` < '2025-04-01 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 12:53:19] Production.INFO: count ==5377 [2025-04-01 12:53:21] Production.ERROR: pbx CDR StartTime 2025-04-01 09:53:05 - End Time 2025-04-01 12:53:05 [2025-04-01 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810971', 'tblTempUsageDetail_20' ) start [2025-04-01 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810971', 'tblTempUsageDetail_20' ) end [2025-04-01 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810971', 'tblTempVendorCDR_20' ) start [2025-04-01 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810971', 'tblTempVendorCDR_20' ) end [2025-04-01 12:53:22] Production.INFO: ProcessCDR(1,14810971,1,1,2) [2025-04-01 12:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810971', 'tblTempUsageDetail_20' ) start [2025-04-01 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810971', 'tblTempUsageDetail_20' ) end [2025-04-01 12:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:53:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:53:28] Production.INFO: ==12732== Releasing lock... [2025-04-01 12:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:53:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:54:06 [end_date_ymd] => 2025-04-01 12:54:06 [RateCDR] => 1 ) [2025-04-01 12: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-01 09:54:06' and `end` < '2025-04-01 12: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-01 12:54:20] Production.INFO: count ==5377 [2025-04-01 12:54:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:54:06 - End Time 2025-04-01 12:54:06 [2025-04-01 12:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810976', 'tblTempUsageDetail_20' ) start [2025-04-01 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810976', 'tblTempUsageDetail_20' ) end [2025-04-01 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810976', 'tblTempVendorCDR_20' ) start [2025-04-01 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810976', 'tblTempVendorCDR_20' ) end [2025-04-01 12:54:23] Production.INFO: ProcessCDR(1,14810976,1,1,2) [2025-04-01 12:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810976', 'tblTempUsageDetail_20' ) start [2025-04-01 12:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810976', 'tblTempUsageDetail_20' ) end [2025-04-01 12:54:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:54:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:54:29] Production.INFO: ==12805== Releasing lock... [2025-04-01 12:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:54:29] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:55:05 [end_date_ymd] => 2025-04-01 12:55:05 [RateCDR] => 1 ) [2025-04-01 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-01 09:55:05' and `end` < '2025-04-01 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-01 12:55:19] Production.INFO: count ==5381 [2025-04-01 12:55:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:55:05 - End Time 2025-04-01 12:55:05 [2025-04-01 12:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810981', 'tblTempUsageDetail_20' ) start [2025-04-01 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810981', 'tblTempUsageDetail_20' ) end [2025-04-01 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810981', 'tblTempVendorCDR_20' ) start [2025-04-01 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810981', 'tblTempVendorCDR_20' ) end [2025-04-01 12:55:22] Production.INFO: ProcessCDR(1,14810981,1,1,2) [2025-04-01 12:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810981', 'tblTempUsageDetail_20' ) start [2025-04-01 12:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810981', 'tblTempUsageDetail_20' ) end [2025-04-01 12:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:55:28] Production.INFO: ==12881== Releasing lock... [2025-04-01 12:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:55:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:56:06 [end_date_ymd] => 2025-04-01 12:56:06 [RateCDR] => 1 ) [2025-04-01 12: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-01 09:56:06' and `end` < '2025-04-01 12: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-01 12:56:20] Production.INFO: count ==5369 [2025-04-01 12:56:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:56:06 - End Time 2025-04-01 12:56:06 [2025-04-01 12:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810986', 'tblTempUsageDetail_20' ) start [2025-04-01 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810986', 'tblTempUsageDetail_20' ) end [2025-04-01 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810986', 'tblTempVendorCDR_20' ) start [2025-04-01 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810986', 'tblTempVendorCDR_20' ) end [2025-04-01 12:56:22] Production.INFO: ProcessCDR(1,14810986,1,1,2) [2025-04-01 12:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810986', 'tblTempUsageDetail_20' ) start [2025-04-01 12:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810986', 'tblTempUsageDetail_20' ) end [2025-04-01 12:56:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:56:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:56:28] Production.INFO: ==12968== Releasing lock... [2025-04-01 12:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:56:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:57:05 [end_date_ymd] => 2025-04-01 12:57:05 [RateCDR] => 1 ) [2025-04-01 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-01 09:57:05' and `end` < '2025-04-01 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-01 12:57:19] Production.INFO: count ==5382 [2025-04-01 12:57:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:57:05 - End Time 2025-04-01 12:57:05 [2025-04-01 12:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810991', 'tblTempUsageDetail_20' ) start [2025-04-01 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810991', 'tblTempUsageDetail_20' ) end [2025-04-01 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810991', 'tblTempVendorCDR_20' ) start [2025-04-01 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810991', 'tblTempVendorCDR_20' ) end [2025-04-01 12:57:22] Production.INFO: ProcessCDR(1,14810991,1,1,2) [2025-04-01 12:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810991', 'tblTempUsageDetail_20' ) start [2025-04-01 12:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810991', 'tblTempUsageDetail_20' ) end [2025-04-01 12:57:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:57:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:57:28] Production.INFO: ==13088== Releasing lock... [2025-04-01 12:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:57:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:58:06 [end_date_ymd] => 2025-04-01 12:58:06 [RateCDR] => 1 ) [2025-04-01 12: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-01 09:58:06' and `end` < '2025-04-01 12: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-01 12:58:20] Production.INFO: count ==5391 [2025-04-01 12:58:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:58:06 - End Time 2025-04-01 12:58:06 [2025-04-01 12:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810996', 'tblTempUsageDetail_20' ) start [2025-04-01 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14810996', 'tblTempUsageDetail_20' ) end [2025-04-01 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810996', 'tblTempVendorCDR_20' ) start [2025-04-01 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14810996', 'tblTempVendorCDR_20' ) end [2025-04-01 12:58:22] Production.INFO: ProcessCDR(1,14810996,1,1,2) [2025-04-01 12:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14810996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14810996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14810996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14810996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810996', 'tblTempUsageDetail_20' ) start [2025-04-01 12:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14810996', 'tblTempUsageDetail_20' ) end [2025-04-01 12:58:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:58:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:58:28] Production.INFO: ==13165== Releasing lock... [2025-04-01 12:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:58:28] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 12:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 09:59:06 [end_date_ymd] => 2025-04-01 12:59:06 [RateCDR] => 1 ) [2025-04-01 12: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-01 09:59:06' and `end` < '2025-04-01 12: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-01 12:59:20] Production.INFO: count ==5402 [2025-04-01 12:59:22] Production.ERROR: pbx CDR StartTime 2025-04-01 09:59:06 - End Time 2025-04-01 12:59:06 [2025-04-01 12:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811001', 'tblTempUsageDetail_20' ) start [2025-04-01 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811001', 'tblTempUsageDetail_20' ) end [2025-04-01 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811001', 'tblTempVendorCDR_20' ) start [2025-04-01 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811001', 'tblTempVendorCDR_20' ) end [2025-04-01 12:59:22] Production.INFO: ProcessCDR(1,14811001,1,1,2) [2025-04-01 12:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 12:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 12:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811001', 'tblTempUsageDetail_20' ) start [2025-04-01 12:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811001', 'tblTempUsageDetail_20' ) end [2025-04-01 12:59:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 12:59:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 12:59:28] Production.INFO: ==13247== Releasing lock... [2025-04-01 12:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 12:59:28] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:00:07 [end_date_ymd] => 2025-04-01 13:00:07 [RateCDR] => 1 ) [2025-04-01 13:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 10:00:07' and `end` < '2025-04-01 13:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 13:00:21] Production.INFO: count ==5408 [2025-04-01 13:00:23] Production.ERROR: pbx CDR StartTime 2025-04-01 10:00:07 - End Time 2025-04-01 13:00:07 [2025-04-01 13:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811007', 'tblTempUsageDetail_20' ) start [2025-04-01 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811007', 'tblTempUsageDetail_20' ) end [2025-04-01 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811007', 'tblTempVendorCDR_20' ) start [2025-04-01 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811007', 'tblTempVendorCDR_20' ) end [2025-04-01 13:00:24] Production.INFO: ProcessCDR(1,14811007,1,1,2) [2025-04-01 13:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811007', 'tblTempUsageDetail_20' ) start [2025-04-01 13:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811007', 'tblTempUsageDetail_20' ) end [2025-04-01 13:00:30] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:00:30] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:00:30] Production.INFO: ==13326== Releasing lock... [2025-04-01 13:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:00:30] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 13:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:01:06 [end_date_ymd] => 2025-04-01 13:01:06 [RateCDR] => 1 ) [2025-04-01 13:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 10:01:06' and `end` < '2025-04-01 13:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 13:01:19] Production.INFO: count ==5375 [2025-04-01 13:01:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:01:06 - End Time 2025-04-01 13:01:06 [2025-04-01 13:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811012', 'tblTempUsageDetail_20' ) start [2025-04-01 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811012', 'tblTempUsageDetail_20' ) end [2025-04-01 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811012', 'tblTempVendorCDR_20' ) start [2025-04-01 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811012', 'tblTempVendorCDR_20' ) end [2025-04-01 13:01:22] Production.INFO: ProcessCDR(1,14811012,1,1,2) [2025-04-01 13:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811012', 'tblTempUsageDetail_20' ) start [2025-04-01 13:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811012', 'tblTempUsageDetail_20' ) end [2025-04-01 13:01:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:01:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:01:28] Production.INFO: ==13417== Releasing lock... [2025-04-01 13:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:01:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:02:06 [end_date_ymd] => 2025-04-01 13:02:06 [RateCDR] => 1 ) [2025-04-01 13:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 10:02:06' and `end` < '2025-04-01 13:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 13:02:20] Production.INFO: count ==5368 [2025-04-01 13:02:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:02:06 - End Time 2025-04-01 13:02:06 [2025-04-01 13:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811017', 'tblTempUsageDetail_20' ) start [2025-04-01 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811017', 'tblTempUsageDetail_20' ) end [2025-04-01 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811017', 'tblTempVendorCDR_20' ) start [2025-04-01 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811017', 'tblTempVendorCDR_20' ) end [2025-04-01 13:02:23] Production.INFO: ProcessCDR(1,14811017,1,1,2) [2025-04-01 13:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811017', 'tblTempUsageDetail_20' ) start [2025-04-01 13:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811017', 'tblTempUsageDetail_20' ) end [2025-04-01 13:02:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:02:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:02:29] Production.INFO: ==13501== Releasing lock... [2025-04-01 13:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:02:29] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:03:06 [end_date_ymd] => 2025-04-01 13:03:06 [RateCDR] => 1 ) [2025-04-01 13: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-01 10:03:06' and `end` < '2025-04-01 13: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-01 13:03:19] Production.INFO: count ==5367 [2025-04-01 13:03:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:03:06 - End Time 2025-04-01 13:03:06 [2025-04-01 13:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811022', 'tblTempUsageDetail_20' ) start [2025-04-01 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811022', 'tblTempUsageDetail_20' ) end [2025-04-01 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811022', 'tblTempVendorCDR_20' ) start [2025-04-01 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811022', 'tblTempVendorCDR_20' ) end [2025-04-01 13:03:22] Production.INFO: ProcessCDR(1,14811022,1,1,2) [2025-04-01 13:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811022', 'tblTempUsageDetail_20' ) start [2025-04-01 13:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811022', 'tblTempUsageDetail_20' ) end [2025-04-01 13:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:03:28] Production.INFO: ==13581== Releasing lock... [2025-04-01 13:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:03:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:04:06 [end_date_ymd] => 2025-04-01 13:04:06 [RateCDR] => 1 ) [2025-04-01 13:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 10:04:06' and `end` < '2025-04-01 13:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 13:04:20] Production.INFO: count ==5354 [2025-04-01 13:04:23] Production.ERROR: pbx CDR StartTime 2025-04-01 10:04:06 - End Time 2025-04-01 13:04:06 [2025-04-01 13:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811027', 'tblTempUsageDetail_20' ) start [2025-04-01 13:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811027', 'tblTempUsageDetail_20' ) end [2025-04-01 13:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811027', 'tblTempVendorCDR_20' ) start [2025-04-01 13:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811027', 'tblTempVendorCDR_20' ) end [2025-04-01 13:04:23] Production.INFO: ProcessCDR(1,14811027,1,1,2) [2025-04-01 13:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811027', 'tblTempUsageDetail_20' ) start [2025-04-01 13:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811027', 'tblTempUsageDetail_20' ) end [2025-04-01 13:04:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:04:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:04:29] Production.INFO: ==13659== Releasing lock... [2025-04-01 13:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:04:29] Production.INFO: 68 MB #Memory Used# [2025-04-01 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:05:06 [end_date_ymd] => 2025-04-01 13:05:06 [RateCDR] => 1 ) [2025-04-01 13:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 10:05:06' and `end` < '2025-04-01 13:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 13:05:19] Production.INFO: count ==5342 [2025-04-01 13:05:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:05:06 - End Time 2025-04-01 13:05:06 [2025-04-01 13:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811032', 'tblTempUsageDetail_20' ) start [2025-04-01 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811032', 'tblTempUsageDetail_20' ) end [2025-04-01 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811032', 'tblTempVendorCDR_20' ) start [2025-04-01 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811032', 'tblTempVendorCDR_20' ) end [2025-04-01 13:05:22] Production.INFO: ProcessCDR(1,14811032,1,1,2) [2025-04-01 13:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811032', 'tblTempUsageDetail_20' ) start [2025-04-01 13:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811032', 'tblTempUsageDetail_20' ) end [2025-04-01 13:05:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:05:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:05:28] Production.INFO: ==13742== Releasing lock... [2025-04-01 13:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:05:28] Production.INFO: 68 MB #Memory Used# [2025-04-01 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:06:05 [end_date_ymd] => 2025-04-01 13:06:05 [RateCDR] => 1 ) [2025-04-01 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-01 10:06:05' and `end` < '2025-04-01 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-01 13:06:19] Production.INFO: count ==5310 [2025-04-01 13:06:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:06:05 - End Time 2025-04-01 13:06:05 [2025-04-01 13:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811037', 'tblTempUsageDetail_20' ) start [2025-04-01 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811037', 'tblTempUsageDetail_20' ) end [2025-04-01 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811037', 'tblTempVendorCDR_20' ) start [2025-04-01 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811037', 'tblTempVendorCDR_20' ) end [2025-04-01 13:06:22] Production.INFO: ProcessCDR(1,14811037,1,1,2) [2025-04-01 13:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811037', 'tblTempUsageDetail_20' ) start [2025-04-01 13:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811037', 'tblTempUsageDetail_20' ) end [2025-04-01 13:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:06:28] Production.INFO: ==13817== Releasing lock... [2025-04-01 13:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:06:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:07:06 [end_date_ymd] => 2025-04-01 13:07:06 [RateCDR] => 1 ) [2025-04-01 13:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 10:07:06' and `end` < '2025-04-01 13:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 13:07:19] Production.INFO: count ==5298 [2025-04-01 13:07:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:07:06 - End Time 2025-04-01 13:07:06 [2025-04-01 13:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811042', 'tblTempUsageDetail_20' ) start [2025-04-01 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811042', 'tblTempUsageDetail_20' ) end [2025-04-01 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811042', 'tblTempVendorCDR_20' ) start [2025-04-01 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811042', 'tblTempVendorCDR_20' ) end [2025-04-01 13:07:22] Production.INFO: ProcessCDR(1,14811042,1,1,2) [2025-04-01 13:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811042', 'tblTempUsageDetail_20' ) start [2025-04-01 13:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811042', 'tblTempUsageDetail_20' ) end [2025-04-01 13:07:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:07:28] Production.INFO: ==13901== Releasing lock... [2025-04-01 13:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:07:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:08:06 [end_date_ymd] => 2025-04-01 13:08:06 [RateCDR] => 1 ) [2025-04-01 13: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-01 10:08:06' and `end` < '2025-04-01 13: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-01 13:08:19] Production.INFO: count ==5295 [2025-04-01 13:08:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:08:06 - End Time 2025-04-01 13:08:06 [2025-04-01 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811047', 'tblTempUsageDetail_20' ) start [2025-04-01 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811047', 'tblTempUsageDetail_20' ) end [2025-04-01 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811047', 'tblTempVendorCDR_20' ) start [2025-04-01 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811047', 'tblTempVendorCDR_20' ) end [2025-04-01 13:08:22] Production.INFO: ProcessCDR(1,14811047,1,1,2) [2025-04-01 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811047', 'tblTempUsageDetail_20' ) start [2025-04-01 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811047', 'tblTempUsageDetail_20' ) end [2025-04-01 13:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:08:27] Production.INFO: ==13978== Releasing lock... [2025-04-01 13:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:08:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:09:06 [end_date_ymd] => 2025-04-01 13:09:06 [RateCDR] => 1 ) [2025-04-01 13:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 10:09:06' and `end` < '2025-04-01 13:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 13:09:19] Production.INFO: count ==5269 [2025-04-01 13:09:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:09:06 - End Time 2025-04-01 13:09:06 [2025-04-01 13:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811052', 'tblTempUsageDetail_20' ) start [2025-04-01 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811052', 'tblTempUsageDetail_20' ) end [2025-04-01 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811052', 'tblTempVendorCDR_20' ) start [2025-04-01 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811052', 'tblTempVendorCDR_20' ) end [2025-04-01 13:09:22] Production.INFO: ProcessCDR(1,14811052,1,1,2) [2025-04-01 13:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811052', 'tblTempUsageDetail_20' ) start [2025-04-01 13:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811052', 'tblTempUsageDetail_20' ) end [2025-04-01 13:09:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:09:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:09:28] Production.INFO: ==14062== Releasing lock... [2025-04-01 13:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:09:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:10:06 [end_date_ymd] => 2025-04-01 13:10:06 [RateCDR] => 1 ) [2025-04-01 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 10:10:06' and `end` < '2025-04-01 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 13:10:20] Production.INFO: count ==5255 [2025-04-01 13:10:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:10:06 - End Time 2025-04-01 13:10:06 [2025-04-01 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811058', 'tblTempUsageDetail_20' ) start [2025-04-01 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811058', 'tblTempUsageDetail_20' ) end [2025-04-01 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811058', 'tblTempVendorCDR_20' ) start [2025-04-01 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811058', 'tblTempVendorCDR_20' ) end [2025-04-01 13:10:23] Production.INFO: ProcessCDR(1,14811058,1,1,2) [2025-04-01 13:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811058', 'tblTempUsageDetail_20' ) start [2025-04-01 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811058', 'tblTempUsageDetail_20' ) end [2025-04-01 13:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:10:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:10:29] Production.INFO: ==14143== Releasing lock... [2025-04-01 13:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:10:29] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:11:05 [end_date_ymd] => 2025-04-01 13:11:05 [RateCDR] => 1 ) [2025-04-01 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-01 10:11:05' and `end` < '2025-04-01 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-01 13:11:19] Production.INFO: count ==5224 [2025-04-01 13:11:21] Production.ERROR: pbx CDR StartTime 2025-04-01 10:11:05 - End Time 2025-04-01 13:11:05 [2025-04-01 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811063', 'tblTempUsageDetail_20' ) start [2025-04-01 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811063', 'tblTempUsageDetail_20' ) end [2025-04-01 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811063', 'tblTempVendorCDR_20' ) start [2025-04-01 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811063', 'tblTempVendorCDR_20' ) end [2025-04-01 13:11:22] Production.INFO: ProcessCDR(1,14811063,1,1,2) [2025-04-01 13:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811063', 'tblTempUsageDetail_20' ) start [2025-04-01 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811063', 'tblTempUsageDetail_20' ) end [2025-04-01 13:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:11:27] Production.INFO: ==14230== Releasing lock... [2025-04-01 13:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:11:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:12:06 [end_date_ymd] => 2025-04-01 13:12:06 [RateCDR] => 1 ) [2025-04-01 13: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-01 10:12:06' and `end` < '2025-04-01 13: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-01 13:12:20] Production.INFO: count ==5192 [2025-04-01 13:12:23] Production.ERROR: pbx CDR StartTime 2025-04-01 10:12:06 - End Time 2025-04-01 13:12:06 [2025-04-01 13:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811068', 'tblTempUsageDetail_20' ) start [2025-04-01 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811068', 'tblTempUsageDetail_20' ) end [2025-04-01 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811068', 'tblTempVendorCDR_20' ) start [2025-04-01 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811068', 'tblTempVendorCDR_20' ) end [2025-04-01 13:12:23] Production.INFO: ProcessCDR(1,14811068,1,1,2) [2025-04-01 13:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811068', 'tblTempUsageDetail_20' ) start [2025-04-01 13:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811068', 'tblTempUsageDetail_20' ) end [2025-04-01 13:12:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:12:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:12:29] Production.INFO: ==14351== Releasing lock... [2025-04-01 13:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:12:29] Production.INFO: 67 MB #Memory Used# [2025-04-01 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:13:06 [end_date_ymd] => 2025-04-01 13:13:06 [RateCDR] => 1 ) [2025-04-01 13:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 10:13:06' and `end` < '2025-04-01 13:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 13:13:20] Production.INFO: count ==5193 [2025-04-01 13:13:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:13:06 - End Time 2025-04-01 13:13:06 [2025-04-01 13:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811073', 'tblTempUsageDetail_20' ) start [2025-04-01 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811073', 'tblTempUsageDetail_20' ) end [2025-04-01 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811073', 'tblTempVendorCDR_20' ) start [2025-04-01 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811073', 'tblTempVendorCDR_20' ) end [2025-04-01 13:13:22] Production.INFO: ProcessCDR(1,14811073,1,1,2) [2025-04-01 13:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811073', 'tblTempUsageDetail_20' ) start [2025-04-01 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811073', 'tblTempUsageDetail_20' ) end [2025-04-01 13:13:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:13:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:13:28] Production.INFO: ==14439== Releasing lock... [2025-04-01 13:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:13:28] Production.INFO: 67 MB #Memory Used# [2025-04-01 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:14:05 [end_date_ymd] => 2025-04-01 13:14:05 [RateCDR] => 1 ) [2025-04-01 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-01 10:14:05' and `end` < '2025-04-01 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-01 13:14:19] Production.INFO: count ==5190 [2025-04-01 13:14:21] Production.ERROR: pbx CDR StartTime 2025-04-01 10:14:05 - End Time 2025-04-01 13:14:05 [2025-04-01 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811078', 'tblTempUsageDetail_20' ) start [2025-04-01 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811078', 'tblTempUsageDetail_20' ) end [2025-04-01 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811078', 'tblTempVendorCDR_20' ) start [2025-04-01 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811078', 'tblTempVendorCDR_20' ) end [2025-04-01 13:14:22] Production.INFO: ProcessCDR(1,14811078,1,1,2) [2025-04-01 13:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811078', 'tblTempUsageDetail_20' ) start [2025-04-01 13:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811078', 'tblTempUsageDetail_20' ) end [2025-04-01 13:14:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:14:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:14:28] Production.INFO: ==14516== Releasing lock... [2025-04-01 13:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:14:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-01 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:15:06 [end_date_ymd] => 2025-04-01 13:15:06 [RateCDR] => 1 ) [2025-04-01 13: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-01 10:15:06' and `end` < '2025-04-01 13: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-01 13:15:20] Production.INFO: count ==5192 [2025-04-01 13:15:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:15:06 - End Time 2025-04-01 13:15:06 [2025-04-01 13:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811083', 'tblTempUsageDetail_20' ) start [2025-04-01 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811083', 'tblTempUsageDetail_20' ) end [2025-04-01 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811083', 'tblTempVendorCDR_20' ) start [2025-04-01 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811083', 'tblTempVendorCDR_20' ) end [2025-04-01 13:15:22] Production.INFO: ProcessCDR(1,14811083,1,1,2) [2025-04-01 13:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811083', 'tblTempUsageDetail_20' ) start [2025-04-01 13:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811083', 'tblTempUsageDetail_20' ) end [2025-04-01 13:15:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:15:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:15:28] Production.INFO: ==14605== Releasing lock... [2025-04-01 13:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:15:28] Production.INFO: 67 MB #Memory Used# [2025-04-01 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:16:05 [end_date_ymd] => 2025-04-01 13:16:05 [RateCDR] => 1 ) [2025-04-01 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-01 10:16:05' and `end` < '2025-04-01 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 13:16:19] Production.INFO: count ==5188 [2025-04-01 13:16:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:16:05 - End Time 2025-04-01 13:16:05 [2025-04-01 13:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811088', 'tblTempUsageDetail_20' ) start [2025-04-01 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811088', 'tblTempUsageDetail_20' ) end [2025-04-01 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811088', 'tblTempVendorCDR_20' ) start [2025-04-01 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811088', 'tblTempVendorCDR_20' ) end [2025-04-01 13:16:22] Production.INFO: ProcessCDR(1,14811088,1,1,2) [2025-04-01 13:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811088', 'tblTempUsageDetail_20' ) start [2025-04-01 13:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811088', 'tblTempUsageDetail_20' ) end [2025-04-01 13:16:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:16:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:16:28] Production.INFO: ==14686== Releasing lock... [2025-04-01 13:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:16:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-01 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:17:05 [end_date_ymd] => 2025-04-01 13:17:05 [RateCDR] => 1 ) [2025-04-01 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-01 10:17:05' and `end` < '2025-04-01 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-01 13:17:19] Production.INFO: count ==5193 [2025-04-01 13:17:21] Production.ERROR: pbx CDR StartTime 2025-04-01 10:17:05 - End Time 2025-04-01 13:17:05 [2025-04-01 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811093', 'tblTempUsageDetail_20' ) start [2025-04-01 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811093', 'tblTempUsageDetail_20' ) end [2025-04-01 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811093', 'tblTempVendorCDR_20' ) start [2025-04-01 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811093', 'tblTempVendorCDR_20' ) end [2025-04-01 13:17:21] Production.INFO: ProcessCDR(1,14811093,1,1,2) [2025-04-01 13:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811093', 'tblTempUsageDetail_20' ) start [2025-04-01 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811093', 'tblTempUsageDetail_20' ) end [2025-04-01 13:17:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:17:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:17:28] Production.INFO: ==14773== Releasing lock... [2025-04-01 13:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:17:28] Production.INFO: 67 MB #Memory Used# [2025-04-01 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:18:05 [end_date_ymd] => 2025-04-01 13:18:05 [RateCDR] => 1 ) [2025-04-01 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-01 10:18:05' and `end` < '2025-04-01 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-01 13:18:19] Production.INFO: count ==5188 [2025-04-01 13:18:21] Production.ERROR: pbx CDR StartTime 2025-04-01 10:18:05 - End Time 2025-04-01 13:18:05 [2025-04-01 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811098', 'tblTempUsageDetail_20' ) start [2025-04-01 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811098', 'tblTempUsageDetail_20' ) end [2025-04-01 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811098', 'tblTempVendorCDR_20' ) start [2025-04-01 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811098', 'tblTempVendorCDR_20' ) end [2025-04-01 13:18:22] Production.INFO: ProcessCDR(1,14811098,1,1,2) [2025-04-01 13:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811098', 'tblTempUsageDetail_20' ) start [2025-04-01 13:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811098', 'tblTempUsageDetail_20' ) end [2025-04-01 13:18:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:18:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:18:28] Production.INFO: ==14863== Releasing lock... [2025-04-01 13:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:18:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-01 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:19:05 [end_date_ymd] => 2025-04-01 13:19:05 [RateCDR] => 1 ) [2025-04-01 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-01 10:19:05' and `end` < '2025-04-01 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-01 13:19:19] Production.INFO: count ==5175 [2025-04-01 13:19:21] Production.ERROR: pbx CDR StartTime 2025-04-01 10:19:05 - End Time 2025-04-01 13:19:05 [2025-04-01 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811103', 'tblTempUsageDetail_20' ) start [2025-04-01 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811103', 'tblTempUsageDetail_20' ) end [2025-04-01 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811103', 'tblTempVendorCDR_20' ) start [2025-04-01 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811103', 'tblTempVendorCDR_20' ) end [2025-04-01 13:19:21] Production.INFO: ProcessCDR(1,14811103,1,1,2) [2025-04-01 13:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811103', 'tblTempUsageDetail_20' ) start [2025-04-01 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811103', 'tblTempUsageDetail_20' ) end [2025-04-01 13:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:19:27] Production.INFO: ==14948== Releasing lock... [2025-04-01 13:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:19:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-01 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:20:06 [end_date_ymd] => 2025-04-01 13:20:06 [RateCDR] => 1 ) [2025-04-01 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-01 10:20:06' and `end` < '2025-04-01 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-01 13:20:20] Production.INFO: count ==5173 [2025-04-01 13:20:23] Production.ERROR: pbx CDR StartTime 2025-04-01 10:20:06 - End Time 2025-04-01 13:20:06 [2025-04-01 13:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811109', 'tblTempUsageDetail_20' ) start [2025-04-01 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811109', 'tblTempUsageDetail_20' ) end [2025-04-01 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811109', 'tblTempVendorCDR_20' ) start [2025-04-01 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811109', 'tblTempVendorCDR_20' ) end [2025-04-01 13:20:23] Production.INFO: ProcessCDR(1,14811109,1,1,2) [2025-04-01 13:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811109', 'tblTempUsageDetail_20' ) start [2025-04-01 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811109', 'tblTempUsageDetail_20' ) end [2025-04-01 13:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:20:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:20:29] Production.INFO: ==15039== Releasing lock... [2025-04-01 13:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:20:29] Production.INFO: 66.75 MB #Memory Used# [2025-04-01 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:21:06 [end_date_ymd] => 2025-04-01 13:21:06 [RateCDR] => 1 ) [2025-04-01 13:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 10:21:06' and `end` < '2025-04-01 13:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 13:21:19] Production.INFO: count ==5240 [2025-04-01 13:21:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:21:06 - End Time 2025-04-01 13:21:06 [2025-04-01 13:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811114', 'tblTempUsageDetail_20' ) start [2025-04-01 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811114', 'tblTempUsageDetail_20' ) end [2025-04-01 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811114', 'tblTempVendorCDR_20' ) start [2025-04-01 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811114', 'tblTempVendorCDR_20' ) end [2025-04-01 13:21:22] Production.INFO: ProcessCDR(1,14811114,1,1,2) [2025-04-01 13:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811114', 'tblTempUsageDetail_20' ) start [2025-04-01 13:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811114', 'tblTempUsageDetail_20' ) end [2025-04-01 13:21:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:21:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:21:28] Production.INFO: ==15129== Releasing lock... [2025-04-01 13:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:21:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:22:06 [end_date_ymd] => 2025-04-01 13:22:06 [RateCDR] => 1 ) [2025-04-01 13:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 10:22:06' and `end` < '2025-04-01 13:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 13:22:19] Production.INFO: count ==5241 [2025-04-01 13:22:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:22:06 - End Time 2025-04-01 13:22:06 [2025-04-01 13:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811119', 'tblTempUsageDetail_20' ) start [2025-04-01 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811119', 'tblTempUsageDetail_20' ) end [2025-04-01 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811119', 'tblTempVendorCDR_20' ) start [2025-04-01 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811119', 'tblTempVendorCDR_20' ) end [2025-04-01 13:22:22] Production.INFO: ProcessCDR(1,14811119,1,1,2) [2025-04-01 13:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811119', 'tblTempUsageDetail_20' ) start [2025-04-01 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811119', 'tblTempUsageDetail_20' ) end [2025-04-01 13:22:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:22:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:22:28] Production.INFO: ==15225== Releasing lock... [2025-04-01 13:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:22:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:23:06 [end_date_ymd] => 2025-04-01 13:23:06 [RateCDR] => 1 ) [2025-04-01 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-01 10:23:06' and `end` < '2025-04-01 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-01 13:23:20] Production.INFO: count ==5230 [2025-04-01 13:23:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:23:06 - End Time 2025-04-01 13:23:06 [2025-04-01 13:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811124', 'tblTempUsageDetail_20' ) start [2025-04-01 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811124', 'tblTempUsageDetail_20' ) end [2025-04-01 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811124', 'tblTempVendorCDR_20' ) start [2025-04-01 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811124', 'tblTempVendorCDR_20' ) end [2025-04-01 13:23:22] Production.INFO: ProcessCDR(1,14811124,1,1,2) [2025-04-01 13:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811124', 'tblTempUsageDetail_20' ) start [2025-04-01 13:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811124', 'tblTempUsageDetail_20' ) end [2025-04-01 13:23:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:23:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:23:28] Production.INFO: ==15318== Releasing lock... [2025-04-01 13:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:23:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:24:06 [end_date_ymd] => 2025-04-01 13:24:06 [RateCDR] => 1 ) [2025-04-01 13:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 10:24:06' and `end` < '2025-04-01 13:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 13:24:19] Production.INFO: count ==5210 [2025-04-01 13:24:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:24:06 - End Time 2025-04-01 13:24:06 [2025-04-01 13:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811129', 'tblTempUsageDetail_20' ) start [2025-04-01 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811129', 'tblTempUsageDetail_20' ) end [2025-04-01 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811129', 'tblTempVendorCDR_20' ) start [2025-04-01 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811129', 'tblTempVendorCDR_20' ) end [2025-04-01 13:24:22] Production.INFO: ProcessCDR(1,14811129,1,1,2) [2025-04-01 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811129', 'tblTempUsageDetail_20' ) start [2025-04-01 13:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811129', 'tblTempUsageDetail_20' ) end [2025-04-01 13:24:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:24:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:24:28] Production.INFO: ==15404== Releasing lock... [2025-04-01 13:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:24:28] Production.INFO: 67 MB #Memory Used# [2025-04-01 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:25:06 [end_date_ymd] => 2025-04-01 13:25:06 [RateCDR] => 1 ) [2025-04-01 13: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-01 10:25:06' and `end` < '2025-04-01 13: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-01 13:25:20] Production.INFO: count ==5217 [2025-04-01 13:25:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:25:06 - End Time 2025-04-01 13:25:06 [2025-04-01 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811134', 'tblTempUsageDetail_20' ) start [2025-04-01 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811134', 'tblTempUsageDetail_20' ) end [2025-04-01 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811134', 'tblTempVendorCDR_20' ) start [2025-04-01 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811134', 'tblTempVendorCDR_20' ) end [2025-04-01 13:25:22] Production.INFO: ProcessCDR(1,14811134,1,1,2) [2025-04-01 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811134', 'tblTempUsageDetail_20' ) start [2025-04-01 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811134', 'tblTempUsageDetail_20' ) end [2025-04-01 13:25:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:25:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:25:28] Production.INFO: ==15496== Releasing lock... [2025-04-01 13:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:25:28] Production.INFO: 67 MB #Memory Used# [2025-04-01 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:26:06 [end_date_ymd] => 2025-04-01 13:26:06 [RateCDR] => 1 ) [2025-04-01 13:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 10:26:06' and `end` < '2025-04-01 13:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 13:26:20] Production.INFO: count ==5233 [2025-04-01 13:26:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:26:06 - End Time 2025-04-01 13:26:06 [2025-04-01 13:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811139', 'tblTempUsageDetail_20' ) start [2025-04-01 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811139', 'tblTempUsageDetail_20' ) end [2025-04-01 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811139', 'tblTempVendorCDR_20' ) start [2025-04-01 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811139', 'tblTempVendorCDR_20' ) end [2025-04-01 13:26:22] Production.INFO: ProcessCDR(1,14811139,1,1,2) [2025-04-01 13:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811139', 'tblTempUsageDetail_20' ) start [2025-04-01 13:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811139', 'tblTempUsageDetail_20' ) end [2025-04-01 13:26:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:26:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:26:28] Production.INFO: ==15589== Releasing lock... [2025-04-01 13:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:26:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 13:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:27:06 [end_date_ymd] => 2025-04-01 13:27:06 [RateCDR] => 1 ) [2025-04-01 13: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-01 10:27:06' and `end` < '2025-04-01 13: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-01 13:27:20] Production.INFO: count ==5239 [2025-04-01 13:27:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:27:06 - End Time 2025-04-01 13:27:06 [2025-04-01 13:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811144', 'tblTempUsageDetail_20' ) start [2025-04-01 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811144', 'tblTempUsageDetail_20' ) end [2025-04-01 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811144', 'tblTempVendorCDR_20' ) start [2025-04-01 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811144', 'tblTempVendorCDR_20' ) end [2025-04-01 13:27:23] Production.INFO: ProcessCDR(1,14811144,1,1,2) [2025-04-01 13:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811144', 'tblTempUsageDetail_20' ) start [2025-04-01 13:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811144', 'tblTempUsageDetail_20' ) end [2025-04-01 13:27:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:27:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:27:28] Production.INFO: ==15676== Releasing lock... [2025-04-01 13:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:27:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 13:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:28:06 [end_date_ymd] => 2025-04-01 13:28:06 [RateCDR] => 1 ) [2025-04-01 13:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 10:28:06' and `end` < '2025-04-01 13:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 13:28:20] Production.INFO: count ==5253 [2025-04-01 13:28:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:28:06 - End Time 2025-04-01 13:28:06 [2025-04-01 13:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811149', 'tblTempUsageDetail_20' ) start [2025-04-01 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811149', 'tblTempUsageDetail_20' ) end [2025-04-01 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811149', 'tblTempVendorCDR_20' ) start [2025-04-01 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811149', 'tblTempVendorCDR_20' ) end [2025-04-01 13:28:22] Production.INFO: ProcessCDR(1,14811149,1,1,2) [2025-04-01 13:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811149', 'tblTempUsageDetail_20' ) start [2025-04-01 13:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811149', 'tblTempUsageDetail_20' ) end [2025-04-01 13:28:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:28:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:28:28] Production.INFO: ==15811== Releasing lock... [2025-04-01 13:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:28:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:29:06 [end_date_ymd] => 2025-04-01 13:29:06 [RateCDR] => 1 ) [2025-04-01 13: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-01 10:29:06' and `end` < '2025-04-01 13: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-01 13:29:20] Production.INFO: count ==5270 [2025-04-01 13:29:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:29:06 - End Time 2025-04-01 13:29:06 [2025-04-01 13:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811154', 'tblTempUsageDetail_20' ) start [2025-04-01 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811154', 'tblTempUsageDetail_20' ) end [2025-04-01 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811154', 'tblTempVendorCDR_20' ) start [2025-04-01 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811154', 'tblTempVendorCDR_20' ) end [2025-04-01 13:29:22] Production.INFO: ProcessCDR(1,14811154,1,1,2) [2025-04-01 13:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811154', 'tblTempUsageDetail_20' ) start [2025-04-01 13:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811154', 'tblTempUsageDetail_20' ) end [2025-04-01 13:29:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:29:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:29:28] Production.INFO: ==15906== Releasing lock... [2025-04-01 13:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:29:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:30:06 [end_date_ymd] => 2025-04-01 13:30:06 [RateCDR] => 1 ) [2025-04-01 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-01 10:30:06' and `end` < '2025-04-01 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-01 13:30:20] Production.INFO: count ==5283 [2025-04-01 13:30:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:30:06 - End Time 2025-04-01 13:30:06 [2025-04-01 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811160', 'tblTempUsageDetail_20' ) start [2025-04-01 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811160', 'tblTempUsageDetail_20' ) end [2025-04-01 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811160', 'tblTempVendorCDR_20' ) start [2025-04-01 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811160', 'tblTempVendorCDR_20' ) end [2025-04-01 13:30:23] Production.INFO: ProcessCDR(1,14811160,1,1,2) [2025-04-01 13:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811160', 'tblTempUsageDetail_20' ) start [2025-04-01 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811160', 'tblTempUsageDetail_20' ) end [2025-04-01 13:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:30:28] Production.INFO: ==16000== Releasing lock... [2025-04-01 13:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:30:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 13:31:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:31:07 [end_date_ymd] => 2025-04-01 13:31:07 [RateCDR] => 1 ) [2025-04-01 13:31: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-01 10:31:07' and `end` < '2025-04-01 13:31: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-01 13:31:20] Production.INFO: count ==5279 [2025-04-01 13:31:23] Production.ERROR: pbx CDR StartTime 2025-04-01 10:31:07 - End Time 2025-04-01 13:31:07 [2025-04-01 13:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811165', 'tblTempUsageDetail_20' ) start [2025-04-01 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811165', 'tblTempUsageDetail_20' ) end [2025-04-01 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811165', 'tblTempVendorCDR_20' ) start [2025-04-01 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811165', 'tblTempVendorCDR_20' ) end [2025-04-01 13:31:23] Production.INFO: ProcessCDR(1,14811165,1,1,2) [2025-04-01 13:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811165', 'tblTempUsageDetail_20' ) start [2025-04-01 13:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811165', 'tblTempUsageDetail_20' ) end [2025-04-01 13:31:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:31:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:31:28] Production.INFO: ==16092== Releasing lock... [2025-04-01 13:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:31:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:32:06 [end_date_ymd] => 2025-04-01 13:32:06 [RateCDR] => 1 ) [2025-04-01 13:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 10:32:06' and `end` < '2025-04-01 13:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 13:32:19] Production.INFO: count ==5287 [2025-04-01 13:32:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:32:06 - End Time 2025-04-01 13:32:06 [2025-04-01 13:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811170', 'tblTempUsageDetail_20' ) start [2025-04-01 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811170', 'tblTempUsageDetail_20' ) end [2025-04-01 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811170', 'tblTempVendorCDR_20' ) start [2025-04-01 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811170', 'tblTempVendorCDR_20' ) end [2025-04-01 13:32:22] Production.INFO: ProcessCDR(1,14811170,1,1,2) [2025-04-01 13:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811170', 'tblTempUsageDetail_20' ) start [2025-04-01 13:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811170', 'tblTempUsageDetail_20' ) end [2025-04-01 13:32:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:32:28] Production.INFO: ==16176== Releasing lock... [2025-04-01 13:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:32:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:33:05 [end_date_ymd] => 2025-04-01 13:33:05 [RateCDR] => 1 ) [2025-04-01 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-01 10:33:05' and `end` < '2025-04-01 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-01 13:33:19] Production.INFO: count ==5297 [2025-04-01 13:33:21] Production.ERROR: pbx CDR StartTime 2025-04-01 10:33:05 - End Time 2025-04-01 13:33:05 [2025-04-01 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811175', 'tblTempUsageDetail_20' ) start [2025-04-01 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811175', 'tblTempUsageDetail_20' ) end [2025-04-01 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811175', 'tblTempVendorCDR_20' ) start [2025-04-01 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811175', 'tblTempVendorCDR_20' ) end [2025-04-01 13:33:21] Production.INFO: ProcessCDR(1,14811175,1,1,2) [2025-04-01 13:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811175', 'tblTempUsageDetail_20' ) start [2025-04-01 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811175', 'tblTempUsageDetail_20' ) end [2025-04-01 13:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:33:27] Production.INFO: ==16264== Releasing lock... [2025-04-01 13:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:33:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 13:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:34:06 [end_date_ymd] => 2025-04-01 13:34:06 [RateCDR] => 1 ) [2025-04-01 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-01 10:34:06' and `end` < '2025-04-01 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-01 13:34:20] Production.INFO: count ==5286 [2025-04-01 13:34:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:34:06 - End Time 2025-04-01 13:34:06 [2025-04-01 13:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811180', 'tblTempUsageDetail_20' ) start [2025-04-01 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811180', 'tblTempUsageDetail_20' ) end [2025-04-01 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811180', 'tblTempVendorCDR_20' ) start [2025-04-01 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811180', 'tblTempVendorCDR_20' ) end [2025-04-01 13:34:22] Production.INFO: ProcessCDR(1,14811180,1,1,2) [2025-04-01 13:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811180', 'tblTempUsageDetail_20' ) start [2025-04-01 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811180', 'tblTempUsageDetail_20' ) end [2025-04-01 13:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:34:27] Production.INFO: ==16359== Releasing lock... [2025-04-01 13:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:34:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 13:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:35:04 [end_date_ymd] => 2025-04-01 13:35:04 [RateCDR] => 1 ) [2025-04-01 13:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 10:35:04' and `end` < '2025-04-01 13:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 13:35:18] Production.INFO: count ==5293 [2025-04-01 13:35:20] Production.ERROR: pbx CDR StartTime 2025-04-01 10:35:04 - End Time 2025-04-01 13:35:04 [2025-04-01 13:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811185', 'tblTempUsageDetail_20' ) start [2025-04-01 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811185', 'tblTempUsageDetail_20' ) end [2025-04-01 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811185', 'tblTempVendorCDR_20' ) start [2025-04-01 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811185', 'tblTempVendorCDR_20' ) end [2025-04-01 13:35:21] Production.INFO: ProcessCDR(1,14811185,1,1,2) [2025-04-01 13:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811185', 'tblTempUsageDetail_20' ) start [2025-04-01 13:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811185', 'tblTempUsageDetail_20' ) end [2025-04-01 13:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:35:26] Production.INFO: ==16445== Releasing lock... [2025-04-01 13:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:35:26] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:36:05 [end_date_ymd] => 2025-04-01 13:36:05 [RateCDR] => 1 ) [2025-04-01 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-01 10:36:05' and `end` < '2025-04-01 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-01 13:36:19] Production.INFO: count ==5306 [2025-04-01 13:36:21] Production.ERROR: pbx CDR StartTime 2025-04-01 10:36:05 - End Time 2025-04-01 13:36:05 [2025-04-01 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811190', 'tblTempUsageDetail_20' ) start [2025-04-01 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811190', 'tblTempUsageDetail_20' ) end [2025-04-01 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811190', 'tblTempVendorCDR_20' ) start [2025-04-01 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811190', 'tblTempVendorCDR_20' ) end [2025-04-01 13:36:22] Production.INFO: ProcessCDR(1,14811190,1,1,2) [2025-04-01 13:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811190', 'tblTempUsageDetail_20' ) start [2025-04-01 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811190', 'tblTempUsageDetail_20' ) end [2025-04-01 13:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:36:27] Production.INFO: ==16539== Releasing lock... [2025-04-01 13:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:36:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:37:06 [end_date_ymd] => 2025-04-01 13:37:06 [RateCDR] => 1 ) [2025-04-01 13:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 10:37:06' and `end` < '2025-04-01 13:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 13:37:20] Production.INFO: count ==5288 [2025-04-01 13:37:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:37:06 - End Time 2025-04-01 13:37:06 [2025-04-01 13:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811195', 'tblTempUsageDetail_20' ) start [2025-04-01 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811195', 'tblTempUsageDetail_20' ) end [2025-04-01 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811195', 'tblTempVendorCDR_20' ) start [2025-04-01 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811195', 'tblTempVendorCDR_20' ) end [2025-04-01 13:37:22] Production.INFO: ProcessCDR(1,14811195,1,1,2) [2025-04-01 13:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811195', 'tblTempUsageDetail_20' ) start [2025-04-01 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811195', 'tblTempUsageDetail_20' ) end [2025-04-01 13:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:37:27] Production.INFO: ==16623== Releasing lock... [2025-04-01 13:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:37:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:38:05 [end_date_ymd] => 2025-04-01 13:38:05 [RateCDR] => 1 ) [2025-04-01 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-01 10:38:05' and `end` < '2025-04-01 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-01 13:38:19] Production.INFO: count ==5285 [2025-04-01 13:38:21] Production.ERROR: pbx CDR StartTime 2025-04-01 10:38:05 - End Time 2025-04-01 13:38:05 [2025-04-01 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811200', 'tblTempUsageDetail_20' ) start [2025-04-01 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811200', 'tblTempUsageDetail_20' ) end [2025-04-01 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811200', 'tblTempVendorCDR_20' ) start [2025-04-01 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811200', 'tblTempVendorCDR_20' ) end [2025-04-01 13:38:22] Production.INFO: ProcessCDR(1,14811200,1,1,2) [2025-04-01 13:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811200', 'tblTempUsageDetail_20' ) start [2025-04-01 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811200', 'tblTempUsageDetail_20' ) end [2025-04-01 13:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:38:27] Production.INFO: ==16708== Releasing lock... [2025-04-01 13:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:38:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 13:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:39:06 [end_date_ymd] => 2025-04-01 13:39:06 [RateCDR] => 1 ) [2025-04-01 13:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 10:39:06' and `end` < '2025-04-01 13:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 13:39:20] Production.INFO: count ==5290 [2025-04-01 13:39:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:39:06 - End Time 2025-04-01 13:39:06 [2025-04-01 13:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811205', 'tblTempUsageDetail_20' ) start [2025-04-01 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811205', 'tblTempUsageDetail_20' ) end [2025-04-01 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811205', 'tblTempVendorCDR_20' ) start [2025-04-01 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811205', 'tblTempVendorCDR_20' ) end [2025-04-01 13:39:22] Production.INFO: ProcessCDR(1,14811205,1,1,2) [2025-04-01 13:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811205', 'tblTempUsageDetail_20' ) start [2025-04-01 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811205', 'tblTempUsageDetail_20' ) end [2025-04-01 13:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:39:27] Production.INFO: ==16792== Releasing lock... [2025-04-01 13:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:39:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 13:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:40:07 [end_date_ymd] => 2025-04-01 13:40:07 [RateCDR] => 1 ) [2025-04-01 13: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-01 10:40:07' and `end` < '2025-04-01 13:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 13:40:20] Production.INFO: count ==5288 [2025-04-01 13:40:23] Production.ERROR: pbx CDR StartTime 2025-04-01 10:40:07 - End Time 2025-04-01 13:40:07 [2025-04-01 13:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811210', 'tblTempUsageDetail_20' ) start [2025-04-01 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811210', 'tblTempUsageDetail_20' ) end [2025-04-01 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811210', 'tblTempVendorCDR_20' ) start [2025-04-01 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811210', 'tblTempVendorCDR_20' ) end [2025-04-01 13:40:23] Production.INFO: ProcessCDR(1,14811210,1,1,2) [2025-04-01 13:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811210', 'tblTempUsageDetail_20' ) start [2025-04-01 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811210', 'tblTempUsageDetail_20' ) end [2025-04-01 13:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:40:28] Production.INFO: ==16876== Releasing lock... [2025-04-01 13:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:40:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:41:05 [end_date_ymd] => 2025-04-01 13:41:05 [RateCDR] => 1 ) [2025-04-01 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-01 10:41:05' and `end` < '2025-04-01 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-01 13:41:18] Production.INFO: count ==5320 [2025-04-01 13:41:21] Production.ERROR: pbx CDR StartTime 2025-04-01 10:41:05 - End Time 2025-04-01 13:41:05 [2025-04-01 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811212', 'tblTempUsageDetail_20' ) start [2025-04-01 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811212', 'tblTempUsageDetail_20' ) end [2025-04-01 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811212', 'tblTempVendorCDR_20' ) start [2025-04-01 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811212', 'tblTempVendorCDR_20' ) end [2025-04-01 13:41:21] Production.INFO: ProcessCDR(1,14811212,1,1,2) [2025-04-01 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811212', 'tblTempUsageDetail_20' ) start [2025-04-01 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811212', 'tblTempUsageDetail_20' ) end [2025-04-01 13:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:41:27] Production.INFO: ==16965== Releasing lock... [2025-04-01 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:41:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:42:05 [end_date_ymd] => 2025-04-01 13:42:05 [RateCDR] => 1 ) [2025-04-01 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-01 10:42:05' and `end` < '2025-04-01 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-01 13:42:19] Production.INFO: count ==5327 [2025-04-01 13:42:21] Production.ERROR: pbx CDR StartTime 2025-04-01 10:42:05 - End Time 2025-04-01 13:42:05 [2025-04-01 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811221', 'tblTempUsageDetail_20' ) start [2025-04-01 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811221', 'tblTempUsageDetail_20' ) end [2025-04-01 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811221', 'tblTempVendorCDR_20' ) start [2025-04-01 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811221', 'tblTempVendorCDR_20' ) end [2025-04-01 13:42:22] Production.INFO: ProcessCDR(1,14811221,1,1,2) [2025-04-01 13:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811221', 'tblTempUsageDetail_20' ) start [2025-04-01 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811221', 'tblTempUsageDetail_20' ) end [2025-04-01 13:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:42:27] Production.INFO: ==17048== Releasing lock... [2025-04-01 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:42:27] Production.INFO: 68 MB #Memory Used# [2025-04-01 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:43:05 [end_date_ymd] => 2025-04-01 13:43:05 [RateCDR] => 1 ) [2025-04-01 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 10:43:05' and `end` < '2025-04-01 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 13:43:19] Production.INFO: count ==5316 [2025-04-01 13:43:21] Production.ERROR: pbx CDR StartTime 2025-04-01 10:43:05 - End Time 2025-04-01 13:43:05 [2025-04-01 13:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811226', 'tblTempUsageDetail_20' ) start [2025-04-01 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811226', 'tblTempUsageDetail_20' ) end [2025-04-01 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811226', 'tblTempVendorCDR_20' ) start [2025-04-01 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811226', 'tblTempVendorCDR_20' ) end [2025-04-01 13:43:22] Production.INFO: ProcessCDR(1,14811226,1,1,2) [2025-04-01 13:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811226', 'tblTempUsageDetail_20' ) start [2025-04-01 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811226', 'tblTempUsageDetail_20' ) end [2025-04-01 13:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:43:27] Production.INFO: ==17179== Releasing lock... [2025-04-01 13:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:43:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:44:05 [end_date_ymd] => 2025-04-01 13:44:05 [RateCDR] => 1 ) [2025-04-01 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-01 10:44:05' and `end` < '2025-04-01 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-01 13:44:19] Production.INFO: count ==5291 [2025-04-01 13:44:21] Production.ERROR: pbx CDR StartTime 2025-04-01 10:44:05 - End Time 2025-04-01 13:44:05 [2025-04-01 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811231', 'tblTempUsageDetail_20' ) start [2025-04-01 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811231', 'tblTempUsageDetail_20' ) end [2025-04-01 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811231', 'tblTempVendorCDR_20' ) start [2025-04-01 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811231', 'tblTempVendorCDR_20' ) end [2025-04-01 13:44:21] Production.INFO: ProcessCDR(1,14811231,1,1,2) [2025-04-01 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811231', 'tblTempUsageDetail_20' ) start [2025-04-01 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811231', 'tblTempUsageDetail_20' ) end [2025-04-01 13:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:44:27] Production.INFO: ==17266== Releasing lock... [2025-04-01 13:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:44:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:45:06 [end_date_ymd] => 2025-04-01 13:45:06 [RateCDR] => 1 ) [2025-04-01 13: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-01 10:45:06' and `end` < '2025-04-01 13: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-01 13:45:19] Production.INFO: count ==5268 [2025-04-01 13:45:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:45:06 - End Time 2025-04-01 13:45:06 [2025-04-01 13:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811236', 'tblTempUsageDetail_20' ) start [2025-04-01 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811236', 'tblTempUsageDetail_20' ) end [2025-04-01 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811236', 'tblTempVendorCDR_20' ) start [2025-04-01 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811236', 'tblTempVendorCDR_20' ) end [2025-04-01 13:45:22] Production.INFO: ProcessCDR(1,14811236,1,1,2) [2025-04-01 13:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811236', 'tblTempUsageDetail_20' ) start [2025-04-01 13:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811236', 'tblTempUsageDetail_20' ) end [2025-04-01 13:45:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:45:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:45:28] Production.INFO: ==17348== Releasing lock... [2025-04-01 13:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:45:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:46:05 [end_date_ymd] => 2025-04-01 13:46:05 [RateCDR] => 1 ) [2025-04-01 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-01 10:46:05' and `end` < '2025-04-01 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-01 13:46:19] Production.INFO: count ==5238 [2025-04-01 13:46:21] Production.ERROR: pbx CDR StartTime 2025-04-01 10:46:05 - End Time 2025-04-01 13:46:05 [2025-04-01 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811241', 'tblTempUsageDetail_20' ) start [2025-04-01 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811241', 'tblTempUsageDetail_20' ) end [2025-04-01 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811241', 'tblTempVendorCDR_20' ) start [2025-04-01 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811241', 'tblTempVendorCDR_20' ) end [2025-04-01 13:46:21] Production.INFO: ProcessCDR(1,14811241,1,1,2) [2025-04-01 13:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811241', 'tblTempUsageDetail_20' ) start [2025-04-01 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811241', 'tblTempUsageDetail_20' ) end [2025-04-01 13:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:46:27] Production.INFO: ==17430== Releasing lock... [2025-04-01 13:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:46:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:47:06 [end_date_ymd] => 2025-04-01 13:47:06 [RateCDR] => 1 ) [2025-04-01 13: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-01 10:47:06' and `end` < '2025-04-01 13: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-01 13:47:19] Production.INFO: count ==5228 [2025-04-01 13:47:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:47:06 - End Time 2025-04-01 13:47:06 [2025-04-01 13:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811246', 'tblTempUsageDetail_20' ) start [2025-04-01 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811246', 'tblTempUsageDetail_20' ) end [2025-04-01 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811246', 'tblTempVendorCDR_20' ) start [2025-04-01 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811246', 'tblTempVendorCDR_20' ) end [2025-04-01 13:47:22] Production.INFO: ProcessCDR(1,14811246,1,1,2) [2025-04-01 13:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811246', 'tblTempUsageDetail_20' ) start [2025-04-01 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811246', 'tblTempUsageDetail_20' ) end [2025-04-01 13:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:47:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:47:28] Production.INFO: ==17517== Releasing lock... [2025-04-01 13:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:47:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:48:05 [end_date_ymd] => 2025-04-01 13:48:05 [RateCDR] => 1 ) [2025-04-01 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-01 10:48:05' and `end` < '2025-04-01 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-01 13:48:19] Production.INFO: count ==5237 [2025-04-01 13:48:21] Production.ERROR: pbx CDR StartTime 2025-04-01 10:48:05 - End Time 2025-04-01 13:48:05 [2025-04-01 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811251', 'tblTempUsageDetail_20' ) start [2025-04-01 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811251', 'tblTempUsageDetail_20' ) end [2025-04-01 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811251', 'tblTempVendorCDR_20' ) start [2025-04-01 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811251', 'tblTempVendorCDR_20' ) end [2025-04-01 13:48:21] Production.INFO: ProcessCDR(1,14811251,1,1,2) [2025-04-01 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811251', 'tblTempUsageDetail_20' ) start [2025-04-01 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811251', 'tblTempUsageDetail_20' ) end [2025-04-01 13:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:48:27] Production.INFO: ==17595== Releasing lock... [2025-04-01 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:48:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:49:05 [end_date_ymd] => 2025-04-01 13:49:05 [RateCDR] => 1 ) [2025-04-01 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-01 10:49:05' and `end` < '2025-04-01 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-01 13:49:19] Production.INFO: count ==5222 [2025-04-01 13:49:21] Production.ERROR: pbx CDR StartTime 2025-04-01 10:49:05 - End Time 2025-04-01 13:49:05 [2025-04-01 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811256', 'tblTempUsageDetail_20' ) start [2025-04-01 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811256', 'tblTempUsageDetail_20' ) end [2025-04-01 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811256', 'tblTempVendorCDR_20' ) start [2025-04-01 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811256', 'tblTempVendorCDR_20' ) end [2025-04-01 13:49:21] Production.INFO: ProcessCDR(1,14811256,1,1,2) [2025-04-01 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811256', 'tblTempUsageDetail_20' ) start [2025-04-01 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811256', 'tblTempUsageDetail_20' ) end [2025-04-01 13:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:49:26] Production.INFO: ==17686== Releasing lock... [2025-04-01 13:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:49:26] Production.INFO: 67 MB #Memory Used# [2025-04-01 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:50:05 [end_date_ymd] => 2025-04-01 13:50:05 [RateCDR] => 1 ) [2025-04-01 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-01 10:50:05' and `end` < '2025-04-01 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-01 13:50:19] Production.INFO: count ==5224 [2025-04-01 13:50:21] Production.ERROR: pbx CDR StartTime 2025-04-01 10:50:05 - End Time 2025-04-01 13:50:05 [2025-04-01 13:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811261', 'tblTempUsageDetail_20' ) start [2025-04-01 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811261', 'tblTempUsageDetail_20' ) end [2025-04-01 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811261', 'tblTempVendorCDR_20' ) start [2025-04-01 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811261', 'tblTempVendorCDR_20' ) end [2025-04-01 13:50:21] Production.INFO: ProcessCDR(1,14811261,1,1,2) [2025-04-01 13:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811261', 'tblTempUsageDetail_20' ) start [2025-04-01 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811261', 'tblTempUsageDetail_20' ) end [2025-04-01 13:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:50:27] Production.INFO: ==17766== Releasing lock... [2025-04-01 13:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:50:27] Production.INFO: 67 MB #Memory Used# [2025-04-01 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:51:05 [end_date_ymd] => 2025-04-01 13:51:05 [RateCDR] => 1 ) [2025-04-01 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-01 10:51:05' and `end` < '2025-04-01 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-01 13:51:19] Production.INFO: count ==5205 [2025-04-01 13:51:21] Production.ERROR: pbx CDR StartTime 2025-04-01 10:51:05 - End Time 2025-04-01 13:51:05 [2025-04-01 13:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811267', 'tblTempUsageDetail_20' ) start [2025-04-01 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811267', 'tblTempUsageDetail_20' ) end [2025-04-01 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811267', 'tblTempVendorCDR_20' ) start [2025-04-01 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811267', 'tblTempVendorCDR_20' ) end [2025-04-01 13:51:21] Production.INFO: ProcessCDR(1,14811267,1,1,2) [2025-04-01 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811267', 'tblTempUsageDetail_20' ) start [2025-04-01 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811267', 'tblTempUsageDetail_20' ) end [2025-04-01 13:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:51:27] Production.INFO: ==17852== Releasing lock... [2025-04-01 13:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:51:27] Production.INFO: 67 MB #Memory Used# [2025-04-01 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:52:05 [end_date_ymd] => 2025-04-01 13:52:05 [RateCDR] => 1 ) [2025-04-01 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-01 10:52:05' and `end` < '2025-04-01 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-01 13:52:19] Production.INFO: count ==5213 [2025-04-01 13:52:21] Production.ERROR: pbx CDR StartTime 2025-04-01 10:52:05 - End Time 2025-04-01 13:52:05 [2025-04-01 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811272', 'tblTempUsageDetail_20' ) start [2025-04-01 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811272', 'tblTempUsageDetail_20' ) end [2025-04-01 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811272', 'tblTempVendorCDR_20' ) start [2025-04-01 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811272', 'tblTempVendorCDR_20' ) end [2025-04-01 13:52:21] Production.INFO: ProcessCDR(1,14811272,1,1,2) [2025-04-01 13:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811272', 'tblTempUsageDetail_20' ) start [2025-04-01 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811272', 'tblTempUsageDetail_20' ) end [2025-04-01 13:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:52:27] Production.INFO: ==17932== Releasing lock... [2025-04-01 13:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:52:27] Production.INFO: 67 MB #Memory Used# [2025-04-01 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:53:05 [end_date_ymd] => 2025-04-01 13:53:05 [RateCDR] => 1 ) [2025-04-01 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-01 10:53:05' and `end` < '2025-04-01 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-01 13:53:19] Production.INFO: count ==5216 [2025-04-01 13:53:21] Production.ERROR: pbx CDR StartTime 2025-04-01 10:53:05 - End Time 2025-04-01 13:53:05 [2025-04-01 13:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811277', 'tblTempUsageDetail_20' ) start [2025-04-01 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811277', 'tblTempUsageDetail_20' ) end [2025-04-01 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811277', 'tblTempVendorCDR_20' ) start [2025-04-01 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811277', 'tblTempVendorCDR_20' ) end [2025-04-01 13:53:21] Production.INFO: ProcessCDR(1,14811277,1,1,2) [2025-04-01 13:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811277', 'tblTempUsageDetail_20' ) start [2025-04-01 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811277', 'tblTempUsageDetail_20' ) end [2025-04-01 13:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:53:26] Production.INFO: ==18014== Releasing lock... [2025-04-01 13:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:53:26] Production.INFO: 67 MB #Memory Used# [2025-04-01 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:54:05 [end_date_ymd] => 2025-04-01 13:54:05 [RateCDR] => 1 ) [2025-04-01 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-01 10:54:05' and `end` < '2025-04-01 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-01 13:54:19] Production.INFO: count ==5240 [2025-04-01 13:54:21] Production.ERROR: pbx CDR StartTime 2025-04-01 10:54:05 - End Time 2025-04-01 13:54:05 [2025-04-01 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811282', 'tblTempUsageDetail_20' ) start [2025-04-01 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811282', 'tblTempUsageDetail_20' ) end [2025-04-01 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811282', 'tblTempVendorCDR_20' ) start [2025-04-01 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811282', 'tblTempVendorCDR_20' ) end [2025-04-01 13:54:21] Production.INFO: ProcessCDR(1,14811282,1,1,2) [2025-04-01 13:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811282', 'tblTempUsageDetail_20' ) start [2025-04-01 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811282', 'tblTempUsageDetail_20' ) end [2025-04-01 13:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:54:27] Production.INFO: ==18100== Releasing lock... [2025-04-01 13:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:54:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 13:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:55:06 [end_date_ymd] => 2025-04-01 13:55:06 [RateCDR] => 1 ) [2025-04-01 13: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-01 10:55:06' and `end` < '2025-04-01 13: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-01 13:55:19] Production.INFO: count ==5253 [2025-04-01 13:55:22] Production.ERROR: pbx CDR StartTime 2025-04-01 10:55:06 - End Time 2025-04-01 13:55:06 [2025-04-01 13:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811287', 'tblTempUsageDetail_20' ) start [2025-04-01 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811287', 'tblTempUsageDetail_20' ) end [2025-04-01 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811287', 'tblTempVendorCDR_20' ) start [2025-04-01 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811287', 'tblTempVendorCDR_20' ) end [2025-04-01 13:55:22] Production.INFO: ProcessCDR(1,14811287,1,1,2) [2025-04-01 13:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811287', 'tblTempUsageDetail_20' ) start [2025-04-01 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811287', 'tblTempUsageDetail_20' ) end [2025-04-01 13:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:55:27] Production.INFO: ==18183== Releasing lock... [2025-04-01 13:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:55:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:56:05 [end_date_ymd] => 2025-04-01 13:56:05 [RateCDR] => 1 ) [2025-04-01 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-01 10:56:05' and `end` < '2025-04-01 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-01 13:56:19] Production.INFO: count ==5261 [2025-04-01 13:56:21] Production.ERROR: pbx CDR StartTime 2025-04-01 10:56:05 - End Time 2025-04-01 13:56:05 [2025-04-01 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811292', 'tblTempUsageDetail_20' ) start [2025-04-01 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811292', 'tblTempUsageDetail_20' ) end [2025-04-01 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811292', 'tblTempVendorCDR_20' ) start [2025-04-01 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811292', 'tblTempVendorCDR_20' ) end [2025-04-01 13:56:21] Production.INFO: ProcessCDR(1,14811292,1,1,2) [2025-04-01 13:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811292', 'tblTempUsageDetail_20' ) start [2025-04-01 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811292', 'tblTempUsageDetail_20' ) end [2025-04-01 13:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:56:27] Production.INFO: ==18265== Releasing lock... [2025-04-01 13:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:56:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 13:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:57:06 [end_date_ymd] => 2025-04-01 13:57:06 [RateCDR] => 1 ) [2025-04-01 13:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 10:57:06' and `end` < '2025-04-01 13:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 13:57:19] Production.INFO: count ==5289 [2025-04-01 13:57:21] Production.ERROR: pbx CDR StartTime 2025-04-01 10:57:06 - End Time 2025-04-01 13:57:06 [2025-04-01 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811297', 'tblTempUsageDetail_20' ) start [2025-04-01 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811297', 'tblTempUsageDetail_20' ) end [2025-04-01 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811297', 'tblTempVendorCDR_20' ) start [2025-04-01 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811297', 'tblTempVendorCDR_20' ) end [2025-04-01 13:57:22] Production.INFO: ProcessCDR(1,14811297,1,1,2) [2025-04-01 13:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811297', 'tblTempUsageDetail_20' ) start [2025-04-01 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811297', 'tblTempUsageDetail_20' ) end [2025-04-01 13:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:57:27] Production.INFO: ==18348== Releasing lock... [2025-04-01 13:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:57:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:58:05 [end_date_ymd] => 2025-04-01 13:58:05 [RateCDR] => 1 ) [2025-04-01 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-01 10:58:05' and `end` < '2025-04-01 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-01 13:58:19] Production.INFO: count ==5251 [2025-04-01 13:58:21] Production.ERROR: pbx CDR StartTime 2025-04-01 10:58:05 - End Time 2025-04-01 13:58:05 [2025-04-01 13:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811302', 'tblTempUsageDetail_20' ) start [2025-04-01 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811302', 'tblTempUsageDetail_20' ) end [2025-04-01 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811302', 'tblTempVendorCDR_20' ) start [2025-04-01 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811302', 'tblTempVendorCDR_20' ) end [2025-04-01 13:58:21] Production.INFO: ProcessCDR(1,14811302,1,1,2) [2025-04-01 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811302', 'tblTempUsageDetail_20' ) start [2025-04-01 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811302', 'tblTempUsageDetail_20' ) end [2025-04-01 13:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:58:27] Production.INFO: ==18434== Releasing lock... [2025-04-01 13:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:58:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 13:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 10:59:06 [end_date_ymd] => 2025-04-01 13:59:06 [RateCDR] => 1 ) [2025-04-01 13: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-01 10:59:06' and `end` < '2025-04-01 13: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-01 13:59:19] Production.INFO: count ==5260 [2025-04-01 13:59:21] Production.ERROR: pbx CDR StartTime 2025-04-01 10:59:06 - End Time 2025-04-01 13:59:06 [2025-04-01 13:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811307', 'tblTempUsageDetail_20' ) start [2025-04-01 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811307', 'tblTempUsageDetail_20' ) end [2025-04-01 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811307', 'tblTempVendorCDR_20' ) start [2025-04-01 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811307', 'tblTempVendorCDR_20' ) end [2025-04-01 13:59:21] Production.INFO: ProcessCDR(1,14811307,1,1,2) [2025-04-01 13:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 13:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811307', 'tblTempUsageDetail_20' ) start [2025-04-01 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811307', 'tblTempUsageDetail_20' ) end [2025-04-01 13:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 13:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 13:59:27] Production.INFO: ==18549== Releasing lock... [2025-04-01 13:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 13:59:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:00:06 [end_date_ymd] => 2025-04-01 14:00:06 [RateCDR] => 1 ) [2025-04-01 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-01 11:00:06' and `end` < '2025-04-01 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-01 14:00:20] Production.INFO: count ==5267 [2025-04-01 14:00:22] Production.ERROR: pbx CDR StartTime 2025-04-01 11:00:06 - End Time 2025-04-01 14:00:06 [2025-04-01 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811313', 'tblTempUsageDetail_20' ) start [2025-04-01 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811313', 'tblTempUsageDetail_20' ) end [2025-04-01 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811313', 'tblTempVendorCDR_20' ) start [2025-04-01 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811313', 'tblTempVendorCDR_20' ) end [2025-04-01 14:00:23] Production.INFO: ProcessCDR(1,14811313,1,1,2) [2025-04-01 14:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811313', 'tblTempUsageDetail_20' ) start [2025-04-01 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811313', 'tblTempUsageDetail_20' ) end [2025-04-01 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:00:28] Production.INFO: ==18636== Releasing lock... [2025-04-01 14:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:00:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:01:05 [end_date_ymd] => 2025-04-01 14:01:05 [RateCDR] => 1 ) [2025-04-01 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 11:01:05' and `end` < '2025-04-01 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 14:01:19] Production.INFO: count ==5327 [2025-04-01 14:01:22] Production.ERROR: pbx CDR StartTime 2025-04-01 11:01:05 - End Time 2025-04-01 14:01:05 [2025-04-01 14:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811318', 'tblTempUsageDetail_20' ) start [2025-04-01 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811318', 'tblTempUsageDetail_20' ) end [2025-04-01 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811318', 'tblTempVendorCDR_20' ) start [2025-04-01 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811318', 'tblTempVendorCDR_20' ) end [2025-04-01 14:01:22] Production.INFO: ProcessCDR(1,14811318,1,1,2) [2025-04-01 14:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811318', 'tblTempUsageDetail_20' ) start [2025-04-01 14:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811318', 'tblTempUsageDetail_20' ) end [2025-04-01 14:01:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:01:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:01:28] Production.INFO: ==18727== Releasing lock... [2025-04-01 14:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:01:28] Production.INFO: 68 MB #Memory Used# [2025-04-01 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:02:05 [end_date_ymd] => 2025-04-01 14:02:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:02:05' and `end` < '2025-04-01 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-01 14:02:19] Production.INFO: count ==5347 [2025-04-01 14:02:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:02:05 - End Time 2025-04-01 14:02:05 [2025-04-01 14:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811323', 'tblTempUsageDetail_20' ) start [2025-04-01 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811323', 'tblTempUsageDetail_20' ) end [2025-04-01 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811323', 'tblTempVendorCDR_20' ) start [2025-04-01 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811323', 'tblTempVendorCDR_20' ) end [2025-04-01 14:02:21] Production.INFO: ProcessCDR(1,14811323,1,1,2) [2025-04-01 14:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811323', 'tblTempUsageDetail_20' ) start [2025-04-01 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811323', 'tblTempUsageDetail_20' ) end [2025-04-01 14:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:02:27] Production.INFO: ==18809== Releasing lock... [2025-04-01 14:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:02:27] Production.INFO: 68 MB #Memory Used# [2025-04-01 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:03:05 [end_date_ymd] => 2025-04-01 14:03:05 [RateCDR] => 1 ) [2025-04-01 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 11:03:05' and `end` < '2025-04-01 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 14:03:19] Production.INFO: count ==5354 [2025-04-01 14:03:22] Production.ERROR: pbx CDR StartTime 2025-04-01 11:03:05 - End Time 2025-04-01 14:03:05 [2025-04-01 14:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811328', 'tblTempUsageDetail_20' ) start [2025-04-01 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811328', 'tblTempUsageDetail_20' ) end [2025-04-01 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811328', 'tblTempVendorCDR_20' ) start [2025-04-01 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811328', 'tblTempVendorCDR_20' ) end [2025-04-01 14:03:22] Production.INFO: ProcessCDR(1,14811328,1,1,2) [2025-04-01 14:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811328', 'tblTempUsageDetail_20' ) start [2025-04-01 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811328', 'tblTempUsageDetail_20' ) end [2025-04-01 14:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:03:27] Production.INFO: ==18894== Releasing lock... [2025-04-01 14:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:03:27] Production.INFO: 68 MB #Memory Used# [2025-04-01 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:04:05 [end_date_ymd] => 2025-04-01 14:04:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:04:05' and `end` < '2025-04-01 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-01 14:04:19] Production.INFO: count ==5358 [2025-04-01 14:04:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:04:05 - End Time 2025-04-01 14:04:05 [2025-04-01 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811333', 'tblTempUsageDetail_20' ) start [2025-04-01 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811333', 'tblTempUsageDetail_20' ) end [2025-04-01 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811333', 'tblTempVendorCDR_20' ) start [2025-04-01 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811333', 'tblTempVendorCDR_20' ) end [2025-04-01 14:04:21] Production.INFO: ProcessCDR(1,14811333,1,1,2) [2025-04-01 14:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811333', 'tblTempUsageDetail_20' ) start [2025-04-01 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811333', 'tblTempUsageDetail_20' ) end [2025-04-01 14:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:04:27] Production.INFO: ==18971== Releasing lock... [2025-04-01 14:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:04:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 14:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:05:06 [end_date_ymd] => 2025-04-01 14:05:06 [RateCDR] => 1 ) [2025-04-01 14: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-01 11:05:06' and `end` < '2025-04-01 14: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-01 14:05:19] Production.INFO: count ==5354 [2025-04-01 14:05:22] Production.ERROR: pbx CDR StartTime 2025-04-01 11:05:06 - End Time 2025-04-01 14:05:06 [2025-04-01 14:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811338', 'tblTempUsageDetail_20' ) start [2025-04-01 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811338', 'tblTempUsageDetail_20' ) end [2025-04-01 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811338', 'tblTempVendorCDR_20' ) start [2025-04-01 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811338', 'tblTempVendorCDR_20' ) end [2025-04-01 14:05:22] Production.INFO: ProcessCDR(1,14811338,1,1,2) [2025-04-01 14:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811338', 'tblTempUsageDetail_20' ) start [2025-04-01 14:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811338', 'tblTempUsageDetail_20' ) end [2025-04-01 14:05:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:05:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:05:28] Production.INFO: ==19049== Releasing lock... [2025-04-01 14:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:05:28] Production.INFO: 68 MB #Memory Used# [2025-04-01 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:06:05 [end_date_ymd] => 2025-04-01 14:06:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:06:05' and `end` < '2025-04-01 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-01 14:06:19] Production.INFO: count ==5343 [2025-04-01 14:06:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:06:05 - End Time 2025-04-01 14:06:05 [2025-04-01 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811343', 'tblTempUsageDetail_20' ) start [2025-04-01 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811343', 'tblTempUsageDetail_20' ) end [2025-04-01 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811343', 'tblTempVendorCDR_20' ) start [2025-04-01 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811343', 'tblTempVendorCDR_20' ) end [2025-04-01 14:06:21] Production.INFO: ProcessCDR(1,14811343,1,1,2) [2025-04-01 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811343', 'tblTempUsageDetail_20' ) start [2025-04-01 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811343', 'tblTempUsageDetail_20' ) end [2025-04-01 14:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:06:27] Production.INFO: ==19132== Releasing lock... [2025-04-01 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:06:27] Production.INFO: 68 MB #Memory Used# [2025-04-01 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:07:05 [end_date_ymd] => 2025-04-01 14:07:05 [RateCDR] => 1 ) [2025-04-01 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 11:07:05' and `end` < '2025-04-01 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 14:07:19] Production.INFO: count ==5360 [2025-04-01 14:07:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:07:05 - End Time 2025-04-01 14:07:05 [2025-04-01 14:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811348', 'tblTempUsageDetail_20' ) start [2025-04-01 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811348', 'tblTempUsageDetail_20' ) end [2025-04-01 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811348', 'tblTempVendorCDR_20' ) start [2025-04-01 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811348', 'tblTempVendorCDR_20' ) end [2025-04-01 14:07:21] Production.INFO: ProcessCDR(1,14811348,1,1,2) [2025-04-01 14:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811348', 'tblTempUsageDetail_20' ) start [2025-04-01 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811348', 'tblTempUsageDetail_20' ) end [2025-04-01 14:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:07:27] Production.INFO: ==19208== Releasing lock... [2025-04-01 14:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:07:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:08:05 [end_date_ymd] => 2025-04-01 14:08:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:08:05' and `end` < '2025-04-01 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-01 14:08:18] Production.INFO: count ==5343 [2025-04-01 14:08:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:08:05 - End Time 2025-04-01 14:08:05 [2025-04-01 14:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811353', 'tblTempUsageDetail_20' ) start [2025-04-01 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811353', 'tblTempUsageDetail_20' ) end [2025-04-01 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811353', 'tblTempVendorCDR_20' ) start [2025-04-01 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811353', 'tblTempVendorCDR_20' ) end [2025-04-01 14:08:21] Production.INFO: ProcessCDR(1,14811353,1,1,2) [2025-04-01 14:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811353', 'tblTempUsageDetail_20' ) start [2025-04-01 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811353', 'tblTempUsageDetail_20' ) end [2025-04-01 14:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:08:27] Production.INFO: ==19289== Releasing lock... [2025-04-01 14:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:08:27] Production.INFO: 68 MB #Memory Used# [2025-04-01 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:09:05 [end_date_ymd] => 2025-04-01 14:09:05 [RateCDR] => 1 ) [2025-04-01 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 11:09:05' and `end` < '2025-04-01 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 14:09:19] Production.INFO: count ==5346 [2025-04-01 14:09:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:09:05 - End Time 2025-04-01 14:09:05 [2025-04-01 14:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811358', 'tblTempUsageDetail_20' ) start [2025-04-01 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811358', 'tblTempUsageDetail_20' ) end [2025-04-01 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811358', 'tblTempVendorCDR_20' ) start [2025-04-01 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811358', 'tblTempVendorCDR_20' ) end [2025-04-01 14:09:21] Production.INFO: ProcessCDR(1,14811358,1,1,2) [2025-04-01 14:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811358', 'tblTempUsageDetail_20' ) start [2025-04-01 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811358', 'tblTempUsageDetail_20' ) end [2025-04-01 14:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:09:27] Production.INFO: ==19371== Releasing lock... [2025-04-01 14:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:09:27] Production.INFO: 68 MB #Memory Used# [2025-04-01 14:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:10:07 [end_date_ymd] => 2025-04-01 14:10:07 [RateCDR] => 1 ) [2025-04-01 14: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-01 11:10:07' and `end` < '2025-04-01 14: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-01 14:10:21] Production.INFO: count ==5363 [2025-04-01 14:10:24] Production.ERROR: pbx CDR StartTime 2025-04-01 11:10:07 - End Time 2025-04-01 14:10:07 [2025-04-01 14:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811364', 'tblTempUsageDetail_20' ) start [2025-04-01 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811364', 'tblTempUsageDetail_20' ) end [2025-04-01 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811364', 'tblTempVendorCDR_20' ) start [2025-04-01 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811364', 'tblTempVendorCDR_20' ) end [2025-04-01 14:10:24] Production.INFO: ProcessCDR(1,14811364,1,1,2) [2025-04-01 14:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811364', 'tblTempUsageDetail_20' ) start [2025-04-01 14:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811364', 'tblTempUsageDetail_20' ) end [2025-04-01 14:10:30] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:10:30] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:10:30] Production.INFO: ==19452== Releasing lock... [2025-04-01 14:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:10:30] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:11:05 [end_date_ymd] => 2025-04-01 14:11:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:11:05' and `end` < '2025-04-01 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-01 14:11:19] Production.INFO: count ==5342 [2025-04-01 14:11:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:11:05 - End Time 2025-04-01 14:11:05 [2025-04-01 14:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811365', 'tblTempUsageDetail_20' ) start [2025-04-01 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811365', 'tblTempUsageDetail_20' ) end [2025-04-01 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811365', 'tblTempVendorCDR_20' ) start [2025-04-01 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811365', 'tblTempVendorCDR_20' ) end [2025-04-01 14:11:21] Production.INFO: ProcessCDR(1,14811365,1,1,2) [2025-04-01 14:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811365', 'tblTempUsageDetail_20' ) start [2025-04-01 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811365', 'tblTempUsageDetail_20' ) end [2025-04-01 14:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:11:27] Production.INFO: ==19530== Releasing lock... [2025-04-01 14:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:11:27] Production.INFO: 68 MB #Memory Used# [2025-04-01 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:12:06 [end_date_ymd] => 2025-04-01 14:12:06 [RateCDR] => 1 ) [2025-04-01 14:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 11:12:06' and `end` < '2025-04-01 14:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 14:12:20] Production.INFO: count ==5360 [2025-04-01 14:12:23] Production.ERROR: pbx CDR StartTime 2025-04-01 11:12:06 - End Time 2025-04-01 14:12:06 [2025-04-01 14:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811374', 'tblTempUsageDetail_20' ) start [2025-04-01 14:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811374', 'tblTempUsageDetail_20' ) end [2025-04-01 14:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811374', 'tblTempVendorCDR_20' ) start [2025-04-01 14:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811374', 'tblTempVendorCDR_20' ) end [2025-04-01 14:12:23] Production.INFO: ProcessCDR(1,14811374,1,1,2) [2025-04-01 14:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811374', 'tblTempUsageDetail_20' ) start [2025-04-01 14:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811374', 'tblTempUsageDetail_20' ) end [2025-04-01 14:12:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:12:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:12:29] Production.INFO: ==19606== Releasing lock... [2025-04-01 14:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:12:29] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 14:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:13:06 [end_date_ymd] => 2025-04-01 14:13:06 [RateCDR] => 1 ) [2025-04-01 14:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 11:13:06' and `end` < '2025-04-01 14:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 14:13:20] Production.INFO: count ==5348 [2025-04-01 14:13:23] Production.ERROR: pbx CDR StartTime 2025-04-01 11:13:06 - End Time 2025-04-01 14:13:06 [2025-04-01 14:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811379', 'tblTempUsageDetail_20' ) start [2025-04-01 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811379', 'tblTempUsageDetail_20' ) end [2025-04-01 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811379', 'tblTempVendorCDR_20' ) start [2025-04-01 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811379', 'tblTempVendorCDR_20' ) end [2025-04-01 14:13:23] Production.INFO: ProcessCDR(1,14811379,1,1,2) [2025-04-01 14:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811379', 'tblTempUsageDetail_20' ) start [2025-04-01 14:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811379', 'tblTempUsageDetail_20' ) end [2025-04-01 14:13:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:13:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:13:29] Production.INFO: ==19687== Releasing lock... [2025-04-01 14:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:13:29] Production.INFO: 68 MB #Memory Used# [2025-04-01 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:14:05 [end_date_ymd] => 2025-04-01 14:14:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:14:05' and `end` < '2025-04-01 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-01 14:14:19] Production.INFO: count ==5324 [2025-04-01 14:14:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:14:05 - End Time 2025-04-01 14:14:05 [2025-04-01 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811384', 'tblTempUsageDetail_20' ) start [2025-04-01 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811384', 'tblTempUsageDetail_20' ) end [2025-04-01 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811384', 'tblTempVendorCDR_20' ) start [2025-04-01 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811384', 'tblTempVendorCDR_20' ) end [2025-04-01 14:14:21] Production.INFO: ProcessCDR(1,14811384,1,1,2) [2025-04-01 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811384', 'tblTempUsageDetail_20' ) start [2025-04-01 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811384', 'tblTempUsageDetail_20' ) end [2025-04-01 14:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:14:27] Production.INFO: ==19798== Releasing lock... [2025-04-01 14:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:14:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:15:05 [end_date_ymd] => 2025-04-01 14:15:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:15:05' and `end` < '2025-04-01 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-01 14:15:19] Production.INFO: count ==5336 [2025-04-01 14:15:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:15:05 - End Time 2025-04-01 14:15:05 [2025-04-01 14:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811389', 'tblTempUsageDetail_20' ) start [2025-04-01 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811389', 'tblTempUsageDetail_20' ) end [2025-04-01 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811389', 'tblTempVendorCDR_20' ) start [2025-04-01 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811389', 'tblTempVendorCDR_20' ) end [2025-04-01 14:15:21] Production.INFO: ProcessCDR(1,14811389,1,1,2) [2025-04-01 14:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811389', 'tblTempUsageDetail_20' ) start [2025-04-01 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811389', 'tblTempUsageDetail_20' ) end [2025-04-01 14:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:15:27] Production.INFO: ==19875== Releasing lock... [2025-04-01 14:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:15:27] Production.INFO: 68 MB #Memory Used# [2025-04-01 14:16:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:16:07 [end_date_ymd] => 2025-04-01 14:16:07 [RateCDR] => 1 ) [2025-04-01 14:16: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-01 11:16:07' and `end` < '2025-04-01 14:16: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-01 14:16:20] Production.INFO: count ==5340 [2025-04-01 14:16:23] Production.ERROR: pbx CDR StartTime 2025-04-01 11:16:07 - End Time 2025-04-01 14:16:07 [2025-04-01 14:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811394', 'tblTempUsageDetail_20' ) start [2025-04-01 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811394', 'tblTempUsageDetail_20' ) end [2025-04-01 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811394', 'tblTempVendorCDR_20' ) start [2025-04-01 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811394', 'tblTempVendorCDR_20' ) end [2025-04-01 14:16:23] Production.INFO: ProcessCDR(1,14811394,1,1,2) [2025-04-01 14:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811394', 'tblTempUsageDetail_20' ) start [2025-04-01 14:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811394', 'tblTempUsageDetail_20' ) end [2025-04-01 14:16:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:16:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:16:29] Production.INFO: ==19952== Releasing lock... [2025-04-01 14:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:16:29] Production.INFO: 68 MB #Memory Used# [2025-04-01 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:17:05 [end_date_ymd] => 2025-04-01 14:17:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:17:05' and `end` < '2025-04-01 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-01 14:17:20] Production.INFO: count ==5346 [2025-04-01 14:17:22] Production.ERROR: pbx CDR StartTime 2025-04-01 11:17:05 - End Time 2025-04-01 14:17:05 [2025-04-01 14:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811399', 'tblTempUsageDetail_20' ) start [2025-04-01 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811399', 'tblTempUsageDetail_20' ) end [2025-04-01 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811399', 'tblTempVendorCDR_20' ) start [2025-04-01 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811399', 'tblTempVendorCDR_20' ) end [2025-04-01 14:17:22] Production.INFO: ProcessCDR(1,14811399,1,1,2) [2025-04-01 14:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811399', 'tblTempUsageDetail_20' ) start [2025-04-01 14:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811399', 'tblTempUsageDetail_20' ) end [2025-04-01 14:17:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:17:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:17:28] Production.INFO: ==20025== Releasing lock... [2025-04-01 14:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:17:28] Production.INFO: 68 MB #Memory Used# [2025-04-01 14:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:18:05 [end_date_ymd] => 2025-04-01 14:18:05 [RateCDR] => 1 ) [2025-04-01 14:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 11:18:05' and `end` < '2025-04-01 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-01 14:18:19] Production.INFO: count ==5371 [2025-04-01 14:18:22] Production.ERROR: pbx CDR StartTime 2025-04-01 11:18:05 - End Time 2025-04-01 14:18:05 [2025-04-01 14:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811404', 'tblTempUsageDetail_20' ) start [2025-04-01 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811404', 'tblTempUsageDetail_20' ) end [2025-04-01 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811404', 'tblTempVendorCDR_20' ) start [2025-04-01 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811404', 'tblTempVendorCDR_20' ) end [2025-04-01 14:18:22] Production.INFO: ProcessCDR(1,14811404,1,1,2) [2025-04-01 14:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811404', 'tblTempUsageDetail_20' ) start [2025-04-01 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811404', 'tblTempUsageDetail_20' ) end [2025-04-01 14:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:18:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:18:28] Production.INFO: ==20101== Releasing lock... [2025-04-01 14:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:18:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:19:05 [end_date_ymd] => 2025-04-01 14:19:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:19:05' and `end` < '2025-04-01 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-01 14:19:19] Production.INFO: count ==5389 [2025-04-01 14:19:22] Production.ERROR: pbx CDR StartTime 2025-04-01 11:19:05 - End Time 2025-04-01 14:19:05 [2025-04-01 14:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811409', 'tblTempUsageDetail_20' ) start [2025-04-01 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811409', 'tblTempUsageDetail_20' ) end [2025-04-01 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811409', 'tblTempVendorCDR_20' ) start [2025-04-01 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811409', 'tblTempVendorCDR_20' ) end [2025-04-01 14:19:22] Production.INFO: ProcessCDR(1,14811409,1,1,2) [2025-04-01 14:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811409', 'tblTempUsageDetail_20' ) start [2025-04-01 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811409', 'tblTempUsageDetail_20' ) end [2025-04-01 14:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:19:27] Production.INFO: ==20183== Releasing lock... [2025-04-01 14:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:19:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:20:06 [end_date_ymd] => 2025-04-01 14:20:06 [RateCDR] => 1 ) [2025-04-01 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 11:20:06' and `end` < '2025-04-01 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 14:20:20] Production.INFO: count ==5406 [2025-04-01 14:20:23] Production.ERROR: pbx CDR StartTime 2025-04-01 11:20:06 - End Time 2025-04-01 14:20:06 [2025-04-01 14:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811415', 'tblTempUsageDetail_20' ) start [2025-04-01 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811415', 'tblTempUsageDetail_20' ) end [2025-04-01 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811415', 'tblTempVendorCDR_20' ) start [2025-04-01 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811415', 'tblTempVendorCDR_20' ) end [2025-04-01 14:20:23] Production.INFO: ProcessCDR(1,14811415,1,1,2) [2025-04-01 14:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811415', 'tblTempUsageDetail_20' ) start [2025-04-01 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811415', 'tblTempUsageDetail_20' ) end [2025-04-01 14:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:20:28] Production.INFO: ==20262== Releasing lock... [2025-04-01 14:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:20:28] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:21:05 [end_date_ymd] => 2025-04-01 14:21:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:21:05' and `end` < '2025-04-01 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-01 14:21:19] Production.INFO: count ==5374 [2025-04-01 14:21:22] Production.ERROR: pbx CDR StartTime 2025-04-01 11:21:05 - End Time 2025-04-01 14:21:05 [2025-04-01 14:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811420', 'tblTempUsageDetail_20' ) start [2025-04-01 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811420', 'tblTempUsageDetail_20' ) end [2025-04-01 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811420', 'tblTempVendorCDR_20' ) start [2025-04-01 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811420', 'tblTempVendorCDR_20' ) end [2025-04-01 14:21:22] Production.INFO: ProcessCDR(1,14811420,1,1,2) [2025-04-01 14:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811420', 'tblTempUsageDetail_20' ) start [2025-04-01 14:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811420', 'tblTempUsageDetail_20' ) end [2025-04-01 14:21:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:21:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:21:28] Production.INFO: ==20342== Releasing lock... [2025-04-01 14:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:21:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:22:05 [end_date_ymd] => 2025-04-01 14:22:05 [RateCDR] => 1 ) [2025-04-01 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 11:22:05' and `end` < '2025-04-01 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 14:22:19] Production.INFO: count ==5342 [2025-04-01 14:22:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:22:05 - End Time 2025-04-01 14:22:05 [2025-04-01 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811425', 'tblTempUsageDetail_20' ) start [2025-04-01 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811425', 'tblTempUsageDetail_20' ) end [2025-04-01 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811425', 'tblTempVendorCDR_20' ) start [2025-04-01 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811425', 'tblTempVendorCDR_20' ) end [2025-04-01 14:22:21] Production.INFO: ProcessCDR(1,14811425,1,1,2) [2025-04-01 14:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811425', 'tblTempUsageDetail_20' ) start [2025-04-01 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811425', 'tblTempUsageDetail_20' ) end [2025-04-01 14:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:22:27] Production.INFO: ==20422== Releasing lock... [2025-04-01 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:22:27] Production.INFO: 68 MB #Memory Used# [2025-04-01 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:23:05 [end_date_ymd] => 2025-04-01 14:23:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:23:05' and `end` < '2025-04-01 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-01 14:23:19] Production.INFO: count ==5323 [2025-04-01 14:23:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:23:05 - End Time 2025-04-01 14:23:05 [2025-04-01 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811430', 'tblTempUsageDetail_20' ) start [2025-04-01 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811430', 'tblTempUsageDetail_20' ) end [2025-04-01 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811430', 'tblTempVendorCDR_20' ) start [2025-04-01 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811430', 'tblTempVendorCDR_20' ) end [2025-04-01 14:23:21] Production.INFO: ProcessCDR(1,14811430,1,1,2) [2025-04-01 14:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811430', 'tblTempUsageDetail_20' ) start [2025-04-01 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811430', 'tblTempUsageDetail_20' ) end [2025-04-01 14:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:23:26] Production.INFO: ==20506== Releasing lock... [2025-04-01 14:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:23:26] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:24:05 [end_date_ymd] => 2025-04-01 14:24:05 [RateCDR] => 1 ) [2025-04-01 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 11:24:05' and `end` < '2025-04-01 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 14:24:18] Production.INFO: count ==5313 [2025-04-01 14:24:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:24:05 - End Time 2025-04-01 14:24:05 [2025-04-01 14:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811435', 'tblTempUsageDetail_20' ) start [2025-04-01 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811435', 'tblTempUsageDetail_20' ) end [2025-04-01 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811435', 'tblTempVendorCDR_20' ) start [2025-04-01 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811435', 'tblTempVendorCDR_20' ) end [2025-04-01 14:24:21] Production.INFO: ProcessCDR(1,14811435,1,1,2) [2025-04-01 14:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811435', 'tblTempUsageDetail_20' ) start [2025-04-01 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811435', 'tblTempUsageDetail_20' ) end [2025-04-01 14:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:24:26] Production.INFO: ==20580== Releasing lock... [2025-04-01 14:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:24:26] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:25:05 [end_date_ymd] => 2025-04-01 14:25:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:25:05' and `end` < '2025-04-01 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-01 14:25:19] Production.INFO: count ==5291 [2025-04-01 14:25:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:25:05 - End Time 2025-04-01 14:25:05 [2025-04-01 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811440', 'tblTempUsageDetail_20' ) start [2025-04-01 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811440', 'tblTempUsageDetail_20' ) end [2025-04-01 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811440', 'tblTempVendorCDR_20' ) start [2025-04-01 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811440', 'tblTempVendorCDR_20' ) end [2025-04-01 14:25:21] Production.INFO: ProcessCDR(1,14811440,1,1,2) [2025-04-01 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811440', 'tblTempUsageDetail_20' ) start [2025-04-01 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811440', 'tblTempUsageDetail_20' ) end [2025-04-01 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:25:27] Production.INFO: ==20662== Releasing lock... [2025-04-01 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:25:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:26:05 [end_date_ymd] => 2025-04-01 14:26:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:26:05' and `end` < '2025-04-01 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-01 14:26:19] Production.INFO: count ==5283 [2025-04-01 14:26:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:26:05 - End Time 2025-04-01 14:26:05 [2025-04-01 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811445', 'tblTempUsageDetail_20' ) start [2025-04-01 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811445', 'tblTempUsageDetail_20' ) end [2025-04-01 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811445', 'tblTempVendorCDR_20' ) start [2025-04-01 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811445', 'tblTempVendorCDR_20' ) end [2025-04-01 14:26:21] Production.INFO: ProcessCDR(1,14811445,1,1,2) [2025-04-01 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811445', 'tblTempUsageDetail_20' ) start [2025-04-01 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811445', 'tblTempUsageDetail_20' ) end [2025-04-01 14:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:26:27] Production.INFO: ==20740== Releasing lock... [2025-04-01 14:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:26:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 14:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:27:06 [end_date_ymd] => 2025-04-01 14:27:06 [RateCDR] => 1 ) [2025-04-01 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-01 11:27:06' and `end` < '2025-04-01 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-01 14:27:20] Production.INFO: count ==5286 [2025-04-01 14:27:22] Production.ERROR: pbx CDR StartTime 2025-04-01 11:27:06 - End Time 2025-04-01 14:27:06 [2025-04-01 14:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811450', 'tblTempUsageDetail_20' ) start [2025-04-01 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811450', 'tblTempUsageDetail_20' ) end [2025-04-01 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811450', 'tblTempVendorCDR_20' ) start [2025-04-01 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811450', 'tblTempVendorCDR_20' ) end [2025-04-01 14:27:22] Production.INFO: ProcessCDR(1,14811450,1,1,2) [2025-04-01 14:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811450', 'tblTempUsageDetail_20' ) start [2025-04-01 14:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811450', 'tblTempUsageDetail_20' ) end [2025-04-01 14:27:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:27:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:27:29] Production.INFO: ==20815== Releasing lock... [2025-04-01 14:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:27:29] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:28:05 [end_date_ymd] => 2025-04-01 14:28:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:28:05' and `end` < '2025-04-01 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-01 14:28:19] Production.INFO: count ==5271 [2025-04-01 14:28:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:28:05 - End Time 2025-04-01 14:28:05 [2025-04-01 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811455', 'tblTempUsageDetail_20' ) start [2025-04-01 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811455', 'tblTempUsageDetail_20' ) end [2025-04-01 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811455', 'tblTempVendorCDR_20' ) start [2025-04-01 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811455', 'tblTempVendorCDR_20' ) end [2025-04-01 14:28:21] Production.INFO: ProcessCDR(1,14811455,1,1,2) [2025-04-01 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811455', 'tblTempUsageDetail_20' ) start [2025-04-01 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811455', 'tblTempUsageDetail_20' ) end [2025-04-01 14:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:28:26] Production.INFO: ==20893== Releasing lock... [2025-04-01 14:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:28:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 14:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:29:06 [end_date_ymd] => 2025-04-01 14:29:06 [RateCDR] => 1 ) [2025-04-01 14: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-01 11:29:06' and `end` < '2025-04-01 14: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-01 14:29:20] Production.INFO: count ==5268 [2025-04-01 14:29:22] Production.ERROR: pbx CDR StartTime 2025-04-01 11:29:06 - End Time 2025-04-01 14:29:06 [2025-04-01 14:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811460', 'tblTempUsageDetail_20' ) start [2025-04-01 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811460', 'tblTempUsageDetail_20' ) end [2025-04-01 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811460', 'tblTempVendorCDR_20' ) start [2025-04-01 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811460', 'tblTempVendorCDR_20' ) end [2025-04-01 14:29:22] Production.INFO: ProcessCDR(1,14811460,1,1,2) [2025-04-01 14:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811460', 'tblTempUsageDetail_20' ) start [2025-04-01 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811460', 'tblTempUsageDetail_20' ) end [2025-04-01 14:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:29:27] Production.INFO: ==20972== Releasing lock... [2025-04-01 14:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:29:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:30:06 [end_date_ymd] => 2025-04-01 14:30:06 [RateCDR] => 1 ) [2025-04-01 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-01 11:30:06' and `end` < '2025-04-01 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-01 14:30:20] Production.INFO: count ==5271 [2025-04-01 14:30:22] Production.ERROR: pbx CDR StartTime 2025-04-01 11:30:06 - End Time 2025-04-01 14:30:06 [2025-04-01 14:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811466', 'tblTempUsageDetail_20' ) start [2025-04-01 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811466', 'tblTempUsageDetail_20' ) end [2025-04-01 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811466', 'tblTempVendorCDR_20' ) start [2025-04-01 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811466', 'tblTempVendorCDR_20' ) end [2025-04-01 14:30:22] Production.INFO: ProcessCDR(1,14811466,1,1,2) [2025-04-01 14:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811466', 'tblTempUsageDetail_20' ) start [2025-04-01 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811466', 'tblTempUsageDetail_20' ) end [2025-04-01 14:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:30:28] Production.INFO: ==21092== Releasing lock... [2025-04-01 14:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:30:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:31:05 [end_date_ymd] => 2025-04-01 14:31:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:31:05' and `end` < '2025-04-01 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-01 14:31:19] Production.INFO: count ==5266 [2025-04-01 14:31:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:31:05 - End Time 2025-04-01 14:31:05 [2025-04-01 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811471', 'tblTempUsageDetail_20' ) start [2025-04-01 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811471', 'tblTempUsageDetail_20' ) end [2025-04-01 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811471', 'tblTempVendorCDR_20' ) start [2025-04-01 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811471', 'tblTempVendorCDR_20' ) end [2025-04-01 14:31:21] Production.INFO: ProcessCDR(1,14811471,1,1,2) [2025-04-01 14:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811471', 'tblTempUsageDetail_20' ) start [2025-04-01 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811471', 'tblTempUsageDetail_20' ) end [2025-04-01 14:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:31:27] Production.INFO: ==21179== Releasing lock... [2025-04-01 14:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:31:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:32:05 [end_date_ymd] => 2025-04-01 14:32:05 [RateCDR] => 1 ) [2025-04-01 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 11:32:05' and `end` < '2025-04-01 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 14:32:19] Production.INFO: count ==5284 [2025-04-01 14:32:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:32:05 - End Time 2025-04-01 14:32:05 [2025-04-01 14:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811476', 'tblTempUsageDetail_20' ) start [2025-04-01 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811476', 'tblTempUsageDetail_20' ) end [2025-04-01 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811476', 'tblTempVendorCDR_20' ) start [2025-04-01 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811476', 'tblTempVendorCDR_20' ) end [2025-04-01 14:32:21] Production.INFO: ProcessCDR(1,14811476,1,1,2) [2025-04-01 14:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811476', 'tblTempUsageDetail_20' ) start [2025-04-01 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811476', 'tblTempUsageDetail_20' ) end [2025-04-01 14:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:32:26] Production.INFO: ==21255== Releasing lock... [2025-04-01 14:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:32:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:33:05 [end_date_ymd] => 2025-04-01 14:33:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:33:05' and `end` < '2025-04-01 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-01 14:33:19] Production.INFO: count ==5284 [2025-04-01 14:33:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:33:05 - End Time 2025-04-01 14:33:05 [2025-04-01 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811481', 'tblTempUsageDetail_20' ) start [2025-04-01 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811481', 'tblTempUsageDetail_20' ) end [2025-04-01 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811481', 'tblTempVendorCDR_20' ) start [2025-04-01 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811481', 'tblTempVendorCDR_20' ) end [2025-04-01 14:33:21] Production.INFO: ProcessCDR(1,14811481,1,1,2) [2025-04-01 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811481', 'tblTempUsageDetail_20' ) start [2025-04-01 14:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811481', 'tblTempUsageDetail_20' ) end [2025-04-01 14:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:33:27] Production.INFO: ==21333== Releasing lock... [2025-04-01 14:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:33:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:34:06 [end_date_ymd] => 2025-04-01 14:34:06 [RateCDR] => 1 ) [2025-04-01 14:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 11:34:06' and `end` < '2025-04-01 14:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 14:34:20] Production.INFO: count ==5291 [2025-04-01 14:34:22] Production.ERROR: pbx CDR StartTime 2025-04-01 11:34:06 - End Time 2025-04-01 14:34:06 [2025-04-01 14:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811486', 'tblTempUsageDetail_20' ) start [2025-04-01 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811486', 'tblTempUsageDetail_20' ) end [2025-04-01 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811486', 'tblTempVendorCDR_20' ) start [2025-04-01 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811486', 'tblTempVendorCDR_20' ) end [2025-04-01 14:34:22] Production.INFO: ProcessCDR(1,14811486,1,1,2) [2025-04-01 14:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811486', 'tblTempUsageDetail_20' ) start [2025-04-01 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811486', 'tblTempUsageDetail_20' ) end [2025-04-01 14:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:34:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:34:28] Production.INFO: ==21411== Releasing lock... [2025-04-01 14:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:34:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 14:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:35:06 [end_date_ymd] => 2025-04-01 14:35:06 [RateCDR] => 1 ) [2025-04-01 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-01 11:35:06' and `end` < '2025-04-01 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-01 14:35:20] Production.INFO: count ==5304 [2025-04-01 14:35:22] Production.ERROR: pbx CDR StartTime 2025-04-01 11:35:06 - End Time 2025-04-01 14:35:06 [2025-04-01 14:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811491', 'tblTempUsageDetail_20' ) start [2025-04-01 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811491', 'tblTempUsageDetail_20' ) end [2025-04-01 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811491', 'tblTempVendorCDR_20' ) start [2025-04-01 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811491', 'tblTempVendorCDR_20' ) end [2025-04-01 14:35:22] Production.INFO: ProcessCDR(1,14811491,1,1,2) [2025-04-01 14:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811491', 'tblTempUsageDetail_20' ) start [2025-04-01 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811491', 'tblTempUsageDetail_20' ) end [2025-04-01 14:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:35:27] Production.INFO: ==21486== Releasing lock... [2025-04-01 14:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:35:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:36:06 [end_date_ymd] => 2025-04-01 14:36:06 [RateCDR] => 1 ) [2025-04-01 14:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 11:36:06' and `end` < '2025-04-01 14:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 14:36:20] Production.INFO: count ==5309 [2025-04-01 14:36:22] Production.ERROR: pbx CDR StartTime 2025-04-01 11:36:06 - End Time 2025-04-01 14:36:06 [2025-04-01 14:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811496', 'tblTempUsageDetail_20' ) start [2025-04-01 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811496', 'tblTempUsageDetail_20' ) end [2025-04-01 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811496', 'tblTempVendorCDR_20' ) start [2025-04-01 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811496', 'tblTempVendorCDR_20' ) end [2025-04-01 14:36:22] Production.INFO: ProcessCDR(1,14811496,1,1,2) [2025-04-01 14:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811496', 'tblTempUsageDetail_20' ) start [2025-04-01 14:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811496', 'tblTempUsageDetail_20' ) end [2025-04-01 14:36:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:36:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:36:28] Production.INFO: ==21562== Releasing lock... [2025-04-01 14:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:36:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:37:05 [end_date_ymd] => 2025-04-01 14:37:05 [RateCDR] => 1 ) [2025-04-01 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 11:37:05' and `end` < '2025-04-01 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 14:37:19] Production.INFO: count ==5317 [2025-04-01 14:37:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:37:05 - End Time 2025-04-01 14:37:05 [2025-04-01 14:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811501', 'tblTempUsageDetail_20' ) start [2025-04-01 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811501', 'tblTempUsageDetail_20' ) end [2025-04-01 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811501', 'tblTempVendorCDR_20' ) start [2025-04-01 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811501', 'tblTempVendorCDR_20' ) end [2025-04-01 14:37:21] Production.INFO: ProcessCDR(1,14811501,1,1,2) [2025-04-01 14:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811501', 'tblTempUsageDetail_20' ) start [2025-04-01 14:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811501', 'tblTempUsageDetail_20' ) end [2025-04-01 14:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:37:27] Production.INFO: ==21643== Releasing lock... [2025-04-01 14:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:37:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:38:05 [end_date_ymd] => 2025-04-01 14:38:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:38:05' and `end` < '2025-04-01 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-01 14:38:19] Production.INFO: count ==5334 [2025-04-01 14:38:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:38:05 - End Time 2025-04-01 14:38:05 [2025-04-01 14:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811506', 'tblTempUsageDetail_20' ) start [2025-04-01 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811506', 'tblTempUsageDetail_20' ) end [2025-04-01 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811506', 'tblTempVendorCDR_20' ) start [2025-04-01 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811506', 'tblTempVendorCDR_20' ) end [2025-04-01 14:38:22] Production.INFO: ProcessCDR(1,14811506,1,1,2) [2025-04-01 14:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811506', 'tblTempUsageDetail_20' ) start [2025-04-01 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811506', 'tblTempUsageDetail_20' ) end [2025-04-01 14:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:38:27] Production.INFO: ==21721== Releasing lock... [2025-04-01 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:38:27] Production.INFO: 68 MB #Memory Used# [2025-04-01 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:39:05 [end_date_ymd] => 2025-04-01 14:39:05 [RateCDR] => 1 ) [2025-04-01 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 11:39:05' and `end` < '2025-04-01 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 14:39:19] Production.INFO: count ==5327 [2025-04-01 14:39:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:39:05 - End Time 2025-04-01 14:39:05 [2025-04-01 14:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811511', 'tblTempUsageDetail_20' ) start [2025-04-01 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811511', 'tblTempUsageDetail_20' ) end [2025-04-01 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811511', 'tblTempVendorCDR_20' ) start [2025-04-01 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811511', 'tblTempVendorCDR_20' ) end [2025-04-01 14:39:21] Production.INFO: ProcessCDR(1,14811511,1,1,2) [2025-04-01 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811511', 'tblTempUsageDetail_20' ) start [2025-04-01 14:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811511', 'tblTempUsageDetail_20' ) end [2025-04-01 14:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:39:27] Production.INFO: ==21801== Releasing lock... [2025-04-01 14:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:39:27] Production.INFO: 68 MB #Memory Used# [2025-04-01 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:40:06 [end_date_ymd] => 2025-04-01 14:40:06 [RateCDR] => 1 ) [2025-04-01 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-01 11:40:06' and `end` < '2025-04-01 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-01 14:40:20] Production.INFO: count ==5354 [2025-04-01 14:40:22] Production.ERROR: pbx CDR StartTime 2025-04-01 11:40:06 - End Time 2025-04-01 14:40:06 [2025-04-01 14:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811517', 'tblTempUsageDetail_20' ) start [2025-04-01 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811517', 'tblTempUsageDetail_20' ) end [2025-04-01 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811517', 'tblTempVendorCDR_20' ) start [2025-04-01 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811517', 'tblTempVendorCDR_20' ) end [2025-04-01 14:40:22] Production.INFO: ProcessCDR(1,14811517,1,1,2) [2025-04-01 14:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811517', 'tblTempUsageDetail_20' ) start [2025-04-01 14:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811517', 'tblTempUsageDetail_20' ) end [2025-04-01 14:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:40:28] Production.INFO: ==21881== Releasing lock... [2025-04-01 14:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:40:28] Production.INFO: 68 MB #Memory Used# [2025-04-01 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:41:05 [end_date_ymd] => 2025-04-01 14:41:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:41:05' and `end` < '2025-04-01 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-01 14:41:19] Production.INFO: count ==5393 [2025-04-01 14:41:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:41:05 - End Time 2025-04-01 14:41:05 [2025-04-01 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811522', 'tblTempUsageDetail_20' ) start [2025-04-01 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811522', 'tblTempUsageDetail_20' ) end [2025-04-01 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811522', 'tblTempVendorCDR_20' ) start [2025-04-01 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811522', 'tblTempVendorCDR_20' ) end [2025-04-01 14:41:21] Production.INFO: ProcessCDR(1,14811522,1,1,2) [2025-04-01 14:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811522', 'tblTempUsageDetail_20' ) start [2025-04-01 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811522', 'tblTempUsageDetail_20' ) end [2025-04-01 14:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:41:27] Production.INFO: ==21957== Releasing lock... [2025-04-01 14:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:41:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-01 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:42:05 [end_date_ymd] => 2025-04-01 14:42:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:42:05' and `end` < '2025-04-01 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-01 14:42:19] Production.INFO: count ==5405 [2025-04-01 14:42:22] Production.ERROR: pbx CDR StartTime 2025-04-01 11:42:05 - End Time 2025-04-01 14:42:05 [2025-04-01 14:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811527', 'tblTempUsageDetail_20' ) start [2025-04-01 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811527', 'tblTempUsageDetail_20' ) end [2025-04-01 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811527', 'tblTempVendorCDR_20' ) start [2025-04-01 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811527', 'tblTempVendorCDR_20' ) end [2025-04-01 14:42:22] Production.INFO: ProcessCDR(1,14811527,1,1,2) [2025-04-01 14:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811527', 'tblTempUsageDetail_20' ) start [2025-04-01 14:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811527', 'tblTempUsageDetail_20' ) end [2025-04-01 14:42:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:42:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:42:28] Production.INFO: ==22035== Releasing lock... [2025-04-01 14:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:42:28] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 14:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:43:06 [end_date_ymd] => 2025-04-01 14:43:06 [RateCDR] => 1 ) [2025-04-01 14: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-01 11:43:06' and `end` < '2025-04-01 14: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-01 14:43:19] Production.INFO: count ==5417 [2025-04-01 14:43:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:43:06 - End Time 2025-04-01 14:43:06 [2025-04-01 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811532', 'tblTempUsageDetail_20' ) start [2025-04-01 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811532', 'tblTempUsageDetail_20' ) end [2025-04-01 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811532', 'tblTempVendorCDR_20' ) start [2025-04-01 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811532', 'tblTempVendorCDR_20' ) end [2025-04-01 14:43:22] Production.INFO: ProcessCDR(1,14811532,1,1,2) [2025-04-01 14:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811532', 'tblTempUsageDetail_20' ) start [2025-04-01 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811532', 'tblTempUsageDetail_20' ) end [2025-04-01 14:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:43:27] Production.INFO: ==22109== Releasing lock... [2025-04-01 14:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:43:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:44:05 [end_date_ymd] => 2025-04-01 14:44:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:44:05' and `end` < '2025-04-01 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-01 14:44:19] Production.INFO: count ==5402 [2025-04-01 14:44:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:44:05 - End Time 2025-04-01 14:44:05 [2025-04-01 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811537', 'tblTempUsageDetail_20' ) start [2025-04-01 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811537', 'tblTempUsageDetail_20' ) end [2025-04-01 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811537', 'tblTempVendorCDR_20' ) start [2025-04-01 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811537', 'tblTempVendorCDR_20' ) end [2025-04-01 14:44:22] Production.INFO: ProcessCDR(1,14811537,1,1,2) [2025-04-01 14:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811537', 'tblTempUsageDetail_20' ) start [2025-04-01 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811537', 'tblTempUsageDetail_20' ) end [2025-04-01 14:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:44:27] Production.INFO: ==22188== Releasing lock... [2025-04-01 14:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:44:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:45:05 [end_date_ymd] => 2025-04-01 14:45:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:45:05' and `end` < '2025-04-01 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-01 14:45:19] Production.INFO: count ==5395 [2025-04-01 14:45:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:45:05 - End Time 2025-04-01 14:45:05 [2025-04-01 14:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811542', 'tblTempUsageDetail_20' ) start [2025-04-01 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811542', 'tblTempUsageDetail_20' ) end [2025-04-01 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811542', 'tblTempVendorCDR_20' ) start [2025-04-01 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811542', 'tblTempVendorCDR_20' ) end [2025-04-01 14:45:21] Production.INFO: ProcessCDR(1,14811542,1,1,2) [2025-04-01 14:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811542', 'tblTempUsageDetail_20' ) start [2025-04-01 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811542', 'tblTempUsageDetail_20' ) end [2025-04-01 14:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:45:27] Production.INFO: ==22303== Releasing lock... [2025-04-01 14:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:45:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:46:06 [end_date_ymd] => 2025-04-01 14:46:06 [RateCDR] => 1 ) [2025-04-01 14:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 11:46:06' and `end` < '2025-04-01 14:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 14:46:19] Production.INFO: count ==5387 [2025-04-01 14:46:22] Production.ERROR: pbx CDR StartTime 2025-04-01 11:46:06 - End Time 2025-04-01 14:46:06 [2025-04-01 14:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811547', 'tblTempUsageDetail_20' ) start [2025-04-01 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811547', 'tblTempUsageDetail_20' ) end [2025-04-01 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811547', 'tblTempVendorCDR_20' ) start [2025-04-01 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811547', 'tblTempVendorCDR_20' ) end [2025-04-01 14:46:22] Production.INFO: ProcessCDR(1,14811547,1,1,2) [2025-04-01 14:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811547', 'tblTempUsageDetail_20' ) start [2025-04-01 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811547', 'tblTempUsageDetail_20' ) end [2025-04-01 14:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:46:27] Production.INFO: ==22380== Releasing lock... [2025-04-01 14:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:46:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:47:05 [end_date_ymd] => 2025-04-01 14:47:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:47:05' and `end` < '2025-04-01 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-01 14:47:18] Production.INFO: count ==5375 [2025-04-01 14:47:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:47:05 - End Time 2025-04-01 14:47:05 [2025-04-01 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811552', 'tblTempUsageDetail_20' ) start [2025-04-01 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811552', 'tblTempUsageDetail_20' ) end [2025-04-01 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811552', 'tblTempVendorCDR_20' ) start [2025-04-01 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811552', 'tblTempVendorCDR_20' ) end [2025-04-01 14:47:21] Production.INFO: ProcessCDR(1,14811552,1,1,2) [2025-04-01 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811552', 'tblTempUsageDetail_20' ) start [2025-04-01 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811552', 'tblTempUsageDetail_20' ) end [2025-04-01 14:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:47:26] Production.INFO: ==22450== Releasing lock... [2025-04-01 14:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:47:26] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:48:06 [end_date_ymd] => 2025-04-01 14:48:06 [RateCDR] => 1 ) [2025-04-01 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-01 11:48:06' and `end` < '2025-04-01 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-01 14:48:19] Production.INFO: count ==5367 [2025-04-01 14:48:22] Production.ERROR: pbx CDR StartTime 2025-04-01 11:48:06 - End Time 2025-04-01 14:48:06 [2025-04-01 14:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811557', 'tblTempUsageDetail_20' ) start [2025-04-01 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811557', 'tblTempUsageDetail_20' ) end [2025-04-01 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811557', 'tblTempVendorCDR_20' ) start [2025-04-01 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811557', 'tblTempVendorCDR_20' ) end [2025-04-01 14:48:22] Production.INFO: ProcessCDR(1,14811557,1,1,2) [2025-04-01 14:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811557', 'tblTempUsageDetail_20' ) start [2025-04-01 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811557', 'tblTempUsageDetail_20' ) end [2025-04-01 14:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:48:27] Production.INFO: ==22527== Releasing lock... [2025-04-01 14:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:48:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:49:05 [end_date_ymd] => 2025-04-01 14:49:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:49:05' and `end` < '2025-04-01 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-01 14:49:19] Production.INFO: count ==5365 [2025-04-01 14:49:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:49:05 - End Time 2025-04-01 14:49:05 [2025-04-01 14:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811562', 'tblTempUsageDetail_20' ) start [2025-04-01 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811562', 'tblTempUsageDetail_20' ) end [2025-04-01 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811562', 'tblTempVendorCDR_20' ) start [2025-04-01 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811562', 'tblTempVendorCDR_20' ) end [2025-04-01 14:49:21] Production.INFO: ProcessCDR(1,14811562,1,1,2) [2025-04-01 14:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811562', 'tblTempUsageDetail_20' ) start [2025-04-01 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811562', 'tblTempUsageDetail_20' ) end [2025-04-01 14:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:49:27] Production.INFO: ==22607== Releasing lock... [2025-04-01 14:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:49:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 14:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:50:07 [end_date_ymd] => 2025-04-01 14:50:07 [RateCDR] => 1 ) [2025-04-01 14:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 11:50:07' and `end` < '2025-04-01 14:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 14:50:21] Production.INFO: count ==5377 [2025-04-01 14:50:23] Production.ERROR: pbx CDR StartTime 2025-04-01 11:50:07 - End Time 2025-04-01 14:50:07 [2025-04-01 14:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811568', 'tblTempUsageDetail_20' ) start [2025-04-01 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811568', 'tblTempUsageDetail_20' ) end [2025-04-01 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811568', 'tblTempVendorCDR_20' ) start [2025-04-01 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811568', 'tblTempVendorCDR_20' ) end [2025-04-01 14:50:23] Production.INFO: ProcessCDR(1,14811568,1,1,2) [2025-04-01 14:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811568', 'tblTempUsageDetail_20' ) start [2025-04-01 14:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811568', 'tblTempUsageDetail_20' ) end [2025-04-01 14:50:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:50:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:50:29] Production.INFO: ==22684== Releasing lock... [2025-04-01 14:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:50:29] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:51:05 [end_date_ymd] => 2025-04-01 14:51:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:51:05' and `end` < '2025-04-01 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-01 14:51:19] Production.INFO: count ==5420 [2025-04-01 14:51:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:51:05 - End Time 2025-04-01 14:51:05 [2025-04-01 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811573', 'tblTempUsageDetail_20' ) start [2025-04-01 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811573', 'tblTempUsageDetail_20' ) end [2025-04-01 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811573', 'tblTempVendorCDR_20' ) start [2025-04-01 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811573', 'tblTempVendorCDR_20' ) end [2025-04-01 14:51:21] Production.INFO: ProcessCDR(1,14811573,1,1,2) [2025-04-01 14:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811573', 'tblTempUsageDetail_20' ) start [2025-04-01 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811573', 'tblTempUsageDetail_20' ) end [2025-04-01 14:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:51:27] Production.INFO: ==22766== Releasing lock... [2025-04-01 14:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:51:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:52:05 [end_date_ymd] => 2025-04-01 14:52:05 [RateCDR] => 1 ) [2025-04-01 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-01 11:52:05' and `end` < '2025-04-01 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-01 14:52:19] Production.INFO: count ==5425 [2025-04-01 14:52:22] Production.ERROR: pbx CDR StartTime 2025-04-01 11:52:05 - End Time 2025-04-01 14:52:05 [2025-04-01 14:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811578', 'tblTempUsageDetail_20' ) start [2025-04-01 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811578', 'tblTempUsageDetail_20' ) end [2025-04-01 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811578', 'tblTempVendorCDR_20' ) start [2025-04-01 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811578', 'tblTempVendorCDR_20' ) end [2025-04-01 14:52:22] Production.INFO: ProcessCDR(1,14811578,1,1,2) [2025-04-01 14:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811578', 'tblTempUsageDetail_20' ) start [2025-04-01 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811578', 'tblTempUsageDetail_20' ) end [2025-04-01 14:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:52:27] Production.INFO: ==22848== Releasing lock... [2025-04-01 14:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:52:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-01 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:53:05 [end_date_ymd] => 2025-04-01 14:53:05 [RateCDR] => 1 ) [2025-04-01 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 11:53:05' and `end` < '2025-04-01 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 14:53:19] Production.INFO: count ==5411 [2025-04-01 14:53:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:53:05 - End Time 2025-04-01 14:53:05 [2025-04-01 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811583', 'tblTempUsageDetail_20' ) start [2025-04-01 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811583', 'tblTempUsageDetail_20' ) end [2025-04-01 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811583', 'tblTempVendorCDR_20' ) start [2025-04-01 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811583', 'tblTempVendorCDR_20' ) end [2025-04-01 14:53:21] Production.INFO: ProcessCDR(1,14811583,1,1,2) [2025-04-01 14:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811583', 'tblTempUsageDetail_20' ) start [2025-04-01 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811583', 'tblTempUsageDetail_20' ) end [2025-04-01 14:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:53:27] Production.INFO: ==22926== Releasing lock... [2025-04-01 14:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:53:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:54:06 [end_date_ymd] => 2025-04-01 14:54:06 [RateCDR] => 1 ) [2025-04-01 14:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 11:54:06' and `end` < '2025-04-01 14:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 14:54:20] Production.INFO: count ==5425 [2025-04-01 14:54:22] Production.ERROR: pbx CDR StartTime 2025-04-01 11:54:06 - End Time 2025-04-01 14:54:06 [2025-04-01 14:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811588', 'tblTempUsageDetail_20' ) start [2025-04-01 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811588', 'tblTempUsageDetail_20' ) end [2025-04-01 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811588', 'tblTempVendorCDR_20' ) start [2025-04-01 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811588', 'tblTempVendorCDR_20' ) end [2025-04-01 14:54:22] Production.INFO: ProcessCDR(1,14811588,1,1,2) [2025-04-01 14:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811588', 'tblTempUsageDetail_20' ) start [2025-04-01 14:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811588', 'tblTempUsageDetail_20' ) end [2025-04-01 14:54:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:54:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:54:28] Production.INFO: ==23000== Releasing lock... [2025-04-01 14:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:54:28] Production.INFO: 68.75 MB #Memory Used# [2025-04-01 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:55:06 [end_date_ymd] => 2025-04-01 14:55:06 [RateCDR] => 1 ) [2025-04-01 14:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 11:55:06' and `end` < '2025-04-01 14: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-01 14:55:20] Production.INFO: count ==5423 [2025-04-01 14:55:22] Production.ERROR: pbx CDR StartTime 2025-04-01 11:55:06 - End Time 2025-04-01 14:55:06 [2025-04-01 14:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811593', 'tblTempUsageDetail_20' ) start [2025-04-01 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811593', 'tblTempUsageDetail_20' ) end [2025-04-01 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811593', 'tblTempVendorCDR_20' ) start [2025-04-01 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811593', 'tblTempVendorCDR_20' ) end [2025-04-01 14:55:22] Production.INFO: ProcessCDR(1,14811593,1,1,2) [2025-04-01 14:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811593', 'tblTempUsageDetail_20' ) start [2025-04-01 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811593', 'tblTempUsageDetail_20' ) end [2025-04-01 14:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:55:27] Production.INFO: ==23071== Releasing lock... [2025-04-01 14:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:55:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:56:06 [end_date_ymd] => 2025-04-01 14:56:06 [RateCDR] => 1 ) [2025-04-01 14:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 11:56:06' and `end` < '2025-04-01 14:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 14:56:20] Production.INFO: count ==5429 [2025-04-01 14:56:22] Production.ERROR: pbx CDR StartTime 2025-04-01 11:56:06 - End Time 2025-04-01 14:56:06 [2025-04-01 14:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811598', 'tblTempUsageDetail_20' ) start [2025-04-01 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811598', 'tblTempUsageDetail_20' ) end [2025-04-01 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811598', 'tblTempVendorCDR_20' ) start [2025-04-01 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811598', 'tblTempVendorCDR_20' ) end [2025-04-01 14:56:22] Production.INFO: ProcessCDR(1,14811598,1,1,2) [2025-04-01 14:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811598', 'tblTempUsageDetail_20' ) start [2025-04-01 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811598', 'tblTempUsageDetail_20' ) end [2025-04-01 14:56:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:56:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:56:28] Production.INFO: ==23149== Releasing lock... [2025-04-01 14:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:56:28] Production.INFO: 68.75 MB #Memory Used# [2025-04-01 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:57:05 [end_date_ymd] => 2025-04-01 14:57:05 [RateCDR] => 1 ) [2025-04-01 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 11:57:05' and `end` < '2025-04-01 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 14:57:19] Production.INFO: count ==5438 [2025-04-01 14:57:21] Production.ERROR: pbx CDR StartTime 2025-04-01 11:57:05 - End Time 2025-04-01 14:57:05 [2025-04-01 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811603', 'tblTempUsageDetail_20' ) start [2025-04-01 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811603', 'tblTempUsageDetail_20' ) end [2025-04-01 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811603', 'tblTempVendorCDR_20' ) start [2025-04-01 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811603', 'tblTempVendorCDR_20' ) end [2025-04-01 14:57:21] Production.INFO: ProcessCDR(1,14811603,1,1,2) [2025-04-01 14:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811603', 'tblTempUsageDetail_20' ) start [2025-04-01 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811603', 'tblTempUsageDetail_20' ) end [2025-04-01 14:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:57:27] Production.INFO: ==23227== Releasing lock... [2025-04-01 14:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:57:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-01 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:58:06 [end_date_ymd] => 2025-04-01 14:58:06 [RateCDR] => 1 ) [2025-04-01 14:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 11:58:06' and `end` < '2025-04-01 14:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 14:58:20] Production.INFO: count ==5476 [2025-04-01 14:58:22] Production.ERROR: pbx CDR StartTime 2025-04-01 11:58:06 - End Time 2025-04-01 14:58:06 [2025-04-01 14:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811608', 'tblTempUsageDetail_20' ) start [2025-04-01 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811608', 'tblTempUsageDetail_20' ) end [2025-04-01 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811608', 'tblTempVendorCDR_20' ) start [2025-04-01 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811608', 'tblTempVendorCDR_20' ) end [2025-04-01 14:58:22] Production.INFO: ProcessCDR(1,14811608,1,1,2) [2025-04-01 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811608', 'tblTempUsageDetail_20' ) start [2025-04-01 14:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811608', 'tblTempUsageDetail_20' ) end [2025-04-01 14:58:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:58:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:58:28] Production.INFO: ==23302== Releasing lock... [2025-04-01 14:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:58:28] Production.INFO: 69 MB #Memory Used# [2025-04-01 14:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 11:59:06 [end_date_ymd] => 2025-04-01 14:59:06 [RateCDR] => 1 ) [2025-04-01 14: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-01 11:59:06' and `end` < '2025-04-01 14: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-01 14:59:21] Production.INFO: count ==5491 [2025-04-01 14:59:23] Production.ERROR: pbx CDR StartTime 2025-04-01 11:59:06 - End Time 2025-04-01 14:59:06 [2025-04-01 14:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 14:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811613', 'tblTempUsageDetail_20' ) start [2025-04-01 14:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811613', 'tblTempUsageDetail_20' ) end [2025-04-01 14:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811613', 'tblTempVendorCDR_20' ) start [2025-04-01 14:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811613', 'tblTempVendorCDR_20' ) end [2025-04-01 14:59:24] Production.INFO: ProcessCDR(1,14811613,1,1,2) [2025-04-01 14:59:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 14:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 14:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811613', 'tblTempUsageDetail_20' ) start [2025-04-01 14:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811613', 'tblTempUsageDetail_20' ) end [2025-04-01 14:59:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 14:59:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 14:59:29] Production.INFO: ==23376== Releasing lock... [2025-04-01 14:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 14:59:29] Production.INFO: 69 MB #Memory Used# [2025-04-01 15:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:00:07 [end_date_ymd] => 2025-04-01 15:00:07 [RateCDR] => 1 ) [2025-04-01 15:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:00:07' and `end` < '2025-04-01 15:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:00:21] Production.INFO: count ==5485 [2025-04-01 15:00:24] Production.ERROR: pbx CDR StartTime 2025-04-01 12:00:07 - End Time 2025-04-01 15:00:07 [2025-04-01 15:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811619', 'tblTempUsageDetail_20' ) start [2025-04-01 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811619', 'tblTempUsageDetail_20' ) end [2025-04-01 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811619', 'tblTempVendorCDR_20' ) start [2025-04-01 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811619', 'tblTempVendorCDR_20' ) end [2025-04-01 15:00:24] Production.INFO: ProcessCDR(1,14811619,1,1,2) [2025-04-01 15:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811619', 'tblTempUsageDetail_20' ) start [2025-04-01 15:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811619', 'tblTempUsageDetail_20' ) end [2025-04-01 15:00:30] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:00:31] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:00:31] Production.INFO: ==23454== Releasing lock... [2025-04-01 15:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:00:31] Production.INFO: 69 MB #Memory Used# [2025-04-01 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:01:06 [end_date_ymd] => 2025-04-01 15:01:06 [RateCDR] => 1 ) [2025-04-01 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-01 12:01:06' and `end` < '2025-04-01 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-01 15:01:20] Production.INFO: count ==5493 [2025-04-01 15:01:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:01:06 - End Time 2025-04-01 15:01:06 [2025-04-01 15:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811624', 'tblTempUsageDetail_20' ) start [2025-04-01 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811624', 'tblTempUsageDetail_20' ) end [2025-04-01 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811624', 'tblTempVendorCDR_20' ) start [2025-04-01 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811624', 'tblTempVendorCDR_20' ) end [2025-04-01 15:01:22] Production.INFO: ProcessCDR(1,14811624,1,1,2) [2025-04-01 15:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811624', 'tblTempUsageDetail_20' ) start [2025-04-01 15:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811624', 'tblTempUsageDetail_20' ) end [2025-04-01 15:01:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:01:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:01:28] Production.INFO: ==23582== Releasing lock... [2025-04-01 15:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:01:28] Production.INFO: 69.25 MB #Memory Used# [2025-04-01 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:02:05 [end_date_ymd] => 2025-04-01 15:02:05 [RateCDR] => 1 ) [2025-04-01 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-01 12:02:05' and `end` < '2025-04-01 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-01 15:02:19] Production.INFO: count ==5491 [2025-04-01 15:02:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:02:05 - End Time 2025-04-01 15:02:05 [2025-04-01 15:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811629', 'tblTempUsageDetail_20' ) start [2025-04-01 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811629', 'tblTempUsageDetail_20' ) end [2025-04-01 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811629', 'tblTempVendorCDR_20' ) start [2025-04-01 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811629', 'tblTempVendorCDR_20' ) end [2025-04-01 15:02:22] Production.INFO: ProcessCDR(1,14811629,1,1,2) [2025-04-01 15:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811629', 'tblTempUsageDetail_20' ) start [2025-04-01 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811629', 'tblTempUsageDetail_20' ) end [2025-04-01 15:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:02:28] Production.INFO: ==23732== Releasing lock... [2025-04-01 15:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:02:28] Production.INFO: 69 MB #Memory Used# [2025-04-01 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:03:06 [end_date_ymd] => 2025-04-01 15:03:06 [RateCDR] => 1 ) [2025-04-01 15:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:03:06' and `end` < '2025-04-01 15:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:03:20] Production.INFO: count ==5482 [2025-04-01 15:03:23] Production.ERROR: pbx CDR StartTime 2025-04-01 12:03:06 - End Time 2025-04-01 15:03:06 [2025-04-01 15:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811634', 'tblTempUsageDetail_20' ) start [2025-04-01 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811634', 'tblTempUsageDetail_20' ) end [2025-04-01 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811634', 'tblTempVendorCDR_20' ) start [2025-04-01 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811634', 'tblTempVendorCDR_20' ) end [2025-04-01 15:03:23] Production.INFO: ProcessCDR(1,14811634,1,1,2) [2025-04-01 15:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811634', 'tblTempUsageDetail_20' ) start [2025-04-01 15:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811634', 'tblTempUsageDetail_20' ) end [2025-04-01 15:03:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:03:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:03:29] Production.INFO: ==23810== Releasing lock... [2025-04-01 15:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:03:29] Production.INFO: 69 MB #Memory Used# [2025-04-01 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:04:06 [end_date_ymd] => 2025-04-01 15:04:06 [RateCDR] => 1 ) [2025-04-01 15:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:04:06' and `end` < '2025-04-01 15:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:04:19] Production.INFO: count ==5467 [2025-04-01 15:04:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:04:06 - End Time 2025-04-01 15:04:06 [2025-04-01 15:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811639', 'tblTempUsageDetail_20' ) start [2025-04-01 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811639', 'tblTempUsageDetail_20' ) end [2025-04-01 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811639', 'tblTempVendorCDR_20' ) start [2025-04-01 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811639', 'tblTempVendorCDR_20' ) end [2025-04-01 15:04:22] Production.INFO: ProcessCDR(1,14811639,1,1,2) [2025-04-01 15:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811639', 'tblTempUsageDetail_20' ) start [2025-04-01 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811639', 'tblTempUsageDetail_20' ) end [2025-04-01 15:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:04:28] Production.INFO: ==23882== Releasing lock... [2025-04-01 15:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:04:28] Production.INFO: 69 MB #Memory Used# [2025-04-01 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:05:06 [end_date_ymd] => 2025-04-01 15:05:06 [RateCDR] => 1 ) [2025-04-01 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-01 12:05:06' and `end` < '2025-04-01 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-01 15:05:20] Production.INFO: count ==5440 [2025-04-01 15:05:23] Production.ERROR: pbx CDR StartTime 2025-04-01 12:05:06 - End Time 2025-04-01 15:05:06 [2025-04-01 15:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811644', 'tblTempUsageDetail_20' ) start [2025-04-01 15:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811644', 'tblTempUsageDetail_20' ) end [2025-04-01 15:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811644', 'tblTempVendorCDR_20' ) start [2025-04-01 15:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811644', 'tblTempVendorCDR_20' ) end [2025-04-01 15:05:23] Production.INFO: ProcessCDR(1,14811644,1,1,2) [2025-04-01 15:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811644', 'tblTempUsageDetail_20' ) start [2025-04-01 15:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811644', 'tblTempUsageDetail_20' ) end [2025-04-01 15:05:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:05:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:05:29] Production.INFO: ==24036== Releasing lock... [2025-04-01 15:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:05:29] Production.INFO: 68.75 MB #Memory Used# [2025-04-01 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:06:05 [end_date_ymd] => 2025-04-01 15:06:05 [RateCDR] => 1 ) [2025-04-01 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-01 12:06:05' and `end` < '2025-04-01 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-01 15:06:19] Production.INFO: count ==5414 [2025-04-01 15:06:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:06:05 - End Time 2025-04-01 15:06:05 [2025-04-01 15:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811649', 'tblTempUsageDetail_20' ) start [2025-04-01 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811649', 'tblTempUsageDetail_20' ) end [2025-04-01 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811649', 'tblTempVendorCDR_20' ) start [2025-04-01 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811649', 'tblTempVendorCDR_20' ) end [2025-04-01 15:06:22] Production.INFO: ProcessCDR(1,14811649,1,1,2) [2025-04-01 15:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811649', 'tblTempUsageDetail_20' ) start [2025-04-01 15:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811649', 'tblTempUsageDetail_20' ) end [2025-04-01 15:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:06:28] Production.INFO: ==24110== Releasing lock... [2025-04-01 15:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:06:28] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 15:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:07:06 [end_date_ymd] => 2025-04-01 15:07:06 [RateCDR] => 1 ) [2025-04-01 15:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:07:06' and `end` < '2025-04-01 15:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:07:20] Production.INFO: count ==5412 [2025-04-01 15:07:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:07:06 - End Time 2025-04-01 15:07:06 [2025-04-01 15:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811654', 'tblTempUsageDetail_20' ) start [2025-04-01 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811654', 'tblTempUsageDetail_20' ) end [2025-04-01 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811654', 'tblTempVendorCDR_20' ) start [2025-04-01 15:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811654', 'tblTempVendorCDR_20' ) end [2025-04-01 15:07:23] Production.INFO: ProcessCDR(1,14811654,1,1,2) [2025-04-01 15:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811654', 'tblTempUsageDetail_20' ) start [2025-04-01 15:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811654', 'tblTempUsageDetail_20' ) end [2025-04-01 15:07:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:07:29] Production.INFO: ==24184== Releasing lock... [2025-04-01 15:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:07:29] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 15:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:08:06 [end_date_ymd] => 2025-04-01 15:08:06 [RateCDR] => 1 ) [2025-04-01 15:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:08:06' and `end` < '2025-04-01 15:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:08:19] Production.INFO: count ==5404 [2025-04-01 15:08:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:08:06 - End Time 2025-04-01 15:08:06 [2025-04-01 15:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811659', 'tblTempUsageDetail_20' ) start [2025-04-01 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811659', 'tblTempUsageDetail_20' ) end [2025-04-01 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811659', 'tblTempVendorCDR_20' ) start [2025-04-01 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811659', 'tblTempVendorCDR_20' ) end [2025-04-01 15:08:22] Production.INFO: ProcessCDR(1,14811659,1,1,2) [2025-04-01 15:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811659', 'tblTempUsageDetail_20' ) start [2025-04-01 15:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811659', 'tblTempUsageDetail_20' ) end [2025-04-01 15:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:08:28] Production.INFO: ==24261== Releasing lock... [2025-04-01 15:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:08:28] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:09:06 [end_date_ymd] => 2025-04-01 15:09:06 [RateCDR] => 1 ) [2025-04-01 15:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:09:06' and `end` < '2025-04-01 15:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:09:20] Production.INFO: count ==5411 [2025-04-01 15:09:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:09:06 - End Time 2025-04-01 15:09:06 [2025-04-01 15:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811664', 'tblTempUsageDetail_20' ) start [2025-04-01 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811664', 'tblTempUsageDetail_20' ) end [2025-04-01 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811664', 'tblTempVendorCDR_20' ) start [2025-04-01 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811664', 'tblTempVendorCDR_20' ) end [2025-04-01 15:09:22] Production.INFO: ProcessCDR(1,14811664,1,1,2) [2025-04-01 15:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811664', 'tblTempUsageDetail_20' ) start [2025-04-01 15:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811664', 'tblTempUsageDetail_20' ) end [2025-04-01 15:09:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:09:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:09:28] Production.INFO: ==24413== Releasing lock... [2025-04-01 15:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:09:28] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 15:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:10:07 [end_date_ymd] => 2025-04-01 15:10:07 [RateCDR] => 1 ) [2025-04-01 15:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:10:07' and `end` < '2025-04-01 15:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:10:20] Production.INFO: count ==5397 [2025-04-01 15:10:23] Production.ERROR: pbx CDR StartTime 2025-04-01 12:10:07 - End Time 2025-04-01 15:10:07 [2025-04-01 15:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811670', 'tblTempUsageDetail_20' ) start [2025-04-01 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811670', 'tblTempUsageDetail_20' ) end [2025-04-01 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811670', 'tblTempVendorCDR_20' ) start [2025-04-01 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811670', 'tblTempVendorCDR_20' ) end [2025-04-01 15:10:24] Production.INFO: ProcessCDR(1,14811670,1,1,2) [2025-04-01 15:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811670', 'tblTempUsageDetail_20' ) start [2025-04-01 15:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811670', 'tblTempUsageDetail_20' ) end [2025-04-01 15:10:30] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:10:30] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:10:30] Production.INFO: ==24507== Releasing lock... [2025-04-01 15:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:10:30] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:11:05 [end_date_ymd] => 2025-04-01 15:11:05 [RateCDR] => 1 ) [2025-04-01 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-01 12:11:05' and `end` < '2025-04-01 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-01 15:11:19] Production.INFO: count ==5408 [2025-04-01 15:11:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:11:05 - End Time 2025-04-01 15:11:05 [2025-04-01 15:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811675', 'tblTempUsageDetail_20' ) start [2025-04-01 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811675', 'tblTempUsageDetail_20' ) end [2025-04-01 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811675', 'tblTempVendorCDR_20' ) start [2025-04-01 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811675', 'tblTempVendorCDR_20' ) end [2025-04-01 15:11:23] Production.INFO: ProcessCDR(1,14811675,1,1,2) [2025-04-01 15:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811675', 'tblTempUsageDetail_20' ) start [2025-04-01 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811675', 'tblTempUsageDetail_20' ) end [2025-04-01 15:11:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:11:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:11:29] Production.INFO: ==24588== Releasing lock... [2025-04-01 15:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:11:29] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:12:05 [end_date_ymd] => 2025-04-01 15:12:05 [RateCDR] => 1 ) [2025-04-01 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-01 12:12:05' and `end` < '2025-04-01 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-01 15:12:19] Production.INFO: count ==5406 [2025-04-01 15:12:21] Production.ERROR: pbx CDR StartTime 2025-04-01 12:12:05 - End Time 2025-04-01 15:12:05 [2025-04-01 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811680', 'tblTempUsageDetail_20' ) start [2025-04-01 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811680', 'tblTempUsageDetail_20' ) end [2025-04-01 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811680', 'tblTempVendorCDR_20' ) start [2025-04-01 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811680', 'tblTempVendorCDR_20' ) end [2025-04-01 15:12:22] Production.INFO: ProcessCDR(1,14811680,1,1,2) [2025-04-01 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811680', 'tblTempUsageDetail_20' ) start [2025-04-01 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811680', 'tblTempUsageDetail_20' ) end [2025-04-01 15:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:12:27] Production.INFO: ==24737== Releasing lock... [2025-04-01 15:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:12:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:13:06 [end_date_ymd] => 2025-04-01 15:13:06 [RateCDR] => 1 ) [2025-04-01 15:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:13:06' and `end` < '2025-04-01 15:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:13:21] Production.INFO: count ==5409 [2025-04-01 15:13:23] Production.ERROR: pbx CDR StartTime 2025-04-01 12:13:06 - End Time 2025-04-01 15:13:06 [2025-04-01 15:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811685', 'tblTempUsageDetail_20' ) start [2025-04-01 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811685', 'tblTempUsageDetail_20' ) end [2025-04-01 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811685', 'tblTempVendorCDR_20' ) start [2025-04-01 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811685', 'tblTempVendorCDR_20' ) end [2025-04-01 15:13:24] Production.INFO: ProcessCDR(1,14811685,1,1,2) [2025-04-01 15:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811685', 'tblTempUsageDetail_20' ) start [2025-04-01 15:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811685', 'tblTempUsageDetail_20' ) end [2025-04-01 15:13:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:13:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:13:29] Production.INFO: ==24810== Releasing lock... [2025-04-01 15:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:13:29] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:14:05 [end_date_ymd] => 2025-04-01 15:14:05 [RateCDR] => 1 ) [2025-04-01 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-01 12:14:05' and `end` < '2025-04-01 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-01 15:14:19] Production.INFO: count ==5415 [2025-04-01 15:14:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:14:05 - End Time 2025-04-01 15:14:05 [2025-04-01 15:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811690', 'tblTempUsageDetail_20' ) start [2025-04-01 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811690', 'tblTempUsageDetail_20' ) end [2025-04-01 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811690', 'tblTempVendorCDR_20' ) start [2025-04-01 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811690', 'tblTempVendorCDR_20' ) end [2025-04-01 15:14:22] Production.INFO: ProcessCDR(1,14811690,1,1,2) [2025-04-01 15:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811690', 'tblTempUsageDetail_20' ) start [2025-04-01 15:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811690', 'tblTempUsageDetail_20' ) end [2025-04-01 15:14:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:14:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:14:28] Production.INFO: ==24884== Releasing lock... [2025-04-01 15:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:14:28] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 15:15:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:15:07 [end_date_ymd] => 2025-04-01 15:15:07 [RateCDR] => 1 ) [2025-04-01 15:15: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-01 12:15:07' and `end` < '2025-04-01 15:15: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-01 15:15:20] Production.INFO: count ==5429 [2025-04-01 15:15:23] Production.ERROR: pbx CDR StartTime 2025-04-01 12:15:07 - End Time 2025-04-01 15:15:07 [2025-04-01 15:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811695', 'tblTempUsageDetail_20' ) start [2025-04-01 15:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811695', 'tblTempUsageDetail_20' ) end [2025-04-01 15:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811695', 'tblTempVendorCDR_20' ) start [2025-04-01 15:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811695', 'tblTempVendorCDR_20' ) end [2025-04-01 15:15:23] Production.INFO: ProcessCDR(1,14811695,1,1,2) [2025-04-01 15:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:15:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811695', 'tblTempUsageDetail_20' ) start [2025-04-01 15:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811695', 'tblTempUsageDetail_20' ) end [2025-04-01 15:15:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:15:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:15:29] Production.INFO: ==24995== Releasing lock... [2025-04-01 15:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:15:29] Production.INFO: 68.75 MB #Memory Used# [2025-04-01 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:16:06 [end_date_ymd] => 2025-04-01 15:16:06 [RateCDR] => 1 ) [2025-04-01 15:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:16:06' and `end` < '2025-04-01 15:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:16:20] Production.INFO: count ==5417 [2025-04-01 15:16:23] Production.ERROR: pbx CDR StartTime 2025-04-01 12:16:06 - End Time 2025-04-01 15:16:06 [2025-04-01 15:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811700', 'tblTempUsageDetail_20' ) start [2025-04-01 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811700', 'tblTempUsageDetail_20' ) end [2025-04-01 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811700', 'tblTempVendorCDR_20' ) start [2025-04-01 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811700', 'tblTempVendorCDR_20' ) end [2025-04-01 15:16:23] Production.INFO: ProcessCDR(1,14811700,1,1,2) [2025-04-01 15:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811700', 'tblTempUsageDetail_20' ) start [2025-04-01 15:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811700', 'tblTempUsageDetail_20' ) end [2025-04-01 15:16:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:16:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:16:29] Production.INFO: ==25153== Releasing lock... [2025-04-01 15:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:16:29] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 15:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:17:06 [end_date_ymd] => 2025-04-01 15:17:06 [RateCDR] => 1 ) [2025-04-01 15:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:17:06' and `end` < '2025-04-01 15:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:17:19] Production.INFO: count ==5410 [2025-04-01 15:17:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:17:06 - End Time 2025-04-01 15:17:06 [2025-04-01 15:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811705', 'tblTempUsageDetail_20' ) start [2025-04-01 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811705', 'tblTempUsageDetail_20' ) end [2025-04-01 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811705', 'tblTempVendorCDR_20' ) start [2025-04-01 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811705', 'tblTempVendorCDR_20' ) end [2025-04-01 15:17:22] Production.INFO: ProcessCDR(1,14811705,1,1,2) [2025-04-01 15:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811705', 'tblTempUsageDetail_20' ) start [2025-04-01 15:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811705', 'tblTempUsageDetail_20' ) end [2025-04-01 15:17:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:17:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:17:28] Production.INFO: ==25230== Releasing lock... [2025-04-01 15:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:17:28] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 15:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:18:06 [end_date_ymd] => 2025-04-01 15:18:06 [RateCDR] => 1 ) [2025-04-01 15:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:18:06' and `end` < '2025-04-01 15:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:18:20] Production.INFO: count ==5391 [2025-04-01 15:18:23] Production.ERROR: pbx CDR StartTime 2025-04-01 12:18:06 - End Time 2025-04-01 15:18:06 [2025-04-01 15:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811710', 'tblTempUsageDetail_20' ) start [2025-04-01 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811710', 'tblTempUsageDetail_20' ) end [2025-04-01 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811710', 'tblTempVendorCDR_20' ) start [2025-04-01 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811710', 'tblTempVendorCDR_20' ) end [2025-04-01 15:18:23] Production.INFO: ProcessCDR(1,14811710,1,1,2) [2025-04-01 15:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811710', 'tblTempUsageDetail_20' ) start [2025-04-01 15:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811710', 'tblTempUsageDetail_20' ) end [2025-04-01 15:18:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:18:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:18:28] Production.INFO: ==25307== Releasing lock... [2025-04-01 15:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:18:28] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 15:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:19:06 [end_date_ymd] => 2025-04-01 15:19:06 [RateCDR] => 1 ) [2025-04-01 15: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-01 12:19:06' and `end` < '2025-04-01 15: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-01 15:19:19] Production.INFO: count ==5376 [2025-04-01 15:19:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:19:06 - End Time 2025-04-01 15:19:06 [2025-04-01 15:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811715', 'tblTempUsageDetail_20' ) start [2025-04-01 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811715', 'tblTempUsageDetail_20' ) end [2025-04-01 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811715', 'tblTempVendorCDR_20' ) start [2025-04-01 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811715', 'tblTempVendorCDR_20' ) end [2025-04-01 15:19:22] Production.INFO: ProcessCDR(1,14811715,1,1,2) [2025-04-01 15:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811715', 'tblTempUsageDetail_20' ) start [2025-04-01 15:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811715', 'tblTempUsageDetail_20' ) end [2025-04-01 15:19:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:19:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:19:28] Production.INFO: ==25383== Releasing lock... [2025-04-01 15:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:19:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:20:06 [end_date_ymd] => 2025-04-01 15:20:06 [RateCDR] => 1 ) [2025-04-01 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:20:06' and `end` < '2025-04-01 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:20:20] Production.INFO: count ==5377 [2025-04-01 15:20:23] Production.ERROR: pbx CDR StartTime 2025-04-01 12:20:06 - End Time 2025-04-01 15:20:06 [2025-04-01 15:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811721', 'tblTempUsageDetail_20' ) start [2025-04-01 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811721', 'tblTempUsageDetail_20' ) end [2025-04-01 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811721', 'tblTempVendorCDR_20' ) start [2025-04-01 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811721', 'tblTempVendorCDR_20' ) end [2025-04-01 15:20:23] Production.INFO: ProcessCDR(1,14811721,1,1,2) [2025-04-01 15:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811721', 'tblTempUsageDetail_20' ) start [2025-04-01 15:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811721', 'tblTempUsageDetail_20' ) end [2025-04-01 15:20:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:20:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:20:29] Production.INFO: ==25460== Releasing lock... [2025-04-01 15:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:20:29] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 15:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:21:06 [end_date_ymd] => 2025-04-01 15:21:06 [RateCDR] => 1 ) [2025-04-01 15:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:21:06' and `end` < '2025-04-01 15:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:21:20] Production.INFO: count ==5354 [2025-04-01 15:21:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:21:06 - End Time 2025-04-01 15:21:06 [2025-04-01 15:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811726', 'tblTempUsageDetail_20' ) start [2025-04-01 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811726', 'tblTempUsageDetail_20' ) end [2025-04-01 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811726', 'tblTempVendorCDR_20' ) start [2025-04-01 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811726', 'tblTempVendorCDR_20' ) end [2025-04-01 15:21:22] Production.INFO: ProcessCDR(1,14811726,1,1,2) [2025-04-01 15:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811726', 'tblTempUsageDetail_20' ) start [2025-04-01 15:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811726', 'tblTempUsageDetail_20' ) end [2025-04-01 15:21:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:21:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:21:28] Production.INFO: ==25538== Releasing lock... [2025-04-01 15:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:21:28] Production.INFO: 68 MB #Memory Used# [2025-04-01 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:22:06 [end_date_ymd] => 2025-04-01 15:22:06 [RateCDR] => 1 ) [2025-04-01 15:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:22:06' and `end` < '2025-04-01 15:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:22:20] Production.INFO: count ==5356 [2025-04-01 15:22:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:22:06 - End Time 2025-04-01 15:22:06 [2025-04-01 15:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811731', 'tblTempUsageDetail_20' ) start [2025-04-01 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811731', 'tblTempUsageDetail_20' ) end [2025-04-01 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811731', 'tblTempVendorCDR_20' ) start [2025-04-01 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811731', 'tblTempVendorCDR_20' ) end [2025-04-01 15:22:22] Production.INFO: ProcessCDR(1,14811731,1,1,2) [2025-04-01 15:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811731', 'tblTempUsageDetail_20' ) start [2025-04-01 15:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811731', 'tblTempUsageDetail_20' ) end [2025-04-01 15:22:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:22:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:22:28] Production.INFO: ==25613== Releasing lock... [2025-04-01 15:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:22:28] Production.INFO: 68 MB #Memory Used# [2025-04-01 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:23:05 [end_date_ymd] => 2025-04-01 15:23:05 [RateCDR] => 1 ) [2025-04-01 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-01 12:23:05' and `end` < '2025-04-01 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-01 15:23:19] Production.INFO: count ==5379 [2025-04-01 15:23:21] Production.ERROR: pbx CDR StartTime 2025-04-01 12:23:05 - End Time 2025-04-01 15:23:05 [2025-04-01 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811736', 'tblTempUsageDetail_20' ) start [2025-04-01 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811736', 'tblTempUsageDetail_20' ) end [2025-04-01 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811736', 'tblTempVendorCDR_20' ) start [2025-04-01 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811736', 'tblTempVendorCDR_20' ) end [2025-04-01 15:23:21] Production.INFO: ProcessCDR(1,14811736,1,1,2) [2025-04-01 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811736', 'tblTempUsageDetail_20' ) start [2025-04-01 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811736', 'tblTempUsageDetail_20' ) end [2025-04-01 15:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:23:26] Production.INFO: ==25688== Releasing lock... [2025-04-01 15:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:23:26] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:24:06 [end_date_ymd] => 2025-04-01 15:24:06 [RateCDR] => 1 ) [2025-04-01 15:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:24:06' and `end` < '2025-04-01 15:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:24:20] Production.INFO: count ==5391 [2025-04-01 15:24:23] Production.ERROR: pbx CDR StartTime 2025-04-01 12:24:06 - End Time 2025-04-01 15:24:06 [2025-04-01 15:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811741', 'tblTempUsageDetail_20' ) start [2025-04-01 15:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811741', 'tblTempUsageDetail_20' ) end [2025-04-01 15:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811741', 'tblTempVendorCDR_20' ) start [2025-04-01 15:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811741', 'tblTempVendorCDR_20' ) end [2025-04-01 15:24:23] Production.INFO: ProcessCDR(1,14811741,1,1,2) [2025-04-01 15:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811741', 'tblTempUsageDetail_20' ) start [2025-04-01 15:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811741', 'tblTempUsageDetail_20' ) end [2025-04-01 15:24:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:24:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:24:29] Production.INFO: ==25762== Releasing lock... [2025-04-01 15:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:24:29] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:25:05 [end_date_ymd] => 2025-04-01 15:25:05 [RateCDR] => 1 ) [2025-04-01 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:25:05' and `end` < '2025-04-01 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:25:19] Production.INFO: count ==5400 [2025-04-01 15:25:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:25:05 - End Time 2025-04-01 15:25:05 [2025-04-01 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811746', 'tblTempUsageDetail_20' ) start [2025-04-01 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811746', 'tblTempUsageDetail_20' ) end [2025-04-01 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811746', 'tblTempVendorCDR_20' ) start [2025-04-01 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811746', 'tblTempVendorCDR_20' ) end [2025-04-01 15:25:22] Production.INFO: ProcessCDR(1,14811746,1,1,2) [2025-04-01 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811746', 'tblTempUsageDetail_20' ) start [2025-04-01 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811746', 'tblTempUsageDetail_20' ) end [2025-04-01 15:25:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:25:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:25:28] Production.INFO: ==25831== Releasing lock... [2025-04-01 15:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:25:28] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:26:06 [end_date_ymd] => 2025-04-01 15:26:06 [RateCDR] => 1 ) [2025-04-01 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-01 12:26:06' and `end` < '2025-04-01 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-01 15:26:20] Production.INFO: count ==5393 [2025-04-01 15:26:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:26:06 - End Time 2025-04-01 15:26:06 [2025-04-01 15:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811751', 'tblTempUsageDetail_20' ) start [2025-04-01 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811751', 'tblTempUsageDetail_20' ) end [2025-04-01 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811751', 'tblTempVendorCDR_20' ) start [2025-04-01 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811751', 'tblTempVendorCDR_20' ) end [2025-04-01 15:26:22] Production.INFO: ProcessCDR(1,14811751,1,1,2) [2025-04-01 15:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811751', 'tblTempUsageDetail_20' ) start [2025-04-01 15:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811751', 'tblTempUsageDetail_20' ) end [2025-04-01 15:26:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:26:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:26:28] Production.INFO: ==25912== Releasing lock... [2025-04-01 15:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:26:28] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:27:06 [end_date_ymd] => 2025-04-01 15:27:06 [RateCDR] => 1 ) [2025-04-01 15:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:27:06' and `end` < '2025-04-01 15:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:27:20] Production.INFO: count ==5378 [2025-04-01 15:27:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:27:06 - End Time 2025-04-01 15:27:06 [2025-04-01 15:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811756', 'tblTempUsageDetail_20' ) start [2025-04-01 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811756', 'tblTempUsageDetail_20' ) end [2025-04-01 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811756', 'tblTempVendorCDR_20' ) start [2025-04-01 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811756', 'tblTempVendorCDR_20' ) end [2025-04-01 15:27:22] Production.INFO: ProcessCDR(1,14811756,1,1,2) [2025-04-01 15:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811756', 'tblTempUsageDetail_20' ) start [2025-04-01 15:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811756', 'tblTempUsageDetail_20' ) end [2025-04-01 15:27:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:27:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:27:28] Production.INFO: ==25993== Releasing lock... [2025-04-01 15:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:27:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 15:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:28:06 [end_date_ymd] => 2025-04-01 15:28:06 [RateCDR] => 1 ) [2025-04-01 15:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:28:06' and `end` < '2025-04-01 15:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:28:20] Production.INFO: count ==5377 [2025-04-01 15:28:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:28:06 - End Time 2025-04-01 15:28:06 [2025-04-01 15:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811761', 'tblTempUsageDetail_20' ) start [2025-04-01 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811761', 'tblTempUsageDetail_20' ) end [2025-04-01 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811761', 'tblTempVendorCDR_20' ) start [2025-04-01 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811761', 'tblTempVendorCDR_20' ) end [2025-04-01 15:28:22] Production.INFO: ProcessCDR(1,14811761,1,1,2) [2025-04-01 15:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811761', 'tblTempUsageDetail_20' ) start [2025-04-01 15:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811761', 'tblTempUsageDetail_20' ) end [2025-04-01 15:28:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:28:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:28:28] Production.INFO: ==26078== Releasing lock... [2025-04-01 15:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:28:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:29:05 [end_date_ymd] => 2025-04-01 15:29:05 [RateCDR] => 1 ) [2025-04-01 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-01 12:29:05' and `end` < '2025-04-01 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-01 15:29:19] Production.INFO: count ==5390 [2025-04-01 15:29:21] Production.ERROR: pbx CDR StartTime 2025-04-01 12:29:05 - End Time 2025-04-01 15:29:05 [2025-04-01 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811766', 'tblTempUsageDetail_20' ) start [2025-04-01 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811766', 'tblTempUsageDetail_20' ) end [2025-04-01 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811766', 'tblTempVendorCDR_20' ) start [2025-04-01 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811766', 'tblTempVendorCDR_20' ) end [2025-04-01 15:29:22] Production.INFO: ProcessCDR(1,14811766,1,1,2) [2025-04-01 15:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811766', 'tblTempUsageDetail_20' ) start [2025-04-01 15:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811766', 'tblTempUsageDetail_20' ) end [2025-04-01 15:29:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:29:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:29:28] Production.INFO: ==26168== Releasing lock... [2025-04-01 15:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:29:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 15:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:30:07 [end_date_ymd] => 2025-04-01 15:30:07 [RateCDR] => 1 ) [2025-04-01 15: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-01 12:30:07' and `end` < '2025-04-01 15: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-01 15:30:21] Production.INFO: count ==5400 [2025-04-01 15:30:23] Production.ERROR: pbx CDR StartTime 2025-04-01 12:30:07 - End Time 2025-04-01 15:30:07 [2025-04-01 15:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811772', 'tblTempUsageDetail_20' ) start [2025-04-01 15:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811772', 'tblTempUsageDetail_20' ) end [2025-04-01 15:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811772', 'tblTempVendorCDR_20' ) start [2025-04-01 15:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811772', 'tblTempVendorCDR_20' ) end [2025-04-01 15:30:24] Production.INFO: ProcessCDR(1,14811772,1,1,2) [2025-04-01 15:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811772', 'tblTempUsageDetail_20' ) start [2025-04-01 15:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811772', 'tblTempUsageDetail_20' ) end [2025-04-01 15:30:30] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:30:30] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:30:30] Production.INFO: ==26256== Releasing lock... [2025-04-01 15:30:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:30:30] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 15:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:31:06 [end_date_ymd] => 2025-04-01 15:31:06 [RateCDR] => 1 ) [2025-04-01 15:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:31:06' and `end` < '2025-04-01 15:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:31:19] Production.INFO: count ==5462 [2025-04-01 15:31:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:31:06 - End Time 2025-04-01 15:31:06 [2025-04-01 15:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811777', 'tblTempUsageDetail_20' ) start [2025-04-01 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811777', 'tblTempUsageDetail_20' ) end [2025-04-01 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811777', 'tblTempVendorCDR_20' ) start [2025-04-01 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811777', 'tblTempVendorCDR_20' ) end [2025-04-01 15:31:22] Production.INFO: ProcessCDR(1,14811777,1,1,2) [2025-04-01 15:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811777', 'tblTempUsageDetail_20' ) start [2025-04-01 15:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811777', 'tblTempUsageDetail_20' ) end [2025-04-01 15:31:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:31:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:31:29] Production.INFO: ==26348== Releasing lock... [2025-04-01 15:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:31:29] Production.INFO: 69 MB #Memory Used# [2025-04-01 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:32:06 [end_date_ymd] => 2025-04-01 15:32:06 [RateCDR] => 1 ) [2025-04-01 15: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-01 12:32:06' and `end` < '2025-04-01 15: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-01 15:32:20] Production.INFO: count ==5459 [2025-04-01 15:32:23] Production.ERROR: pbx CDR StartTime 2025-04-01 12:32:06 - End Time 2025-04-01 15:32:06 [2025-04-01 15:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811782', 'tblTempUsageDetail_20' ) start [2025-04-01 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811782', 'tblTempUsageDetail_20' ) end [2025-04-01 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811782', 'tblTempVendorCDR_20' ) start [2025-04-01 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811782', 'tblTempVendorCDR_20' ) end [2025-04-01 15:32:23] Production.INFO: ProcessCDR(1,14811782,1,1,2) [2025-04-01 15:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811782', 'tblTempUsageDetail_20' ) start [2025-04-01 15:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811782', 'tblTempUsageDetail_20' ) end [2025-04-01 15:32:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:32:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:32:29] Production.INFO: ==26476== Releasing lock... [2025-04-01 15:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:32:29] Production.INFO: 69 MB #Memory Used# [2025-04-01 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:33:05 [end_date_ymd] => 2025-04-01 15:33:05 [RateCDR] => 1 ) [2025-04-01 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-01 12:33:05' and `end` < '2025-04-01 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-01 15:33:19] Production.INFO: count ==5447 [2025-04-01 15:33:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:33:05 - End Time 2025-04-01 15:33:05 [2025-04-01 15:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811787', 'tblTempUsageDetail_20' ) start [2025-04-01 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811787', 'tblTempUsageDetail_20' ) end [2025-04-01 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811787', 'tblTempVendorCDR_20' ) start [2025-04-01 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811787', 'tblTempVendorCDR_20' ) end [2025-04-01 15:33:22] Production.INFO: ProcessCDR(1,14811787,1,1,2) [2025-04-01 15:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811787', 'tblTempUsageDetail_20' ) start [2025-04-01 15:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811787', 'tblTempUsageDetail_20' ) end [2025-04-01 15:33:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:33:28] Production.INFO: ==26569== Releasing lock... [2025-04-01 15:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:33:28] Production.INFO: 68.75 MB #Memory Used# [2025-04-01 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:34:06 [end_date_ymd] => 2025-04-01 15:34:06 [RateCDR] => 1 ) [2025-04-01 15: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-01 12:34:06' and `end` < '2025-04-01 15: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-01 15:34:20] Production.INFO: count ==5452 [2025-04-01 15:34:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:34:06 - End Time 2025-04-01 15:34:06 [2025-04-01 15:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811792', 'tblTempUsageDetail_20' ) start [2025-04-01 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811792', 'tblTempUsageDetail_20' ) end [2025-04-01 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811792', 'tblTempVendorCDR_20' ) start [2025-04-01 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811792', 'tblTempVendorCDR_20' ) end [2025-04-01 15:34:23] Production.INFO: ProcessCDR(1,14811792,1,1,2) [2025-04-01 15:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811792', 'tblTempUsageDetail_20' ) start [2025-04-01 15:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811792', 'tblTempUsageDetail_20' ) end [2025-04-01 15:34:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:34:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:34:29] Production.INFO: ==26657== Releasing lock... [2025-04-01 15:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:34:29] Production.INFO: 68.75 MB #Memory Used# [2025-04-01 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:35:05 [end_date_ymd] => 2025-04-01 15:35:05 [RateCDR] => 1 ) [2025-04-01 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:35:05' and `end` < '2025-04-01 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:35:19] Production.INFO: count ==5455 [2025-04-01 15:35:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:35:05 - End Time 2025-04-01 15:35:05 [2025-04-01 15:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811797', 'tblTempUsageDetail_20' ) start [2025-04-01 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811797', 'tblTempUsageDetail_20' ) end [2025-04-01 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811797', 'tblTempVendorCDR_20' ) start [2025-04-01 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811797', 'tblTempVendorCDR_20' ) end [2025-04-01 15:35:22] Production.INFO: ProcessCDR(1,14811797,1,1,2) [2025-04-01 15:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811797', 'tblTempUsageDetail_20' ) start [2025-04-01 15:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811797', 'tblTempUsageDetail_20' ) end [2025-04-01 15:35:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:35:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:35:29] Production.INFO: ==26756== Releasing lock... [2025-04-01 15:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:35:29] Production.INFO: 68.75 MB #Memory Used# [2025-04-01 15:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:36:06 [end_date_ymd] => 2025-04-01 15:36:06 [RateCDR] => 1 ) [2025-04-01 15: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-01 12:36:06' and `end` < '2025-04-01 15: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-01 15:36:20] Production.INFO: count ==5469 [2025-04-01 15:36:23] Production.ERROR: pbx CDR StartTime 2025-04-01 12:36:06 - End Time 2025-04-01 15:36:06 [2025-04-01 15:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811802', 'tblTempUsageDetail_20' ) start [2025-04-01 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811802', 'tblTempUsageDetail_20' ) end [2025-04-01 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811802', 'tblTempVendorCDR_20' ) start [2025-04-01 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811802', 'tblTempVendorCDR_20' ) end [2025-04-01 15:36:23] Production.INFO: ProcessCDR(1,14811802,1,1,2) [2025-04-01 15:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811802', 'tblTempUsageDetail_20' ) start [2025-04-01 15:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811802', 'tblTempUsageDetail_20' ) end [2025-04-01 15:36:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:36:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:36:29] Production.INFO: ==26848== Releasing lock... [2025-04-01 15:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:36:29] Production.INFO: 69 MB #Memory Used# [2025-04-01 15:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:37:06 [end_date_ymd] => 2025-04-01 15:37:06 [RateCDR] => 1 ) [2025-04-01 15:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:37:06' and `end` < '2025-04-01 15:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:37:19] Production.INFO: count ==5478 [2025-04-01 15:37:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:37:06 - End Time 2025-04-01 15:37:06 [2025-04-01 15:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811807', 'tblTempUsageDetail_20' ) start [2025-04-01 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811807', 'tblTempUsageDetail_20' ) end [2025-04-01 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811807', 'tblTempVendorCDR_20' ) start [2025-04-01 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811807', 'tblTempVendorCDR_20' ) end [2025-04-01 15:37:22] Production.INFO: ProcessCDR(1,14811807,1,1,2) [2025-04-01 15:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811807', 'tblTempUsageDetail_20' ) start [2025-04-01 15:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811807', 'tblTempUsageDetail_20' ) end [2025-04-01 15:37:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:37:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:37:28] Production.INFO: ==26943== Releasing lock... [2025-04-01 15:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:37:28] Production.INFO: 69 MB #Memory Used# [2025-04-01 15:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:38:06 [end_date_ymd] => 2025-04-01 15:38:06 [RateCDR] => 1 ) [2025-04-01 15: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-01 12:38:06' and `end` < '2025-04-01 15: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-01 15:38:20] Production.INFO: count ==5464 [2025-04-01 15:38:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:38:06 - End Time 2025-04-01 15:38:06 [2025-04-01 15:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811812', 'tblTempUsageDetail_20' ) start [2025-04-01 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811812', 'tblTempUsageDetail_20' ) end [2025-04-01 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811812', 'tblTempVendorCDR_20' ) start [2025-04-01 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811812', 'tblTempVendorCDR_20' ) end [2025-04-01 15:38:22] Production.INFO: ProcessCDR(1,14811812,1,1,2) [2025-04-01 15:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811812', 'tblTempUsageDetail_20' ) start [2025-04-01 15:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811812', 'tblTempUsageDetail_20' ) end [2025-04-01 15:38:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:38:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:38:28] Production.INFO: ==27029== Releasing lock... [2025-04-01 15:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:38:28] Production.INFO: 69 MB #Memory Used# [2025-04-01 15:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:39:06 [end_date_ymd] => 2025-04-01 15:39:06 [RateCDR] => 1 ) [2025-04-01 15:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:39:06' and `end` < '2025-04-01 15:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:39:20] Production.INFO: count ==5471 [2025-04-01 15:39:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:39:06 - End Time 2025-04-01 15:39:06 [2025-04-01 15:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811817', 'tblTempUsageDetail_20' ) start [2025-04-01 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811817', 'tblTempUsageDetail_20' ) end [2025-04-01 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811817', 'tblTempVendorCDR_20' ) start [2025-04-01 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811817', 'tblTempVendorCDR_20' ) end [2025-04-01 15:39:22] Production.INFO: ProcessCDR(1,14811817,1,1,2) [2025-04-01 15:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811817', 'tblTempUsageDetail_20' ) start [2025-04-01 15:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811817', 'tblTempUsageDetail_20' ) end [2025-04-01 15:39:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:39:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:39:29] Production.INFO: ==27121== Releasing lock... [2025-04-01 15:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:39:29] Production.INFO: 69 MB #Memory Used# [2025-04-01 15:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:40:07 [end_date_ymd] => 2025-04-01 15:40:07 [RateCDR] => 1 ) [2025-04-01 15: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-01 12:40:07' and `end` < '2025-04-01 15:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:40:21] Production.INFO: count ==5470 [2025-04-01 15:40:24] Production.ERROR: pbx CDR StartTime 2025-04-01 12:40:07 - End Time 2025-04-01 15:40:07 [2025-04-01 15:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811823', 'tblTempUsageDetail_20' ) start [2025-04-01 15:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811823', 'tblTempUsageDetail_20' ) end [2025-04-01 15:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811823', 'tblTempVendorCDR_20' ) start [2025-04-01 15:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811823', 'tblTempVendorCDR_20' ) end [2025-04-01 15:40:24] Production.INFO: ProcessCDR(1,14811823,1,1,2) [2025-04-01 15:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811823', 'tblTempUsageDetail_20' ) start [2025-04-01 15:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811823', 'tblTempUsageDetail_20' ) end [2025-04-01 15:40:30] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:40:30] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:40:30] Production.INFO: ==27215== Releasing lock... [2025-04-01 15:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:40:30] Production.INFO: 69 MB #Memory Used# [2025-04-01 15:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:41:06 [end_date_ymd] => 2025-04-01 15:41:06 [RateCDR] => 1 ) [2025-04-01 15:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:41:06' and `end` < '2025-04-01 15:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:41:20] Production.INFO: count ==5442 [2025-04-01 15:41:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:41:06 - End Time 2025-04-01 15:41:06 [2025-04-01 15:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811828', 'tblTempUsageDetail_20' ) start [2025-04-01 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811828', 'tblTempUsageDetail_20' ) end [2025-04-01 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811828', 'tblTempVendorCDR_20' ) start [2025-04-01 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811828', 'tblTempVendorCDR_20' ) end [2025-04-01 15:41:22] Production.INFO: ProcessCDR(1,14811828,1,1,2) [2025-04-01 15:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811828', 'tblTempUsageDetail_20' ) start [2025-04-01 15:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811828', 'tblTempUsageDetail_20' ) end [2025-04-01 15:41:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:41:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:41:28] Production.INFO: ==27306== Releasing lock... [2025-04-01 15:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:41:28] Production.INFO: 68.75 MB #Memory Used# [2025-04-01 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:42:06 [end_date_ymd] => 2025-04-01 15:42:06 [RateCDR] => 1 ) [2025-04-01 15: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-01 12:42:06' and `end` < '2025-04-01 15: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-01 15:42:20] Production.INFO: count ==5424 [2025-04-01 15:42:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:42:06 - End Time 2025-04-01 15:42:06 [2025-04-01 15:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811833', 'tblTempUsageDetail_20' ) start [2025-04-01 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811833', 'tblTempUsageDetail_20' ) end [2025-04-01 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811833', 'tblTempVendorCDR_20' ) start [2025-04-01 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811833', 'tblTempVendorCDR_20' ) end [2025-04-01 15:42:23] Production.INFO: ProcessCDR(1,14811833,1,1,2) [2025-04-01 15:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811833', 'tblTempUsageDetail_20' ) start [2025-04-01 15:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811833', 'tblTempUsageDetail_20' ) end [2025-04-01 15:42:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:42:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:42:29] Production.INFO: ==27397== Releasing lock... [2025-04-01 15:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:42:29] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 15:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:43:06 [end_date_ymd] => 2025-04-01 15:43:06 [RateCDR] => 1 ) [2025-04-01 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-01 12:43:06' and `end` < '2025-04-01 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-01 15:43:20] Production.INFO: count ==5404 [2025-04-01 15:43:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:43:06 - End Time 2025-04-01 15:43:06 [2025-04-01 15:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811838', 'tblTempUsageDetail_20' ) start [2025-04-01 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811838', 'tblTempUsageDetail_20' ) end [2025-04-01 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811838', 'tblTempVendorCDR_20' ) start [2025-04-01 15:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811838', 'tblTempVendorCDR_20' ) end [2025-04-01 15:43:23] Production.INFO: ProcessCDR(1,14811838,1,1,2) [2025-04-01 15:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811838', 'tblTempUsageDetail_20' ) start [2025-04-01 15:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811838', 'tblTempUsageDetail_20' ) end [2025-04-01 15:43:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:43:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:43:29] Production.INFO: ==27487== Releasing lock... [2025-04-01 15:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:43:29] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:44:06 [end_date_ymd] => 2025-04-01 15:44:06 [RateCDR] => 1 ) [2025-04-01 15: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-01 12:44:06' and `end` < '2025-04-01 15: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-01 15:44:20] Production.INFO: count ==5424 [2025-04-01 15:44:23] Production.ERROR: pbx CDR StartTime 2025-04-01 12:44:06 - End Time 2025-04-01 15:44:06 [2025-04-01 15:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811843', 'tblTempUsageDetail_20' ) start [2025-04-01 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811843', 'tblTempUsageDetail_20' ) end [2025-04-01 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811843', 'tblTempVendorCDR_20' ) start [2025-04-01 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811843', 'tblTempVendorCDR_20' ) end [2025-04-01 15:44:23] Production.INFO: ProcessCDR(1,14811843,1,1,2) [2025-04-01 15:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811843', 'tblTempUsageDetail_20' ) start [2025-04-01 15:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811843', 'tblTempUsageDetail_20' ) end [2025-04-01 15:44:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:44:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:44:29] Production.INFO: ==27573== Releasing lock... [2025-04-01 15:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:44:29] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 15:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:45:06 [end_date_ymd] => 2025-04-01 15:45:06 [RateCDR] => 1 ) [2025-04-01 15:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:45:06' and `end` < '2025-04-01 15: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-01 15:45:19] Production.INFO: count ==5421 [2025-04-01 15:45:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:45:06 - End Time 2025-04-01 15:45:06 [2025-04-01 15:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811848', 'tblTempUsageDetail_20' ) start [2025-04-01 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811848', 'tblTempUsageDetail_20' ) end [2025-04-01 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811848', 'tblTempVendorCDR_20' ) start [2025-04-01 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811848', 'tblTempVendorCDR_20' ) end [2025-04-01 15:45:22] Production.INFO: ProcessCDR(1,14811848,1,1,2) [2025-04-01 15:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811848', 'tblTempUsageDetail_20' ) start [2025-04-01 15:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811848', 'tblTempUsageDetail_20' ) end [2025-04-01 15:45:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:45:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:45:28] Production.INFO: ==27658== Releasing lock... [2025-04-01 15:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:45:28] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:46:06 [end_date_ymd] => 2025-04-01 15:46:06 [RateCDR] => 1 ) [2025-04-01 15:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:46:06' and `end` < '2025-04-01 15:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:46:20] Production.INFO: count ==5405 [2025-04-01 15:46:23] Production.ERROR: pbx CDR StartTime 2025-04-01 12:46:06 - End Time 2025-04-01 15:46:06 [2025-04-01 15:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811853', 'tblTempUsageDetail_20' ) start [2025-04-01 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811853', 'tblTempUsageDetail_20' ) end [2025-04-01 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811853', 'tblTempVendorCDR_20' ) start [2025-04-01 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811853', 'tblTempVendorCDR_20' ) end [2025-04-01 15:46:23] Production.INFO: ProcessCDR(1,14811853,1,1,2) [2025-04-01 15:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811853', 'tblTempUsageDetail_20' ) start [2025-04-01 15:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811853', 'tblTempUsageDetail_20' ) end [2025-04-01 15:46:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:46:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:46:29] Production.INFO: ==27744== Releasing lock... [2025-04-01 15:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:46:29] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 15:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:47:06 [end_date_ymd] => 2025-04-01 15:47:06 [RateCDR] => 1 ) [2025-04-01 15:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:47:06' and `end` < '2025-04-01 15:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:47:19] Production.INFO: count ==5393 [2025-04-01 15:47:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:47:06 - End Time 2025-04-01 15:47:06 [2025-04-01 15:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811858', 'tblTempUsageDetail_20' ) start [2025-04-01 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811858', 'tblTempUsageDetail_20' ) end [2025-04-01 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811858', 'tblTempVendorCDR_20' ) start [2025-04-01 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811858', 'tblTempVendorCDR_20' ) end [2025-04-01 15:47:22] Production.INFO: ProcessCDR(1,14811858,1,1,2) [2025-04-01 15:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811858', 'tblTempUsageDetail_20' ) start [2025-04-01 15:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811858', 'tblTempUsageDetail_20' ) end [2025-04-01 15:47:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:47:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:47:28] Production.INFO: ==27872== Releasing lock... [2025-04-01 15:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:47:28] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 15:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:48:06 [end_date_ymd] => 2025-04-01 15:48:06 [RateCDR] => 1 ) [2025-04-01 15:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:48:06' and `end` < '2025-04-01 15:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:48:20] Production.INFO: count ==5371 [2025-04-01 15:48:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:48:06 - End Time 2025-04-01 15:48:06 [2025-04-01 15:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811863', 'tblTempUsageDetail_20' ) start [2025-04-01 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811863', 'tblTempUsageDetail_20' ) end [2025-04-01 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811863', 'tblTempVendorCDR_20' ) start [2025-04-01 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811863', 'tblTempVendorCDR_20' ) end [2025-04-01 15:48:23] Production.INFO: ProcessCDR(1,14811863,1,1,2) [2025-04-01 15:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811863', 'tblTempUsageDetail_20' ) start [2025-04-01 15:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811863', 'tblTempUsageDetail_20' ) end [2025-04-01 15:48:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:48:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:48:29] Production.INFO: ==27960== Releasing lock... [2025-04-01 15:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:48:29] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:49:05 [end_date_ymd] => 2025-04-01 15:49:05 [RateCDR] => 1 ) [2025-04-01 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-01 12:49:05' and `end` < '2025-04-01 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-01 15:49:19] Production.INFO: count ==5371 [2025-04-01 15:49:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:49:05 - End Time 2025-04-01 15:49:05 [2025-04-01 15:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811868', 'tblTempUsageDetail_20' ) start [2025-04-01 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811868', 'tblTempUsageDetail_20' ) end [2025-04-01 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811868', 'tblTempVendorCDR_20' ) start [2025-04-01 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811868', 'tblTempVendorCDR_20' ) end [2025-04-01 15:49:22] Production.INFO: ProcessCDR(1,14811868,1,1,2) [2025-04-01 15:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811868', 'tblTempUsageDetail_20' ) start [2025-04-01 15:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811868', 'tblTempUsageDetail_20' ) end [2025-04-01 15:49:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:49:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:49:28] Production.INFO: ==28049== Releasing lock... [2025-04-01 15:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:49:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 15:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:50:07 [end_date_ymd] => 2025-04-01 15:50:07 [RateCDR] => 1 ) [2025-04-01 15:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:50:07' and `end` < '2025-04-01 15:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:50:21] Production.INFO: count ==5362 [2025-04-01 15:50:24] Production.ERROR: pbx CDR StartTime 2025-04-01 12:50:07 - End Time 2025-04-01 15:50:07 [2025-04-01 15:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811873', 'tblTempUsageDetail_20' ) start [2025-04-01 15:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811873', 'tblTempUsageDetail_20' ) end [2025-04-01 15:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811873', 'tblTempVendorCDR_20' ) start [2025-04-01 15:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811873', 'tblTempVendorCDR_20' ) end [2025-04-01 15:50:24] Production.INFO: ProcessCDR(1,14811873,1,1,2) [2025-04-01 15:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811873', 'tblTempUsageDetail_20' ) start [2025-04-01 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811873', 'tblTempUsageDetail_20' ) end [2025-04-01 15:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:50:28] Production.INFO: ==28141== Releasing lock... [2025-04-01 15:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:50:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 15:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:51:06 [end_date_ymd] => 2025-04-01 15:51:06 [RateCDR] => 1 ) [2025-04-01 15:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:51:06' and `end` < '2025-04-01 15:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:51:20] Production.INFO: count ==5374 [2025-04-01 15:51:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:51:06 - End Time 2025-04-01 15:51:06 [2025-04-01 15:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811879', 'tblTempUsageDetail_20' ) start [2025-04-01 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811879', 'tblTempUsageDetail_20' ) end [2025-04-01 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811879', 'tblTempVendorCDR_20' ) start [2025-04-01 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811879', 'tblTempVendorCDR_20' ) end [2025-04-01 15:51:23] Production.INFO: ProcessCDR(1,14811879,1,1,2) [2025-04-01 15:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811879', 'tblTempUsageDetail_20' ) start [2025-04-01 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811879', 'tblTempUsageDetail_20' ) end [2025-04-01 15:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:51:27] Production.INFO: ==28227== Releasing lock... [2025-04-01 15:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:51:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:52:06 [end_date_ymd] => 2025-04-01 15:52:06 [RateCDR] => 1 ) [2025-04-01 15: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-01 12:52:06' and `end` < '2025-04-01 15: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-01 15:52:19] Production.INFO: count ==5376 [2025-04-01 15:52:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:52:06 - End Time 2025-04-01 15:52:06 [2025-04-01 15:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811884', 'tblTempUsageDetail_20' ) start [2025-04-01 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811884', 'tblTempUsageDetail_20' ) end [2025-04-01 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811884', 'tblTempVendorCDR_20' ) start [2025-04-01 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811884', 'tblTempVendorCDR_20' ) end [2025-04-01 15:52:22] Production.INFO: ProcessCDR(1,14811884,1,1,2) [2025-04-01 15:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811884', 'tblTempUsageDetail_20' ) start [2025-04-01 15:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811884', 'tblTempUsageDetail_20' ) end [2025-04-01 15:52:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:52:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:52:28] Production.INFO: ==28314== Releasing lock... [2025-04-01 15:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:52:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 15:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:53:06 [end_date_ymd] => 2025-04-01 15:53:06 [RateCDR] => 1 ) [2025-04-01 15:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:53:06' and `end` < '2025-04-01 15:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:53:20] Production.INFO: count ==5372 [2025-04-01 15:53:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:53:06 - End Time 2025-04-01 15:53:06 [2025-04-01 15:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811889', 'tblTempUsageDetail_20' ) start [2025-04-01 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811889', 'tblTempUsageDetail_20' ) end [2025-04-01 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811889', 'tblTempVendorCDR_20' ) start [2025-04-01 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811889', 'tblTempVendorCDR_20' ) end [2025-04-01 15:53:22] Production.INFO: ProcessCDR(1,14811889,1,1,2) [2025-04-01 15:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811889', 'tblTempUsageDetail_20' ) start [2025-04-01 15:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811889', 'tblTempUsageDetail_20' ) end [2025-04-01 15:53:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:53:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:53:28] Production.INFO: ==28398== Releasing lock... [2025-04-01 15:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:53:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:54:05 [end_date_ymd] => 2025-04-01 15:54:05 [RateCDR] => 1 ) [2025-04-01 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-01 12:54:05' and `end` < '2025-04-01 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-01 15:54:19] Production.INFO: count ==5384 [2025-04-01 15:54:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:54:05 - End Time 2025-04-01 15:54:05 [2025-04-01 15:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811894', 'tblTempUsageDetail_20' ) start [2025-04-01 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811894', 'tblTempUsageDetail_20' ) end [2025-04-01 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811894', 'tblTempVendorCDR_20' ) start [2025-04-01 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811894', 'tblTempVendorCDR_20' ) end [2025-04-01 15:54:22] Production.INFO: ProcessCDR(1,14811894,1,1,2) [2025-04-01 15:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811894', 'tblTempUsageDetail_20' ) start [2025-04-01 15:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811894', 'tblTempUsageDetail_20' ) end [2025-04-01 15:54:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:54:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:54:28] Production.INFO: ==28484== Releasing lock... [2025-04-01 15:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:54:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:55:06 [end_date_ymd] => 2025-04-01 15:55:06 [RateCDR] => 1 ) [2025-04-01 15:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:55:06' and `end` < '2025-04-01 15:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:55:20] Production.INFO: count ==5367 [2025-04-01 15:55:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:55:06 - End Time 2025-04-01 15:55:06 [2025-04-01 15:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811899', 'tblTempUsageDetail_20' ) start [2025-04-01 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811899', 'tblTempUsageDetail_20' ) end [2025-04-01 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811899', 'tblTempVendorCDR_20' ) start [2025-04-01 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811899', 'tblTempVendorCDR_20' ) end [2025-04-01 15:55:23] Production.INFO: ProcessCDR(1,14811899,1,1,2) [2025-04-01 15:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811899', 'tblTempUsageDetail_20' ) start [2025-04-01 15:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811899', 'tblTempUsageDetail_20' ) end [2025-04-01 15:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:55:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:55:29] Production.INFO: ==28567== Releasing lock... [2025-04-01 15:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:55:29] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:56:06 [end_date_ymd] => 2025-04-01 15:56:06 [RateCDR] => 1 ) [2025-04-01 15:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:56:06' and `end` < '2025-04-01 15:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:56:19] Production.INFO: count ==5380 [2025-04-01 15:56:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:56:06 - End Time 2025-04-01 15:56:06 [2025-04-01 15:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811904', 'tblTempUsageDetail_20' ) start [2025-04-01 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811904', 'tblTempUsageDetail_20' ) end [2025-04-01 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811904', 'tblTempVendorCDR_20' ) start [2025-04-01 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811904', 'tblTempVendorCDR_20' ) end [2025-04-01 15:56:22] Production.INFO: ProcessCDR(1,14811904,1,1,2) [2025-04-01 15:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811904', 'tblTempUsageDetail_20' ) start [2025-04-01 15:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811904', 'tblTempUsageDetail_20' ) end [2025-04-01 15:56:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:56:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:56:28] Production.INFO: ==28652== Releasing lock... [2025-04-01 15:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:56:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 15:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:57:06 [end_date_ymd] => 2025-04-01 15:57:06 [RateCDR] => 1 ) [2025-04-01 15:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:57:06' and `end` < '2025-04-01 15:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:57:19] Production.INFO: count ==5373 [2025-04-01 15:57:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:57:06 - End Time 2025-04-01 15:57:06 [2025-04-01 15:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811909', 'tblTempUsageDetail_20' ) start [2025-04-01 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811909', 'tblTempUsageDetail_20' ) end [2025-04-01 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811909', 'tblTempVendorCDR_20' ) start [2025-04-01 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811909', 'tblTempVendorCDR_20' ) end [2025-04-01 15:57:22] Production.INFO: ProcessCDR(1,14811909,1,1,2) [2025-04-01 15:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811909', 'tblTempUsageDetail_20' ) start [2025-04-01 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811909', 'tblTempUsageDetail_20' ) end [2025-04-01 15:57:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:57:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:57:28] Production.INFO: ==28738== Releasing lock... [2025-04-01 15:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:57:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:58:06 [end_date_ymd] => 2025-04-01 15:58:06 [RateCDR] => 1 ) [2025-04-01 15: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-01 12:58:06' and `end` < '2025-04-01 15: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-01 15:58:20] Production.INFO: count ==5366 [2025-04-01 15:58:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:58:06 - End Time 2025-04-01 15:58:06 [2025-04-01 15:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811914', 'tblTempUsageDetail_20' ) start [2025-04-01 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811914', 'tblTempUsageDetail_20' ) end [2025-04-01 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811914', 'tblTempVendorCDR_20' ) start [2025-04-01 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811914', 'tblTempVendorCDR_20' ) end [2025-04-01 15:58:22] Production.INFO: ProcessCDR(1,14811914,1,1,2) [2025-04-01 15:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811914', 'tblTempUsageDetail_20' ) start [2025-04-01 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811914', 'tblTempUsageDetail_20' ) end [2025-04-01 15:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:58:27] Production.INFO: ==28820== Releasing lock... [2025-04-01 15:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:58:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 15:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 12:59:06 [end_date_ymd] => 2025-04-01 15:59:06 [RateCDR] => 1 ) [2025-04-01 15:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 12:59:06' and `end` < '2025-04-01 15:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 15:59:19] Production.INFO: count ==5372 [2025-04-01 15:59:22] Production.ERROR: pbx CDR StartTime 2025-04-01 12:59:06 - End Time 2025-04-01 15:59:06 [2025-04-01 15:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811919', 'tblTempUsageDetail_20' ) start [2025-04-01 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811919', 'tblTempUsageDetail_20' ) end [2025-04-01 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811919', 'tblTempVendorCDR_20' ) start [2025-04-01 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811919', 'tblTempVendorCDR_20' ) end [2025-04-01 15:59:22] Production.INFO: ProcessCDR(1,14811919,1,1,2) [2025-04-01 15:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 15:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 15:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811919', 'tblTempUsageDetail_20' ) start [2025-04-01 15:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811919', 'tblTempUsageDetail_20' ) end [2025-04-01 15:59:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 15:59:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 15:59:28] Production.INFO: ==28905== Releasing lock... [2025-04-01 15:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 15:59:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 16:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:00:07 [end_date_ymd] => 2025-04-01 16:00:07 [RateCDR] => 1 ) [2025-04-01 16:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:00:07' and `end` < '2025-04-01 16:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:00:21] Production.INFO: count ==5376 [2025-04-01 16:00:23] Production.ERROR: pbx CDR StartTime 2025-04-01 13:00:07 - End Time 2025-04-01 16:00:07 [2025-04-01 16:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811925', 'tblTempUsageDetail_20' ) start [2025-04-01 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811925', 'tblTempUsageDetail_20' ) end [2025-04-01 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811925', 'tblTempVendorCDR_20' ) start [2025-04-01 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811925', 'tblTempVendorCDR_20' ) end [2025-04-01 16:00:24] Production.INFO: ProcessCDR(1,14811925,1,1,2) [2025-04-01 16:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811925', 'tblTempUsageDetail_20' ) start [2025-04-01 16:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811925', 'tblTempUsageDetail_20' ) end [2025-04-01 16:00:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:00:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:00:29] Production.INFO: ==28998== Releasing lock... [2025-04-01 16:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:00:29] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:01:05 [end_date_ymd] => 2025-04-01 16:01:05 [RateCDR] => 1 ) [2025-04-01 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-01 13:01:05' and `end` < '2025-04-01 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-01 16:01:19] Production.INFO: count ==5402 [2025-04-01 16:01:21] Production.ERROR: pbx CDR StartTime 2025-04-01 13:01:05 - End Time 2025-04-01 16:01:05 [2025-04-01 16:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811930', 'tblTempUsageDetail_20' ) start [2025-04-01 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811930', 'tblTempUsageDetail_20' ) end [2025-04-01 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811930', 'tblTempVendorCDR_20' ) start [2025-04-01 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811930', 'tblTempVendorCDR_20' ) end [2025-04-01 16:01:22] Production.INFO: ProcessCDR(1,14811930,1,1,2) [2025-04-01 16:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811930', 'tblTempUsageDetail_20' ) start [2025-04-01 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811930', 'tblTempUsageDetail_20' ) end [2025-04-01 16:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:01:27] Production.INFO: ==29091== Releasing lock... [2025-04-01 16:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:01:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:02:06 [end_date_ymd] => 2025-04-01 16:02:06 [RateCDR] => 1 ) [2025-04-01 16: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-01 13:02:06' and `end` < '2025-04-01 16: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-01 16:02:20] Production.INFO: count ==5378 [2025-04-01 16:02:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:02:06 - End Time 2025-04-01 16:02:06 [2025-04-01 16:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811935', 'tblTempUsageDetail_20' ) start [2025-04-01 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811935', 'tblTempUsageDetail_20' ) end [2025-04-01 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811935', 'tblTempVendorCDR_20' ) start [2025-04-01 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811935', 'tblTempVendorCDR_20' ) end [2025-04-01 16:02:22] Production.INFO: ProcessCDR(1,14811935,1,1,2) [2025-04-01 16:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811935', 'tblTempUsageDetail_20' ) start [2025-04-01 16:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811935', 'tblTempUsageDetail_20' ) end [2025-04-01 16:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:02:28] Production.INFO: ==29213== Releasing lock... [2025-04-01 16:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:02:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 16:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:03:06 [end_date_ymd] => 2025-04-01 16:03:06 [RateCDR] => 1 ) [2025-04-01 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-01 13:03:06' and `end` < '2025-04-01 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-01 16:03:20] Production.INFO: count ==5394 [2025-04-01 16:03:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:03:06 - End Time 2025-04-01 16:03:06 [2025-04-01 16:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811940', 'tblTempUsageDetail_20' ) start [2025-04-01 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811940', 'tblTempUsageDetail_20' ) end [2025-04-01 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811940', 'tblTempVendorCDR_20' ) start [2025-04-01 16:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811940', 'tblTempVendorCDR_20' ) end [2025-04-01 16:03:23] Production.INFO: ProcessCDR(1,14811940,1,1,2) [2025-04-01 16:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811940', 'tblTempUsageDetail_20' ) start [2025-04-01 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811940', 'tblTempUsageDetail_20' ) end [2025-04-01 16:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:03:27] Production.INFO: ==29297== Releasing lock... [2025-04-01 16:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:03:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-01 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:04:06 [end_date_ymd] => 2025-04-01 16:04:06 [RateCDR] => 1 ) [2025-04-01 16:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:04:06' and `end` < '2025-04-01 16:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:04:20] Production.INFO: count ==5386 [2025-04-01 16:04:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:04:06 - End Time 2025-04-01 16:04:06 [2025-04-01 16:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811945', 'tblTempUsageDetail_20' ) start [2025-04-01 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811945', 'tblTempUsageDetail_20' ) end [2025-04-01 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811945', 'tblTempVendorCDR_20' ) start [2025-04-01 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811945', 'tblTempVendorCDR_20' ) end [2025-04-01 16:04:23] Production.INFO: ProcessCDR(1,14811945,1,1,2) [2025-04-01 16:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811945', 'tblTempUsageDetail_20' ) start [2025-04-01 16:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811945', 'tblTempUsageDetail_20' ) end [2025-04-01 16:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:04:28] Production.INFO: ==29386== Releasing lock... [2025-04-01 16:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:04:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 16:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:05:06 [end_date_ymd] => 2025-04-01 16:05:06 [RateCDR] => 1 ) [2025-04-01 16: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-01 13:05:06' and `end` < '2025-04-01 16: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-01 16:05:20] Production.INFO: count ==5382 [2025-04-01 16:05:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:05:06 - End Time 2025-04-01 16:05:06 [2025-04-01 16:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811950', 'tblTempUsageDetail_20' ) start [2025-04-01 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811950', 'tblTempUsageDetail_20' ) end [2025-04-01 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811950', 'tblTempVendorCDR_20' ) start [2025-04-01 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811950', 'tblTempVendorCDR_20' ) end [2025-04-01 16:05:22] Production.INFO: ProcessCDR(1,14811950,1,1,2) [2025-04-01 16:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811950', 'tblTempUsageDetail_20' ) start [2025-04-01 16:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811950', 'tblTempUsageDetail_20' ) end [2025-04-01 16:05:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:05:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:05:28] Production.INFO: ==29462== Releasing lock... [2025-04-01 16:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:05:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:06:06 [end_date_ymd] => 2025-04-01 16:06:06 [RateCDR] => 1 ) [2025-04-01 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-01 13:06:06' and `end` < '2025-04-01 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-01 16:06:20] Production.INFO: count ==5382 [2025-04-01 16:06:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:06:06 - End Time 2025-04-01 16:06:06 [2025-04-01 16:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811955', 'tblTempUsageDetail_20' ) start [2025-04-01 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811955', 'tblTempUsageDetail_20' ) end [2025-04-01 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811955', 'tblTempVendorCDR_20' ) start [2025-04-01 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811955', 'tblTempVendorCDR_20' ) end [2025-04-01 16:06:23] Production.INFO: ProcessCDR(1,14811955,1,1,2) [2025-04-01 16:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811955', 'tblTempUsageDetail_20' ) start [2025-04-01 16:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811955', 'tblTempUsageDetail_20' ) end [2025-04-01 16:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:06:28] Production.INFO: ==29545== Releasing lock... [2025-04-01 16:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:06:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:07:06 [end_date_ymd] => 2025-04-01 16:07:06 [RateCDR] => 1 ) [2025-04-01 16:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:07:06' and `end` < '2025-04-01 16:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:07:20] Production.INFO: count ==5374 [2025-04-01 16:07:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:07:06 - End Time 2025-04-01 16:07:06 [2025-04-01 16:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811960', 'tblTempUsageDetail_20' ) start [2025-04-01 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811960', 'tblTempUsageDetail_20' ) end [2025-04-01 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811960', 'tblTempVendorCDR_20' ) start [2025-04-01 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811960', 'tblTempVendorCDR_20' ) end [2025-04-01 16:07:22] Production.INFO: ProcessCDR(1,14811960,1,1,2) [2025-04-01 16:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811960', 'tblTempUsageDetail_20' ) start [2025-04-01 16:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811960', 'tblTempUsageDetail_20' ) end [2025-04-01 16:07:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:07:28] Production.INFO: ==29624== Releasing lock... [2025-04-01 16:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:07:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 16:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:08:06 [end_date_ymd] => 2025-04-01 16:08:06 [RateCDR] => 1 ) [2025-04-01 16: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-01 13:08:06' and `end` < '2025-04-01 16: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-01 16:08:20] Production.INFO: count ==5375 [2025-04-01 16:08:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:08:06 - End Time 2025-04-01 16:08:06 [2025-04-01 16:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811965', 'tblTempUsageDetail_20' ) start [2025-04-01 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811965', 'tblTempUsageDetail_20' ) end [2025-04-01 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811965', 'tblTempVendorCDR_20' ) start [2025-04-01 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811965', 'tblTempVendorCDR_20' ) end [2025-04-01 16:08:22] Production.INFO: ProcessCDR(1,14811965,1,1,2) [2025-04-01 16:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811965', 'tblTempUsageDetail_20' ) start [2025-04-01 16:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811965', 'tblTempUsageDetail_20' ) end [2025-04-01 16:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:08:28] Production.INFO: ==29698== Releasing lock... [2025-04-01 16:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:08:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 16:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:09:06 [end_date_ymd] => 2025-04-01 16:09:06 [RateCDR] => 1 ) [2025-04-01 16:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:09:06' and `end` < '2025-04-01 16: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-01 16:09:19] Production.INFO: count ==5371 [2025-04-01 16:09:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:09:06 - End Time 2025-04-01 16:09:06 [2025-04-01 16:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811970', 'tblTempUsageDetail_20' ) start [2025-04-01 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811970', 'tblTempUsageDetail_20' ) end [2025-04-01 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811970', 'tblTempVendorCDR_20' ) start [2025-04-01 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811970', 'tblTempVendorCDR_20' ) end [2025-04-01 16:09:22] Production.INFO: ProcessCDR(1,14811970,1,1,2) [2025-04-01 16:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811970', 'tblTempUsageDetail_20' ) start [2025-04-01 16:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811970', 'tblTempUsageDetail_20' ) end [2025-04-01 16:09:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:09:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:09:28] Production.INFO: ==29780== Releasing lock... [2025-04-01 16:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:09:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 16:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:10:07 [end_date_ymd] => 2025-04-01 16:10:07 [RateCDR] => 1 ) [2025-04-01 16:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:10:07' and `end` < '2025-04-01 16:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:10:21] Production.INFO: count ==5367 [2025-04-01 16:10:23] Production.ERROR: pbx CDR StartTime 2025-04-01 13:10:07 - End Time 2025-04-01 16:10:07 [2025-04-01 16:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811976', 'tblTempUsageDetail_20' ) start [2025-04-01 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811976', 'tblTempUsageDetail_20' ) end [2025-04-01 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811976', 'tblTempVendorCDR_20' ) start [2025-04-01 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811976', 'tblTempVendorCDR_20' ) end [2025-04-01 16:10:23] Production.INFO: ProcessCDR(1,14811976,1,1,2) [2025-04-01 16:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811976', 'tblTempUsageDetail_20' ) start [2025-04-01 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811976', 'tblTempUsageDetail_20' ) end [2025-04-01 16:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:10:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:10:29] Production.INFO: ==29857== Releasing lock... [2025-04-01 16:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:10:29] Production.INFO: 68.25 MB #Memory Used# [2025-04-01 16:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:11:06 [end_date_ymd] => 2025-04-01 16:11:06 [RateCDR] => 1 ) [2025-04-01 16: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-01 13:11:06' and `end` < '2025-04-01 16: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-01 16:11:20] Production.INFO: count ==5342 [2025-04-01 16:11:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:11:06 - End Time 2025-04-01 16:11:06 [2025-04-01 16:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811981', 'tblTempUsageDetail_20' ) start [2025-04-01 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811981', 'tblTempUsageDetail_20' ) end [2025-04-01 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811981', 'tblTempVendorCDR_20' ) start [2025-04-01 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811981', 'tblTempVendorCDR_20' ) end [2025-04-01 16:11:22] Production.INFO: ProcessCDR(1,14811981,1,1,2) [2025-04-01 16:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811981', 'tblTempUsageDetail_20' ) start [2025-04-01 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811981', 'tblTempUsageDetail_20' ) end [2025-04-01 16:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:11:28] Production.INFO: ==29938== Releasing lock... [2025-04-01 16:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:11:28] Production.INFO: 68 MB #Memory Used# [2025-04-01 16:12:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:12:07 [end_date_ymd] => 2025-04-01 16:12:07 [RateCDR] => 1 ) [2025-04-01 16:12:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:12:07' and `end` < '2025-04-01 16:12:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:12:20] Production.INFO: count ==5334 [2025-04-01 16:12:23] Production.ERROR: pbx CDR StartTime 2025-04-01 13:12:07 - End Time 2025-04-01 16:12:07 [2025-04-01 16:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811986', 'tblTempUsageDetail_20' ) start [2025-04-01 16:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811986', 'tblTempUsageDetail_20' ) end [2025-04-01 16:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811986', 'tblTempVendorCDR_20' ) start [2025-04-01 16:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811986', 'tblTempVendorCDR_20' ) end [2025-04-01 16:12:23] Production.INFO: ProcessCDR(1,14811986,1,1,2) [2025-04-01 16:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811986', 'tblTempUsageDetail_20' ) start [2025-04-01 16:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811986', 'tblTempUsageDetail_20' ) end [2025-04-01 16:12:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:12:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:12:29] Production.INFO: ==30013== Releasing lock... [2025-04-01 16:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:12:29] Production.INFO: 68 MB #Memory Used# [2025-04-01 16:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:13:06 [end_date_ymd] => 2025-04-01 16:13:06 [RateCDR] => 1 ) [2025-04-01 16: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-01 13:13:06' and `end` < '2025-04-01 16: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-01 16:13:20] Production.INFO: count ==5329 [2025-04-01 16:13:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:13:06 - End Time 2025-04-01 16:13:06 [2025-04-01 16:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811991', 'tblTempUsageDetail_20' ) start [2025-04-01 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811991', 'tblTempUsageDetail_20' ) end [2025-04-01 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811991', 'tblTempVendorCDR_20' ) start [2025-04-01 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811991', 'tblTempVendorCDR_20' ) end [2025-04-01 16:13:22] Production.INFO: ProcessCDR(1,14811991,1,1,2) [2025-04-01 16:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811991', 'tblTempUsageDetail_20' ) start [2025-04-01 16:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811991', 'tblTempUsageDetail_20' ) end [2025-04-01 16:13:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:13:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:13:28] Production.INFO: ==30090== Releasing lock... [2025-04-01 16:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:13:28] Production.INFO: 68 MB #Memory Used# [2025-04-01 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:14:05 [end_date_ymd] => 2025-04-01 16:14:05 [RateCDR] => 1 ) [2025-04-01 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-01 13:14:05' and `end` < '2025-04-01 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-01 16:14:19] Production.INFO: count ==5331 [2025-04-01 16:14:21] Production.ERROR: pbx CDR StartTime 2025-04-01 13:14:05 - End Time 2025-04-01 16:14:05 [2025-04-01 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811996', 'tblTempUsageDetail_20' ) start [2025-04-01 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14811996', 'tblTempUsageDetail_20' ) end [2025-04-01 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811996', 'tblTempVendorCDR_20' ) start [2025-04-01 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14811996', 'tblTempVendorCDR_20' ) end [2025-04-01 16:14:21] Production.INFO: ProcessCDR(1,14811996,1,1,2) [2025-04-01 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14811996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14811996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14811996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14811996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811996', 'tblTempUsageDetail_20' ) start [2025-04-01 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14811996', 'tblTempUsageDetail_20' ) end [2025-04-01 16:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:14:27] Production.INFO: ==30169== Releasing lock... [2025-04-01 16:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:14:27] Production.INFO: 68 MB #Memory Used# [2025-04-01 16:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:15:06 [end_date_ymd] => 2025-04-01 16:15:06 [RateCDR] => 1 ) [2025-04-01 16:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:15:06' and `end` < '2025-04-01 16:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:15:19] Production.INFO: count ==5329 [2025-04-01 16:15:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:15:06 - End Time 2025-04-01 16:15:06 [2025-04-01 16:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812001', 'tblTempUsageDetail_20' ) start [2025-04-01 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812001', 'tblTempUsageDetail_20' ) end [2025-04-01 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812001', 'tblTempVendorCDR_20' ) start [2025-04-01 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812001', 'tblTempVendorCDR_20' ) end [2025-04-01 16:15:22] Production.INFO: ProcessCDR(1,14812001,1,1,2) [2025-04-01 16:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812001', 'tblTempUsageDetail_20' ) start [2025-04-01 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812001', 'tblTempUsageDetail_20' ) end [2025-04-01 16:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:15:26] Production.INFO: ==30246== Releasing lock... [2025-04-01 16:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:15:26] Production.INFO: 68 MB #Memory Used# [2025-04-01 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:16:06 [end_date_ymd] => 2025-04-01 16:16:06 [RateCDR] => 1 ) [2025-04-01 16: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-01 13:16:06' and `end` < '2025-04-01 16: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-01 16:16:20] Production.INFO: count ==5316 [2025-04-01 16:16:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:16:06 - End Time 2025-04-01 16:16:06 [2025-04-01 16:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812006', 'tblTempUsageDetail_20' ) start [2025-04-01 16:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812006', 'tblTempUsageDetail_20' ) end [2025-04-01 16:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812006', 'tblTempVendorCDR_20' ) start [2025-04-01 16:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812006', 'tblTempVendorCDR_20' ) end [2025-04-01 16:16:23] Production.INFO: ProcessCDR(1,14812006,1,1,2) [2025-04-01 16:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812006', 'tblTempUsageDetail_20' ) start [2025-04-01 16:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812006', 'tblTempUsageDetail_20' ) end [2025-04-01 16:16:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:16:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:16:29] Production.INFO: ==30330== Releasing lock... [2025-04-01 16:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:16:29] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 16:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:17:05 [end_date_ymd] => 2025-04-01 16:17:05 [RateCDR] => 1 ) [2025-04-01 16:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:17:05' and `end` < '2025-04-01 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-01 16:17:19] Production.INFO: count ==5306 [2025-04-01 16:17:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:17:05 - End Time 2025-04-01 16:17:05 [2025-04-01 16:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812011', 'tblTempUsageDetail_20' ) start [2025-04-01 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812011', 'tblTempUsageDetail_20' ) end [2025-04-01 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812011', 'tblTempVendorCDR_20' ) start [2025-04-01 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812011', 'tblTempVendorCDR_20' ) end [2025-04-01 16:17:22] Production.INFO: ProcessCDR(1,14812011,1,1,2) [2025-04-01 16:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812011', 'tblTempUsageDetail_20' ) start [2025-04-01 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812011', 'tblTempUsageDetail_20' ) end [2025-04-01 16:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:17:27] Production.INFO: ==30408== Releasing lock... [2025-04-01 16:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:17:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:18:05 [end_date_ymd] => 2025-04-01 16:18:05 [RateCDR] => 1 ) [2025-04-01 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-01 13:18:05' and `end` < '2025-04-01 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-01 16:18:19] Production.INFO: count ==5321 [2025-04-01 16:18:21] Production.ERROR: pbx CDR StartTime 2025-04-01 13:18:05 - End Time 2025-04-01 16:18:05 [2025-04-01 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812016', 'tblTempUsageDetail_20' ) start [2025-04-01 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812016', 'tblTempUsageDetail_20' ) end [2025-04-01 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812016', 'tblTempVendorCDR_20' ) start [2025-04-01 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812016', 'tblTempVendorCDR_20' ) end [2025-04-01 16:18:22] Production.INFO: ProcessCDR(1,14812016,1,1,2) [2025-04-01 16:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812016', 'tblTempUsageDetail_20' ) start [2025-04-01 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812016', 'tblTempUsageDetail_20' ) end [2025-04-01 16:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:18:27] Production.INFO: ==30526== Releasing lock... [2025-04-01 16:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:18:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:19:05 [end_date_ymd] => 2025-04-01 16:19:05 [RateCDR] => 1 ) [2025-04-01 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-01 13:19:05' and `end` < '2025-04-01 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-01 16:19:19] Production.INFO: count ==5305 [2025-04-01 16:19:21] Production.ERROR: pbx CDR StartTime 2025-04-01 13:19:05 - End Time 2025-04-01 16:19:05 [2025-04-01 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812021', 'tblTempUsageDetail_20' ) start [2025-04-01 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812021', 'tblTempUsageDetail_20' ) end [2025-04-01 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812021', 'tblTempVendorCDR_20' ) start [2025-04-01 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812021', 'tblTempVendorCDR_20' ) end [2025-04-01 16:19:22] Production.INFO: ProcessCDR(1,14812021,1,1,2) [2025-04-01 16:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812021', 'tblTempUsageDetail_20' ) start [2025-04-01 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812021', 'tblTempUsageDetail_20' ) end [2025-04-01 16:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:19:27] Production.INFO: ==30613== Releasing lock... [2025-04-01 16:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:19:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:20:06 [end_date_ymd] => 2025-04-01 16:20:06 [RateCDR] => 1 ) [2025-04-01 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-01 13:20:06' and `end` < '2025-04-01 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-01 16:20:20] Production.INFO: count ==5306 [2025-04-01 16:20:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:20:06 - End Time 2025-04-01 16:20:06 [2025-04-01 16:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812027', 'tblTempUsageDetail_20' ) start [2025-04-01 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812027', 'tblTempUsageDetail_20' ) end [2025-04-01 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812027', 'tblTempVendorCDR_20' ) start [2025-04-01 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812027', 'tblTempVendorCDR_20' ) end [2025-04-01 16:20:22] Production.INFO: ProcessCDR(1,14812027,1,1,2) [2025-04-01 16:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812027', 'tblTempUsageDetail_20' ) start [2025-04-01 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812027', 'tblTempUsageDetail_20' ) end [2025-04-01 16:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:20:28] Production.INFO: ==30697== Releasing lock... [2025-04-01 16:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:20:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:21:05 [end_date_ymd] => 2025-04-01 16:21:05 [RateCDR] => 1 ) [2025-04-01 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-01 13:21:05' and `end` < '2025-04-01 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-01 16:21:19] Production.INFO: count ==5255 [2025-04-01 16:21:21] Production.ERROR: pbx CDR StartTime 2025-04-01 13:21:05 - End Time 2025-04-01 16:21:05 [2025-04-01 16:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812032', 'tblTempUsageDetail_20' ) start [2025-04-01 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812032', 'tblTempUsageDetail_20' ) end [2025-04-01 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812032', 'tblTempVendorCDR_20' ) start [2025-04-01 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812032', 'tblTempVendorCDR_20' ) end [2025-04-01 16:21:21] Production.INFO: ProcessCDR(1,14812032,1,1,2) [2025-04-01 16:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812032', 'tblTempUsageDetail_20' ) start [2025-04-01 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812032', 'tblTempUsageDetail_20' ) end [2025-04-01 16:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:21:27] Production.INFO: ==30779== Releasing lock... [2025-04-01 16:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:21:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:22:05 [end_date_ymd] => 2025-04-01 16:22:05 [RateCDR] => 1 ) [2025-04-01 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-01 13:22:05' and `end` < '2025-04-01 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-01 16:22:19] Production.INFO: count ==5260 [2025-04-01 16:22:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:22:05 - End Time 2025-04-01 16:22:05 [2025-04-01 16:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812037', 'tblTempUsageDetail_20' ) start [2025-04-01 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812037', 'tblTempUsageDetail_20' ) end [2025-04-01 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812037', 'tblTempVendorCDR_20' ) start [2025-04-01 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812037', 'tblTempVendorCDR_20' ) end [2025-04-01 16:22:22] Production.INFO: ProcessCDR(1,14812037,1,1,2) [2025-04-01 16:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812037', 'tblTempUsageDetail_20' ) start [2025-04-01 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812037', 'tblTempUsageDetail_20' ) end [2025-04-01 16:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:22:27] Production.INFO: ==30858== Releasing lock... [2025-04-01 16:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:22:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 16:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:23:06 [end_date_ymd] => 2025-04-01 16:23:06 [RateCDR] => 1 ) [2025-04-01 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-01 13:23:06' and `end` < '2025-04-01 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-01 16:23:20] Production.INFO: count ==5277 [2025-04-01 16:23:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:23:06 - End Time 2025-04-01 16:23:06 [2025-04-01 16:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812042', 'tblTempUsageDetail_20' ) start [2025-04-01 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812042', 'tblTempUsageDetail_20' ) end [2025-04-01 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812042', 'tblTempVendorCDR_20' ) start [2025-04-01 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812042', 'tblTempVendorCDR_20' ) end [2025-04-01 16:23:22] Production.INFO: ProcessCDR(1,14812042,1,1,2) [2025-04-01 16:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812042', 'tblTempUsageDetail_20' ) start [2025-04-01 16:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812042', 'tblTempUsageDetail_20' ) end [2025-04-01 16:23:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:23:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:23:28] Production.INFO: ==30941== Releasing lock... [2025-04-01 16:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:23:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 16:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:24:06 [end_date_ymd] => 2025-04-01 16:24:06 [RateCDR] => 1 ) [2025-04-01 16: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-01 13:24:06' and `end` < '2025-04-01 16: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-01 16:24:20] Production.INFO: count ==5276 [2025-04-01 16:24:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:24:06 - End Time 2025-04-01 16:24:06 [2025-04-01 16:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812047', 'tblTempUsageDetail_20' ) start [2025-04-01 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812047', 'tblTempUsageDetail_20' ) end [2025-04-01 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812047', 'tblTempVendorCDR_20' ) start [2025-04-01 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812047', 'tblTempVendorCDR_20' ) end [2025-04-01 16:24:22] Production.INFO: ProcessCDR(1,14812047,1,1,2) [2025-04-01 16:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812047', 'tblTempUsageDetail_20' ) start [2025-04-01 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812047', 'tblTempUsageDetail_20' ) end [2025-04-01 16:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:24:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:24:28] Production.INFO: ==31020== Releasing lock... [2025-04-01 16:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:24:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:25:06 [end_date_ymd] => 2025-04-01 16:25:06 [RateCDR] => 1 ) [2025-04-01 16:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:25:06' and `end` < '2025-04-01 16:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:25:20] Production.INFO: count ==5280 [2025-04-01 16:25:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:25:06 - End Time 2025-04-01 16:25:06 [2025-04-01 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812052', 'tblTempUsageDetail_20' ) start [2025-04-01 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812052', 'tblTempUsageDetail_20' ) end [2025-04-01 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812052', 'tblTempVendorCDR_20' ) start [2025-04-01 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812052', 'tblTempVendorCDR_20' ) end [2025-04-01 16:25:22] Production.INFO: ProcessCDR(1,14812052,1,1,2) [2025-04-01 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812052', 'tblTempUsageDetail_20' ) start [2025-04-01 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812052', 'tblTempUsageDetail_20' ) end [2025-04-01 16:25:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:25:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:25:28] Production.INFO: ==31109== Releasing lock... [2025-04-01 16:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:25:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:26:05 [end_date_ymd] => 2025-04-01 16:26:05 [RateCDR] => 1 ) [2025-04-01 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:26:05' and `end` < '2025-04-01 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:26:19] Production.INFO: count ==5272 [2025-04-01 16:26:21] Production.ERROR: pbx CDR StartTime 2025-04-01 13:26:05 - End Time 2025-04-01 16:26:05 [2025-04-01 16:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812057', 'tblTempUsageDetail_20' ) start [2025-04-01 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812057', 'tblTempUsageDetail_20' ) end [2025-04-01 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812057', 'tblTempVendorCDR_20' ) start [2025-04-01 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812057', 'tblTempVendorCDR_20' ) end [2025-04-01 16:26:21] Production.INFO: ProcessCDR(1,14812057,1,1,2) [2025-04-01 16:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812057', 'tblTempUsageDetail_20' ) start [2025-04-01 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812057', 'tblTempUsageDetail_20' ) end [2025-04-01 16:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:26:27] Production.INFO: ==31198== Releasing lock... [2025-04-01 16:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:26:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 16:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:27:06 [end_date_ymd] => 2025-04-01 16:27:06 [RateCDR] => 1 ) [2025-04-01 16:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:27:06' and `end` < '2025-04-01 16:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:27:20] Production.INFO: count ==5275 [2025-04-01 16:27:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:27:06 - End Time 2025-04-01 16:27:06 [2025-04-01 16:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812062', 'tblTempUsageDetail_20' ) start [2025-04-01 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812062', 'tblTempUsageDetail_20' ) end [2025-04-01 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812062', 'tblTempVendorCDR_20' ) start [2025-04-01 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812062', 'tblTempVendorCDR_20' ) end [2025-04-01 16:27:22] Production.INFO: ProcessCDR(1,14812062,1,1,2) [2025-04-01 16:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812062', 'tblTempUsageDetail_20' ) start [2025-04-01 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812062', 'tblTempUsageDetail_20' ) end [2025-04-01 16:27:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:27:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:27:28] Production.INFO: ==31280== Releasing lock... [2025-04-01 16:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:27:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:28:05 [end_date_ymd] => 2025-04-01 16:28:05 [RateCDR] => 1 ) [2025-04-01 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-01 13:28:05' and `end` < '2025-04-01 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-01 16:28:19] Production.INFO: count ==5270 [2025-04-01 16:28:21] Production.ERROR: pbx CDR StartTime 2025-04-01 13:28:05 - End Time 2025-04-01 16:28:05 [2025-04-01 16:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812067', 'tblTempUsageDetail_20' ) start [2025-04-01 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812067', 'tblTempUsageDetail_20' ) end [2025-04-01 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812067', 'tblTempVendorCDR_20' ) start [2025-04-01 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812067', 'tblTempVendorCDR_20' ) end [2025-04-01 16:28:21] Production.INFO: ProcessCDR(1,14812067,1,1,2) [2025-04-01 16:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812067', 'tblTempUsageDetail_20' ) start [2025-04-01 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812067', 'tblTempUsageDetail_20' ) end [2025-04-01 16:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:28:27] Production.INFO: ==31365== Releasing lock... [2025-04-01 16:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:28:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 16:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:29:06 [end_date_ymd] => 2025-04-01 16:29:06 [RateCDR] => 1 ) [2025-04-01 16:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:29:06' and `end` < '2025-04-01 16:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:29:19] Production.INFO: count ==5262 [2025-04-01 16:29:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:29:06 - End Time 2025-04-01 16:29:06 [2025-04-01 16:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812072', 'tblTempUsageDetail_20' ) start [2025-04-01 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812072', 'tblTempUsageDetail_20' ) end [2025-04-01 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812072', 'tblTempVendorCDR_20' ) start [2025-04-01 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812072', 'tblTempVendorCDR_20' ) end [2025-04-01 16:29:22] Production.INFO: ProcessCDR(1,14812072,1,1,2) [2025-04-01 16:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812072', 'tblTempUsageDetail_20' ) start [2025-04-01 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812072', 'tblTempUsageDetail_20' ) end [2025-04-01 16:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:29:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:29:28] Production.INFO: ==31453== Releasing lock... [2025-04-01 16:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:29:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:30:06 [end_date_ymd] => 2025-04-01 16:30:06 [RateCDR] => 1 ) [2025-04-01 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-01 13:30:06' and `end` < '2025-04-01 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-01 16:30:20] Production.INFO: count ==5253 [2025-04-01 16:30:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:30:06 - End Time 2025-04-01 16:30:06 [2025-04-01 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812078', 'tblTempUsageDetail_20' ) start [2025-04-01 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812078', 'tblTempUsageDetail_20' ) end [2025-04-01 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812078', 'tblTempVendorCDR_20' ) start [2025-04-01 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812078', 'tblTempVendorCDR_20' ) end [2025-04-01 16:30:23] Production.INFO: ProcessCDR(1,14812078,1,1,2) [2025-04-01 16:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812078', 'tblTempUsageDetail_20' ) start [2025-04-01 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812078', 'tblTempUsageDetail_20' ) end [2025-04-01 16:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:30:28] Production.INFO: ==31540== Releasing lock... [2025-04-01 16:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:30:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-01 16:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:31:06 [end_date_ymd] => 2025-04-01 16:31:06 [RateCDR] => 1 ) [2025-04-01 16: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-01 13:31:06' and `end` < '2025-04-01 16: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-01 16:31:20] Production.INFO: count ==5281 [2025-04-01 16:31:23] Production.ERROR: pbx CDR StartTime 2025-04-01 13:31:06 - End Time 2025-04-01 16:31:06 [2025-04-01 16:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812083', 'tblTempUsageDetail_20' ) start [2025-04-01 16:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812083', 'tblTempUsageDetail_20' ) end [2025-04-01 16:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812083', 'tblTempVendorCDR_20' ) start [2025-04-01 16:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812083', 'tblTempVendorCDR_20' ) end [2025-04-01 16:31:23] Production.INFO: ProcessCDR(1,14812083,1,1,2) [2025-04-01 16:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812083', 'tblTempUsageDetail_20' ) start [2025-04-01 16:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812083', 'tblTempUsageDetail_20' ) end [2025-04-01 16:31:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:31:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:31:28] Production.INFO: ==31624== Releasing lock... [2025-04-01 16:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:31:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 16:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:32:06 [end_date_ymd] => 2025-04-01 16:32:06 [RateCDR] => 1 ) [2025-04-01 16: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-01 13:32:06' and `end` < '2025-04-01 16: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-01 16:32:19] Production.INFO: count ==5297 [2025-04-01 16:32:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:32:06 - End Time 2025-04-01 16:32:06 [2025-04-01 16:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812088', 'tblTempUsageDetail_20' ) start [2025-04-01 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812088', 'tblTempUsageDetail_20' ) end [2025-04-01 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812088', 'tblTempVendorCDR_20' ) start [2025-04-01 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812088', 'tblTempVendorCDR_20' ) end [2025-04-01 16:32:22] Production.INFO: ProcessCDR(1,14812088,1,1,2) [2025-04-01 16:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812088', 'tblTempUsageDetail_20' ) start [2025-04-01 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812088', 'tblTempUsageDetail_20' ) end [2025-04-01 16:32:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:32:28] Production.INFO: ==31705== Releasing lock... [2025-04-01 16:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:32:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 16:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:33:06 [end_date_ymd] => 2025-04-01 16:33:06 [RateCDR] => 1 ) [2025-04-01 16:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:33:06' and `end` < '2025-04-01 16:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:33:20] Production.INFO: count ==5302 [2025-04-01 16:33:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:33:06 - End Time 2025-04-01 16:33:06 [2025-04-01 16:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812093', 'tblTempUsageDetail_20' ) start [2025-04-01 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812093', 'tblTempUsageDetail_20' ) end [2025-04-01 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812093', 'tblTempVendorCDR_20' ) start [2025-04-01 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812093', 'tblTempVendorCDR_20' ) end [2025-04-01 16:33:22] Production.INFO: ProcessCDR(1,14812093,1,1,2) [2025-04-01 16:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812093', 'tblTempUsageDetail_20' ) start [2025-04-01 16:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812093', 'tblTempUsageDetail_20' ) end [2025-04-01 16:33:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:33:28] Production.INFO: ==31818== Releasing lock... [2025-04-01 16:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:33:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:34:06 [end_date_ymd] => 2025-04-01 16:34:06 [RateCDR] => 1 ) [2025-04-01 16:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:34:06' and `end` < '2025-04-01 16:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:34:20] Production.INFO: count ==5302 [2025-04-01 16:34:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:34:06 - End Time 2025-04-01 16:34:06 [2025-04-01 16:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812098', 'tblTempUsageDetail_20' ) start [2025-04-01 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812098', 'tblTempUsageDetail_20' ) end [2025-04-01 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812098', 'tblTempVendorCDR_20' ) start [2025-04-01 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812098', 'tblTempVendorCDR_20' ) end [2025-04-01 16:34:22] Production.INFO: ProcessCDR(1,14812098,1,1,2) [2025-04-01 16:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812098', 'tblTempUsageDetail_20' ) start [2025-04-01 16:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812098', 'tblTempUsageDetail_20' ) end [2025-04-01 16:34:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:34:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:34:28] Production.INFO: ==31897== Releasing lock... [2025-04-01 16:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:34:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:35:06 [end_date_ymd] => 2025-04-01 16:35:06 [RateCDR] => 1 ) [2025-04-01 16: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-01 13:35:06' and `end` < '2025-04-01 16: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-01 16:35:19] Production.INFO: count ==5299 [2025-04-01 16:35:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:35:06 - End Time 2025-04-01 16:35:06 [2025-04-01 16:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812103', 'tblTempUsageDetail_20' ) start [2025-04-01 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812103', 'tblTempUsageDetail_20' ) end [2025-04-01 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812103', 'tblTempVendorCDR_20' ) start [2025-04-01 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812103', 'tblTempVendorCDR_20' ) end [2025-04-01 16:35:22] Production.INFO: ProcessCDR(1,14812103,1,1,2) [2025-04-01 16:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812103', 'tblTempUsageDetail_20' ) start [2025-04-01 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812103', 'tblTempUsageDetail_20' ) end [2025-04-01 16:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:35:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:35:28] Production.INFO: ==31977== Releasing lock... [2025-04-01 16:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:35:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:36:05 [end_date_ymd] => 2025-04-01 16:36:05 [RateCDR] => 1 ) [2025-04-01 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-01 13:36:05' and `end` < '2025-04-01 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-01 16:36:19] Production.INFO: count ==5296 [2025-04-01 16:36:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:36:05 - End Time 2025-04-01 16:36:05 [2025-04-01 16:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812108', 'tblTempUsageDetail_20' ) start [2025-04-01 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812108', 'tblTempUsageDetail_20' ) end [2025-04-01 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812108', 'tblTempVendorCDR_20' ) start [2025-04-01 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812108', 'tblTempVendorCDR_20' ) end [2025-04-01 16:36:22] Production.INFO: ProcessCDR(1,14812108,1,1,2) [2025-04-01 16:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812108', 'tblTempUsageDetail_20' ) start [2025-04-01 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812108', 'tblTempUsageDetail_20' ) end [2025-04-01 16:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:36:27] Production.INFO: ==32063== Releasing lock... [2025-04-01 16:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:36:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 16:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:37:06 [end_date_ymd] => 2025-04-01 16:37:06 [RateCDR] => 1 ) [2025-04-01 16:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:37:06' and `end` < '2025-04-01 16:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:37:20] Production.INFO: count ==5308 [2025-04-01 16:37:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:37:06 - End Time 2025-04-01 16:37:06 [2025-04-01 16:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812113', 'tblTempUsageDetail_20' ) start [2025-04-01 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812113', 'tblTempUsageDetail_20' ) end [2025-04-01 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812113', 'tblTempVendorCDR_20' ) start [2025-04-01 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812113', 'tblTempVendorCDR_20' ) end [2025-04-01 16:37:22] Production.INFO: ProcessCDR(1,14812113,1,1,2) [2025-04-01 16:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812113', 'tblTempUsageDetail_20' ) start [2025-04-01 16:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812113', 'tblTempUsageDetail_20' ) end [2025-04-01 16:37:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:37:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:37:28] Production.INFO: ==32144== Releasing lock... [2025-04-01 16:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:37:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:38:05 [end_date_ymd] => 2025-04-01 16:38:05 [RateCDR] => 1 ) [2025-04-01 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-01 13:38:05' and `end` < '2025-04-01 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-01 16:38:19] Production.INFO: count ==5310 [2025-04-01 16:38:21] Production.ERROR: pbx CDR StartTime 2025-04-01 13:38:05 - End Time 2025-04-01 16:38:05 [2025-04-01 16:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812118', 'tblTempUsageDetail_20' ) start [2025-04-01 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812118', 'tblTempUsageDetail_20' ) end [2025-04-01 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812118', 'tblTempVendorCDR_20' ) start [2025-04-01 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812118', 'tblTempVendorCDR_20' ) end [2025-04-01 16:38:22] Production.INFO: ProcessCDR(1,14812118,1,1,2) [2025-04-01 16:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812118', 'tblTempUsageDetail_20' ) start [2025-04-01 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812118', 'tblTempUsageDetail_20' ) end [2025-04-01 16:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:38:27] Production.INFO: ==32225== Releasing lock... [2025-04-01 16:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:38:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 16:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:39:06 [end_date_ymd] => 2025-04-01 16:39:06 [RateCDR] => 1 ) [2025-04-01 16:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:39:06' and `end` < '2025-04-01 16:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:39:20] Production.INFO: count ==5293 [2025-04-01 16:39:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:39:06 - End Time 2025-04-01 16:39:06 [2025-04-01 16:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812123', 'tblTempUsageDetail_20' ) start [2025-04-01 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812123', 'tblTempUsageDetail_20' ) end [2025-04-01 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812123', 'tblTempVendorCDR_20' ) start [2025-04-01 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812123', 'tblTempVendorCDR_20' ) end [2025-04-01 16:39:22] Production.INFO: ProcessCDR(1,14812123,1,1,2) [2025-04-01 16:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812123', 'tblTempUsageDetail_20' ) start [2025-04-01 16:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812123', 'tblTempUsageDetail_20' ) end [2025-04-01 16:39:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:39:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:39:28] Production.INFO: ==32306== Releasing lock... [2025-04-01 16:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:39:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-01 16:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:40:07 [end_date_ymd] => 2025-04-01 16:40:07 [RateCDR] => 1 ) [2025-04-01 16:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:40:07' and `end` < '2025-04-01 16:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:40:21] Production.INFO: count ==5273 [2025-04-01 16:40:23] Production.ERROR: pbx CDR StartTime 2025-04-01 13:40:07 - End Time 2025-04-01 16:40:07 [2025-04-01 16:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812129', 'tblTempUsageDetail_20' ) start [2025-04-01 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812129', 'tblTempUsageDetail_20' ) end [2025-04-01 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812129', 'tblTempVendorCDR_20' ) start [2025-04-01 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812129', 'tblTempVendorCDR_20' ) end [2025-04-01 16:40:23] Production.INFO: ProcessCDR(1,14812129,1,1,2) [2025-04-01 16:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812129', 'tblTempUsageDetail_20' ) start [2025-04-01 16:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812129', 'tblTempUsageDetail_20' ) end [2025-04-01 16:40:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:40:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:40:29] Production.INFO: ==32390== Releasing lock... [2025-04-01 16:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:40:29] Production.INFO: 67.5 MB #Memory Used# [2025-04-01 16:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:41:06 [end_date_ymd] => 2025-04-01 16:41:06 [RateCDR] => 1 ) [2025-04-01 16:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:41:06' and `end` < '2025-04-01 16:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:41:20] Production.INFO: count ==5203 [2025-04-01 16:41:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:41:06 - End Time 2025-04-01 16:41:06 [2025-04-01 16:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812134', 'tblTempUsageDetail_20' ) start [2025-04-01 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812134', 'tblTempUsageDetail_20' ) end [2025-04-01 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812134', 'tblTempVendorCDR_20' ) start [2025-04-01 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812134', 'tblTempVendorCDR_20' ) end [2025-04-01 16:41:22] Production.INFO: ProcessCDR(1,14812134,1,1,2) [2025-04-01 16:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812134', 'tblTempUsageDetail_20' ) start [2025-04-01 16:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812134', 'tblTempUsageDetail_20' ) end [2025-04-01 16:41:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:41:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:41:28] Production.INFO: ==32476== Releasing lock... [2025-04-01 16:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:41:28] Production.INFO: 67 MB #Memory Used# [2025-04-01 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:42:05 [end_date_ymd] => 2025-04-01 16:42:05 [RateCDR] => 1 ) [2025-04-01 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-01 13:42:05' and `end` < '2025-04-01 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-01 16:42:19] Production.INFO: count ==5189 [2025-04-01 16:42:21] Production.ERROR: pbx CDR StartTime 2025-04-01 13:42:05 - End Time 2025-04-01 16:42:05 [2025-04-01 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812139', 'tblTempUsageDetail_20' ) start [2025-04-01 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812139', 'tblTempUsageDetail_20' ) end [2025-04-01 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812139', 'tblTempVendorCDR_20' ) start [2025-04-01 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812139', 'tblTempVendorCDR_20' ) end [2025-04-01 16:42:22] Production.INFO: ProcessCDR(1,14812139,1,1,2) [2025-04-01 16:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812139', 'tblTempUsageDetail_20' ) start [2025-04-01 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812139', 'tblTempUsageDetail_20' ) end [2025-04-01 16:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:42:27] Production.INFO: ==32557== Releasing lock... [2025-04-01 16:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:42:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-01 16:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:43:06 [end_date_ymd] => 2025-04-01 16:43:06 [RateCDR] => 1 ) [2025-04-01 16:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:43:06' and `end` < '2025-04-01 16:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:43:19] Production.INFO: count ==5193 [2025-04-01 16:43:21] Production.ERROR: pbx CDR StartTime 2025-04-01 13:43:06 - End Time 2025-04-01 16:43:06 [2025-04-01 16:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812144', 'tblTempUsageDetail_20' ) start [2025-04-01 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812144', 'tblTempUsageDetail_20' ) end [2025-04-01 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812144', 'tblTempVendorCDR_20' ) start [2025-04-01 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812144', 'tblTempVendorCDR_20' ) end [2025-04-01 16:43:22] Production.INFO: ProcessCDR(1,14812144,1,1,2) [2025-04-01 16:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812144', 'tblTempUsageDetail_20' ) start [2025-04-01 16:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812144', 'tblTempUsageDetail_20' ) end [2025-04-01 16:43:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:43:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:43:28] Production.INFO: ==32636== Releasing lock... [2025-04-01 16:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:43:28] Production.INFO: 67 MB #Memory Used# [2025-04-01 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:44:05 [end_date_ymd] => 2025-04-01 16:44:05 [RateCDR] => 1 ) [2025-04-01 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-01 13:44:05' and `end` < '2025-04-01 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-01 16:44:19] Production.INFO: count ==5187 [2025-04-01 16:44:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:44:05 - End Time 2025-04-01 16:44:05 [2025-04-01 16:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812149', 'tblTempUsageDetail_20' ) start [2025-04-01 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812149', 'tblTempUsageDetail_20' ) end [2025-04-01 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812149', 'tblTempVendorCDR_20' ) start [2025-04-01 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812149', 'tblTempVendorCDR_20' ) end [2025-04-01 16:44:22] Production.INFO: ProcessCDR(1,14812149,1,1,2) [2025-04-01 16:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812149', 'tblTempUsageDetail_20' ) start [2025-04-01 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812149', 'tblTempUsageDetail_20' ) end [2025-04-01 16:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:44:27] Production.INFO: ==32723== Releasing lock... [2025-04-01 16:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:44:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-01 16:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:45:06 [end_date_ymd] => 2025-04-01 16:45:06 [RateCDR] => 1 ) [2025-04-01 16: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-01 13:45:06' and `end` < '2025-04-01 16: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-01 16:45:19] Production.INFO: count ==5201 [2025-04-01 16:45:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:45:06 - End Time 2025-04-01 16:45:06 [2025-04-01 16:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812154', 'tblTempUsageDetail_20' ) start [2025-04-01 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812154', 'tblTempUsageDetail_20' ) end [2025-04-01 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812154', 'tblTempVendorCDR_20' ) start [2025-04-01 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812154', 'tblTempVendorCDR_20' ) end [2025-04-01 16:45:22] Production.INFO: ProcessCDR(1,14812154,1,1,2) [2025-04-01 16:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812154', 'tblTempUsageDetail_20' ) start [2025-04-01 16:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812154', 'tblTempUsageDetail_20' ) end [2025-04-01 16:45:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:45:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:45:28] Production.INFO: ==359== Releasing lock... [2025-04-01 16:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:45:28] Production.INFO: 67 MB #Memory Used# [2025-04-01 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:46:06 [end_date_ymd] => 2025-04-01 16:46:06 [RateCDR] => 1 ) [2025-04-01 16:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:46:06' and `end` < '2025-04-01 16:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:46:20] Production.INFO: count ==5204 [2025-04-01 16:46:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:46:06 - End Time 2025-04-01 16:46:06 [2025-04-01 16:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812159', 'tblTempUsageDetail_20' ) start [2025-04-01 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812159', 'tblTempUsageDetail_20' ) end [2025-04-01 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812159', 'tblTempVendorCDR_20' ) start [2025-04-01 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812159', 'tblTempVendorCDR_20' ) end [2025-04-01 16:46:22] Production.INFO: ProcessCDR(1,14812159,1,1,2) [2025-04-01 16:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812159', 'tblTempUsageDetail_20' ) start [2025-04-01 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812159', 'tblTempUsageDetail_20' ) end [2025-04-01 16:46:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:46:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:46:28] Production.INFO: ==442== Releasing lock... [2025-04-01 16:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:46:28] Production.INFO: 67 MB #Memory Used# [2025-04-01 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:47:05 [end_date_ymd] => 2025-04-01 16:47:05 [RateCDR] => 1 ) [2025-04-01 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-01 13:47:05' and `end` < '2025-04-01 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-01 16:47:19] Production.INFO: count ==5205 [2025-04-01 16:47:21] Production.ERROR: pbx CDR StartTime 2025-04-01 13:47:05 - End Time 2025-04-01 16:47:05 [2025-04-01 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812164', 'tblTempUsageDetail_20' ) start [2025-04-01 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812164', 'tblTempUsageDetail_20' ) end [2025-04-01 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812164', 'tblTempVendorCDR_20' ) start [2025-04-01 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812164', 'tblTempVendorCDR_20' ) end [2025-04-01 16:47:21] Production.INFO: ProcessCDR(1,14812164,1,1,2) [2025-04-01 16:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812164', 'tblTempUsageDetail_20' ) start [2025-04-01 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812164', 'tblTempUsageDetail_20' ) end [2025-04-01 16:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:47:27] Production.INFO: ==527== Releasing lock... [2025-04-01 16:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:47:27] Production.INFO: 67 MB #Memory Used# [2025-04-01 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:48:06 [end_date_ymd] => 2025-04-01 16:48:06 [RateCDR] => 1 ) [2025-04-01 16:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:48:06' and `end` < '2025-04-01 16:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:48:19] Production.INFO: count ==5204 [2025-04-01 16:48:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:48:06 - End Time 2025-04-01 16:48:06 [2025-04-01 16:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812169', 'tblTempUsageDetail_20' ) start [2025-04-01 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812169', 'tblTempUsageDetail_20' ) end [2025-04-01 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812169', 'tblTempVendorCDR_20' ) start [2025-04-01 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812169', 'tblTempVendorCDR_20' ) end [2025-04-01 16:48:22] Production.INFO: ProcessCDR(1,14812169,1,1,2) [2025-04-01 16:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812169', 'tblTempUsageDetail_20' ) start [2025-04-01 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812169', 'tblTempUsageDetail_20' ) end [2025-04-01 16:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:48:27] Production.INFO: ==624== Releasing lock... [2025-04-01 16:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:48:27] Production.INFO: 67 MB #Memory Used# [2025-04-01 16:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:49:06 [end_date_ymd] => 2025-04-01 16:49:06 [RateCDR] => 1 ) [2025-04-01 16: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-01 13:49:06' and `end` < '2025-04-01 16: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-01 16:49:20] Production.INFO: count ==5207 [2025-04-01 16:49:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:49:06 - End Time 2025-04-01 16:49:06 [2025-04-01 16:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812174', 'tblTempUsageDetail_20' ) start [2025-04-01 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812174', 'tblTempUsageDetail_20' ) end [2025-04-01 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812174', 'tblTempVendorCDR_20' ) start [2025-04-01 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812174', 'tblTempVendorCDR_20' ) end [2025-04-01 16:49:22] Production.INFO: ProcessCDR(1,14812174,1,1,2) [2025-04-01 16:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812174', 'tblTempUsageDetail_20' ) start [2025-04-01 16:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812174', 'tblTempUsageDetail_20' ) end [2025-04-01 16:49:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:49:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:49:28] Production.INFO: ==774== Releasing lock... [2025-04-01 16:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:49:28] Production.INFO: 67 MB #Memory Used# [2025-04-01 16:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:50:07 [end_date_ymd] => 2025-04-01 16:50:07 [RateCDR] => 1 ) [2025-04-01 16: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-01 13:50:07' and `end` < '2025-04-01 16: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-01 16:50:20] Production.INFO: count ==5200 [2025-04-01 16:50:23] Production.ERROR: pbx CDR StartTime 2025-04-01 13:50:07 - End Time 2025-04-01 16:50:07 [2025-04-01 16:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812180', 'tblTempUsageDetail_20' ) start [2025-04-01 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812180', 'tblTempUsageDetail_20' ) end [2025-04-01 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812180', 'tblTempVendorCDR_20' ) start [2025-04-01 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812180', 'tblTempVendorCDR_20' ) end [2025-04-01 16:50:23] Production.INFO: ProcessCDR(1,14812180,1,1,2) [2025-04-01 16:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812180', 'tblTempUsageDetail_20' ) start [2025-04-01 16:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812180', 'tblTempUsageDetail_20' ) end [2025-04-01 16:50:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:50:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:50:29] Production.INFO: ==859== Releasing lock... [2025-04-01 16:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:50:29] Production.INFO: 67 MB #Memory Used# [2025-04-01 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:51:05 [end_date_ymd] => 2025-04-01 16:51:05 [RateCDR] => 1 ) [2025-04-01 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-01 13:51:05' and `end` < '2025-04-01 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-01 16:51:19] Production.INFO: count ==5154 [2025-04-01 16:51:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:51:05 - End Time 2025-04-01 16:51:05 [2025-04-01 16:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812185', 'tblTempUsageDetail_20' ) start [2025-04-01 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812185', 'tblTempUsageDetail_20' ) end [2025-04-01 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812185', 'tblTempVendorCDR_20' ) start [2025-04-01 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812185', 'tblTempVendorCDR_20' ) end [2025-04-01 16:51:22] Production.INFO: ProcessCDR(1,14812185,1,1,2) [2025-04-01 16:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812185', 'tblTempUsageDetail_20' ) start [2025-04-01 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812185', 'tblTempUsageDetail_20' ) end [2025-04-01 16:51:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:51:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:51:28] Production.INFO: ==946== Releasing lock... [2025-04-01 16:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:51:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-01 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:52:06 [end_date_ymd] => 2025-04-01 16:52:06 [RateCDR] => 1 ) [2025-04-01 16:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:52:06' and `end` < '2025-04-01 16:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:52:20] Production.INFO: count ==5135 [2025-04-01 16:52:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:52:06 - End Time 2025-04-01 16:52:06 [2025-04-01 16:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812190', 'tblTempUsageDetail_20' ) start [2025-04-01 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812190', 'tblTempUsageDetail_20' ) end [2025-04-01 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812190', 'tblTempVendorCDR_20' ) start [2025-04-01 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812190', 'tblTempVendorCDR_20' ) end [2025-04-01 16:52:22] Production.INFO: ProcessCDR(1,14812190,1,1,2) [2025-04-01 16:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812190', 'tblTempUsageDetail_20' ) start [2025-04-01 16:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812190', 'tblTempUsageDetail_20' ) end [2025-04-01 16:52:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:52:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:52:28] Production.INFO: ==1028== Releasing lock... [2025-04-01 16:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:52:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-01 16:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:53:06 [end_date_ymd] => 2025-04-01 16:53:06 [RateCDR] => 1 ) [2025-04-01 16: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-01 13:53:06' and `end` < '2025-04-01 16: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-01 16:53:19] Production.INFO: count ==5128 [2025-04-01 16:53:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:53:06 - End Time 2025-04-01 16:53:06 [2025-04-01 16:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812195', 'tblTempUsageDetail_20' ) start [2025-04-01 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812195', 'tblTempUsageDetail_20' ) end [2025-04-01 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812195', 'tblTempVendorCDR_20' ) start [2025-04-01 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812195', 'tblTempVendorCDR_20' ) end [2025-04-01 16:53:22] Production.INFO: ProcessCDR(1,14812195,1,1,2) [2025-04-01 16:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812195', 'tblTempUsageDetail_20' ) start [2025-04-01 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812195', 'tblTempUsageDetail_20' ) end [2025-04-01 16:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:53:27] Production.INFO: ==1109== Releasing lock... [2025-04-01 16:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:53:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-01 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:54:05 [end_date_ymd] => 2025-04-01 16:54:05 [RateCDR] => 1 ) [2025-04-01 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:54:05' and `end` < '2025-04-01 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:54:19] Production.INFO: count ==5105 [2025-04-01 16:54:21] Production.ERROR: pbx CDR StartTime 2025-04-01 13:54:05 - End Time 2025-04-01 16:54:05 [2025-04-01 16:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812200', 'tblTempUsageDetail_20' ) start [2025-04-01 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812200', 'tblTempUsageDetail_20' ) end [2025-04-01 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812200', 'tblTempVendorCDR_20' ) start [2025-04-01 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812200', 'tblTempVendorCDR_20' ) end [2025-04-01 16:54:22] Production.INFO: ProcessCDR(1,14812200,1,1,2) [2025-04-01 16:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812200', 'tblTempUsageDetail_20' ) start [2025-04-01 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812200', 'tblTempUsageDetail_20' ) end [2025-04-01 16:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:54:27] Production.INFO: ==1193== Releasing lock... [2025-04-01 16:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:54:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-01 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:55:06 [end_date_ymd] => 2025-04-01 16:55:06 [RateCDR] => 1 ) [2025-04-01 16:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:55:06' and `end` < '2025-04-01 16:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:55:20] Production.INFO: count ==5098 [2025-04-01 16:55:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:55:06 - End Time 2025-04-01 16:55:06 [2025-04-01 16:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812205', 'tblTempUsageDetail_20' ) start [2025-04-01 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812205', 'tblTempUsageDetail_20' ) end [2025-04-01 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812205', 'tblTempVendorCDR_20' ) start [2025-04-01 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812205', 'tblTempVendorCDR_20' ) end [2025-04-01 16:55:22] Production.INFO: ProcessCDR(1,14812205,1,1,2) [2025-04-01 16:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812205', 'tblTempUsageDetail_20' ) start [2025-04-01 16:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812205', 'tblTempUsageDetail_20' ) end [2025-04-01 16:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:55:28] Production.INFO: ==1287== Releasing lock... [2025-04-01 16:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:55:28] Production.INFO: 66.25 MB #Memory Used# [2025-04-01 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:56:06 [end_date_ymd] => 2025-04-01 16:56:06 [RateCDR] => 1 ) [2025-04-01 16:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:56:06' and `end` < '2025-04-01 16:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:56:19] Production.INFO: count ==5074 [2025-04-01 16:56:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:56:06 - End Time 2025-04-01 16:56:06 [2025-04-01 16:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812210', 'tblTempUsageDetail_20' ) start [2025-04-01 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812210', 'tblTempUsageDetail_20' ) end [2025-04-01 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812210', 'tblTempVendorCDR_20' ) start [2025-04-01 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812210', 'tblTempVendorCDR_20' ) end [2025-04-01 16:56:22] Production.INFO: ProcessCDR(1,14812210,1,1,2) [2025-04-01 16:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812210', 'tblTempUsageDetail_20' ) start [2025-04-01 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812210', 'tblTempUsageDetail_20' ) end [2025-04-01 16:56:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:56:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:56:28] Production.INFO: ==1369== Releasing lock... [2025-04-01 16:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:56:28] Production.INFO: 66 MB #Memory Used# [2025-04-01 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:57:05 [end_date_ymd] => 2025-04-01 16:57:05 [RateCDR] => 1 ) [2025-04-01 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:57:05' and `end` < '2025-04-01 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:57:19] Production.INFO: count ==5070 [2025-04-01 16:57:21] Production.ERROR: pbx CDR StartTime 2025-04-01 13:57:05 - End Time 2025-04-01 16:57:05 [2025-04-01 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812215', 'tblTempUsageDetail_20' ) start [2025-04-01 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812215', 'tblTempUsageDetail_20' ) end [2025-04-01 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812215', 'tblTempVendorCDR_20' ) start [2025-04-01 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812215', 'tblTempVendorCDR_20' ) end [2025-04-01 16:57:22] Production.INFO: ProcessCDR(1,14812215,1,1,2) [2025-04-01 16:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812215', 'tblTempUsageDetail_20' ) start [2025-04-01 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812215', 'tblTempUsageDetail_20' ) end [2025-04-01 16:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:57:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:57:28] Production.INFO: ==1450== Releasing lock... [2025-04-01 16:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:57:28] Production.INFO: 66 MB #Memory Used# [2025-04-01 16:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:58:06 [end_date_ymd] => 2025-04-01 16:58:06 [RateCDR] => 1 ) [2025-04-01 16:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:58:06' and `end` < '2025-04-01 16:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:58:20] Production.INFO: count ==5055 [2025-04-01 16:58:22] Production.ERROR: pbx CDR StartTime 2025-04-01 13:58:06 - End Time 2025-04-01 16:58:06 [2025-04-01 16:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812220', 'tblTempUsageDetail_20' ) start [2025-04-01 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812220', 'tblTempUsageDetail_20' ) end [2025-04-01 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812220', 'tblTempVendorCDR_20' ) start [2025-04-01 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812220', 'tblTempVendorCDR_20' ) end [2025-04-01 16:58:22] Production.INFO: ProcessCDR(1,14812220,1,1,2) [2025-04-01 16:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812220', 'tblTempUsageDetail_20' ) start [2025-04-01 16:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812220', 'tblTempUsageDetail_20' ) end [2025-04-01 16:58:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:58:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:58:28] Production.INFO: ==1563== Releasing lock... [2025-04-01 16:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:58:28] Production.INFO: 65.75 MB #Memory Used# [2025-04-01 16:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 13:59:06 [end_date_ymd] => 2025-04-01 16:59:06 [RateCDR] => 1 ) [2025-04-01 16:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 13:59:06' and `end` < '2025-04-01 16:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 16:59:20] Production.INFO: count ==5027 [2025-04-01 16:59:23] Production.ERROR: pbx CDR StartTime 2025-04-01 13:59:06 - End Time 2025-04-01 16:59:06 [2025-04-01 16:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812225', 'tblTempUsageDetail_20' ) start [2025-04-01 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812225', 'tblTempUsageDetail_20' ) end [2025-04-01 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812225', 'tblTempVendorCDR_20' ) start [2025-04-01 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812225', 'tblTempVendorCDR_20' ) end [2025-04-01 16:59:23] Production.INFO: ProcessCDR(1,14812225,1,1,2) [2025-04-01 16:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 16:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 16:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812225', 'tblTempUsageDetail_20' ) start [2025-04-01 16:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812225', 'tblTempUsageDetail_20' ) end [2025-04-01 16:59:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 16:59:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 16:59:29] Production.INFO: ==1654== Releasing lock... [2025-04-01 16:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 16:59:29] Production.INFO: 65.75 MB #Memory Used# [2025-04-01 17:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:00:07 [end_date_ymd] => 2025-04-01 17:00:07 [RateCDR] => 1 ) [2025-04-01 17:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 14:00:07' and `end` < '2025-04-01 17:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 17:00:21] Production.INFO: count ==4998 [2025-04-01 17:00:23] Production.ERROR: pbx CDR StartTime 2025-04-01 14:00:07 - End Time 2025-04-01 17:00:07 [2025-04-01 17:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812231', 'tblTempUsageDetail_20' ) start [2025-04-01 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812231', 'tblTempUsageDetail_20' ) end [2025-04-01 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812231', 'tblTempVendorCDR_20' ) start [2025-04-01 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812231', 'tblTempVendorCDR_20' ) end [2025-04-01 17:00:23] Production.INFO: ProcessCDR(1,14812231,1,1,2) [2025-04-01 17:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812231', 'tblTempUsageDetail_20' ) start [2025-04-01 17:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812231', 'tblTempUsageDetail_20' ) end [2025-04-01 17:00:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:00:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:00:29] Production.INFO: ==1736== Releasing lock... [2025-04-01 17:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:00:29] Production.INFO: 65.5 MB #Memory Used# [2025-04-01 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:01:06 [end_date_ymd] => 2025-04-01 17:01:06 [RateCDR] => 1 ) [2025-04-01 17:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 14:01:06' and `end` < '2025-04-01 17:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 17:01:20] Production.INFO: count ==4964 [2025-04-01 17:01:22] Production.ERROR: pbx CDR StartTime 2025-04-01 14:01:06 - End Time 2025-04-01 17:01:06 [2025-04-01 17:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812236', 'tblTempUsageDetail_20' ) start [2025-04-01 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812236', 'tblTempUsageDetail_20' ) end [2025-04-01 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812236', 'tblTempVendorCDR_20' ) start [2025-04-01 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812236', 'tblTempVendorCDR_20' ) end [2025-04-01 17:01:22] Production.INFO: ProcessCDR(1,14812236,1,1,2) [2025-04-01 17:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812236', 'tblTempUsageDetail_20' ) start [2025-04-01 17:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812236', 'tblTempUsageDetail_20' ) end [2025-04-01 17:01:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:01:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:01:28] Production.INFO: ==1836== Releasing lock... [2025-04-01 17:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:01:28] Production.INFO: 65.25 MB #Memory Used# [2025-04-01 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:02:05 [end_date_ymd] => 2025-04-01 17:02:05 [RateCDR] => 1 ) [2025-04-01 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-01 14:02:05' and `end` < '2025-04-01 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-01 17:02:19] Production.INFO: count ==4939 [2025-04-01 17:02:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:02:05 - End Time 2025-04-01 17:02:05 [2025-04-01 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812241', 'tblTempUsageDetail_20' ) start [2025-04-01 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812241', 'tblTempUsageDetail_20' ) end [2025-04-01 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812241', 'tblTempVendorCDR_20' ) start [2025-04-01 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812241', 'tblTempVendorCDR_20' ) end [2025-04-01 17:02:22] Production.INFO: ProcessCDR(1,14812241,1,1,2) [2025-04-01 17:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812241', 'tblTempUsageDetail_20' ) start [2025-04-01 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812241', 'tblTempUsageDetail_20' ) end [2025-04-01 17:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:02:27] Production.INFO: ==1911== Releasing lock... [2025-04-01 17:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:02:27] Production.INFO: 65 MB #Memory Used# [2025-04-01 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:03:06 [end_date_ymd] => 2025-04-01 17:03:06 [RateCDR] => 1 ) [2025-04-01 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-01 14:03:06' and `end` < '2025-04-01 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-01 17:03:20] Production.INFO: count ==4924 [2025-04-01 17:03:22] Production.ERROR: pbx CDR StartTime 2025-04-01 14:03:06 - End Time 2025-04-01 17:03:06 [2025-04-01 17:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812246', 'tblTempUsageDetail_20' ) start [2025-04-01 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812246', 'tblTempUsageDetail_20' ) end [2025-04-01 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812246', 'tblTempVendorCDR_20' ) start [2025-04-01 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812246', 'tblTempVendorCDR_20' ) end [2025-04-01 17:03:22] Production.INFO: ProcessCDR(1,14812246,1,1,2) [2025-04-01 17:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812246', 'tblTempUsageDetail_20' ) start [2025-04-01 17:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812246', 'tblTempUsageDetail_20' ) end [2025-04-01 17:03:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:03:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:03:29] Production.INFO: ==1991== Releasing lock... [2025-04-01 17:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:03:29] Production.INFO: 64.75 MB #Memory Used# [2025-04-01 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:04:06 [end_date_ymd] => 2025-04-01 17:04:06 [RateCDR] => 1 ) [2025-04-01 17:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 14:04:06' and `end` < '2025-04-01 17:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 17:04:20] Production.INFO: count ==4934 [2025-04-01 17:04:22] Production.ERROR: pbx CDR StartTime 2025-04-01 14:04:06 - End Time 2025-04-01 17:04:06 [2025-04-01 17:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812251', 'tblTempUsageDetail_20' ) start [2025-04-01 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812251', 'tblTempUsageDetail_20' ) end [2025-04-01 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812251', 'tblTempVendorCDR_20' ) start [2025-04-01 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812251', 'tblTempVendorCDR_20' ) end [2025-04-01 17:04:22] Production.INFO: ProcessCDR(1,14812251,1,1,2) [2025-04-01 17:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812251', 'tblTempUsageDetail_20' ) start [2025-04-01 17:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812251', 'tblTempUsageDetail_20' ) end [2025-04-01 17:04:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:04:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:04:29] Production.INFO: ==2115== Releasing lock... [2025-04-01 17:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:04:29] Production.INFO: 65 MB #Memory Used# [2025-04-01 17:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:05:06 [end_date_ymd] => 2025-04-01 17:05:06 [RateCDR] => 1 ) [2025-04-01 17: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-01 14:05:06' and `end` < '2025-04-01 17: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-01 17:05:20] Production.INFO: count ==4918 [2025-04-01 17:05:22] Production.ERROR: pbx CDR StartTime 2025-04-01 14:05:06 - End Time 2025-04-01 17:05:06 [2025-04-01 17:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812256', 'tblTempUsageDetail_20' ) start [2025-04-01 17:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812256', 'tblTempUsageDetail_20' ) end [2025-04-01 17:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812256', 'tblTempVendorCDR_20' ) start [2025-04-01 17:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812256', 'tblTempVendorCDR_20' ) end [2025-04-01 17:05:23] Production.INFO: ProcessCDR(1,14812256,1,1,2) [2025-04-01 17:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812256', 'tblTempUsageDetail_20' ) start [2025-04-01 17:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812256', 'tblTempUsageDetail_20' ) end [2025-04-01 17:05:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:05:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:05:29] Production.INFO: ==2191== Releasing lock... [2025-04-01 17:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:05:29] Production.INFO: 64.75 MB #Memory Used# [2025-04-01 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:06:05 [end_date_ymd] => 2025-04-01 17:06:05 [RateCDR] => 1 ) [2025-04-01 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-01 14:06:05' and `end` < '2025-04-01 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-01 17:06:19] Production.INFO: count ==4897 [2025-04-01 17:06:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:06:05 - End Time 2025-04-01 17:06:05 [2025-04-01 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812261', 'tblTempUsageDetail_20' ) start [2025-04-01 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812261', 'tblTempUsageDetail_20' ) end [2025-04-01 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812261', 'tblTempVendorCDR_20' ) start [2025-04-01 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812261', 'tblTempVendorCDR_20' ) end [2025-04-01 17:06:22] Production.INFO: ProcessCDR(1,14812261,1,1,2) [2025-04-01 17:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812261', 'tblTempUsageDetail_20' ) start [2025-04-01 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812261', 'tblTempUsageDetail_20' ) end [2025-04-01 17:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:06:26] Production.INFO: ==2270== Releasing lock... [2025-04-01 17:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:06:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-01 17:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:07:06 [end_date_ymd] => 2025-04-01 17:07:06 [RateCDR] => 1 ) [2025-04-01 17: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-01 14:07:06' and `end` < '2025-04-01 17: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-01 17:07:20] Production.INFO: count ==4901 [2025-04-01 17:07:22] Production.ERROR: pbx CDR StartTime 2025-04-01 14:07:06 - End Time 2025-04-01 17:07:06 [2025-04-01 17:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812266', 'tblTempUsageDetail_20' ) start [2025-04-01 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812266', 'tblTempUsageDetail_20' ) end [2025-04-01 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812266', 'tblTempVendorCDR_20' ) start [2025-04-01 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812266', 'tblTempVendorCDR_20' ) end [2025-04-01 17:07:22] Production.INFO: ProcessCDR(1,14812266,1,1,2) [2025-04-01 17:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812266', 'tblTempUsageDetail_20' ) start [2025-04-01 17:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812266', 'tblTempUsageDetail_20' ) end [2025-04-01 17:07:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:07:28] Production.INFO: ==2357== Releasing lock... [2025-04-01 17:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:07:28] Production.INFO: 64.75 MB #Memory Used# [2025-04-01 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:08:06 [end_date_ymd] => 2025-04-01 17:08:06 [RateCDR] => 1 ) [2025-04-01 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-01 14:08:06' and `end` < '2025-04-01 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-01 17:08:19] Production.INFO: count ==4881 [2025-04-01 17:08:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:08:06 - End Time 2025-04-01 17:08:06 [2025-04-01 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812271', 'tblTempUsageDetail_20' ) start [2025-04-01 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812271', 'tblTempUsageDetail_20' ) end [2025-04-01 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812271', 'tblTempVendorCDR_20' ) start [2025-04-01 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812271', 'tblTempVendorCDR_20' ) end [2025-04-01 17:08:22] Production.INFO: ProcessCDR(1,14812271,1,1,2) [2025-04-01 17:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812271', 'tblTempUsageDetail_20' ) start [2025-04-01 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812271', 'tblTempUsageDetail_20' ) end [2025-04-01 17:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:08:25] Production.INFO: ==2437== Releasing lock... [2025-04-01 17:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:08:25] Production.INFO: 64.5 MB #Memory Used# [2025-04-01 17:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:09:06 [end_date_ymd] => 2025-04-01 17:09:06 [RateCDR] => 1 ) [2025-04-01 17:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 14:09:06' and `end` < '2025-04-01 17:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 17:09:20] Production.INFO: count ==4869 [2025-04-01 17:09:22] Production.ERROR: pbx CDR StartTime 2025-04-01 14:09:06 - End Time 2025-04-01 17:09:06 [2025-04-01 17:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812276', 'tblTempUsageDetail_20' ) start [2025-04-01 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812276', 'tblTempUsageDetail_20' ) end [2025-04-01 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812276', 'tblTempVendorCDR_20' ) start [2025-04-01 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812276', 'tblTempVendorCDR_20' ) end [2025-04-01 17:09:22] Production.INFO: ProcessCDR(1,14812276,1,1,2) [2025-04-01 17:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812276', 'tblTempUsageDetail_20' ) start [2025-04-01 17:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812276', 'tblTempUsageDetail_20' ) end [2025-04-01 17:09:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:09:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:09:28] Production.INFO: ==2519== Releasing lock... [2025-04-01 17:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:09:28] Production.INFO: 64.5 MB #Memory Used# [2025-04-01 17:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:10:07 [end_date_ymd] => 2025-04-01 17:10:07 [RateCDR] => 1 ) [2025-04-01 17:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 14:10:07' and `end` < '2025-04-01 17:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 17:10:20] Production.INFO: count ==4843 [2025-04-01 17:10:23] Production.ERROR: pbx CDR StartTime 2025-04-01 14:10:07 - End Time 2025-04-01 17:10:07 [2025-04-01 17:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812282', 'tblTempUsageDetail_20' ) start [2025-04-01 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812282', 'tblTempUsageDetail_20' ) end [2025-04-01 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812282', 'tblTempVendorCDR_20' ) start [2025-04-01 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812282', 'tblTempVendorCDR_20' ) end [2025-04-01 17:10:23] Production.INFO: ProcessCDR(1,14812282,1,1,2) [2025-04-01 17:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812282', 'tblTempUsageDetail_20' ) start [2025-04-01 17:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812282', 'tblTempUsageDetail_20' ) end [2025-04-01 17:10:29] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:10:29] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:10:29] Production.INFO: ==2601== Releasing lock... [2025-04-01 17:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:10:29] Production.INFO: 64.25 MB #Memory Used# [2025-04-01 17:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:11:06 [end_date_ymd] => 2025-04-01 17:11:06 [RateCDR] => 1 ) [2025-04-01 17:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 14:11:06' and `end` < '2025-04-01 17:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 17:11:20] Production.INFO: count ==4816 [2025-04-01 17:11:22] Production.ERROR: pbx CDR StartTime 2025-04-01 14:11:06 - End Time 2025-04-01 17:11:06 [2025-04-01 17:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812287', 'tblTempUsageDetail_20' ) start [2025-04-01 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812287', 'tblTempUsageDetail_20' ) end [2025-04-01 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812287', 'tblTempVendorCDR_20' ) start [2025-04-01 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812287', 'tblTempVendorCDR_20' ) end [2025-04-01 17:11:22] Production.INFO: ProcessCDR(1,14812287,1,1,2) [2025-04-01 17:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812287', 'tblTempUsageDetail_20' ) start [2025-04-01 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812287', 'tblTempUsageDetail_20' ) end [2025-04-01 17:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:11:26] Production.INFO: ==2679== Releasing lock... [2025-04-01 17:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:11:26] Production.INFO: 64 MB #Memory Used# [2025-04-01 17:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:12:06 [end_date_ymd] => 2025-04-01 17:12:06 [RateCDR] => 1 ) [2025-04-01 17:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 14:12:06' and `end` < '2025-04-01 17:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 17:12:19] Production.INFO: count ==4818 [2025-04-01 17:12:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:12:06 - End Time 2025-04-01 17:12:06 [2025-04-01 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812292', 'tblTempUsageDetail_20' ) start [2025-04-01 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812292', 'tblTempUsageDetail_20' ) end [2025-04-01 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812292', 'tblTempVendorCDR_20' ) start [2025-04-01 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812292', 'tblTempVendorCDR_20' ) end [2025-04-01 17:12:22] Production.INFO: ProcessCDR(1,14812292,1,1,2) [2025-04-01 17:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812292', 'tblTempUsageDetail_20' ) start [2025-04-01 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812292', 'tblTempUsageDetail_20' ) end [2025-04-01 17:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:12:27] Production.INFO: ==2757== Releasing lock... [2025-04-01 17:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:12:27] Production.INFO: 64 MB #Memory Used# [2025-04-01 17:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:13:06 [end_date_ymd] => 2025-04-01 17:13:06 [RateCDR] => 1 ) [2025-04-01 17:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 14:13:06' and `end` < '2025-04-01 17:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 17:13:20] Production.INFO: count ==4833 [2025-04-01 17:13:22] Production.ERROR: pbx CDR StartTime 2025-04-01 14:13:06 - End Time 2025-04-01 17:13:06 [2025-04-01 17:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812297', 'tblTempUsageDetail_20' ) start [2025-04-01 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812297', 'tblTempUsageDetail_20' ) end [2025-04-01 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812297', 'tblTempVendorCDR_20' ) start [2025-04-01 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812297', 'tblTempVendorCDR_20' ) end [2025-04-01 17:13:22] Production.INFO: ProcessCDR(1,14812297,1,1,2) [2025-04-01 17:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812297', 'tblTempUsageDetail_20' ) start [2025-04-01 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812297', 'tblTempUsageDetail_20' ) end [2025-04-01 17:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:13:26] Production.INFO: ==2840== Releasing lock... [2025-04-01 17:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:13:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-01 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:14:05 [end_date_ymd] => 2025-04-01 17:14:05 [RateCDR] => 1 ) [2025-04-01 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-01 14:14:05' and `end` < '2025-04-01 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-01 17:14:19] Production.INFO: count ==4844 [2025-04-01 17:14:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:14:05 - End Time 2025-04-01 17:14:05 [2025-04-01 17:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812302', 'tblTempUsageDetail_20' ) start [2025-04-01 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812302', 'tblTempUsageDetail_20' ) end [2025-04-01 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812302', 'tblTempVendorCDR_20' ) start [2025-04-01 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812302', 'tblTempVendorCDR_20' ) end [2025-04-01 17:14:21] Production.INFO: ProcessCDR(1,14812302,1,1,2) [2025-04-01 17:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812302', 'tblTempUsageDetail_20' ) start [2025-04-01 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812302', 'tblTempUsageDetail_20' ) end [2025-04-01 17:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:14:27] Production.INFO: ==2917== Releasing lock... [2025-04-01 17:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:14:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-01 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:15:06 [end_date_ymd] => 2025-04-01 17:15:06 [RateCDR] => 1 ) [2025-04-01 17:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 14:15:06' and `end` < '2025-04-01 17:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 17:15:20] Production.INFO: count ==4829 [2025-04-01 17:15:22] Production.ERROR: pbx CDR StartTime 2025-04-01 14:15:06 - End Time 2025-04-01 17:15:06 [2025-04-01 17:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812307', 'tblTempUsageDetail_20' ) start [2025-04-01 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812307', 'tblTempUsageDetail_20' ) end [2025-04-01 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812307', 'tblTempVendorCDR_20' ) start [2025-04-01 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812307', 'tblTempVendorCDR_20' ) end [2025-04-01 17:15:22] Production.INFO: ProcessCDR(1,14812307,1,1,2) [2025-04-01 17:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812307', 'tblTempUsageDetail_20' ) start [2025-04-01 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812307', 'tblTempUsageDetail_20' ) end [2025-04-01 17:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:15:26] Production.INFO: ==2995== Releasing lock... [2025-04-01 17:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:15:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-01 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:16:06 [end_date_ymd] => 2025-04-01 17:16:06 [RateCDR] => 1 ) [2025-04-01 17:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 14:16:06' and `end` < '2025-04-01 17:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 17:16:19] Production.INFO: count ==4822 [2025-04-01 17:16:22] Production.ERROR: pbx CDR StartTime 2025-04-01 14:16:06 - End Time 2025-04-01 17:16:06 [2025-04-01 17:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812312', 'tblTempUsageDetail_20' ) start [2025-04-01 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812312', 'tblTempUsageDetail_20' ) end [2025-04-01 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812312', 'tblTempVendorCDR_20' ) start [2025-04-01 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812312', 'tblTempVendorCDR_20' ) end [2025-04-01 17:16:22] Production.INFO: ProcessCDR(1,14812312,1,1,2) [2025-04-01 17:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812312', 'tblTempUsageDetail_20' ) start [2025-04-01 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812312', 'tblTempUsageDetail_20' ) end [2025-04-01 17:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:16:27] Production.INFO: ==3073== Releasing lock... [2025-04-01 17:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:16:27] Production.INFO: 64 MB #Memory Used# [2025-04-01 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:17:06 [end_date_ymd] => 2025-04-01 17:17:06 [RateCDR] => 1 ) [2025-04-01 17:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 14:17:06' and `end` < '2025-04-01 17:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 17:17:20] Production.INFO: count ==4814 [2025-04-01 17:17:22] Production.ERROR: pbx CDR StartTime 2025-04-01 14:17:06 - End Time 2025-04-01 17:17:06 [2025-04-01 17:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812317', 'tblTempUsageDetail_20' ) start [2025-04-01 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812317', 'tblTempUsageDetail_20' ) end [2025-04-01 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812317', 'tblTempVendorCDR_20' ) start [2025-04-01 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812317', 'tblTempVendorCDR_20' ) end [2025-04-01 17:17:22] Production.INFO: ProcessCDR(1,14812317,1,1,2) [2025-04-01 17:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812317', 'tblTempUsageDetail_20' ) start [2025-04-01 17:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812317', 'tblTempUsageDetail_20' ) end [2025-04-01 17:17:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:17:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:17:28] Production.INFO: ==3156== Releasing lock... [2025-04-01 17:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:17:28] Production.INFO: 64 MB #Memory Used# [2025-04-01 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:18:05 [end_date_ymd] => 2025-04-01 17:18:05 [RateCDR] => 1 ) [2025-04-01 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-01 14:18:05' and `end` < '2025-04-01 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-01 17:18:18] Production.INFO: count ==4754 [2025-04-01 17:18:20] Production.ERROR: pbx CDR StartTime 2025-04-01 14:18:05 - End Time 2025-04-01 17:18:05 [2025-04-01 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812322', 'tblTempUsageDetail_20' ) start [2025-04-01 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812322', 'tblTempUsageDetail_20' ) end [2025-04-01 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812322', 'tblTempVendorCDR_20' ) start [2025-04-01 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812322', 'tblTempVendorCDR_20' ) end [2025-04-01 17:18:21] Production.INFO: ProcessCDR(1,14812322,1,1,2) [2025-04-01 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812322', 'tblTempUsageDetail_20' ) start [2025-04-01 17:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812322', 'tblTempUsageDetail_20' ) end [2025-04-01 17:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:18:25] Production.INFO: ==3244== Releasing lock... [2025-04-01 17:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:18:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-01 17:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:19:06 [end_date_ymd] => 2025-04-01 17:19:06 [RateCDR] => 1 ) [2025-04-01 17: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-01 14:19:06' and `end` < '2025-04-01 17: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-01 17:19:19] Production.INFO: count ==4718 [2025-04-01 17:19:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:19:06 - End Time 2025-04-01 17:19:06 [2025-04-01 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812327', 'tblTempUsageDetail_20' ) start [2025-04-01 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812327', 'tblTempUsageDetail_20' ) end [2025-04-01 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812327', 'tblTempVendorCDR_20' ) start [2025-04-01 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812327', 'tblTempVendorCDR_20' ) end [2025-04-01 17:19:22] Production.INFO: ProcessCDR(1,14812327,1,1,2) [2025-04-01 17:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812327', 'tblTempUsageDetail_20' ) start [2025-04-01 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812327', 'tblTempUsageDetail_20' ) end [2025-04-01 17:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:19:25] Production.INFO: ==3323== Releasing lock... [2025-04-01 17:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:19:25] Production.INFO: 63.25 MB #Memory Used# [2025-04-01 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:20:06 [end_date_ymd] => 2025-04-01 17:20:06 [RateCDR] => 1 ) [2025-04-01 17:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 14:20:06' and `end` < '2025-04-01 17:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 17:20:20] Production.INFO: count ==4726 [2025-04-01 17:20:22] Production.ERROR: pbx CDR StartTime 2025-04-01 14:20:06 - End Time 2025-04-01 17:20:06 [2025-04-01 17:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812333', 'tblTempUsageDetail_20' ) start [2025-04-01 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812333', 'tblTempUsageDetail_20' ) end [2025-04-01 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812333', 'tblTempVendorCDR_20' ) start [2025-04-01 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812333', 'tblTempVendorCDR_20' ) end [2025-04-01 17:20:22] Production.INFO: ProcessCDR(1,14812333,1,1,2) [2025-04-01 17:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812333', 'tblTempUsageDetail_20' ) start [2025-04-01 17:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812333', 'tblTempUsageDetail_20' ) end [2025-04-01 17:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:20:28] Production.INFO: ==3438== Releasing lock... [2025-04-01 17:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:20:28] Production.INFO: 63.5 MB #Memory Used# [2025-04-01 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:21:05 [end_date_ymd] => 2025-04-01 17:21:05 [RateCDR] => 1 ) [2025-04-01 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-01 14:21:05' and `end` < '2025-04-01 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-01 17:21:19] Production.INFO: count ==4665 [2025-04-01 17:21:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:21:05 - End Time 2025-04-01 17:21:05 [2025-04-01 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812338', 'tblTempUsageDetail_20' ) start [2025-04-01 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812338', 'tblTempUsageDetail_20' ) end [2025-04-01 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812338', 'tblTempVendorCDR_20' ) start [2025-04-01 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812338', 'tblTempVendorCDR_20' ) end [2025-04-01 17:21:21] Production.INFO: ProcessCDR(1,14812338,1,1,2) [2025-04-01 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812338', 'tblTempUsageDetail_20' ) start [2025-04-01 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812338', 'tblTempUsageDetail_20' ) end [2025-04-01 17:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:21:25] Production.INFO: ==3516== Releasing lock... [2025-04-01 17:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:21:25] Production.INFO: 63 MB #Memory Used# [2025-04-01 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:22:06 [end_date_ymd] => 2025-04-01 17:22:06 [RateCDR] => 1 ) [2025-04-01 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-01 14:22:06' and `end` < '2025-04-01 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-01 17:22:19] Production.INFO: count ==4658 [2025-04-01 17:22:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:22:06 - End Time 2025-04-01 17:22:06 [2025-04-01 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812343', 'tblTempUsageDetail_20' ) start [2025-04-01 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812343', 'tblTempUsageDetail_20' ) end [2025-04-01 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812343', 'tblTempVendorCDR_20' ) start [2025-04-01 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812343', 'tblTempVendorCDR_20' ) end [2025-04-01 17:22:21] Production.INFO: ProcessCDR(1,14812343,1,1,2) [2025-04-01 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812343', 'tblTempUsageDetail_20' ) start [2025-04-01 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812343', 'tblTempUsageDetail_20' ) end [2025-04-01 17:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:22:25] Production.INFO: ==3591== Releasing lock... [2025-04-01 17:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:22:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-01 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:23:05 [end_date_ymd] => 2025-04-01 17:23:05 [RateCDR] => 1 ) [2025-04-01 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-01 14:23:05' and `end` < '2025-04-01 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-01 17:23:18] Production.INFO: count ==4651 [2025-04-01 17:23:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:23:05 - End Time 2025-04-01 17:23:05 [2025-04-01 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812348', 'tblTempUsageDetail_20' ) start [2025-04-01 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812348', 'tblTempUsageDetail_20' ) end [2025-04-01 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812348', 'tblTempVendorCDR_20' ) start [2025-04-01 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812348', 'tblTempVendorCDR_20' ) end [2025-04-01 17:23:21] Production.INFO: ProcessCDR(1,14812348,1,1,2) [2025-04-01 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812348', 'tblTempUsageDetail_20' ) start [2025-04-01 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812348', 'tblTempUsageDetail_20' ) end [2025-04-01 17:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:23:25] Production.INFO: ==3670== Releasing lock... [2025-04-01 17:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:23:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-01 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:24:06 [end_date_ymd] => 2025-04-01 17:24:06 [RateCDR] => 1 ) [2025-04-01 17: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-01 14:24:06' and `end` < '2025-04-01 17: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-01 17:24:19] Production.INFO: count ==4635 [2025-04-01 17:24:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:24:06 - End Time 2025-04-01 17:24:06 [2025-04-01 17:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812353', 'tblTempUsageDetail_20' ) start [2025-04-01 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812353', 'tblTempUsageDetail_20' ) end [2025-04-01 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812353', 'tblTempVendorCDR_20' ) start [2025-04-01 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812353', 'tblTempVendorCDR_20' ) end [2025-04-01 17:24:22] Production.INFO: ProcessCDR(1,14812353,1,1,2) [2025-04-01 17:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812353', 'tblTempUsageDetail_20' ) start [2025-04-01 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812353', 'tblTempUsageDetail_20' ) end [2025-04-01 17:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:24:25] Production.INFO: ==3745== Releasing lock... [2025-04-01 17:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:24:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-01 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:25:05 [end_date_ymd] => 2025-04-01 17:25:05 [RateCDR] => 1 ) [2025-04-01 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-01 14:25:05' and `end` < '2025-04-01 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-01 17:25:19] Production.INFO: count ==4618 [2025-04-01 17:25:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:25:05 - End Time 2025-04-01 17:25:05 [2025-04-01 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812358', 'tblTempUsageDetail_20' ) start [2025-04-01 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812358', 'tblTempUsageDetail_20' ) end [2025-04-01 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812358', 'tblTempVendorCDR_20' ) start [2025-04-01 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812358', 'tblTempVendorCDR_20' ) end [2025-04-01 17:25:21] Production.INFO: ProcessCDR(1,14812358,1,1,2) [2025-04-01 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812358', 'tblTempUsageDetail_20' ) start [2025-04-01 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812358', 'tblTempUsageDetail_20' ) end [2025-04-01 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:25:25] Production.INFO: ==3820== Releasing lock... [2025-04-01 17:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:25:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-01 17:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:26:06 [end_date_ymd] => 2025-04-01 17:26:06 [RateCDR] => 1 ) [2025-04-01 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-01 14:26:06' and `end` < '2025-04-01 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-01 17:26:19] Production.INFO: count ==4606 [2025-04-01 17:26:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:26:06 - End Time 2025-04-01 17:26:06 [2025-04-01 17:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812363', 'tblTempUsageDetail_20' ) start [2025-04-01 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812363', 'tblTempUsageDetail_20' ) end [2025-04-01 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812363', 'tblTempVendorCDR_20' ) start [2025-04-01 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812363', 'tblTempVendorCDR_20' ) end [2025-04-01 17:26:21] Production.INFO: ProcessCDR(1,14812363,1,1,2) [2025-04-01 17:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812363', 'tblTempUsageDetail_20' ) start [2025-04-01 17:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812363', 'tblTempUsageDetail_20' ) end [2025-04-01 17:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:26:27] Production.INFO: ==3896== Releasing lock... [2025-04-01 17:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:26:27] Production.INFO: 62.5 MB #Memory Used# [2025-04-01 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:27:05 [end_date_ymd] => 2025-04-01 17:27:05 [RateCDR] => 1 ) [2025-04-01 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-01 14:27:05' and `end` < '2025-04-01 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-01 17:27:18] Production.INFO: count ==4570 [2025-04-01 17:27:20] Production.ERROR: pbx CDR StartTime 2025-04-01 14:27:05 - End Time 2025-04-01 17:27:05 [2025-04-01 17:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812368', 'tblTempUsageDetail_20' ) start [2025-04-01 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812368', 'tblTempUsageDetail_20' ) end [2025-04-01 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812368', 'tblTempVendorCDR_20' ) start [2025-04-01 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812368', 'tblTempVendorCDR_20' ) end [2025-04-01 17:27:20] Production.INFO: ProcessCDR(1,14812368,1,1,2) [2025-04-01 17:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812368', 'tblTempUsageDetail_20' ) start [2025-04-01 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812368', 'tblTempUsageDetail_20' ) end [2025-04-01 17:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:27:26] Production.INFO: ==3978== Releasing lock... [2025-04-01 17:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:27:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-01 17:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:28:06 [end_date_ymd] => 2025-04-01 17:28:06 [RateCDR] => 1 ) [2025-04-01 17: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-01 14:28:06' and `end` < '2025-04-01 17: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-01 17:28:19] Production.INFO: count ==4569 [2025-04-01 17:28:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:28:06 - End Time 2025-04-01 17:28:06 [2025-04-01 17:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812372', 'tblTempUsageDetail_20' ) start [2025-04-01 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812372', 'tblTempUsageDetail_20' ) end [2025-04-01 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812372', 'tblTempVendorCDR_20' ) start [2025-04-01 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812372', 'tblTempVendorCDR_20' ) end [2025-04-01 17:28:21] Production.INFO: ProcessCDR(1,14812372,1,1,2) [2025-04-01 17:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812372', 'tblTempUsageDetail_20' ) start [2025-04-01 17:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812372', 'tblTempUsageDetail_20' ) end [2025-04-01 17:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:28:27] Production.INFO: ==4052== Releasing lock... [2025-04-01 17:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:28:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-01 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:29:05 [end_date_ymd] => 2025-04-01 17:29:05 [RateCDR] => 1 ) [2025-04-01 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-01 14:29:05' and `end` < '2025-04-01 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-01 17:29:19] Production.INFO: count ==4550 [2025-04-01 17:29:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:29:05 - End Time 2025-04-01 17:29:05 [2025-04-01 17:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812378', 'tblTempUsageDetail_20' ) start [2025-04-01 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812378', 'tblTempUsageDetail_20' ) end [2025-04-01 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812378', 'tblTempVendorCDR_20' ) start [2025-04-01 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812378', 'tblTempVendorCDR_20' ) end [2025-04-01 17:29:21] Production.INFO: ProcessCDR(1,14812378,1,1,2) [2025-04-01 17:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812378', 'tblTempUsageDetail_20' ) start [2025-04-01 17:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812378', 'tblTempUsageDetail_20' ) end [2025-04-01 17:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:29:27] Production.INFO: ==4128== Releasing lock... [2025-04-01 17:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:29:27] Production.INFO: 62 MB #Memory Used# [2025-04-01 17:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:30:07 [end_date_ymd] => 2025-04-01 17:30:07 [RateCDR] => 1 ) [2025-04-01 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-01 14:30:07' and `end` < '2025-04-01 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-01 17:30:21] Production.INFO: count ==4513 [2025-04-01 17:30:22] Production.ERROR: pbx CDR StartTime 2025-04-01 14:30:07 - End Time 2025-04-01 17:30:07 [2025-04-01 17:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812384', 'tblTempUsageDetail_20' ) start [2025-04-01 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812384', 'tblTempUsageDetail_20' ) end [2025-04-01 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812384', 'tblTempVendorCDR_20' ) start [2025-04-01 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812384', 'tblTempVendorCDR_20' ) end [2025-04-01 17:30:23] Production.INFO: ProcessCDR(1,14812384,1,1,2) [2025-04-01 17:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812384', 'tblTempUsageDetail_20' ) start [2025-04-01 17:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812384', 'tblTempUsageDetail_20' ) end [2025-04-01 17:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:30:28] Production.INFO: ==4202== Releasing lock... [2025-04-01 17:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:30:28] Production.INFO: 61.75 MB #Memory Used# [2025-04-01 17:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:31:06 [end_date_ymd] => 2025-04-01 17:31:06 [RateCDR] => 1 ) [2025-04-01 17: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-01 14:31:06' and `end` < '2025-04-01 17: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-01 17:31:19] Production.INFO: count ==4491 [2025-04-01 17:31:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:31:06 - End Time 2025-04-01 17:31:06 [2025-04-01 17:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812389', 'tblTempUsageDetail_20' ) start [2025-04-01 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812389', 'tblTempUsageDetail_20' ) end [2025-04-01 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812389', 'tblTempVendorCDR_20' ) start [2025-04-01 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812389', 'tblTempVendorCDR_20' ) end [2025-04-01 17:31:21] Production.INFO: ProcessCDR(1,14812389,1,1,2) [2025-04-01 17:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812389', 'tblTempUsageDetail_20' ) start [2025-04-01 17:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812389', 'tblTempUsageDetail_20' ) end [2025-04-01 17:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:31:27] Production.INFO: ==4276== Releasing lock... [2025-04-01 17:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:31:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-01 17:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:32:06 [end_date_ymd] => 2025-04-01 17:32:06 [RateCDR] => 1 ) [2025-04-01 17: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-01 14:32:06' and `end` < '2025-04-01 17: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-01 17:32:20] Production.INFO: count ==4477 [2025-04-01 17:32:22] Production.ERROR: pbx CDR StartTime 2025-04-01 14:32:06 - End Time 2025-04-01 17:32:06 [2025-04-01 17:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812394', 'tblTempUsageDetail_20' ) start [2025-04-01 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812394', 'tblTempUsageDetail_20' ) end [2025-04-01 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812394', 'tblTempVendorCDR_20' ) start [2025-04-01 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812394', 'tblTempVendorCDR_20' ) end [2025-04-01 17:32:22] Production.INFO: ProcessCDR(1,14812394,1,1,2) [2025-04-01 17:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812394', 'tblTempUsageDetail_20' ) start [2025-04-01 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812394', 'tblTempUsageDetail_20' ) end [2025-04-01 17:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:32:27] Production.INFO: ==4346== Releasing lock... [2025-04-01 17:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:32:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-01 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:33:05 [end_date_ymd] => 2025-04-01 17:33:05 [RateCDR] => 1 ) [2025-04-01 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 14:33:05' and `end` < '2025-04-01 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 17:33:19] Production.INFO: count ==4469 [2025-04-01 17:33:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:33:05 - End Time 2025-04-01 17:33:05 [2025-04-01 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812399', 'tblTempUsageDetail_20' ) start [2025-04-01 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812399', 'tblTempUsageDetail_20' ) end [2025-04-01 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812399', 'tblTempVendorCDR_20' ) start [2025-04-01 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812399', 'tblTempVendorCDR_20' ) end [2025-04-01 17:33:21] Production.INFO: ProcessCDR(1,14812399,1,1,2) [2025-04-01 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812399', 'tblTempUsageDetail_20' ) start [2025-04-01 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812399', 'tblTempUsageDetail_20' ) end [2025-04-01 17:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:33:27] Production.INFO: ==4421== Releasing lock... [2025-04-01 17:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:33:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-01 17:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:34:06 [end_date_ymd] => 2025-04-01 17:34:06 [RateCDR] => 1 ) [2025-04-01 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-01 14:34:06' and `end` < '2025-04-01 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-01 17:34:19] Production.INFO: count ==4452 [2025-04-01 17:34:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:34:06 - End Time 2025-04-01 17:34:06 [2025-04-01 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812404', 'tblTempUsageDetail_20' ) start [2025-04-01 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812404', 'tblTempUsageDetail_20' ) end [2025-04-01 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812404', 'tblTempVendorCDR_20' ) start [2025-04-01 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812404', 'tblTempVendorCDR_20' ) end [2025-04-01 17:34:21] Production.INFO: ProcessCDR(1,14812404,1,1,2) [2025-04-01 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812404', 'tblTempUsageDetail_20' ) start [2025-04-01 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812404', 'tblTempUsageDetail_20' ) end [2025-04-01 17:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:34:27] Production.INFO: ==4495== Releasing lock... [2025-04-01 17:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:34:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-01 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:35:05 [end_date_ymd] => 2025-04-01 17:35:05 [RateCDR] => 1 ) [2025-04-01 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-01 14:35:05' and `end` < '2025-04-01 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-01 17:35:19] Production.INFO: count ==4432 [2025-04-01 17:35:20] Production.ERROR: pbx CDR StartTime 2025-04-01 14:35:05 - End Time 2025-04-01 17:35:05 [2025-04-01 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812409', 'tblTempUsageDetail_20' ) start [2025-04-01 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812409', 'tblTempUsageDetail_20' ) end [2025-04-01 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812409', 'tblTempVendorCDR_20' ) start [2025-04-01 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812409', 'tblTempVendorCDR_20' ) end [2025-04-01 17:35:21] Production.INFO: ProcessCDR(1,14812409,1,1,2) [2025-04-01 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812409', 'tblTempUsageDetail_20' ) start [2025-04-01 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812409', 'tblTempUsageDetail_20' ) end [2025-04-01 17:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:35:26] Production.INFO: ==4612== Releasing lock... [2025-04-01 17:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:35:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-01 17:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:36:06 [end_date_ymd] => 2025-04-01 17:36:06 [RateCDR] => 1 ) [2025-04-01 17:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 14:36:06' and `end` < '2025-04-01 17:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 17:36:19] Production.INFO: count ==4414 [2025-04-01 17:36:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:36:06 - End Time 2025-04-01 17:36:06 [2025-04-01 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812414', 'tblTempUsageDetail_20' ) start [2025-04-01 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812414', 'tblTempUsageDetail_20' ) end [2025-04-01 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812414', 'tblTempVendorCDR_20' ) start [2025-04-01 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812414', 'tblTempVendorCDR_20' ) end [2025-04-01 17:36:21] Production.INFO: ProcessCDR(1,14812414,1,1,2) [2025-04-01 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812414', 'tblTempUsageDetail_20' ) start [2025-04-01 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812414', 'tblTempUsageDetail_20' ) end [2025-04-01 17:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:36:27] Production.INFO: ==4689== Releasing lock... [2025-04-01 17:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:36:27] Production.INFO: 61 MB #Memory Used# [2025-04-01 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:37:05 [end_date_ymd] => 2025-04-01 17:37:05 [RateCDR] => 1 ) [2025-04-01 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-01 14:37:05' and `end` < '2025-04-01 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-01 17:37:18] Production.INFO: count ==4395 [2025-04-01 17:37:20] Production.ERROR: pbx CDR StartTime 2025-04-01 14:37:05 - End Time 2025-04-01 17:37:05 [2025-04-01 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812419', 'tblTempUsageDetail_20' ) start [2025-04-01 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812419', 'tblTempUsageDetail_20' ) end [2025-04-01 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812419', 'tblTempVendorCDR_20' ) start [2025-04-01 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812419', 'tblTempVendorCDR_20' ) end [2025-04-01 17:37:20] Production.INFO: ProcessCDR(1,14812419,1,1,2) [2025-04-01 17:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812419', 'tblTempUsageDetail_20' ) start [2025-04-01 17:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812419', 'tblTempUsageDetail_20' ) end [2025-04-01 17:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:37:27] Production.INFO: ==4762== Releasing lock... [2025-04-01 17:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:37:27] Production.INFO: 61 MB #Memory Used# [2025-04-01 17:38:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:38:06 [end_date_ymd] => 2025-04-01 17:38:06 [RateCDR] => 1 ) [2025-04-01 17:38: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-01 14:38:06' and `end` < '2025-04-01 17:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 17:38:20] Production.INFO: count ==4382 [2025-04-01 17:38:22] Production.ERROR: pbx CDR StartTime 2025-04-01 14:38:06 - End Time 2025-04-01 17:38:06 [2025-04-01 17:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812424', 'tblTempUsageDetail_20' ) start [2025-04-01 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812424', 'tblTempUsageDetail_20' ) end [2025-04-01 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812424', 'tblTempVendorCDR_20' ) start [2025-04-01 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812424', 'tblTempVendorCDR_20' ) end [2025-04-01 17:38:22] Production.INFO: ProcessCDR(1,14812424,1,1,2) [2025-04-01 17:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812424', 'tblTempUsageDetail_20' ) start [2025-04-01 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812424', 'tblTempUsageDetail_20' ) end [2025-04-01 17:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:38:26] Production.INFO: ==4837== Releasing lock... [2025-04-01 17:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:38:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-01 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:39:05 [end_date_ymd] => 2025-04-01 17:39:05 [RateCDR] => 1 ) [2025-04-01 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-01 14:39:05' and `end` < '2025-04-01 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-01 17:39:19] Production.INFO: count ==4383 [2025-04-01 17:39:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:39:05 - End Time 2025-04-01 17:39:05 [2025-04-01 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812429', 'tblTempUsageDetail_20' ) start [2025-04-01 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812429', 'tblTempUsageDetail_20' ) end [2025-04-01 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812429', 'tblTempVendorCDR_20' ) start [2025-04-01 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812429', 'tblTempVendorCDR_20' ) end [2025-04-01 17:39:21] Production.INFO: ProcessCDR(1,14812429,1,1,2) [2025-04-01 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812429', 'tblTempUsageDetail_20' ) start [2025-04-01 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812429', 'tblTempUsageDetail_20' ) end [2025-04-01 17:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:39:27] Production.INFO: ==4908== Releasing lock... [2025-04-01 17:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:39:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-01 17:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:40:07 [end_date_ymd] => 2025-04-01 17:40:07 [RateCDR] => 1 ) [2025-04-01 17:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 14:40:07' and `end` < '2025-04-01 17:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 17:40:21] Production.INFO: count ==4373 [2025-04-01 17:40:23] Production.ERROR: pbx CDR StartTime 2025-04-01 14:40:07 - End Time 2025-04-01 17:40:07 [2025-04-01 17:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812435', 'tblTempUsageDetail_20' ) start [2025-04-01 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812435', 'tblTempUsageDetail_20' ) end [2025-04-01 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812435', 'tblTempVendorCDR_20' ) start [2025-04-01 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812435', 'tblTempVendorCDR_20' ) end [2025-04-01 17:40:23] Production.INFO: ProcessCDR(1,14812435,1,1,2) [2025-04-01 17:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812435', 'tblTempUsageDetail_20' ) start [2025-04-01 17:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812435', 'tblTempUsageDetail_20' ) end [2025-04-01 17:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:40:28] Production.INFO: ==4980== Releasing lock... [2025-04-01 17:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:40:28] Production.INFO: 60.75 MB #Memory Used# [2025-04-01 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:41:05 [end_date_ymd] => 2025-04-01 17:41:05 [RateCDR] => 1 ) [2025-04-01 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-01 14:41:05' and `end` < '2025-04-01 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-01 17:41:18] Production.INFO: count ==4302 [2025-04-01 17:41:20] Production.ERROR: pbx CDR StartTime 2025-04-01 14:41:05 - End Time 2025-04-01 17:41:05 [2025-04-01 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812440', 'tblTempUsageDetail_20' ) start [2025-04-01 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812440', 'tblTempUsageDetail_20' ) end [2025-04-01 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812440', 'tblTempVendorCDR_20' ) start [2025-04-01 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812440', 'tblTempVendorCDR_20' ) end [2025-04-01 17:41:20] Production.INFO: ProcessCDR(1,14812440,1,1,2) [2025-04-01 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812440', 'tblTempUsageDetail_20' ) start [2025-04-01 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812440', 'tblTempUsageDetail_20' ) end [2025-04-01 17:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:41:26] Production.INFO: ==5058== Releasing lock... [2025-04-01 17:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:41:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-01 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:42:06 [end_date_ymd] => 2025-04-01 17:42:06 [RateCDR] => 1 ) [2025-04-01 17:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 14:42:06' and `end` < '2025-04-01 17:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 17:42:19] Production.INFO: count ==4291 [2025-04-01 17:42:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:42:06 - End Time 2025-04-01 17:42:06 [2025-04-01 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812445', 'tblTempUsageDetail_20' ) start [2025-04-01 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812445', 'tblTempUsageDetail_20' ) end [2025-04-01 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812445', 'tblTempVendorCDR_20' ) start [2025-04-01 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812445', 'tblTempVendorCDR_20' ) end [2025-04-01 17:42:22] Production.INFO: ProcessCDR(1,14812445,1,1,2) [2025-04-01 17:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812445', 'tblTempUsageDetail_20' ) start [2025-04-01 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812445', 'tblTempUsageDetail_20' ) end [2025-04-01 17:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:42:25] Production.INFO: ==5132== Releasing lock... [2025-04-01 17:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:42:25] Production.INFO: 60 MB #Memory Used# [2025-04-01 17:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:43:06 [end_date_ymd] => 2025-04-01 17:43:06 [RateCDR] => 1 ) [2025-04-01 17:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 14:43:06' and `end` < '2025-04-01 17:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 17:43:19] Production.INFO: count ==4293 [2025-04-01 17:43:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:43:06 - End Time 2025-04-01 17:43:06 [2025-04-01 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812450', 'tblTempUsageDetail_20' ) start [2025-04-01 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812450', 'tblTempUsageDetail_20' ) end [2025-04-01 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812450', 'tblTempVendorCDR_20' ) start [2025-04-01 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812450', 'tblTempVendorCDR_20' ) end [2025-04-01 17:43:21] Production.INFO: ProcessCDR(1,14812450,1,1,2) [2025-04-01 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812450', 'tblTempUsageDetail_20' ) start [2025-04-01 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812450', 'tblTempUsageDetail_20' ) end [2025-04-01 17:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:43:27] Production.INFO: ==5205== Releasing lock... [2025-04-01 17:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:43:27] Production.INFO: 60.25 MB #Memory Used# [2025-04-01 17:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:44:06 [end_date_ymd] => 2025-04-01 17:44:06 [RateCDR] => 1 ) [2025-04-01 17:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 14:44:06' and `end` < '2025-04-01 17:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 17:44:19] Production.INFO: count ==4287 [2025-04-01 17:44:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:44:06 - End Time 2025-04-01 17:44:06 [2025-04-01 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812455', 'tblTempUsageDetail_20' ) start [2025-04-01 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812455', 'tblTempUsageDetail_20' ) end [2025-04-01 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812455', 'tblTempVendorCDR_20' ) start [2025-04-01 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812455', 'tblTempVendorCDR_20' ) end [2025-04-01 17:44:21] Production.INFO: ProcessCDR(1,14812455,1,1,2) [2025-04-01 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812455', 'tblTempUsageDetail_20' ) start [2025-04-01 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812455', 'tblTempUsageDetail_20' ) end [2025-04-01 17:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:44:27] Production.INFO: ==5279== Releasing lock... [2025-04-01 17:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:44:27] Production.INFO: 60 MB #Memory Used# [2025-04-01 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:45:05 [end_date_ymd] => 2025-04-01 17:45:05 [RateCDR] => 1 ) [2025-04-01 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-01 14:45:05' and `end` < '2025-04-01 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-01 17:45:19] Production.INFO: count ==4276 [2025-04-01 17:45:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:45:05 - End Time 2025-04-01 17:45:05 [2025-04-01 17:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812460', 'tblTempUsageDetail_20' ) start [2025-04-01 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812460', 'tblTempUsageDetail_20' ) end [2025-04-01 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812460', 'tblTempVendorCDR_20' ) start [2025-04-01 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812460', 'tblTempVendorCDR_20' ) end [2025-04-01 17:45:21] Production.INFO: ProcessCDR(1,14812460,1,1,2) [2025-04-01 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812460', 'tblTempUsageDetail_20' ) start [2025-04-01 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812460', 'tblTempUsageDetail_20' ) end [2025-04-01 17:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:45:26] Production.INFO: ==5354== Releasing lock... [2025-04-01 17:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:45:26] Production.INFO: 60 MB #Memory Used# [2025-04-01 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:46:06 [end_date_ymd] => 2025-04-01 17:46:06 [RateCDR] => 1 ) [2025-04-01 17:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 14:46:06' and `end` < '2025-04-01 17:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 17:46:19] Production.INFO: count ==4269 [2025-04-01 17:46:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:46:06 - End Time 2025-04-01 17:46:06 [2025-04-01 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812465', 'tblTempUsageDetail_20' ) start [2025-04-01 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812465', 'tblTempUsageDetail_20' ) end [2025-04-01 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812465', 'tblTempVendorCDR_20' ) start [2025-04-01 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812465', 'tblTempVendorCDR_20' ) end [2025-04-01 17:46:21] Production.INFO: ProcessCDR(1,14812465,1,1,2) [2025-04-01 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812465', 'tblTempUsageDetail_20' ) start [2025-04-01 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812465', 'tblTempUsageDetail_20' ) end [2025-04-01 17:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:46:27] Production.INFO: ==5434== Releasing lock... [2025-04-01 17:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:46:27] Production.INFO: 60 MB #Memory Used# [2025-04-01 17:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:47:06 [end_date_ymd] => 2025-04-01 17:47:06 [RateCDR] => 1 ) [2025-04-01 17:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 14:47:06' and `end` < '2025-04-01 17:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 17:47:19] Production.INFO: count ==4268 [2025-04-01 17:47:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:47:06 - End Time 2025-04-01 17:47:06 [2025-04-01 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812470', 'tblTempUsageDetail_20' ) start [2025-04-01 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812470', 'tblTempUsageDetail_20' ) end [2025-04-01 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812470', 'tblTempVendorCDR_20' ) start [2025-04-01 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812470', 'tblTempVendorCDR_20' ) end [2025-04-01 17:47:21] Production.INFO: ProcessCDR(1,14812470,1,1,2) [2025-04-01 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812470', 'tblTempUsageDetail_20' ) start [2025-04-01 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812470', 'tblTempUsageDetail_20' ) end [2025-04-01 17:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:47:25] Production.INFO: ==5504== Releasing lock... [2025-04-01 17:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:47:25] Production.INFO: 60 MB #Memory Used# [2025-04-01 17:48:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:48:07 [end_date_ymd] => 2025-04-01 17:48:07 [RateCDR] => 1 ) [2025-04-01 17:48: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-01 14:48:07' and `end` < '2025-04-01 17:48: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-01 17:48:20] Production.INFO: count ==4268 [2025-04-01 17:48:22] Production.ERROR: pbx CDR StartTime 2025-04-01 14:48:07 - End Time 2025-04-01 17:48:07 [2025-04-01 17:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812475', 'tblTempUsageDetail_20' ) start [2025-04-01 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812475', 'tblTempUsageDetail_20' ) end [2025-04-01 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812475', 'tblTempVendorCDR_20' ) start [2025-04-01 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812475', 'tblTempVendorCDR_20' ) end [2025-04-01 17:48:22] Production.INFO: ProcessCDR(1,14812475,1,1,2) [2025-04-01 17:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812475', 'tblTempUsageDetail_20' ) start [2025-04-01 17:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812475', 'tblTempUsageDetail_20' ) end [2025-04-01 17:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:48:27] Production.INFO: ==5581== Releasing lock... [2025-04-01 17:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:48:27] Production.INFO: 60 MB #Memory Used# [2025-04-01 17:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:49:06 [end_date_ymd] => 2025-04-01 17:49:06 [RateCDR] => 1 ) [2025-04-01 17: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-01 14:49:06' and `end` < '2025-04-01 17: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-01 17:49:20] Production.INFO: count ==4253 [2025-04-01 17:49:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:49:06 - End Time 2025-04-01 17:49:06 [2025-04-01 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812480', 'tblTempUsageDetail_20' ) start [2025-04-01 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812480', 'tblTempUsageDetail_20' ) end [2025-04-01 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812480', 'tblTempVendorCDR_20' ) start [2025-04-01 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812480', 'tblTempVendorCDR_20' ) end [2025-04-01 17:49:21] Production.INFO: ProcessCDR(1,14812480,1,1,2) [2025-04-01 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812480', 'tblTempUsageDetail_20' ) start [2025-04-01 17:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812480', 'tblTempUsageDetail_20' ) end [2025-04-01 17:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:49:27] Production.INFO: ==5651== Releasing lock... [2025-04-01 17:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:49:27] Production.INFO: 59.75 MB #Memory Used# [2025-04-01 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:50:06 [end_date_ymd] => 2025-04-01 17:50:06 [RateCDR] => 1 ) [2025-04-01 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 14:50:06' and `end` < '2025-04-01 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 17:50:19] Production.INFO: count ==4236 [2025-04-01 17:50:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:50:06 - End Time 2025-04-01 17:50:06 [2025-04-01 17:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812486', 'tblTempUsageDetail_20' ) start [2025-04-01 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812486', 'tblTempUsageDetail_20' ) end [2025-04-01 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812486', 'tblTempVendorCDR_20' ) start [2025-04-01 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812486', 'tblTempVendorCDR_20' ) end [2025-04-01 17:50:21] Production.INFO: ProcessCDR(1,14812486,1,1,2) [2025-04-01 17:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812486', 'tblTempUsageDetail_20' ) start [2025-04-01 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812486', 'tblTempUsageDetail_20' ) end [2025-04-01 17:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:50:27] Production.INFO: ==5722== Releasing lock... [2025-04-01 17:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:50:27] Production.INFO: 59.75 MB #Memory Used# [2025-04-01 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:51:05 [end_date_ymd] => 2025-04-01 17:51:05 [RateCDR] => 1 ) [2025-04-01 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-01 14:51:05' and `end` < '2025-04-01 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-01 17:51:19] Production.INFO: count ==4208 [2025-04-01 17:51:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:51:05 - End Time 2025-04-01 17:51:05 [2025-04-01 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812491', 'tblTempUsageDetail_20' ) start [2025-04-01 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812491', 'tblTempUsageDetail_20' ) end [2025-04-01 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812491', 'tblTempVendorCDR_20' ) start [2025-04-01 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812491', 'tblTempVendorCDR_20' ) end [2025-04-01 17:51:21] Production.INFO: ProcessCDR(1,14812491,1,1,2) [2025-04-01 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812491', 'tblTempUsageDetail_20' ) start [2025-04-01 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812491', 'tblTempUsageDetail_20' ) end [2025-04-01 17:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:51:26] Production.INFO: ==5835== Releasing lock... [2025-04-01 17:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:51:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-01 17:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:52:06 [end_date_ymd] => 2025-04-01 17:52:06 [RateCDR] => 1 ) [2025-04-01 17:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 14:52:06' and `end` < '2025-04-01 17: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-01 17:52:19] Production.INFO: count ==4201 [2025-04-01 17:52:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:52:06 - End Time 2025-04-01 17:52:06 [2025-04-01 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812496', 'tblTempUsageDetail_20' ) start [2025-04-01 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812496', 'tblTempUsageDetail_20' ) end [2025-04-01 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812496', 'tblTempVendorCDR_20' ) start [2025-04-01 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812496', 'tblTempVendorCDR_20' ) end [2025-04-01 17:52:21] Production.INFO: ProcessCDR(1,14812496,1,1,2) [2025-04-01 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812496', 'tblTempUsageDetail_20' ) start [2025-04-01 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812496', 'tblTempUsageDetail_20' ) end [2025-04-01 17:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:52:26] Production.INFO: ==5906== Releasing lock... [2025-04-01 17:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:52:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-01 17:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:53:06 [end_date_ymd] => 2025-04-01 17:53:06 [RateCDR] => 1 ) [2025-04-01 17: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-01 14:53:06' and `end` < '2025-04-01 17: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-01 17:53:20] Production.INFO: count ==4185 [2025-04-01 17:53:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:53:06 - End Time 2025-04-01 17:53:06 [2025-04-01 17:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812501', 'tblTempUsageDetail_20' ) start [2025-04-01 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812501', 'tblTempUsageDetail_20' ) end [2025-04-01 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812501', 'tblTempVendorCDR_20' ) start [2025-04-01 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812501', 'tblTempVendorCDR_20' ) end [2025-04-01 17:53:21] Production.INFO: ProcessCDR(1,14812501,1,1,2) [2025-04-01 17:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812501', 'tblTempUsageDetail_20' ) start [2025-04-01 17:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812501', 'tblTempUsageDetail_20' ) end [2025-04-01 17:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:53:27] Production.INFO: ==5979== Releasing lock... [2025-04-01 17:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:53:27] Production.INFO: 59.25 MB #Memory Used# [2025-04-01 17:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:54:06 [end_date_ymd] => 2025-04-01 17:54:06 [RateCDR] => 1 ) [2025-04-01 17:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 14:54:06' and `end` < '2025-04-01 17:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 17:54:19] Production.INFO: count ==4168 [2025-04-01 17:54:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:54:06 - End Time 2025-04-01 17:54:06 [2025-04-01 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812506', 'tblTempUsageDetail_20' ) start [2025-04-01 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812506', 'tblTempUsageDetail_20' ) end [2025-04-01 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812506', 'tblTempVendorCDR_20' ) start [2025-04-01 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812506', 'tblTempVendorCDR_20' ) end [2025-04-01 17:54:21] Production.INFO: ProcessCDR(1,14812506,1,1,2) [2025-04-01 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812506', 'tblTempUsageDetail_20' ) start [2025-04-01 17:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812506', 'tblTempUsageDetail_20' ) end [2025-04-01 17:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:54:27] Production.INFO: ==6050== Releasing lock... [2025-04-01 17:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:54:27] Production.INFO: 59.25 MB #Memory Used# [2025-04-01 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:55:06 [end_date_ymd] => 2025-04-01 17:55:06 [RateCDR] => 1 ) [2025-04-01 17: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-01 14:55:06' and `end` < '2025-04-01 17: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-01 17:55:19] Production.INFO: count ==4154 [2025-04-01 17:55:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:55:06 - End Time 2025-04-01 17:55:06 [2025-04-01 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812511', 'tblTempUsageDetail_20' ) start [2025-04-01 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812511', 'tblTempUsageDetail_20' ) end [2025-04-01 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812511', 'tblTempVendorCDR_20' ) start [2025-04-01 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812511', 'tblTempVendorCDR_20' ) end [2025-04-01 17:55:21] Production.INFO: ProcessCDR(1,14812511,1,1,2) [2025-04-01 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812511', 'tblTempUsageDetail_20' ) start [2025-04-01 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812511', 'tblTempUsageDetail_20' ) end [2025-04-01 17:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:55:27] Production.INFO: ==6126== Releasing lock... [2025-04-01 17:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:55:27] Production.INFO: 59 MB #Memory Used# [2025-04-01 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:56:05 [end_date_ymd] => 2025-04-01 17:56:05 [RateCDR] => 1 ) [2025-04-01 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-01 14:56:05' and `end` < '2025-04-01 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-01 17:56:19] Production.INFO: count ==4153 [2025-04-01 17:56:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:56:05 - End Time 2025-04-01 17:56:05 [2025-04-01 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812516', 'tblTempUsageDetail_20' ) start [2025-04-01 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812516', 'tblTempUsageDetail_20' ) end [2025-04-01 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812516', 'tblTempVendorCDR_20' ) start [2025-04-01 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812516', 'tblTempVendorCDR_20' ) end [2025-04-01 17:56:21] Production.INFO: ProcessCDR(1,14812516,1,1,2) [2025-04-01 17:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812516', 'tblTempUsageDetail_20' ) start [2025-04-01 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812516', 'tblTempUsageDetail_20' ) end [2025-04-01 17:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:56:25] Production.INFO: ==6200== Releasing lock... [2025-04-01 17:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:56:25] Production.INFO: 59 MB #Memory Used# [2025-04-01 17:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:57:06 [end_date_ymd] => 2025-04-01 17:57:06 [RateCDR] => 1 ) [2025-04-01 17: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-01 14:57:06' and `end` < '2025-04-01 17: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-01 17:57:19] Production.INFO: count ==4131 [2025-04-01 17:57:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:57:06 - End Time 2025-04-01 17:57:06 [2025-04-01 17:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812521', 'tblTempUsageDetail_20' ) start [2025-04-01 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812521', 'tblTempUsageDetail_20' ) end [2025-04-01 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812521', 'tblTempVendorCDR_20' ) start [2025-04-01 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812521', 'tblTempVendorCDR_20' ) end [2025-04-01 17:57:21] Production.INFO: ProcessCDR(1,14812521,1,1,2) [2025-04-01 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812521', 'tblTempUsageDetail_20' ) start [2025-04-01 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812521', 'tblTempUsageDetail_20' ) end [2025-04-01 17:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:57:25] Production.INFO: ==6271== Releasing lock... [2025-04-01 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:57:25] Production.INFO: 59 MB #Memory Used# [2025-04-01 17:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:58:06 [end_date_ymd] => 2025-04-01 17:58:06 [RateCDR] => 1 ) [2025-04-01 17:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 14:58:06' and `end` < '2025-04-01 17:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 17:58:19] Production.INFO: count ==4096 [2025-04-01 17:58:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:58:06 - End Time 2025-04-01 17:58:06 [2025-04-01 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812526', 'tblTempUsageDetail_20' ) start [2025-04-01 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812526', 'tblTempUsageDetail_20' ) end [2025-04-01 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812526', 'tblTempVendorCDR_20' ) start [2025-04-01 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812526', 'tblTempVendorCDR_20' ) end [2025-04-01 17:58:21] Production.INFO: ProcessCDR(1,14812526,1,1,2) [2025-04-01 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812526', 'tblTempUsageDetail_20' ) start [2025-04-01 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812526', 'tblTempUsageDetail_20' ) end [2025-04-01 17:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:58:25] Production.INFO: ==6343== Releasing lock... [2025-04-01 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:58:25] Production.INFO: 58.5 MB #Memory Used# [2025-04-01 17:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 14:59:06 [end_date_ymd] => 2025-04-01 17:59:06 [RateCDR] => 1 ) [2025-04-01 17: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-01 14:59:06' and `end` < '2025-04-01 17: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-01 17:59:19] Production.INFO: count ==4088 [2025-04-01 17:59:21] Production.ERROR: pbx CDR StartTime 2025-04-01 14:59:06 - End Time 2025-04-01 17:59:06 [2025-04-01 17:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812531', 'tblTempUsageDetail_20' ) start [2025-04-01 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812531', 'tblTempUsageDetail_20' ) end [2025-04-01 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812531', 'tblTempVendorCDR_20' ) start [2025-04-01 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812531', 'tblTempVendorCDR_20' ) end [2025-04-01 17:59:21] Production.INFO: ProcessCDR(1,14812531,1,1,2) [2025-04-01 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 17:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 17:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812531', 'tblTempUsageDetail_20' ) start [2025-04-01 17:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812531', 'tblTempUsageDetail_20' ) end [2025-04-01 17:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 17:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 17:59:27] Production.INFO: ==6418== Releasing lock... [2025-04-01 17:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 17:59:27] Production.INFO: 58.5 MB #Memory Used# [2025-04-01 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:00:06 [end_date_ymd] => 2025-04-01 18:00:06 [RateCDR] => 1 ) [2025-04-01 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-01 15:00:06' and `end` < '2025-04-01 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-01 18:00:20] Production.INFO: count ==4090 [2025-04-01 18:00:21] Production.ERROR: pbx CDR StartTime 2025-04-01 15:00:06 - End Time 2025-04-01 18:00:06 [2025-04-01 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812536', 'tblTempUsageDetail_20' ) start [2025-04-01 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812536', 'tblTempUsageDetail_20' ) end [2025-04-01 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812536', 'tblTempVendorCDR_20' ) start [2025-04-01 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812536', 'tblTempVendorCDR_20' ) end [2025-04-01 18:00:22] Production.INFO: ProcessCDR(1,14812536,1,1,2) [2025-04-01 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812536', 'tblTempUsageDetail_20' ) start [2025-04-01 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812536', 'tblTempUsageDetail_20' ) end [2025-04-01 18:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:00:27] Production.INFO: ==6491== Releasing lock... [2025-04-01 18:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:00:27] Production.INFO: 58.5 MB #Memory Used# [2025-04-01 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:01:06 [end_date_ymd] => 2025-04-01 18:01:06 [RateCDR] => 1 ) [2025-04-01 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-01 15:01:06' and `end` < '2025-04-01 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-01 18:01:20] Production.INFO: count ==4046 [2025-04-01 18:01:21] Production.ERROR: pbx CDR StartTime 2025-04-01 15:01:06 - End Time 2025-04-01 18:01:06 [2025-04-01 18:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812542', 'tblTempUsageDetail_20' ) start [2025-04-01 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812542', 'tblTempUsageDetail_20' ) end [2025-04-01 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812542', 'tblTempVendorCDR_20' ) start [2025-04-01 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812542', 'tblTempVendorCDR_20' ) end [2025-04-01 18:01:21] Production.INFO: ProcessCDR(1,14812542,1,1,2) [2025-04-01 18:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812542', 'tblTempUsageDetail_20' ) start [2025-04-01 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812542', 'tblTempUsageDetail_20' ) end [2025-04-01 18:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:01:27] Production.INFO: ==6578== Releasing lock... [2025-04-01 18:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:01:27] Production.INFO: 58.5 MB #Memory Used# [2025-04-01 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:02:06 [end_date_ymd] => 2025-04-01 18:02:06 [RateCDR] => 1 ) [2025-04-01 18:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 15:02:06' and `end` < '2025-04-01 18:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 18:02:19] Production.INFO: count ==4035 [2025-04-01 18:02:21] Production.ERROR: pbx CDR StartTime 2025-04-01 15:02:06 - End Time 2025-04-01 18:02:06 [2025-04-01 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812547', 'tblTempUsageDetail_20' ) start [2025-04-01 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812547', 'tblTempUsageDetail_20' ) end [2025-04-01 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812547', 'tblTempVendorCDR_20' ) start [2025-04-01 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812547', 'tblTempVendorCDR_20' ) end [2025-04-01 18:02:21] Production.INFO: ProcessCDR(1,14812547,1,1,2) [2025-04-01 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812547', 'tblTempUsageDetail_20' ) start [2025-04-01 18:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812547', 'tblTempUsageDetail_20' ) end [2025-04-01 18:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:02:27] Production.INFO: ==6648== Releasing lock... [2025-04-01 18:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:02:27] Production.INFO: 58.25 MB #Memory Used# [2025-04-01 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:03:05 [end_date_ymd] => 2025-04-01 18:03:05 [RateCDR] => 1 ) [2025-04-01 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-01 15:03:05' and `end` < '2025-04-01 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-01 18:03:19] Production.INFO: count ==4027 [2025-04-01 18:03:21] Production.ERROR: pbx CDR StartTime 2025-04-01 15:03:05 - End Time 2025-04-01 18:03:05 [2025-04-01 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812552', 'tblTempUsageDetail_20' ) start [2025-04-01 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812552', 'tblTempUsageDetail_20' ) end [2025-04-01 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812552', 'tblTempVendorCDR_20' ) start [2025-04-01 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812552', 'tblTempVendorCDR_20' ) end [2025-04-01 18:03:21] Production.INFO: ProcessCDR(1,14812552,1,1,2) [2025-04-01 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812552', 'tblTempUsageDetail_20' ) start [2025-04-01 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812552', 'tblTempUsageDetail_20' ) end [2025-04-01 18:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:03:25] Production.INFO: ==6720== Releasing lock... [2025-04-01 18:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:03:25] Production.INFO: 58.25 MB #Memory Used# [2025-04-01 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:04:06 [end_date_ymd] => 2025-04-01 18:04:06 [RateCDR] => 1 ) [2025-04-01 18: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-01 15:04:06' and `end` < '2025-04-01 18: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-01 18:04:19] Production.INFO: count ==4046 [2025-04-01 18:04:21] Production.ERROR: pbx CDR StartTime 2025-04-01 15:04:06 - End Time 2025-04-01 18:04:06 [2025-04-01 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812557', 'tblTempUsageDetail_20' ) start [2025-04-01 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812557', 'tblTempUsageDetail_20' ) end [2025-04-01 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812557', 'tblTempVendorCDR_20' ) start [2025-04-01 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812557', 'tblTempVendorCDR_20' ) end [2025-04-01 18:04:21] Production.INFO: ProcessCDR(1,14812557,1,1,2) [2025-04-01 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812557', 'tblTempUsageDetail_20' ) start [2025-04-01 18:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812557', 'tblTempUsageDetail_20' ) end [2025-04-01 18:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:04:27] Production.INFO: ==6794== Releasing lock... [2025-04-01 18:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:04:27] Production.INFO: 58.25 MB #Memory Used# [2025-04-01 18:05:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:05:07 [end_date_ymd] => 2025-04-01 18:05:07 [RateCDR] => 1 ) [2025-04-01 18:05: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-01 15:05:07' and `end` < '2025-04-01 18:05: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-01 18:05:20] Production.INFO: count ==4061 [2025-04-01 18:05:22] Production.ERROR: pbx CDR StartTime 2025-04-01 15:05:07 - End Time 2025-04-01 18:05:07 [2025-04-01 18:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812562', 'tblTempUsageDetail_20' ) start [2025-04-01 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812562', 'tblTempUsageDetail_20' ) end [2025-04-01 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812562', 'tblTempVendorCDR_20' ) start [2025-04-01 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812562', 'tblTempVendorCDR_20' ) end [2025-04-01 18:05:22] Production.INFO: ProcessCDR(1,14812562,1,1,2) [2025-04-01 18:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812562', 'tblTempUsageDetail_20' ) start [2025-04-01 18:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812562', 'tblTempUsageDetail_20' ) end [2025-04-01 18:05:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:05:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:05:28] Production.INFO: ==6866== Releasing lock... [2025-04-01 18:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:05:28] Production.INFO: 58.25 MB #Memory Used# [2025-04-01 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:06:06 [end_date_ymd] => 2025-04-01 18:06:06 [RateCDR] => 1 ) [2025-04-01 18:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 15:06:06' and `end` < '2025-04-01 18:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 18:06:19] Production.INFO: count ==4050 [2025-04-01 18:06:21] Production.ERROR: pbx CDR StartTime 2025-04-01 15:06:06 - End Time 2025-04-01 18:06:06 [2025-04-01 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812567', 'tblTempUsageDetail_20' ) start [2025-04-01 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812567', 'tblTempUsageDetail_20' ) end [2025-04-01 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812567', 'tblTempVendorCDR_20' ) start [2025-04-01 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812567', 'tblTempVendorCDR_20' ) end [2025-04-01 18:06:21] Production.INFO: ProcessCDR(1,14812567,1,1,2) [2025-04-01 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812567', 'tblTempUsageDetail_20' ) start [2025-04-01 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812567', 'tblTempUsageDetail_20' ) end [2025-04-01 18:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:06:25] Production.INFO: ==6979== Releasing lock... [2025-04-01 18:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:06:25] Production.INFO: 58.75 MB #Memory Used# [2025-04-01 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:07:05 [end_date_ymd] => 2025-04-01 18:07:05 [RateCDR] => 1 ) [2025-04-01 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-01 15:07:05' and `end` < '2025-04-01 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-01 18:07:19] Production.INFO: count ==4039 [2025-04-01 18:07:20] Production.ERROR: pbx CDR StartTime 2025-04-01 15:07:05 - End Time 2025-04-01 18:07:05 [2025-04-01 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812572', 'tblTempUsageDetail_20' ) start [2025-04-01 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812572', 'tblTempUsageDetail_20' ) end [2025-04-01 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812572', 'tblTempVendorCDR_20' ) start [2025-04-01 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812572', 'tblTempVendorCDR_20' ) end [2025-04-01 18:07:20] Production.INFO: ProcessCDR(1,14812572,1,1,2) [2025-04-01 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812572', 'tblTempUsageDetail_20' ) start [2025-04-01 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812572', 'tblTempUsageDetail_20' ) end [2025-04-01 18:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:07:24] Production.INFO: ==7052== Releasing lock... [2025-04-01 18:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:07:24] Production.INFO: 58.25 MB #Memory Used# [2025-04-01 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:08:05 [end_date_ymd] => 2025-04-01 18:08:05 [RateCDR] => 1 ) [2025-04-01 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-01 15:08:05' and `end` < '2025-04-01 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-01 18:08:18] Production.INFO: count ==4044 [2025-04-01 18:08:20] Production.ERROR: pbx CDR StartTime 2025-04-01 15:08:05 - End Time 2025-04-01 18:08:05 [2025-04-01 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812577', 'tblTempUsageDetail_20' ) start [2025-04-01 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812577', 'tblTempUsageDetail_20' ) end [2025-04-01 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812577', 'tblTempVendorCDR_20' ) start [2025-04-01 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812577', 'tblTempVendorCDR_20' ) end [2025-04-01 18:08:20] Production.INFO: ProcessCDR(1,14812577,1,1,2) [2025-04-01 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812577', 'tblTempUsageDetail_20' ) start [2025-04-01 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812577', 'tblTempUsageDetail_20' ) end [2025-04-01 18:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:08:26] Production.INFO: ==7124== Releasing lock... [2025-04-01 18:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:08:26] Production.INFO: 58.25 MB #Memory Used# [2025-04-01 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:09:05 [end_date_ymd] => 2025-04-01 18:09:05 [RateCDR] => 1 ) [2025-04-01 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-01 15:09:05' and `end` < '2025-04-01 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-01 18:09:18] Production.INFO: count ==4051 [2025-04-01 18:09:20] Production.ERROR: pbx CDR StartTime 2025-04-01 15:09:05 - End Time 2025-04-01 18:09:05 [2025-04-01 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812582', 'tblTempUsageDetail_20' ) start [2025-04-01 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812582', 'tblTempUsageDetail_20' ) end [2025-04-01 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812582', 'tblTempVendorCDR_20' ) start [2025-04-01 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812582', 'tblTempVendorCDR_20' ) end [2025-04-01 18:09:20] Production.INFO: ProcessCDR(1,14812582,1,1,2) [2025-04-01 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812582', 'tblTempUsageDetail_20' ) start [2025-04-01 18:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812582', 'tblTempUsageDetail_20' ) end [2025-04-01 18:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:09:26] Production.INFO: ==7221== Releasing lock... [2025-04-01 18:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:09:26] Production.INFO: 58.5 MB #Memory Used# [2025-04-01 18:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:10:07 [end_date_ymd] => 2025-04-01 18:10:07 [RateCDR] => 1 ) [2025-04-01 18:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 15:10:07' and `end` < '2025-04-01 18:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 18:10:21] Production.INFO: count ==4031 [2025-04-01 18:10:22] Production.ERROR: pbx CDR StartTime 2025-04-01 15:10:07 - End Time 2025-04-01 18:10:07 [2025-04-01 18:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812588', 'tblTempUsageDetail_20' ) start [2025-04-01 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812588', 'tblTempUsageDetail_20' ) end [2025-04-01 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812588', 'tblTempVendorCDR_20' ) start [2025-04-01 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812588', 'tblTempVendorCDR_20' ) end [2025-04-01 18:10:22] Production.INFO: ProcessCDR(1,14812588,1,1,2) [2025-04-01 18:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812588', 'tblTempUsageDetail_20' ) start [2025-04-01 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812588', 'tblTempUsageDetail_20' ) end [2025-04-01 18:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:10:26] Production.INFO: ==7298== Releasing lock... [2025-04-01 18:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:10:26] Production.INFO: 58 MB #Memory Used# [2025-04-01 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:11:05 [end_date_ymd] => 2025-04-01 18:11:05 [RateCDR] => 1 ) [2025-04-01 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-01 15:11:05' and `end` < '2025-04-01 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-01 18:11:19] Production.INFO: count ==3980 [2025-04-01 18:11:20] Production.ERROR: pbx CDR StartTime 2025-04-01 15:11:05 - End Time 2025-04-01 18:11:05 [2025-04-01 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812593', 'tblTempUsageDetail_20' ) start [2025-04-01 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812593', 'tblTempUsageDetail_20' ) end [2025-04-01 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812593', 'tblTempVendorCDR_20' ) start [2025-04-01 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812593', 'tblTempVendorCDR_20' ) end [2025-04-01 18:11:20] Production.INFO: ProcessCDR(1,14812593,1,1,2) [2025-04-01 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812593', 'tblTempUsageDetail_20' ) start [2025-04-01 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812593', 'tblTempUsageDetail_20' ) end [2025-04-01 18:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:11:26] Production.INFO: ==7370== Releasing lock... [2025-04-01 18:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:11:26] Production.INFO: 58 MB #Memory Used# [2025-04-01 18:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:12:06 [end_date_ymd] => 2025-04-01 18:12:06 [RateCDR] => 1 ) [2025-04-01 18:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 15:12:06' and `end` < '2025-04-01 18:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 18:12:19] Production.INFO: count ==3974 [2025-04-01 18:12:21] Production.ERROR: pbx CDR StartTime 2025-04-01 15:12:06 - End Time 2025-04-01 18:12:06 [2025-04-01 18:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812598', 'tblTempUsageDetail_20' ) start [2025-04-01 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812598', 'tblTempUsageDetail_20' ) end [2025-04-01 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812598', 'tblTempVendorCDR_20' ) start [2025-04-01 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812598', 'tblTempVendorCDR_20' ) end [2025-04-01 18:12:21] Production.INFO: ProcessCDR(1,14812598,1,1,2) [2025-04-01 18:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812598', 'tblTempUsageDetail_20' ) start [2025-04-01 18:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812598', 'tblTempUsageDetail_20' ) end [2025-04-01 18:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:12:26] Production.INFO: ==7443== Releasing lock... [2025-04-01 18:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:12:26] Production.INFO: 57.75 MB #Memory Used# [2025-04-01 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:13:05 [end_date_ymd] => 2025-04-01 18:13:05 [RateCDR] => 1 ) [2025-04-01 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-01 15:13:05' and `end` < '2025-04-01 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-01 18:13:19] Production.INFO: count ==3970 [2025-04-01 18:13:21] Production.ERROR: pbx CDR StartTime 2025-04-01 15:13:05 - End Time 2025-04-01 18:13:05 [2025-04-01 18:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812603', 'tblTempUsageDetail_20' ) start [2025-04-01 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812603', 'tblTempUsageDetail_20' ) end [2025-04-01 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812603', 'tblTempVendorCDR_20' ) start [2025-04-01 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812603', 'tblTempVendorCDR_20' ) end [2025-04-01 18:13:21] Production.INFO: ProcessCDR(1,14812603,1,1,2) [2025-04-01 18:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812603', 'tblTempUsageDetail_20' ) start [2025-04-01 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812603', 'tblTempUsageDetail_20' ) end [2025-04-01 18:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:13:26] Production.INFO: ==7513== Releasing lock... [2025-04-01 18:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:13:26] Production.INFO: 57.75 MB #Memory Used# [2025-04-01 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:14:06 [end_date_ymd] => 2025-04-01 18:14:06 [RateCDR] => 1 ) [2025-04-01 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-01 15:14:06' and `end` < '2025-04-01 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-01 18:14:19] Production.INFO: count ==3958 [2025-04-01 18:14:21] Production.ERROR: pbx CDR StartTime 2025-04-01 15:14:06 - End Time 2025-04-01 18:14:06 [2025-04-01 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812608', 'tblTempUsageDetail_20' ) start [2025-04-01 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812608', 'tblTempUsageDetail_20' ) end [2025-04-01 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812608', 'tblTempVendorCDR_20' ) start [2025-04-01 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812608', 'tblTempVendorCDR_20' ) end [2025-04-01 18:14:21] Production.INFO: ProcessCDR(1,14812608,1,1,2) [2025-04-01 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812608', 'tblTempUsageDetail_20' ) start [2025-04-01 18:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812608', 'tblTempUsageDetail_20' ) end [2025-04-01 18:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:14:27] Production.INFO: ==7586== Releasing lock... [2025-04-01 18:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:14:27] Production.INFO: 57.5 MB #Memory Used# [2025-04-01 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:15:05 [end_date_ymd] => 2025-04-01 18:15:05 [RateCDR] => 1 ) [2025-04-01 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-01 15:15:05' and `end` < '2025-04-01 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-01 18:15:19] Production.INFO: count ==3947 [2025-04-01 18:15:20] Production.ERROR: pbx CDR StartTime 2025-04-01 15:15:05 - End Time 2025-04-01 18:15:05 [2025-04-01 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812613', 'tblTempUsageDetail_20' ) start [2025-04-01 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812613', 'tblTempUsageDetail_20' ) end [2025-04-01 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812613', 'tblTempVendorCDR_20' ) start [2025-04-01 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812613', 'tblTempVendorCDR_20' ) end [2025-04-01 18:15:21] Production.INFO: ProcessCDR(1,14812613,1,1,2) [2025-04-01 18:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812613', 'tblTempUsageDetail_20' ) start [2025-04-01 18:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812613', 'tblTempUsageDetail_20' ) end [2025-04-01 18:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:15:27] Production.INFO: ==7664== Releasing lock... [2025-04-01 18:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:15:27] Production.INFO: 57.75 MB #Memory Used# [2025-04-01 18:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:16:06 [end_date_ymd] => 2025-04-01 18:16:06 [RateCDR] => 1 ) [2025-04-01 18:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 15:16:06' and `end` < '2025-04-01 18:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 18:16:19] Production.INFO: count ==3935 [2025-04-01 18:16:21] Production.ERROR: pbx CDR StartTime 2025-04-01 15:16:06 - End Time 2025-04-01 18:16:06 [2025-04-01 18:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812618', 'tblTempUsageDetail_20' ) start [2025-04-01 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812618', 'tblTempUsageDetail_20' ) end [2025-04-01 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812618', 'tblTempVendorCDR_20' ) start [2025-04-01 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812618', 'tblTempVendorCDR_20' ) end [2025-04-01 18:16:21] Production.INFO: ProcessCDR(1,14812618,1,1,2) [2025-04-01 18:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812618', 'tblTempUsageDetail_20' ) start [2025-04-01 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812618', 'tblTempUsageDetail_20' ) end [2025-04-01 18:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:16:25] Production.INFO: ==7737== Releasing lock... [2025-04-01 18:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:16:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-01 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:17:05 [end_date_ymd] => 2025-04-01 18:17:05 [RateCDR] => 1 ) [2025-04-01 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-01 15:17:05' and `end` < '2025-04-01 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-01 18:17:19] Production.INFO: count ==3921 [2025-04-01 18:17:20] Production.ERROR: pbx CDR StartTime 2025-04-01 15:17:05 - End Time 2025-04-01 18:17:05 [2025-04-01 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812623', 'tblTempUsageDetail_20' ) start [2025-04-01 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812623', 'tblTempUsageDetail_20' ) end [2025-04-01 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812623', 'tblTempVendorCDR_20' ) start [2025-04-01 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812623', 'tblTempVendorCDR_20' ) end [2025-04-01 18:17:20] Production.INFO: ProcessCDR(1,14812623,1,1,2) [2025-04-01 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812623', 'tblTempUsageDetail_20' ) start [2025-04-01 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812623', 'tblTempUsageDetail_20' ) end [2025-04-01 18:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:17:26] Production.INFO: ==7810== Releasing lock... [2025-04-01 18:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:17:26] Production.INFO: 57.25 MB #Memory Used# [2025-04-01 18:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:18:06 [end_date_ymd] => 2025-04-01 18:18:06 [RateCDR] => 1 ) [2025-04-01 18: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-01 15:18:06' and `end` < '2025-04-01 18: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-01 18:18:19] Production.INFO: count ==3909 [2025-04-01 18:18:21] Production.ERROR: pbx CDR StartTime 2025-04-01 15:18:06 - End Time 2025-04-01 18:18:06 [2025-04-01 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812628', 'tblTempUsageDetail_20' ) start [2025-04-01 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812628', 'tblTempUsageDetail_20' ) end [2025-04-01 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812628', 'tblTempVendorCDR_20' ) start [2025-04-01 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812628', 'tblTempVendorCDR_20' ) end [2025-04-01 18:18:21] Production.INFO: ProcessCDR(1,14812628,1,1,2) [2025-04-01 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812628', 'tblTempUsageDetail_20' ) start [2025-04-01 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812628', 'tblTempUsageDetail_20' ) end [2025-04-01 18:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:18:25] Production.INFO: ==7879== Releasing lock... [2025-04-01 18:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:18:25] Production.INFO: 57.5 MB #Memory Used# [2025-04-01 18:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:19:06 [end_date_ymd] => 2025-04-01 18:19:06 [RateCDR] => 1 ) [2025-04-01 18: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-01 15:19:06' and `end` < '2025-04-01 18: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-01 18:19:19] Production.INFO: count ==3912 [2025-04-01 18:19:21] Production.ERROR: pbx CDR StartTime 2025-04-01 15:19:06 - End Time 2025-04-01 18:19:06 [2025-04-01 18:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812633', 'tblTempUsageDetail_20' ) start [2025-04-01 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812633', 'tblTempUsageDetail_20' ) end [2025-04-01 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812633', 'tblTempVendorCDR_20' ) start [2025-04-01 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812633', 'tblTempVendorCDR_20' ) end [2025-04-01 18:19:21] Production.INFO: ProcessCDR(1,14812633,1,1,2) [2025-04-01 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812633', 'tblTempUsageDetail_20' ) start [2025-04-01 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812633', 'tblTempUsageDetail_20' ) end [2025-04-01 18:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:19:26] Production.INFO: ==7950== Releasing lock... [2025-04-01 18:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:19:26] Production.INFO: 57.25 MB #Memory Used# [2025-04-01 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:20:06 [end_date_ymd] => 2025-04-01 18:20:06 [RateCDR] => 1 ) [2025-04-01 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-01 15:20:06' and `end` < '2025-04-01 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-01 18:20:20] Production.INFO: count ==3901 [2025-04-01 18:20:21] Production.ERROR: pbx CDR StartTime 2025-04-01 15:20:06 - End Time 2025-04-01 18:20:06 [2025-04-01 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812639', 'tblTempUsageDetail_20' ) start [2025-04-01 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812639', 'tblTempUsageDetail_20' ) end [2025-04-01 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812639', 'tblTempVendorCDR_20' ) start [2025-04-01 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812639', 'tblTempVendorCDR_20' ) end [2025-04-01 18:20:22] Production.INFO: ProcessCDR(1,14812639,1,1,2) [2025-04-01 18:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812639', 'tblTempUsageDetail_20' ) start [2025-04-01 18:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812639', 'tblTempUsageDetail_20' ) end [2025-04-01 18:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:20:27] Production.INFO: ==8026== Releasing lock... [2025-04-01 18:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:20:27] Production.INFO: 57 MB #Memory Used# [2025-04-01 18:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:21:06 [end_date_ymd] => 2025-04-01 18:21:06 [RateCDR] => 1 ) [2025-04-01 18:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 15:21:06' and `end` < '2025-04-01 18:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 18:21:19] Production.INFO: count ==3872 [2025-04-01 18:21:21] Production.ERROR: pbx CDR StartTime 2025-04-01 15:21:06 - End Time 2025-04-01 18:21:06 [2025-04-01 18:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812644', 'tblTempUsageDetail_20' ) start [2025-04-01 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812644', 'tblTempUsageDetail_20' ) end [2025-04-01 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812644', 'tblTempVendorCDR_20' ) start [2025-04-01 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812644', 'tblTempVendorCDR_20' ) end [2025-04-01 18:21:21] Production.INFO: ProcessCDR(1,14812644,1,1,2) [2025-04-01 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812644', 'tblTempUsageDetail_20' ) start [2025-04-01 18:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812644', 'tblTempUsageDetail_20' ) end [2025-04-01 18:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:21:27] Production.INFO: ==8098== Releasing lock... [2025-04-01 18:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:21:27] Production.INFO: 57 MB #Memory Used# [2025-04-01 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:22:06 [end_date_ymd] => 2025-04-01 18:22:06 [RateCDR] => 1 ) [2025-04-01 18:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 15:22:06' and `end` < '2025-04-01 18:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 18:22:19] Production.INFO: count ==3844 [2025-04-01 18:22:21] Production.ERROR: pbx CDR StartTime 2025-04-01 15:22:06 - End Time 2025-04-01 18:22:06 [2025-04-01 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812649', 'tblTempUsageDetail_20' ) start [2025-04-01 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812649', 'tblTempUsageDetail_20' ) end [2025-04-01 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812649', 'tblTempVendorCDR_20' ) start [2025-04-01 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812649', 'tblTempVendorCDR_20' ) end [2025-04-01 18:22:21] Production.INFO: ProcessCDR(1,14812649,1,1,2) [2025-04-01 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812649', 'tblTempUsageDetail_20' ) start [2025-04-01 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812649', 'tblTempUsageDetail_20' ) end [2025-04-01 18:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:22:26] Production.INFO: ==8212== Releasing lock... [2025-04-01 18:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:22:26] Production.INFO: 56.75 MB #Memory Used# [2025-04-01 18:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:23:06 [end_date_ymd] => 2025-04-01 18:23:06 [RateCDR] => 1 ) [2025-04-01 18:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 15:23:06' and `end` < '2025-04-01 18:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 18:23:19] Production.INFO: count ==3829 [2025-04-01 18:23:21] Production.ERROR: pbx CDR StartTime 2025-04-01 15:23:06 - End Time 2025-04-01 18:23:06 [2025-04-01 18:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812654', 'tblTempUsageDetail_20' ) start [2025-04-01 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812654', 'tblTempUsageDetail_20' ) end [2025-04-01 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812654', 'tblTempVendorCDR_20' ) start [2025-04-01 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812654', 'tblTempVendorCDR_20' ) end [2025-04-01 18:23:21] Production.INFO: ProcessCDR(1,14812654,1,1,2) [2025-04-01 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812654', 'tblTempUsageDetail_20' ) start [2025-04-01 18:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812654', 'tblTempUsageDetail_20' ) end [2025-04-01 18:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:23:27] Production.INFO: ==8283== Releasing lock... [2025-04-01 18:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:23:27] Production.INFO: 57 MB #Memory Used# [2025-04-01 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:24:05 [end_date_ymd] => 2025-04-01 18:24:05 [RateCDR] => 1 ) [2025-04-01 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-01 15:24:05' and `end` < '2025-04-01 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-01 18:24:19] Production.INFO: count ==3807 [2025-04-01 18:24:20] Production.ERROR: pbx CDR StartTime 2025-04-01 15:24:05 - End Time 2025-04-01 18:24:05 [2025-04-01 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812659', 'tblTempUsageDetail_20' ) start [2025-04-01 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812659', 'tblTempUsageDetail_20' ) end [2025-04-01 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812659', 'tblTempVendorCDR_20' ) start [2025-04-01 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812659', 'tblTempVendorCDR_20' ) end [2025-04-01 18:24:20] Production.INFO: ProcessCDR(1,14812659,1,1,2) [2025-04-01 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812659', 'tblTempUsageDetail_20' ) start [2025-04-01 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812659', 'tblTempUsageDetail_20' ) end [2025-04-01 18:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:24:26] Production.INFO: ==8355== Releasing lock... [2025-04-01 18:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:24:26] Production.INFO: 56.75 MB #Memory Used# [2025-04-01 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:25:06 [end_date_ymd] => 2025-04-01 18:25:06 [RateCDR] => 1 ) [2025-04-01 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-01 15:25:06' and `end` < '2025-04-01 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-01 18:25:19] Production.INFO: count ==3786 [2025-04-01 18:25:20] Production.ERROR: pbx CDR StartTime 2025-04-01 15:25:06 - End Time 2025-04-01 18:25:06 [2025-04-01 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812664', 'tblTempUsageDetail_20' ) start [2025-04-01 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812664', 'tblTempUsageDetail_20' ) end [2025-04-01 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812664', 'tblTempVendorCDR_20' ) start [2025-04-01 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812664', 'tblTempVendorCDR_20' ) end [2025-04-01 18:25:21] Production.INFO: ProcessCDR(1,14812664,1,1,2) [2025-04-01 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812664', 'tblTempUsageDetail_20' ) start [2025-04-01 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812664', 'tblTempUsageDetail_20' ) end [2025-04-01 18:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:25:25] Production.INFO: ==8431== Releasing lock... [2025-04-01 18:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:25:25] Production.INFO: 56.25 MB #Memory Used# [2025-04-01 18:26:31] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:26:31 [end_date_ymd] => 2025-04-01 18:26:31 [RateCDR] => 1 ) [2025-04-01 18:26:31] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 15:26:31' and `end` < '2025-04-01 18:26:31' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 18:26:44] Production.INFO: count ==3761 [2025-04-01 18:27:43] Production.ERROR: pbx CDR StartTime 2025-04-01 15:26:31 - End Time 2025-04-01 18:26:31 [2025-04-01 18:27:43] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:27:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812669', 'tblTempUsageDetail_20' ) start [2025-04-01 18:27:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812669', 'tblTempUsageDetail_20' ) end [2025-04-01 18:27:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812669', 'tblTempVendorCDR_20' ) start [2025-04-01 18:27:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812669', 'tblTempVendorCDR_20' ) end [2025-04-01 18:27:48] Production.INFO: ProcessCDR(1,14812669,1,1,2) [2025-04-01 18:27:48] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:28:04] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:28:04] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:28:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:28:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812669', 'tblTempUsageDetail_20' ) start [2025-04-01 18:29:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812669', 'tblTempUsageDetail_20' ) end [2025-04-01 18:29:00] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:29:00] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:29:02] Production.INFO: ==8504== Releasing lock... [2025-04-01 18:29:02] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:29:02] Production.INFO: 56.25 MB #Memory Used# [2025-04-01 18:30:41] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:30:41 [end_date_ymd] => 2025-04-01 18:30:41 [RateCDR] => 1 ) [2025-04-01 18:30:41] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 15:30:41' and `end` < '2025-04-01 18:30:41' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 18:30:55] Production.INFO: count ==3655 [2025-04-01 18:31:33] Production.ERROR: pbx CDR StartTime 2025-04-01 15:30:41 - End Time 2025-04-01 18:30:41 [2025-04-01 18:31:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812684', 'tblTempUsageDetail_20' ) start [2025-04-01 18:31:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812684', 'tblTempUsageDetail_20' ) end [2025-04-01 18:31:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812684', 'tblTempVendorCDR_20' ) start [2025-04-01 18:31:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812684', 'tblTempVendorCDR_20' ) end [2025-04-01 18:31:39] Production.INFO: ProcessCDR(1,14812684,1,1,2) [2025-04-01 18:31:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:32:06] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:32:06] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:32:54] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:32:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812684', 'tblTempUsageDetail_20' ) start [2025-04-01 18:33:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812684', 'tblTempUsageDetail_20' ) end [2025-04-01 18:33:14] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:33:14] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:33:16] Production.INFO: ==8768== Releasing lock... [2025-04-01 18:33:16] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:33:16] Production.INFO: 55.5 MB #Memory Used# [2025-04-01 18:34:19] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:34:19 [end_date_ymd] => 2025-04-01 18:34:19 [RateCDR] => 1 ) [2025-04-01 18:34:19] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 15:34:19' and `end` < '2025-04-01 18:34:19' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 18:34:32] Production.INFO: count ==3537 [2025-04-01 18:34:36] Production.ERROR: pbx CDR StartTime 2025-04-01 15:34:19 - End Time 2025-04-01 18:34:19 [2025-04-01 18:34:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:34:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812698', 'tblTempUsageDetail_20' ) start [2025-04-01 18:34:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812698', 'tblTempUsageDetail_20' ) end [2025-04-01 18:34:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812698', 'tblTempVendorCDR_20' ) start [2025-04-01 18:34:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812698', 'tblTempVendorCDR_20' ) end [2025-04-01 18:34:36] Production.INFO: ProcessCDR(1,14812698,1,1,2) [2025-04-01 18:34:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:34:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:34:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:34:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:34:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812698', 'tblTempUsageDetail_20' ) start [2025-04-01 18:34:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812698', 'tblTempUsageDetail_20' ) end [2025-04-01 18:34:44] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:34:44] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:34:44] Production.INFO: ==9042== Releasing lock... [2025-04-01 18:34:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:34:44] Production.INFO: 54.75 MB #Memory Used# [2025-04-01 18:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:35:06 [end_date_ymd] => 2025-04-01 18:35:06 [RateCDR] => 1 ) [2025-04-01 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-01 15:35:06' and `end` < '2025-04-01 18:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 18:35:20] Production.INFO: count ==3523 [2025-04-01 18:35:21] Production.ERROR: pbx CDR StartTime 2025-04-01 15:35:06 - End Time 2025-04-01 18:35:06 [2025-04-01 18:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812703', 'tblTempUsageDetail_20' ) start [2025-04-01 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812703', 'tblTempUsageDetail_20' ) end [2025-04-01 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812703', 'tblTempVendorCDR_20' ) start [2025-04-01 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812703', 'tblTempVendorCDR_20' ) end [2025-04-01 18:35:21] Production.INFO: ProcessCDR(1,14812703,1,1,2) [2025-04-01 18:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812703', 'tblTempUsageDetail_20' ) start [2025-04-01 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812703', 'tblTempUsageDetail_20' ) end [2025-04-01 18:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:35:26] Production.INFO: ==9119== Releasing lock... [2025-04-01 18:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:35:26] Production.INFO: 54.75 MB #Memory Used# [2025-04-01 18:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:36:06 [end_date_ymd] => 2025-04-01 18:36:06 [RateCDR] => 1 ) [2025-04-01 18: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-01 15:36:06' and `end` < '2025-04-01 18: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-01 18:36:19] Production.INFO: count ==3521 [2025-04-01 18:36:20] Production.ERROR: pbx CDR StartTime 2025-04-01 15:36:06 - End Time 2025-04-01 18:36:06 [2025-04-01 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812708', 'tblTempUsageDetail_20' ) start [2025-04-01 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812708', 'tblTempUsageDetail_20' ) end [2025-04-01 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812708', 'tblTempVendorCDR_20' ) start [2025-04-01 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812708', 'tblTempVendorCDR_20' ) end [2025-04-01 18:36:20] Production.INFO: ProcessCDR(1,14812708,1,1,2) [2025-04-01 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812708', 'tblTempUsageDetail_20' ) start [2025-04-01 18:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812708', 'tblTempUsageDetail_20' ) end [2025-04-01 18:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:36:26] Production.INFO: ==9191== Releasing lock... [2025-04-01 18:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:36:26] Production.INFO: 55.25 MB #Memory Used# [2025-04-01 18:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:37:06 [end_date_ymd] => 2025-04-01 18:37:06 [RateCDR] => 1 ) [2025-04-01 18:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 15:37:06' and `end` < '2025-04-01 18:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 18:37:19] Production.INFO: count ==3503 [2025-04-01 18:37:21] Production.ERROR: pbx CDR StartTime 2025-04-01 15:37:06 - End Time 2025-04-01 18:37:06 [2025-04-01 18:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812713', 'tblTempUsageDetail_20' ) start [2025-04-01 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812713', 'tblTempUsageDetail_20' ) end [2025-04-01 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812713', 'tblTempVendorCDR_20' ) start [2025-04-01 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812713', 'tblTempVendorCDR_20' ) end [2025-04-01 18:37:21] Production.INFO: ProcessCDR(1,14812713,1,1,2) [2025-04-01 18:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812713', 'tblTempUsageDetail_20' ) start [2025-04-01 18:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812713', 'tblTempUsageDetail_20' ) end [2025-04-01 18:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:37:27] Production.INFO: ==9303== Releasing lock... [2025-04-01 18:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:37:27] Production.INFO: 54.25 MB #Memory Used# [2025-04-01 18:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:38:06 [end_date_ymd] => 2025-04-01 18:38:06 [RateCDR] => 1 ) [2025-04-01 18: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-01 15:38:06' and `end` < '2025-04-01 18: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-01 18:38:19] Production.INFO: count ==3498 [2025-04-01 18:38:20] Production.ERROR: pbx CDR StartTime 2025-04-01 15:38:06 - End Time 2025-04-01 18:38:06 [2025-04-01 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812718', 'tblTempUsageDetail_20' ) start [2025-04-01 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812718', 'tblTempUsageDetail_20' ) end [2025-04-01 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812718', 'tblTempVendorCDR_20' ) start [2025-04-01 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812718', 'tblTempVendorCDR_20' ) end [2025-04-01 18:38:20] Production.INFO: ProcessCDR(1,14812718,1,1,2) [2025-04-01 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812718', 'tblTempUsageDetail_20' ) start [2025-04-01 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812718', 'tblTempUsageDetail_20' ) end [2025-04-01 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:38:24] Production.INFO: ==9377== Releasing lock... [2025-04-01 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:38:24] Production.INFO: 54 MB #Memory Used# [2025-04-01 18:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:39:06 [end_date_ymd] => 2025-04-01 18:39:06 [RateCDR] => 1 ) [2025-04-01 18:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 15:39:06' and `end` < '2025-04-01 18:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 18:39:19] Production.INFO: count ==3489 [2025-04-01 18:39:21] Production.ERROR: pbx CDR StartTime 2025-04-01 15:39:06 - End Time 2025-04-01 18:39:06 [2025-04-01 18:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812723', 'tblTempUsageDetail_20' ) start [2025-04-01 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812723', 'tblTempUsageDetail_20' ) end [2025-04-01 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812723', 'tblTempVendorCDR_20' ) start [2025-04-01 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812723', 'tblTempVendorCDR_20' ) end [2025-04-01 18:39:21] Production.INFO: ProcessCDR(1,14812723,1,1,2) [2025-04-01 18:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812723', 'tblTempUsageDetail_20' ) start [2025-04-01 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812723', 'tblTempUsageDetail_20' ) end [2025-04-01 18:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:39:25] Production.INFO: ==9451== Releasing lock... [2025-04-01 18:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:39:25] Production.INFO: 54.25 MB #Memory Used# [2025-04-01 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:40:06 [end_date_ymd] => 2025-04-01 18:40:06 [RateCDR] => 1 ) [2025-04-01 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-01 15:40:06' and `end` < '2025-04-01 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-01 18:40:19] Production.INFO: count ==3491 [2025-04-01 18:40:21] Production.ERROR: pbx CDR StartTime 2025-04-01 15:40:06 - End Time 2025-04-01 18:40:06 [2025-04-01 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812729', 'tblTempUsageDetail_20' ) start [2025-04-01 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812729', 'tblTempUsageDetail_20' ) end [2025-04-01 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812729', 'tblTempVendorCDR_20' ) start [2025-04-01 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812729', 'tblTempVendorCDR_20' ) end [2025-04-01 18:40:21] Production.INFO: ProcessCDR(1,14812729,1,1,2) [2025-04-01 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812729', 'tblTempUsageDetail_20' ) start [2025-04-01 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812729', 'tblTempUsageDetail_20' ) end [2025-04-01 18:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:40:25] Production.INFO: ==9525== Releasing lock... [2025-04-01 18:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:40:25] Production.INFO: 54 MB #Memory Used# [2025-04-01 18:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:41:06 [end_date_ymd] => 2025-04-01 18:41:06 [RateCDR] => 1 ) [2025-04-01 18:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 15:41:06' and `end` < '2025-04-01 18:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 18:41:19] Production.INFO: count ==3482 [2025-04-01 18:41:20] Production.ERROR: pbx CDR StartTime 2025-04-01 15:41:06 - End Time 2025-04-01 18:41:06 [2025-04-01 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812734', 'tblTempUsageDetail_20' ) start [2025-04-01 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812734', 'tblTempUsageDetail_20' ) end [2025-04-01 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812734', 'tblTempVendorCDR_20' ) start [2025-04-01 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812734', 'tblTempVendorCDR_20' ) end [2025-04-01 18:41:20] Production.INFO: ProcessCDR(1,14812734,1,1,2) [2025-04-01 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812734', 'tblTempUsageDetail_20' ) start [2025-04-01 18:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812734', 'tblTempUsageDetail_20' ) end [2025-04-01 18:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:41:27] Production.INFO: ==9601== Releasing lock... [2025-04-01 18:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:41:27] Production.INFO: 54.5 MB #Memory Used# [2025-04-01 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:42:06 [end_date_ymd] => 2025-04-01 18:42:06 [RateCDR] => 1 ) [2025-04-01 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-01 15:42:06' and `end` < '2025-04-01 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-01 18:42:19] Production.INFO: count ==3485 [2025-04-01 18:42:20] Production.ERROR: pbx CDR StartTime 2025-04-01 15:42:06 - End Time 2025-04-01 18:42:06 [2025-04-01 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812739', 'tblTempUsageDetail_20' ) start [2025-04-01 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812739', 'tblTempUsageDetail_20' ) end [2025-04-01 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812739', 'tblTempVendorCDR_20' ) start [2025-04-01 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812739', 'tblTempVendorCDR_20' ) end [2025-04-01 18:42:20] Production.INFO: ProcessCDR(1,14812739,1,1,2) [2025-04-01 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812739', 'tblTempUsageDetail_20' ) start [2025-04-01 18:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812739', 'tblTempUsageDetail_20' ) end [2025-04-01 18:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:42:26] Production.INFO: ==9672== Releasing lock... [2025-04-01 18:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:42:26] Production.INFO: 55 MB #Memory Used# [2025-04-01 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:43:05 [end_date_ymd] => 2025-04-01 18:43:05 [RateCDR] => 1 ) [2025-04-01 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-01 15:43:05' and `end` < '2025-04-01 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-01 18:43:18] Production.INFO: count ==3483 [2025-04-01 18:43:20] Production.ERROR: pbx CDR StartTime 2025-04-01 15:43:05 - End Time 2025-04-01 18:43:05 [2025-04-01 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812744', 'tblTempUsageDetail_20' ) start [2025-04-01 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812744', 'tblTempUsageDetail_20' ) end [2025-04-01 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812744', 'tblTempVendorCDR_20' ) start [2025-04-01 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812744', 'tblTempVendorCDR_20' ) end [2025-04-01 18:43:20] Production.INFO: ProcessCDR(1,14812744,1,1,2) [2025-04-01 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812744', 'tblTempUsageDetail_20' ) start [2025-04-01 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812744', 'tblTempUsageDetail_20' ) end [2025-04-01 18:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:43:24] Production.INFO: ==9742== Releasing lock... [2025-04-01 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:43:24] Production.INFO: 54.5 MB #Memory Used# [2025-04-01 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:44:05 [end_date_ymd] => 2025-04-01 18:44:05 [RateCDR] => 1 ) [2025-04-01 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 15:44:05' and `end` < '2025-04-01 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 18:44:18] Production.INFO: count ==3473 [2025-04-01 18:44:20] Production.ERROR: pbx CDR StartTime 2025-04-01 15:44:05 - End Time 2025-04-01 18:44:05 [2025-04-01 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812749', 'tblTempUsageDetail_20' ) start [2025-04-01 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812749', 'tblTempUsageDetail_20' ) end [2025-04-01 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812749', 'tblTempVendorCDR_20' ) start [2025-04-01 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812749', 'tblTempVendorCDR_20' ) end [2025-04-01 18:44:20] Production.INFO: ProcessCDR(1,14812749,1,1,2) [2025-04-01 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812749', 'tblTempUsageDetail_20' ) start [2025-04-01 18:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812749', 'tblTempUsageDetail_20' ) end [2025-04-01 18:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:44:26] Production.INFO: ==9818== Releasing lock... [2025-04-01 18:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:44:26] Production.INFO: 54.25 MB #Memory Used# [2025-04-01 18:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:45:06 [end_date_ymd] => 2025-04-01 18:45:06 [RateCDR] => 1 ) [2025-04-01 18: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-01 15:45:06' and `end` < '2025-04-01 18: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-01 18:45:19] Production.INFO: count ==3469 [2025-04-01 18:45:20] Production.ERROR: pbx CDR StartTime 2025-04-01 15:45:06 - End Time 2025-04-01 18:45:06 [2025-04-01 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812754', 'tblTempUsageDetail_20' ) start [2025-04-01 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812754', 'tblTempUsageDetail_20' ) end [2025-04-01 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812754', 'tblTempVendorCDR_20' ) start [2025-04-01 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812754', 'tblTempVendorCDR_20' ) end [2025-04-01 18:45:20] Production.INFO: ProcessCDR(1,14812754,1,1,2) [2025-04-01 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812754', 'tblTempUsageDetail_20' ) start [2025-04-01 18:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812754', 'tblTempUsageDetail_20' ) end [2025-04-01 18:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:45:26] Production.INFO: ==9891== Releasing lock... [2025-04-01 18:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:45:26] Production.INFO: 54 MB #Memory Used# [2025-04-01 18:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:46:06 [end_date_ymd] => 2025-04-01 18:46:06 [RateCDR] => 1 ) [2025-04-01 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-01 15:46:06' and `end` < '2025-04-01 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-01 18:46:19] Production.INFO: count ==3463 [2025-04-01 18:46:20] Production.ERROR: pbx CDR StartTime 2025-04-01 15:46:06 - End Time 2025-04-01 18:46:06 [2025-04-01 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812759', 'tblTempUsageDetail_20' ) start [2025-04-01 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812759', 'tblTempUsageDetail_20' ) end [2025-04-01 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812759', 'tblTempVendorCDR_20' ) start [2025-04-01 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812759', 'tblTempVendorCDR_20' ) end [2025-04-01 18:46:20] Production.INFO: ProcessCDR(1,14812759,1,1,2) [2025-04-01 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812759', 'tblTempUsageDetail_20' ) start [2025-04-01 18:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812759', 'tblTempUsageDetail_20' ) end [2025-04-01 18:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:46:26] Production.INFO: ==9963== Releasing lock... [2025-04-01 18:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:46:26] Production.INFO: 54 MB #Memory Used# [2025-04-01 18:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:47:06 [end_date_ymd] => 2025-04-01 18:47:06 [RateCDR] => 1 ) [2025-04-01 18: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-01 15:47:06' and `end` < '2025-04-01 18: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-01 18:47:19] Production.INFO: count ==3455 [2025-04-01 18:47:20] Production.ERROR: pbx CDR StartTime 2025-04-01 15:47:06 - End Time 2025-04-01 18:47:06 [2025-04-01 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812764', 'tblTempUsageDetail_20' ) start [2025-04-01 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812764', 'tblTempUsageDetail_20' ) end [2025-04-01 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812764', 'tblTempVendorCDR_20' ) start [2025-04-01 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812764', 'tblTempVendorCDR_20' ) end [2025-04-01 18:47:20] Production.INFO: ProcessCDR(1,14812764,1,1,2) [2025-04-01 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812764', 'tblTempUsageDetail_20' ) start [2025-04-01 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812764', 'tblTempUsageDetail_20' ) end [2025-04-01 18:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:47:26] Production.INFO: ==10034== Releasing lock... [2025-04-01 18:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:47:26] Production.INFO: 54.5 MB #Memory Used# [2025-04-01 18:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:48:06 [end_date_ymd] => 2025-04-01 18:48:06 [RateCDR] => 1 ) [2025-04-01 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-01 15:48:06' and `end` < '2025-04-01 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-01 18:48:19] Production.INFO: count ==3461 [2025-04-01 18:48:20] Production.ERROR: pbx CDR StartTime 2025-04-01 15:48:06 - End Time 2025-04-01 18:48:06 [2025-04-01 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812769', 'tblTempUsageDetail_20' ) start [2025-04-01 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812769', 'tblTempUsageDetail_20' ) end [2025-04-01 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812769', 'tblTempVendorCDR_20' ) start [2025-04-01 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812769', 'tblTempVendorCDR_20' ) end [2025-04-01 18:48:21] Production.INFO: ProcessCDR(1,14812769,1,1,2) [2025-04-01 18:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812769', 'tblTempUsageDetail_20' ) start [2025-04-01 18:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812769', 'tblTempUsageDetail_20' ) end [2025-04-01 18:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:48:27] Production.INFO: ==10103== Releasing lock... [2025-04-01 18:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:48:27] Production.INFO: 54.5 MB #Memory Used# [2025-04-01 18:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:49:06 [end_date_ymd] => 2025-04-01 18:49:06 [RateCDR] => 1 ) [2025-04-01 18: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-01 15:49:06' and `end` < '2025-04-01 18: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-01 18:49:19] Production.INFO: count ==3458 [2025-04-01 18:49:21] Production.ERROR: pbx CDR StartTime 2025-04-01 15:49:06 - End Time 2025-04-01 18:49:06 [2025-04-01 18:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812774', 'tblTempUsageDetail_20' ) start [2025-04-01 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812774', 'tblTempUsageDetail_20' ) end [2025-04-01 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812774', 'tblTempVendorCDR_20' ) start [2025-04-01 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812774', 'tblTempVendorCDR_20' ) end [2025-04-01 18:49:21] Production.INFO: ProcessCDR(1,14812774,1,1,2) [2025-04-01 18:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812774', 'tblTempUsageDetail_20' ) start [2025-04-01 18:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812774', 'tblTempUsageDetail_20' ) end [2025-04-01 18:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:49:27] Production.INFO: ==10177== Releasing lock... [2025-04-01 18:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:49:27] Production.INFO: 54.75 MB #Memory Used# [2025-04-01 18:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:50:07 [end_date_ymd] => 2025-04-01 18:50:07 [RateCDR] => 1 ) [2025-04-01 18: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-01 15:50:07' and `end` < '2025-04-01 18: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-01 18:50:21] Production.INFO: count ==3449 [2025-04-01 18:50:22] Production.ERROR: pbx CDR StartTime 2025-04-01 15:50:07 - End Time 2025-04-01 18:50:07 [2025-04-01 18:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812780', 'tblTempUsageDetail_20' ) start [2025-04-01 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812780', 'tblTempUsageDetail_20' ) end [2025-04-01 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812780', 'tblTempVendorCDR_20' ) start [2025-04-01 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812780', 'tblTempVendorCDR_20' ) end [2025-04-01 18:50:22] Production.INFO: ProcessCDR(1,14812780,1,1,2) [2025-04-01 18:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812780', 'tblTempUsageDetail_20' ) start [2025-04-01 18:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812780', 'tblTempUsageDetail_20' ) end [2025-04-01 18:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:50:28] Production.INFO: ==10250== Releasing lock... [2025-04-01 18:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:50:28] Production.INFO: 54.25 MB #Memory Used# [2025-04-01 18:51:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:51:07 [end_date_ymd] => 2025-04-01 18:51:07 [RateCDR] => 1 ) [2025-04-01 18:51: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-01 15:51:07' and `end` < '2025-04-01 18:51: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-01 18:51:20] Production.INFO: count ==3385 [2025-04-01 18:51:21] Production.ERROR: pbx CDR StartTime 2025-04-01 15:51:07 - End Time 2025-04-01 18:51:07 [2025-04-01 18:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812785', 'tblTempUsageDetail_20' ) start [2025-04-01 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812785', 'tblTempUsageDetail_20' ) end [2025-04-01 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812785', 'tblTempVendorCDR_20' ) start [2025-04-01 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812785', 'tblTempVendorCDR_20' ) end [2025-04-01 18:51:21] Production.INFO: ProcessCDR(1,14812785,1,1,2) [2025-04-01 18:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812785', 'tblTempUsageDetail_20' ) start [2025-04-01 18:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812785', 'tblTempUsageDetail_20' ) end [2025-04-01 18:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:51:27] Production.INFO: ==10329== Releasing lock... [2025-04-01 18:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:51:27] Production.INFO: 53.5 MB #Memory Used# [2025-04-01 18:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:52:06 [end_date_ymd] => 2025-04-01 18:52:06 [RateCDR] => 1 ) [2025-04-01 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-01 15:52:06' and `end` < '2025-04-01 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-01 18:52:19] Production.INFO: count ==3370 [2025-04-01 18:52:20] Production.ERROR: pbx CDR StartTime 2025-04-01 15:52:06 - End Time 2025-04-01 18:52:06 [2025-04-01 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812790', 'tblTempUsageDetail_20' ) start [2025-04-01 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812790', 'tblTempUsageDetail_20' ) end [2025-04-01 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812790', 'tblTempVendorCDR_20' ) start [2025-04-01 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812790', 'tblTempVendorCDR_20' ) end [2025-04-01 18:52:20] Production.INFO: ProcessCDR(1,14812790,1,1,2) [2025-04-01 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812790', 'tblTempUsageDetail_20' ) start [2025-04-01 18:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812790', 'tblTempUsageDetail_20' ) end [2025-04-01 18:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:52:26] Production.INFO: ==10470== Releasing lock... [2025-04-01 18:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:52:26] Production.INFO: 53.25 MB #Memory Used# [2025-04-01 18:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:53:06 [end_date_ymd] => 2025-04-01 18:53:06 [RateCDR] => 1 ) [2025-04-01 18: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-01 15:53:06' and `end` < '2025-04-01 18: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-01 18:53:20] Production.INFO: count ==3357 [2025-04-01 18:53:21] Production.ERROR: pbx CDR StartTime 2025-04-01 15:53:06 - End Time 2025-04-01 18:53:06 [2025-04-01 18:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812795', 'tblTempUsageDetail_20' ) start [2025-04-01 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812795', 'tblTempUsageDetail_20' ) end [2025-04-01 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812795', 'tblTempVendorCDR_20' ) start [2025-04-01 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812795', 'tblTempVendorCDR_20' ) end [2025-04-01 18:53:21] Production.INFO: ProcessCDR(1,14812795,1,1,2) [2025-04-01 18:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812795', 'tblTempUsageDetail_20' ) start [2025-04-01 18:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812795', 'tblTempUsageDetail_20' ) end [2025-04-01 18:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:53:27] Production.INFO: ==10569== Releasing lock... [2025-04-01 18:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:53:27] Production.INFO: 54 MB #Memory Used# [2025-04-01 18:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:54:06 [end_date_ymd] => 2025-04-01 18:54:06 [RateCDR] => 1 ) [2025-04-01 18:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 15:54:06' and `end` < '2025-04-01 18:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 18:54:19] Production.INFO: count ==3352 [2025-04-01 18:54:20] Production.ERROR: pbx CDR StartTime 2025-04-01 15:54:06 - End Time 2025-04-01 18:54:06 [2025-04-01 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812800', 'tblTempUsageDetail_20' ) start [2025-04-01 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812800', 'tblTempUsageDetail_20' ) end [2025-04-01 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812800', 'tblTempVendorCDR_20' ) start [2025-04-01 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812800', 'tblTempVendorCDR_20' ) end [2025-04-01 18:54:21] Production.INFO: ProcessCDR(1,14812800,1,1,2) [2025-04-01 18:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812800', 'tblTempUsageDetail_20' ) start [2025-04-01 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812800', 'tblTempUsageDetail_20' ) end [2025-04-01 18:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:54:25] Production.INFO: ==10663== Releasing lock... [2025-04-01 18:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:54:25] Production.INFO: 53.5 MB #Memory Used# [2025-04-01 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:55:06 [end_date_ymd] => 2025-04-01 18:55:06 [RateCDR] => 1 ) [2025-04-01 18: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-01 15:55:06' and `end` < '2025-04-01 18: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-01 18:55:19] Production.INFO: count ==3362 [2025-04-01 18:55:20] Production.ERROR: pbx CDR StartTime 2025-04-01 15:55:06 - End Time 2025-04-01 18:55:06 [2025-04-01 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812805', 'tblTempUsageDetail_20' ) start [2025-04-01 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812805', 'tblTempUsageDetail_20' ) end [2025-04-01 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812805', 'tblTempVendorCDR_20' ) start [2025-04-01 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812805', 'tblTempVendorCDR_20' ) end [2025-04-01 18:55:20] Production.INFO: ProcessCDR(1,14812805,1,1,2) [2025-04-01 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812805', 'tblTempUsageDetail_20' ) start [2025-04-01 18:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812805', 'tblTempUsageDetail_20' ) end [2025-04-01 18:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:55:26] Production.INFO: ==10761== Releasing lock... [2025-04-01 18:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:55:26] Production.INFO: 53.25 MB #Memory Used# [2025-04-01 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:56:05 [end_date_ymd] => 2025-04-01 18:56:05 [RateCDR] => 1 ) [2025-04-01 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-01 15:56:05' and `end` < '2025-04-01 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-01 18:56:19] Production.INFO: count ==3356 [2025-04-01 18:56:20] Production.ERROR: pbx CDR StartTime 2025-04-01 15:56:05 - End Time 2025-04-01 18:56:05 [2025-04-01 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812810', 'tblTempUsageDetail_20' ) start [2025-04-01 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812810', 'tblTempUsageDetail_20' ) end [2025-04-01 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812810', 'tblTempVendorCDR_20' ) start [2025-04-01 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812810', 'tblTempVendorCDR_20' ) end [2025-04-01 18:56:20] Production.INFO: ProcessCDR(1,14812810,1,1,2) [2025-04-01 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812810', 'tblTempUsageDetail_20' ) start [2025-04-01 18:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812810', 'tblTempUsageDetail_20' ) end [2025-04-01 18:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:56:26] Production.INFO: ==10858== Releasing lock... [2025-04-01 18:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:56:26] Production.INFO: 53 MB #Memory Used# [2025-04-01 18:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:57:06 [end_date_ymd] => 2025-04-01 18:57:06 [RateCDR] => 1 ) [2025-04-01 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-01 15:57:06' and `end` < '2025-04-01 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-01 18:57:19] Production.INFO: count ==3356 [2025-04-01 18:57:21] Production.ERROR: pbx CDR StartTime 2025-04-01 15:57:06 - End Time 2025-04-01 18:57:06 [2025-04-01 18:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812815', 'tblTempUsageDetail_20' ) start [2025-04-01 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812815', 'tblTempUsageDetail_20' ) end [2025-04-01 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812815', 'tblTempVendorCDR_20' ) start [2025-04-01 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812815', 'tblTempVendorCDR_20' ) end [2025-04-01 18:57:21] Production.INFO: ProcessCDR(1,14812815,1,1,2) [2025-04-01 18:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812815', 'tblTempUsageDetail_20' ) start [2025-04-01 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812815', 'tblTempUsageDetail_20' ) end [2025-04-01 18:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:57:25] Production.INFO: ==10957== Releasing lock... [2025-04-01 18:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:57:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-01 18:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:58:06 [end_date_ymd] => 2025-04-01 18:58:06 [RateCDR] => 1 ) [2025-04-01 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-01 15:58:06' and `end` < '2025-04-01 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-01 18:58:19] Production.INFO: count ==3328 [2025-04-01 18:58:20] Production.ERROR: pbx CDR StartTime 2025-04-01 15:58:06 - End Time 2025-04-01 18:58:06 [2025-04-01 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812820', 'tblTempUsageDetail_20' ) start [2025-04-01 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812820', 'tblTempUsageDetail_20' ) end [2025-04-01 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812820', 'tblTempVendorCDR_20' ) start [2025-04-01 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812820', 'tblTempVendorCDR_20' ) end [2025-04-01 18:58:20] Production.INFO: ProcessCDR(1,14812820,1,1,2) [2025-04-01 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812820', 'tblTempUsageDetail_20' ) start [2025-04-01 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812820', 'tblTempUsageDetail_20' ) end [2025-04-01 18:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:58:24] Production.INFO: ==11058== Releasing lock... [2025-04-01 18:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:58:24] Production.INFO: 52.75 MB #Memory Used# [2025-04-01 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 15:59:05 [end_date_ymd] => 2025-04-01 18:59:05 [RateCDR] => 1 ) [2025-04-01 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-01 15:59:05' and `end` < '2025-04-01 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-01 18:59:19] Production.INFO: count ==3308 [2025-04-01 18:59:20] Production.ERROR: pbx CDR StartTime 2025-04-01 15:59:05 - End Time 2025-04-01 18:59:05 [2025-04-01 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812825', 'tblTempUsageDetail_20' ) start [2025-04-01 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812825', 'tblTempUsageDetail_20' ) end [2025-04-01 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812825', 'tblTempVendorCDR_20' ) start [2025-04-01 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812825', 'tblTempVendorCDR_20' ) end [2025-04-01 18:59:20] Production.INFO: ProcessCDR(1,14812825,1,1,2) [2025-04-01 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812825', 'tblTempUsageDetail_20' ) start [2025-04-01 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812825', 'tblTempUsageDetail_20' ) end [2025-04-01 18:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 18:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 18:59:24] Production.INFO: ==11155== Releasing lock... [2025-04-01 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 18:59:24] Production.INFO: 52.75 MB #Memory Used# [2025-04-01 19:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:00:07 [end_date_ymd] => 2025-04-01 19:00:07 [RateCDR] => 1 ) [2025-04-01 19:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 16:00:07' and `end` < '2025-04-01 19:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 19:00:20] Production.INFO: count ==3298 [2025-04-01 19:00:22] Production.ERROR: pbx CDR StartTime 2025-04-01 16:00:07 - End Time 2025-04-01 19:00:07 [2025-04-01 19:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812831', 'tblTempUsageDetail_20' ) start [2025-04-01 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812831', 'tblTempUsageDetail_20' ) end [2025-04-01 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812831', 'tblTempVendorCDR_20' ) start [2025-04-01 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812831', 'tblTempVendorCDR_20' ) end [2025-04-01 19:00:22] Production.INFO: ProcessCDR(1,14812831,1,1,2) [2025-04-01 19:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812831', 'tblTempUsageDetail_20' ) start [2025-04-01 19:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812831', 'tblTempUsageDetail_20' ) end [2025-04-01 19:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:00:26] Production.INFO: ==11254== Releasing lock... [2025-04-01 19:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:00:26] Production.INFO: 52.5 MB #Memory Used# [2025-04-01 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:01:06 [end_date_ymd] => 2025-04-01 19:01:06 [RateCDR] => 1 ) [2025-04-01 19: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-01 16:01:06' and `end` < '2025-04-01 19: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-01 19:01:19] Production.INFO: count ==3245 [2025-04-01 19:01:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:01:06 - End Time 2025-04-01 19:01:06 [2025-04-01 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812836', 'tblTempUsageDetail_20' ) start [2025-04-01 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812836', 'tblTempUsageDetail_20' ) end [2025-04-01 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812836', 'tblTempVendorCDR_20' ) start [2025-04-01 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812836', 'tblTempVendorCDR_20' ) end [2025-04-01 19:01:20] Production.INFO: ProcessCDR(1,14812836,1,1,2) [2025-04-01 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812836', 'tblTempUsageDetail_20' ) start [2025-04-01 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812836', 'tblTempUsageDetail_20' ) end [2025-04-01 19:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:01:26] Production.INFO: ==11366== Releasing lock... [2025-04-01 19:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:01:26] Production.INFO: 52.25 MB #Memory Used# [2025-04-01 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:02:06 [end_date_ymd] => 2025-04-01 19:02:06 [RateCDR] => 1 ) [2025-04-01 19:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 16:02:06' and `end` < '2025-04-01 19:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 19:02:20] Production.INFO: count ==3250 [2025-04-01 19:02:21] Production.ERROR: pbx CDR StartTime 2025-04-01 16:02:06 - End Time 2025-04-01 19:02:06 [2025-04-01 19:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812841', 'tblTempUsageDetail_20' ) start [2025-04-01 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812841', 'tblTempUsageDetail_20' ) end [2025-04-01 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812841', 'tblTempVendorCDR_20' ) start [2025-04-01 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812841', 'tblTempVendorCDR_20' ) end [2025-04-01 19:02:21] Production.INFO: ProcessCDR(1,14812841,1,1,2) [2025-04-01 19:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812841', 'tblTempUsageDetail_20' ) start [2025-04-01 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812841', 'tblTempUsageDetail_20' ) end [2025-04-01 19:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:02:25] Production.INFO: ==11544== Releasing lock... [2025-04-01 19:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:02:25] Production.INFO: 52.75 MB #Memory Used# [2025-04-01 19:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:03:06 [end_date_ymd] => 2025-04-01 19:03:06 [RateCDR] => 1 ) [2025-04-01 19:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 16:03:06' and `end` < '2025-04-01 19:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 19:03:19] Production.INFO: count ==3265 [2025-04-01 19:03:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:03:06 - End Time 2025-04-01 19:03:06 [2025-04-01 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812846', 'tblTempUsageDetail_20' ) start [2025-04-01 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812846', 'tblTempUsageDetail_20' ) end [2025-04-01 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812846', 'tblTempVendorCDR_20' ) start [2025-04-01 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812846', 'tblTempVendorCDR_20' ) end [2025-04-01 19:03:21] Production.INFO: ProcessCDR(1,14812846,1,1,2) [2025-04-01 19:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812846', 'tblTempUsageDetail_20' ) start [2025-04-01 19:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812846', 'tblTempUsageDetail_20' ) end [2025-04-01 19:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:03:26] Production.INFO: ==11642== Releasing lock... [2025-04-01 19:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:03:26] Production.INFO: 53.25 MB #Memory Used# [2025-04-01 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:04:05 [end_date_ymd] => 2025-04-01 19:04:05 [RateCDR] => 1 ) [2025-04-01 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-01 16:04:05' and `end` < '2025-04-01 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-01 19:04:19] Production.INFO: count ==3261 [2025-04-01 19:04:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:04:05 - End Time 2025-04-01 19:04:05 [2025-04-01 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812851', 'tblTempUsageDetail_20' ) start [2025-04-01 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812851', 'tblTempUsageDetail_20' ) end [2025-04-01 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812851', 'tblTempVendorCDR_20' ) start [2025-04-01 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812851', 'tblTempVendorCDR_20' ) end [2025-04-01 19:04:20] Production.INFO: ProcessCDR(1,14812851,1,1,2) [2025-04-01 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812851', 'tblTempUsageDetail_20' ) start [2025-04-01 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812851', 'tblTempUsageDetail_20' ) end [2025-04-01 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:04:24] Production.INFO: ==11749== Releasing lock... [2025-04-01 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:04:24] Production.INFO: 52.5 MB #Memory Used# [2025-04-01 19:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:05:06 [end_date_ymd] => 2025-04-01 19:05:06 [RateCDR] => 1 ) [2025-04-01 19:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 16:05:06' and `end` < '2025-04-01 19:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 19:05:19] Production.INFO: count ==3250 [2025-04-01 19:05:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:05:06 - End Time 2025-04-01 19:05:06 [2025-04-01 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812856', 'tblTempUsageDetail_20' ) start [2025-04-01 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812856', 'tblTempUsageDetail_20' ) end [2025-04-01 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812856', 'tblTempVendorCDR_20' ) start [2025-04-01 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812856', 'tblTempVendorCDR_20' ) end [2025-04-01 19:05:20] Production.INFO: ProcessCDR(1,14812856,1,1,2) [2025-04-01 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812856', 'tblTempUsageDetail_20' ) start [2025-04-01 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812856', 'tblTempUsageDetail_20' ) end [2025-04-01 19:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:05:25] Production.INFO: ==11925== Releasing lock... [2025-04-01 19:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:05:25] Production.INFO: 52.25 MB #Memory Used# [2025-04-01 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:06:06 [end_date_ymd] => 2025-04-01 19:06:06 [RateCDR] => 1 ) [2025-04-01 19: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-01 16:06:06' and `end` < '2025-04-01 19: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-01 19:06:19] Production.INFO: count ==3242 [2025-04-01 19:06:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:06:06 - End Time 2025-04-01 19:06:06 [2025-04-01 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812861', 'tblTempUsageDetail_20' ) start [2025-04-01 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812861', 'tblTempUsageDetail_20' ) end [2025-04-01 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812861', 'tblTempVendorCDR_20' ) start [2025-04-01 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812861', 'tblTempVendorCDR_20' ) end [2025-04-01 19:06:20] Production.INFO: ProcessCDR(1,14812861,1,1,2) [2025-04-01 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812861', 'tblTempUsageDetail_20' ) start [2025-04-01 19:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812861', 'tblTempUsageDetail_20' ) end [2025-04-01 19:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:06:26] Production.INFO: ==12025== Releasing lock... [2025-04-01 19:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:06:26] Production.INFO: 52.25 MB #Memory Used# [2025-04-01 19:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:07:06 [end_date_ymd] => 2025-04-01 19:07:06 [RateCDR] => 1 ) [2025-04-01 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-01 16:07:06' and `end` < '2025-04-01 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-01 19:07:19] Production.INFO: count ==3246 [2025-04-01 19:07:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:07:06 - End Time 2025-04-01 19:07:06 [2025-04-01 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812866', 'tblTempUsageDetail_20' ) start [2025-04-01 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812866', 'tblTempUsageDetail_20' ) end [2025-04-01 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812866', 'tblTempVendorCDR_20' ) start [2025-04-01 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812866', 'tblTempVendorCDR_20' ) end [2025-04-01 19:07:20] Production.INFO: ProcessCDR(1,14812866,1,1,2) [2025-04-01 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812866', 'tblTempUsageDetail_20' ) start [2025-04-01 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812866', 'tblTempUsageDetail_20' ) end [2025-04-01 19:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:07:24] Production.INFO: ==12126== Releasing lock... [2025-04-01 19:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:07:24] Production.INFO: 52.25 MB #Memory Used# [2025-04-01 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:08:06 [end_date_ymd] => 2025-04-01 19:08:06 [RateCDR] => 1 ) [2025-04-01 19: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-01 16:08:06' and `end` < '2025-04-01 19: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-01 19:08:19] Production.INFO: count ==3245 [2025-04-01 19:08:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:08:06 - End Time 2025-04-01 19:08:06 [2025-04-01 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812871', 'tblTempUsageDetail_20' ) start [2025-04-01 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812871', 'tblTempUsageDetail_20' ) end [2025-04-01 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812871', 'tblTempVendorCDR_20' ) start [2025-04-01 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812871', 'tblTempVendorCDR_20' ) end [2025-04-01 19:08:20] Production.INFO: ProcessCDR(1,14812871,1,1,2) [2025-04-01 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812871', 'tblTempUsageDetail_20' ) start [2025-04-01 19:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812871', 'tblTempUsageDetail_20' ) end [2025-04-01 19:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:08:26] Production.INFO: ==12304== Releasing lock... [2025-04-01 19:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:08:26] Production.INFO: 52.25 MB #Memory Used# [2025-04-01 19:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:09:06 [end_date_ymd] => 2025-04-01 19:09:06 [RateCDR] => 1 ) [2025-04-01 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-01 16:09:06' and `end` < '2025-04-01 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-01 19:09:19] Production.INFO: count ==3243 [2025-04-01 19:09:21] Production.ERROR: pbx CDR StartTime 2025-04-01 16:09:06 - End Time 2025-04-01 19:09:06 [2025-04-01 19:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812876', 'tblTempUsageDetail_20' ) start [2025-04-01 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812876', 'tblTempUsageDetail_20' ) end [2025-04-01 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812876', 'tblTempVendorCDR_20' ) start [2025-04-01 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812876', 'tblTempVendorCDR_20' ) end [2025-04-01 19:09:21] Production.INFO: ProcessCDR(1,14812876,1,1,2) [2025-04-01 19:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812876', 'tblTempUsageDetail_20' ) start [2025-04-01 19:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812876', 'tblTempUsageDetail_20' ) end [2025-04-01 19:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:09:25] Production.INFO: ==12443== Releasing lock... [2025-04-01 19:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:09:25] Production.INFO: 52.5 MB #Memory Used# [2025-04-01 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:10:06 [end_date_ymd] => 2025-04-01 19:10:06 [RateCDR] => 1 ) [2025-04-01 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-01 16:10:06' and `end` < '2025-04-01 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-01 19:10:20] Production.INFO: count ==3245 [2025-04-01 19:10:21] Production.ERROR: pbx CDR StartTime 2025-04-01 16:10:06 - End Time 2025-04-01 19:10:06 [2025-04-01 19:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812882', 'tblTempUsageDetail_20' ) start [2025-04-01 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812882', 'tblTempUsageDetail_20' ) end [2025-04-01 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812882', 'tblTempVendorCDR_20' ) start [2025-04-01 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812882', 'tblTempVendorCDR_20' ) end [2025-04-01 19:10:21] Production.INFO: ProcessCDR(1,14812882,1,1,2) [2025-04-01 19:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812882', 'tblTempUsageDetail_20' ) start [2025-04-01 19:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812882', 'tblTempUsageDetail_20' ) end [2025-04-01 19:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:10:27] Production.INFO: ==12540== Releasing lock... [2025-04-01 19:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:10:27] Production.INFO: 52.75 MB #Memory Used# [2025-04-01 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:11:05 [end_date_ymd] => 2025-04-01 19:11:05 [RateCDR] => 1 ) [2025-04-01 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-01 16:11:05' and `end` < '2025-04-01 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-01 19:11:18] Production.INFO: count ==3194 [2025-04-01 19:11:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:11:05 - End Time 2025-04-01 19:11:05 [2025-04-01 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812887', 'tblTempUsageDetail_20' ) start [2025-04-01 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812887', 'tblTempUsageDetail_20' ) end [2025-04-01 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812887', 'tblTempVendorCDR_20' ) start [2025-04-01 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812887', 'tblTempVendorCDR_20' ) end [2025-04-01 19:11:20] Production.INFO: ProcessCDR(1,14812887,1,1,2) [2025-04-01 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812887', 'tblTempUsageDetail_20' ) start [2025-04-01 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812887', 'tblTempUsageDetail_20' ) end [2025-04-01 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:11:24] Production.INFO: ==12624== Releasing lock... [2025-04-01 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:11:24] Production.INFO: 51.75 MB #Memory Used# [2025-04-01 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:12:06 [end_date_ymd] => 2025-04-01 19:12:06 [RateCDR] => 1 ) [2025-04-01 19: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-01 16:12:06' and `end` < '2025-04-01 19: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-01 19:12:19] Production.INFO: count ==3194 [2025-04-01 19:12:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:12:06 - End Time 2025-04-01 19:12:06 [2025-04-01 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812892', 'tblTempUsageDetail_20' ) start [2025-04-01 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812892', 'tblTempUsageDetail_20' ) end [2025-04-01 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812892', 'tblTempVendorCDR_20' ) start [2025-04-01 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812892', 'tblTempVendorCDR_20' ) end [2025-04-01 19:12:20] Production.INFO: ProcessCDR(1,14812892,1,1,2) [2025-04-01 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812892', 'tblTempUsageDetail_20' ) start [2025-04-01 19:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812892', 'tblTempUsageDetail_20' ) end [2025-04-01 19:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:12:26] Production.INFO: ==12775== Releasing lock... [2025-04-01 19:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:12:26] Production.INFO: 52 MB #Memory Used# [2025-04-01 19:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:13:06 [end_date_ymd] => 2025-04-01 19:13:06 [RateCDR] => 1 ) [2025-04-01 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-01 16:13:06' and `end` < '2025-04-01 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-01 19:13:19] Production.INFO: count ==3198 [2025-04-01 19:13:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:13:06 - End Time 2025-04-01 19:13:06 [2025-04-01 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812897', 'tblTempUsageDetail_20' ) start [2025-04-01 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812897', 'tblTempUsageDetail_20' ) end [2025-04-01 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812897', 'tblTempVendorCDR_20' ) start [2025-04-01 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812897', 'tblTempVendorCDR_20' ) end [2025-04-01 19:13:20] Production.INFO: ProcessCDR(1,14812897,1,1,2) [2025-04-01 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812897', 'tblTempUsageDetail_20' ) start [2025-04-01 19:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812897', 'tblTempUsageDetail_20' ) end [2025-04-01 19:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:13:26] Production.INFO: ==12844== Releasing lock... [2025-04-01 19:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:13:26] Production.INFO: 51.75 MB #Memory Used# [2025-04-01 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:14:06 [end_date_ymd] => 2025-04-01 19:14:06 [RateCDR] => 1 ) [2025-04-01 19:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 16:14:06' and `end` < '2025-04-01 19: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-01 19:14:19] Production.INFO: count ==3187 [2025-04-01 19:14:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:14:06 - End Time 2025-04-01 19:14:06 [2025-04-01 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812902', 'tblTempUsageDetail_20' ) start [2025-04-01 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812902', 'tblTempUsageDetail_20' ) end [2025-04-01 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812902', 'tblTempVendorCDR_20' ) start [2025-04-01 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812902', 'tblTempVendorCDR_20' ) end [2025-04-01 19:14:20] Production.INFO: ProcessCDR(1,14812902,1,1,2) [2025-04-01 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812902', 'tblTempUsageDetail_20' ) start [2025-04-01 19:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812902', 'tblTempUsageDetail_20' ) end [2025-04-01 19:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:14:26] Production.INFO: ==12915== Releasing lock... [2025-04-01 19:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:14:26] Production.INFO: 51.75 MB #Memory Used# [2025-04-01 19:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:15:06 [end_date_ymd] => 2025-04-01 19:15:06 [RateCDR] => 1 ) [2025-04-01 19:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 16:15:06' and `end` < '2025-04-01 19:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 19:15:19] Production.INFO: count ==3174 [2025-04-01 19:15:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:15:06 - End Time 2025-04-01 19:15:06 [2025-04-01 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812907', 'tblTempUsageDetail_20' ) start [2025-04-01 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812907', 'tblTempUsageDetail_20' ) end [2025-04-01 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812907', 'tblTempVendorCDR_20' ) start [2025-04-01 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812907', 'tblTempVendorCDR_20' ) end [2025-04-01 19:15:20] Production.INFO: ProcessCDR(1,14812907,1,1,2) [2025-04-01 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812907', 'tblTempUsageDetail_20' ) start [2025-04-01 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812907', 'tblTempUsageDetail_20' ) end [2025-04-01 19:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:15:24] Production.INFO: ==13066== Releasing lock... [2025-04-01 19:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:15:24] Production.INFO: 52 MB #Memory Used# [2025-04-01 19:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:16:06 [end_date_ymd] => 2025-04-01 19:16:06 [RateCDR] => 1 ) [2025-04-01 19:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 16:16:06' and `end` < '2025-04-01 19:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 19:16:19] Production.INFO: count ==3168 [2025-04-01 19:16:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:16:06 - End Time 2025-04-01 19:16:06 [2025-04-01 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812912', 'tblTempUsageDetail_20' ) start [2025-04-01 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812912', 'tblTempUsageDetail_20' ) end [2025-04-01 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812912', 'tblTempVendorCDR_20' ) start [2025-04-01 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812912', 'tblTempVendorCDR_20' ) end [2025-04-01 19:16:20] Production.INFO: ProcessCDR(1,14812912,1,1,2) [2025-04-01 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812912', 'tblTempUsageDetail_20' ) start [2025-04-01 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812912', 'tblTempUsageDetail_20' ) end [2025-04-01 19:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:16:24] Production.INFO: ==13137== Releasing lock... [2025-04-01 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:16:24] Production.INFO: 52 MB #Memory Used# [2025-04-01 19:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:17:06 [end_date_ymd] => 2025-04-01 19:17:06 [RateCDR] => 1 ) [2025-04-01 19:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 16:17:06' and `end` < '2025-04-01 19:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 19:17:19] Production.INFO: count ==3152 [2025-04-01 19:17:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:17:06 - End Time 2025-04-01 19:17:06 [2025-04-01 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812917', 'tblTempUsageDetail_20' ) start [2025-04-01 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812917', 'tblTempUsageDetail_20' ) end [2025-04-01 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812917', 'tblTempVendorCDR_20' ) start [2025-04-01 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812917', 'tblTempVendorCDR_20' ) end [2025-04-01 19:17:21] Production.INFO: ProcessCDR(1,14812917,1,1,2) [2025-04-01 19:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812917', 'tblTempUsageDetail_20' ) start [2025-04-01 19:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812917', 'tblTempUsageDetail_20' ) end [2025-04-01 19:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:17:26] Production.INFO: ==13210== Releasing lock... [2025-04-01 19:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:17:26] Production.INFO: 51.75 MB #Memory Used# [2025-04-01 19:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:18:06 [end_date_ymd] => 2025-04-01 19:18:06 [RateCDR] => 1 ) [2025-04-01 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-01 16:18:06' and `end` < '2025-04-01 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-01 19:18:19] Production.INFO: count ==3141 [2025-04-01 19:18:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:18:06 - End Time 2025-04-01 19:18:06 [2025-04-01 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812922', 'tblTempUsageDetail_20' ) start [2025-04-01 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812922', 'tblTempUsageDetail_20' ) end [2025-04-01 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812922', 'tblTempVendorCDR_20' ) start [2025-04-01 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812922', 'tblTempVendorCDR_20' ) end [2025-04-01 19:18:21] Production.INFO: ProcessCDR(1,14812922,1,1,2) [2025-04-01 19:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812922', 'tblTempUsageDetail_20' ) start [2025-04-01 19:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812922', 'tblTempUsageDetail_20' ) end [2025-04-01 19:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:18:26] Production.INFO: ==13280== Releasing lock... [2025-04-01 19:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:18:26] Production.INFO: 51.75 MB #Memory Used# [2025-04-01 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:19:05 [end_date_ymd] => 2025-04-01 19:19:05 [RateCDR] => 1 ) [2025-04-01 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-01 16:19:05' and `end` < '2025-04-01 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-01 19:19:18] Production.INFO: count ==3144 [2025-04-01 19:19:19] Production.ERROR: pbx CDR StartTime 2025-04-01 16:19:05 - End Time 2025-04-01 19:19:05 [2025-04-01 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812927', 'tblTempUsageDetail_20' ) start [2025-04-01 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812927', 'tblTempUsageDetail_20' ) end [2025-04-01 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812927', 'tblTempVendorCDR_20' ) start [2025-04-01 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812927', 'tblTempVendorCDR_20' ) end [2025-04-01 19:19:19] Production.INFO: ProcessCDR(1,14812927,1,1,2) [2025-04-01 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812927', 'tblTempUsageDetail_20' ) start [2025-04-01 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812927', 'tblTempUsageDetail_20' ) end [2025-04-01 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:19:23] Production.INFO: ==13351== Releasing lock... [2025-04-01 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:19:23] Production.INFO: 51.5 MB #Memory Used# [2025-04-01 19:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:20:07 [end_date_ymd] => 2025-04-01 19:20:07 [RateCDR] => 1 ) [2025-04-01 19: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-01 16:20:07' and `end` < '2025-04-01 19: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-01 19:20:20] Production.INFO: count ==3148 [2025-04-01 19:20:21] Production.ERROR: pbx CDR StartTime 2025-04-01 16:20:07 - End Time 2025-04-01 19:20:07 [2025-04-01 19:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812933', 'tblTempUsageDetail_20' ) start [2025-04-01 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812933', 'tblTempUsageDetail_20' ) end [2025-04-01 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812933', 'tblTempVendorCDR_20' ) start [2025-04-01 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812933', 'tblTempVendorCDR_20' ) end [2025-04-01 19:20:21] Production.INFO: ProcessCDR(1,14812933,1,1,2) [2025-04-01 19:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812933', 'tblTempUsageDetail_20' ) start [2025-04-01 19:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812933', 'tblTempUsageDetail_20' ) end [2025-04-01 19:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:20:27] Production.INFO: ==13424== Releasing lock... [2025-04-01 19:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:20:27] Production.INFO: 51.5 MB #Memory Used# [2025-04-01 19:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:21:06 [end_date_ymd] => 2025-04-01 19:21:06 [RateCDR] => 1 ) [2025-04-01 19:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 16:21:06' and `end` < '2025-04-01 19:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 19:21:19] Production.INFO: count ==3105 [2025-04-01 19:21:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:21:06 - End Time 2025-04-01 19:21:06 [2025-04-01 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812938', 'tblTempUsageDetail_20' ) start [2025-04-01 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812938', 'tblTempUsageDetail_20' ) end [2025-04-01 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812938', 'tblTempVendorCDR_20' ) start [2025-04-01 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812938', 'tblTempVendorCDR_20' ) end [2025-04-01 19:21:20] Production.INFO: ProcessCDR(1,14812938,1,1,2) [2025-04-01 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812938', 'tblTempUsageDetail_20' ) start [2025-04-01 19:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812938', 'tblTempUsageDetail_20' ) end [2025-04-01 19:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:21:26] Production.INFO: ==13498== Releasing lock... [2025-04-01 19:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:21:26] Production.INFO: 51.25 MB #Memory Used# [2025-04-01 19:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:22:06 [end_date_ymd] => 2025-04-01 19:22:06 [RateCDR] => 1 ) [2025-04-01 19:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 16:22:06' and `end` < '2025-04-01 19:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 19:22:19] Production.INFO: count ==3107 [2025-04-01 19:22:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:22:06 - End Time 2025-04-01 19:22:06 [2025-04-01 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812943', 'tblTempUsageDetail_20' ) start [2025-04-01 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812943', 'tblTempUsageDetail_20' ) end [2025-04-01 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812943', 'tblTempVendorCDR_20' ) start [2025-04-01 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812943', 'tblTempVendorCDR_20' ) end [2025-04-01 19:22:20] Production.INFO: ProcessCDR(1,14812943,1,1,2) [2025-04-01 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812943', 'tblTempUsageDetail_20' ) start [2025-04-01 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812943', 'tblTempUsageDetail_20' ) end [2025-04-01 19:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:22:24] Production.INFO: ==13570== Releasing lock... [2025-04-01 19:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:22:24] Production.INFO: 51.25 MB #Memory Used# [2025-04-01 19:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:23:06 [end_date_ymd] => 2025-04-01 19:23:06 [RateCDR] => 1 ) [2025-04-01 19: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-01 16:23:06' and `end` < '2025-04-01 19: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-01 19:23:19] Production.INFO: count ==3089 [2025-04-01 19:23:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:23:06 - End Time 2025-04-01 19:23:06 [2025-04-01 19:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812948', 'tblTempUsageDetail_20' ) start [2025-04-01 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812948', 'tblTempUsageDetail_20' ) end [2025-04-01 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812948', 'tblTempVendorCDR_20' ) start [2025-04-01 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812948', 'tblTempVendorCDR_20' ) end [2025-04-01 19:23:20] Production.INFO: ProcessCDR(1,14812948,1,1,2) [2025-04-01 19:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812948', 'tblTempUsageDetail_20' ) start [2025-04-01 19:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812948', 'tblTempUsageDetail_20' ) end [2025-04-01 19:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:23:27] Production.INFO: ==13687== Releasing lock... [2025-04-01 19:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:23:27] Production.INFO: 51 MB #Memory Used# [2025-04-01 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:24:06 [end_date_ymd] => 2025-04-01 19:24:06 [RateCDR] => 1 ) [2025-04-01 19:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 16:24:06' and `end` < '2025-04-01 19:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 19:24:19] Production.INFO: count ==3073 [2025-04-01 19:24:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:24:06 - End Time 2025-04-01 19:24:06 [2025-04-01 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812953', 'tblTempUsageDetail_20' ) start [2025-04-01 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812953', 'tblTempUsageDetail_20' ) end [2025-04-01 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812953', 'tblTempVendorCDR_20' ) start [2025-04-01 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812953', 'tblTempVendorCDR_20' ) end [2025-04-01 19:24:20] Production.INFO: ProcessCDR(1,14812953,1,1,2) [2025-04-01 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812953', 'tblTempUsageDetail_20' ) start [2025-04-01 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812953', 'tblTempUsageDetail_20' ) end [2025-04-01 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:24:24] Production.INFO: ==13760== Releasing lock... [2025-04-01 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:24:24] Production.INFO: 51 MB #Memory Used# [2025-04-01 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:25:06 [end_date_ymd] => 2025-04-01 19:25:06 [RateCDR] => 1 ) [2025-04-01 19: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-01 16:25:06' and `end` < '2025-04-01 19: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-01 19:25:19] Production.INFO: count ==3050 [2025-04-01 19:25:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:25:06 - End Time 2025-04-01 19:25:06 [2025-04-01 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812958', 'tblTempUsageDetail_20' ) start [2025-04-01 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812958', 'tblTempUsageDetail_20' ) end [2025-04-01 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812958', 'tblTempVendorCDR_20' ) start [2025-04-01 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812958', 'tblTempVendorCDR_20' ) end [2025-04-01 19:25:20] Production.INFO: ProcessCDR(1,14812958,1,1,2) [2025-04-01 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812958', 'tblTempUsageDetail_20' ) start [2025-04-01 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812958', 'tblTempUsageDetail_20' ) end [2025-04-01 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:25:24] Production.INFO: ==13830== Releasing lock... [2025-04-01 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:25:24] Production.INFO: 50.75 MB #Memory Used# [2025-04-01 19:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:26:06 [end_date_ymd] => 2025-04-01 19:26:06 [RateCDR] => 1 ) [2025-04-01 19:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 16:26:06' and `end` < '2025-04-01 19:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 19:26:19] Production.INFO: count ==3036 [2025-04-01 19:26:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:26:06 - End Time 2025-04-01 19:26:06 [2025-04-01 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812963', 'tblTempUsageDetail_20' ) start [2025-04-01 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812963', 'tblTempUsageDetail_20' ) end [2025-04-01 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812963', 'tblTempVendorCDR_20' ) start [2025-04-01 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812963', 'tblTempVendorCDR_20' ) end [2025-04-01 19:26:20] Production.INFO: ProcessCDR(1,14812963,1,1,2) [2025-04-01 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812963', 'tblTempUsageDetail_20' ) start [2025-04-01 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812963', 'tblTempUsageDetail_20' ) end [2025-04-01 19:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:26:24] Production.INFO: ==13901== Releasing lock... [2025-04-01 19:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:26:24] Production.INFO: 50.75 MB #Memory Used# [2025-04-01 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:27:05 [end_date_ymd] => 2025-04-01 19:27:05 [RateCDR] => 1 ) [2025-04-01 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-01 16:27:05' and `end` < '2025-04-01 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-01 19:27:18] Production.INFO: count ==3016 [2025-04-01 19:27:19] Production.ERROR: pbx CDR StartTime 2025-04-01 16:27:05 - End Time 2025-04-01 19:27:05 [2025-04-01 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812968', 'tblTempUsageDetail_20' ) start [2025-04-01 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812968', 'tblTempUsageDetail_20' ) end [2025-04-01 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812968', 'tblTempVendorCDR_20' ) start [2025-04-01 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812968', 'tblTempVendorCDR_20' ) end [2025-04-01 19:27:20] Production.INFO: ProcessCDR(1,14812968,1,1,2) [2025-04-01 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812968', 'tblTempUsageDetail_20' ) start [2025-04-01 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812968', 'tblTempUsageDetail_20' ) end [2025-04-01 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:27:23] Production.INFO: ==13972== Releasing lock... [2025-04-01 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:27:23] Production.INFO: 50.5 MB #Memory Used# [2025-04-01 19:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:28:06 [end_date_ymd] => 2025-04-01 19:28:06 [RateCDR] => 1 ) [2025-04-01 19:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 16:28:06' and `end` < '2025-04-01 19:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 19:28:18] Production.INFO: count ==2993 [2025-04-01 19:28:19] Production.ERROR: pbx CDR StartTime 2025-04-01 16:28:06 - End Time 2025-04-01 19:28:06 [2025-04-01 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812973', 'tblTempUsageDetail_20' ) start [2025-04-01 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812973', 'tblTempUsageDetail_20' ) end [2025-04-01 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812973', 'tblTempVendorCDR_20' ) start [2025-04-01 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812973', 'tblTempVendorCDR_20' ) end [2025-04-01 19:28:20] Production.INFO: ProcessCDR(1,14812973,1,1,2) [2025-04-01 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812973', 'tblTempUsageDetail_20' ) start [2025-04-01 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812973', 'tblTempUsageDetail_20' ) end [2025-04-01 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:28:23] Production.INFO: ==14042== Releasing lock... [2025-04-01 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:28:23] Production.INFO: 50.25 MB #Memory Used# [2025-04-01 19:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:29:06 [end_date_ymd] => 2025-04-01 19:29:06 [RateCDR] => 1 ) [2025-04-01 19: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-01 16:29:06' and `end` < '2025-04-01 19: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-01 19:29:19] Production.INFO: count ==2976 [2025-04-01 19:29:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:29:06 - End Time 2025-04-01 19:29:06 [2025-04-01 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812978', 'tblTempUsageDetail_20' ) start [2025-04-01 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812978', 'tblTempUsageDetail_20' ) end [2025-04-01 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812978', 'tblTempVendorCDR_20' ) start [2025-04-01 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812978', 'tblTempVendorCDR_20' ) end [2025-04-01 19:29:20] Production.INFO: ProcessCDR(1,14812978,1,1,2) [2025-04-01 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812978', 'tblTempUsageDetail_20' ) start [2025-04-01 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812978', 'tblTempUsageDetail_20' ) end [2025-04-01 19:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:29:24] Production.INFO: ==14113== Releasing lock... [2025-04-01 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:29:24] Production.INFO: 50.25 MB #Memory Used# [2025-04-01 19:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:30:07 [end_date_ymd] => 2025-04-01 19:30:07 [RateCDR] => 1 ) [2025-04-01 19: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-01 16:30:07' and `end` < '2025-04-01 19: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-01 19:30:20] Production.INFO: count ==2960 [2025-04-01 19:30:22] Production.ERROR: pbx CDR StartTime 2025-04-01 16:30:07 - End Time 2025-04-01 19:30:07 [2025-04-01 19:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812984', 'tblTempUsageDetail_20' ) start [2025-04-01 19:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812984', 'tblTempUsageDetail_20' ) end [2025-04-01 19:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812984', 'tblTempVendorCDR_20' ) start [2025-04-01 19:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812984', 'tblTempVendorCDR_20' ) end [2025-04-01 19:30:22] Production.INFO: ProcessCDR(1,14812984,1,1,2) [2025-04-01 19:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812984', 'tblTempUsageDetail_20' ) start [2025-04-01 19:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812984', 'tblTempUsageDetail_20' ) end [2025-04-01 19:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:30:26] Production.INFO: ==14189== Releasing lock... [2025-04-01 19:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:30:26] Production.INFO: 50 MB #Memory Used# [2025-04-01 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:31:05 [end_date_ymd] => 2025-04-01 19:31:05 [RateCDR] => 1 ) [2025-04-01 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 16:31:05' and `end` < '2025-04-01 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 19:31:18] Production.INFO: count ==2909 [2025-04-01 19:31:19] Production.ERROR: pbx CDR StartTime 2025-04-01 16:31:05 - End Time 2025-04-01 19:31:05 [2025-04-01 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812989', 'tblTempUsageDetail_20' ) start [2025-04-01 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812989', 'tblTempUsageDetail_20' ) end [2025-04-01 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812989', 'tblTempVendorCDR_20' ) start [2025-04-01 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812989', 'tblTempVendorCDR_20' ) end [2025-04-01 19:31:19] Production.INFO: ProcessCDR(1,14812989,1,1,2) [2025-04-01 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812989', 'tblTempUsageDetail_20' ) start [2025-04-01 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812989', 'tblTempUsageDetail_20' ) end [2025-04-01 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:31:22] Production.INFO: ==14262== Releasing lock... [2025-04-01 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:31:22] Production.INFO: 49.75 MB #Memory Used# [2025-04-01 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:32:06 [end_date_ymd] => 2025-04-01 19:32:06 [RateCDR] => 1 ) [2025-04-01 19:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 16:32:06' and `end` < '2025-04-01 19:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 19:32:19] Production.INFO: count ==2900 [2025-04-01 19:32:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:32:06 - End Time 2025-04-01 19:32:06 [2025-04-01 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812994', 'tblTempUsageDetail_20' ) start [2025-04-01 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812994', 'tblTempUsageDetail_20' ) end [2025-04-01 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812994', 'tblTempVendorCDR_20' ) start [2025-04-01 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812994', 'tblTempVendorCDR_20' ) end [2025-04-01 19:32:20] Production.INFO: ProcessCDR(1,14812994,1,1,2) [2025-04-01 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812994', 'tblTempUsageDetail_20' ) start [2025-04-01 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812994', 'tblTempUsageDetail_20' ) end [2025-04-01 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:32:23] Production.INFO: ==14333== Releasing lock... [2025-04-01 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:32:23] Production.INFO: 49.75 MB #Memory Used# [2025-04-01 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:33:05 [end_date_ymd] => 2025-04-01 19:33:05 [RateCDR] => 1 ) [2025-04-01 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-01 16:33:05' and `end` < '2025-04-01 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-01 19:33:18] Production.INFO: count ==2890 [2025-04-01 19:33:19] Production.ERROR: pbx CDR StartTime 2025-04-01 16:33:05 - End Time 2025-04-01 19:33:05 [2025-04-01 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812999', 'tblTempUsageDetail_20' ) start [2025-04-01 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14812999', 'tblTempUsageDetail_20' ) end [2025-04-01 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812999', 'tblTempVendorCDR_20' ) start [2025-04-01 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14812999', 'tblTempVendorCDR_20' ) end [2025-04-01 19:33:19] Production.INFO: ProcessCDR(1,14812999,1,1,2) [2025-04-01 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14812999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14812999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14812999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14812999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812999', 'tblTempUsageDetail_20' ) start [2025-04-01 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14812999', 'tblTempUsageDetail_20' ) end [2025-04-01 19:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:33:23] Production.INFO: ==14406== Releasing lock... [2025-04-01 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:33:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-01 19:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:34:06 [end_date_ymd] => 2025-04-01 19:34:06 [RateCDR] => 1 ) [2025-04-01 19:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 16:34:06' and `end` < '2025-04-01 19:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 19:34:19] Production.INFO: count ==2887 [2025-04-01 19:34:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:34:06 - End Time 2025-04-01 19:34:06 [2025-04-01 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813004', 'tblTempUsageDetail_20' ) start [2025-04-01 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813004', 'tblTempUsageDetail_20' ) end [2025-04-01 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813004', 'tblTempVendorCDR_20' ) start [2025-04-01 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813004', 'tblTempVendorCDR_20' ) end [2025-04-01 19:34:20] Production.INFO: ProcessCDR(1,14813004,1,1,2) [2025-04-01 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813004', 'tblTempUsageDetail_20' ) start [2025-04-01 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813004', 'tblTempUsageDetail_20' ) end [2025-04-01 19:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:34:25] Production.INFO: ==14477== Releasing lock... [2025-04-01 19:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:34:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-01 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:35:05 [end_date_ymd] => 2025-04-01 19:35:05 [RateCDR] => 1 ) [2025-04-01 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 16:35:05' and `end` < '2025-04-01 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 19:35:19] Production.INFO: count ==2874 [2025-04-01 19:35:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:35:05 - End Time 2025-04-01 19:35:05 [2025-04-01 19:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813009', 'tblTempUsageDetail_20' ) start [2025-04-01 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813009', 'tblTempUsageDetail_20' ) end [2025-04-01 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813009', 'tblTempVendorCDR_20' ) start [2025-04-01 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813009', 'tblTempVendorCDR_20' ) end [2025-04-01 19:35:20] Production.INFO: ProcessCDR(1,14813009,1,1,2) [2025-04-01 19:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813009', 'tblTempUsageDetail_20' ) start [2025-04-01 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813009', 'tblTempUsageDetail_20' ) end [2025-04-01 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:35:23] Production.INFO: ==14553== Releasing lock... [2025-04-01 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:35:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-01 19:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:36:06 [end_date_ymd] => 2025-04-01 19:36:06 [RateCDR] => 1 ) [2025-04-01 19: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-01 16:36:06' and `end` < '2025-04-01 19: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-01 19:36:19] Production.INFO: count ==2873 [2025-04-01 19:36:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:36:06 - End Time 2025-04-01 19:36:06 [2025-04-01 19:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813014', 'tblTempUsageDetail_20' ) start [2025-04-01 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813014', 'tblTempUsageDetail_20' ) end [2025-04-01 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813014', 'tblTempVendorCDR_20' ) start [2025-04-01 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813014', 'tblTempVendorCDR_20' ) end [2025-04-01 19:36:20] Production.INFO: ProcessCDR(1,14813014,1,1,2) [2025-04-01 19:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813014', 'tblTempUsageDetail_20' ) start [2025-04-01 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813014', 'tblTempUsageDetail_20' ) end [2025-04-01 19:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:36:23] Production.INFO: ==14625== Releasing lock... [2025-04-01 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:36:23] Production.INFO: 50.5 MB #Memory Used# [2025-04-01 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:37:05 [end_date_ymd] => 2025-04-01 19:37:05 [RateCDR] => 1 ) [2025-04-01 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-01 16:37:05' and `end` < '2025-04-01 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-01 19:37:19] Production.INFO: count ==2870 [2025-04-01 19:37:19] Production.ERROR: pbx CDR StartTime 2025-04-01 16:37:05 - End Time 2025-04-01 19:37:05 [2025-04-01 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813019', 'tblTempUsageDetail_20' ) start [2025-04-01 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813019', 'tblTempUsageDetail_20' ) end [2025-04-01 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813019', 'tblTempVendorCDR_20' ) start [2025-04-01 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813019', 'tblTempVendorCDR_20' ) end [2025-04-01 19:37:20] Production.INFO: ProcessCDR(1,14813019,1,1,2) [2025-04-01 19:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813019', 'tblTempUsageDetail_20' ) start [2025-04-01 19:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813019', 'tblTempUsageDetail_20' ) end [2025-04-01 19:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:37:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:37:25] Production.INFO: ==14697== Releasing lock... [2025-04-01 19:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:37:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-01 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:38:05 [end_date_ymd] => 2025-04-01 19:38:05 [RateCDR] => 1 ) [2025-04-01 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-01 16:38:05' and `end` < '2025-04-01 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-01 19:38:18] Production.INFO: count ==2868 [2025-04-01 19:38:19] Production.ERROR: pbx CDR StartTime 2025-04-01 16:38:05 - End Time 2025-04-01 19:38:05 [2025-04-01 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813024', 'tblTempUsageDetail_20' ) start [2025-04-01 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813024', 'tblTempUsageDetail_20' ) end [2025-04-01 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813024', 'tblTempVendorCDR_20' ) start [2025-04-01 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813024', 'tblTempVendorCDR_20' ) end [2025-04-01 19:38:19] Production.INFO: ProcessCDR(1,14813024,1,1,2) [2025-04-01 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813024', 'tblTempUsageDetail_20' ) start [2025-04-01 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813024', 'tblTempUsageDetail_20' ) end [2025-04-01 19:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:38:24] Production.INFO: ==14768== Releasing lock... [2025-04-01 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:38:24] Production.INFO: 49.5 MB #Memory Used# [2025-04-01 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:39:05 [end_date_ymd] => 2025-04-01 19:39:05 [RateCDR] => 1 ) [2025-04-01 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-01 16:39:05' and `end` < '2025-04-01 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-01 19:39:18] Production.INFO: count ==2864 [2025-04-01 19:39:19] Production.ERROR: pbx CDR StartTime 2025-04-01 16:39:05 - End Time 2025-04-01 19:39:05 [2025-04-01 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813029', 'tblTempUsageDetail_20' ) start [2025-04-01 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813029', 'tblTempUsageDetail_20' ) end [2025-04-01 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813029', 'tblTempVendorCDR_20' ) start [2025-04-01 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813029', 'tblTempVendorCDR_20' ) end [2025-04-01 19:39:19] Production.INFO: ProcessCDR(1,14813029,1,1,2) [2025-04-01 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813029', 'tblTempUsageDetail_20' ) start [2025-04-01 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813029', 'tblTempUsageDetail_20' ) end [2025-04-01 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:39:23] Production.INFO: ==14878== Releasing lock... [2025-04-01 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:39:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-01 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:40:06 [end_date_ymd] => 2025-04-01 19:40:06 [RateCDR] => 1 ) [2025-04-01 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-01 16:40:06' and `end` < '2025-04-01 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-01 19:40:19] Production.INFO: count ==2856 [2025-04-01 19:40:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:40:06 - End Time 2025-04-01 19:40:06 [2025-04-01 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813034', 'tblTempUsageDetail_20' ) start [2025-04-01 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813034', 'tblTempUsageDetail_20' ) end [2025-04-01 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813034', 'tblTempVendorCDR_20' ) start [2025-04-01 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813034', 'tblTempVendorCDR_20' ) end [2025-04-01 19:40:20] Production.INFO: ProcessCDR(1,14813034,1,1,2) [2025-04-01 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813034', 'tblTempUsageDetail_20' ) start [2025-04-01 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813034', 'tblTempUsageDetail_20' ) end [2025-04-01 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:40:23] Production.INFO: ==14951== Releasing lock... [2025-04-01 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:40:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-01 19:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:41:05 [end_date_ymd] => 2025-04-01 19:41:05 [RateCDR] => 1 ) [2025-04-01 19:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 16:41:05' and `end` < '2025-04-01 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-01 19:41:19] Production.INFO: count ==2794 [2025-04-01 19:41:19] Production.ERROR: pbx CDR StartTime 2025-04-01 16:41:05 - End Time 2025-04-01 19:41:05 [2025-04-01 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813040', 'tblTempUsageDetail_20' ) start [2025-04-01 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813040', 'tblTempUsageDetail_20' ) end [2025-04-01 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813040', 'tblTempVendorCDR_20' ) start [2025-04-01 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813040', 'tblTempVendorCDR_20' ) end [2025-04-01 19:41:20] Production.INFO: ProcessCDR(1,14813040,1,1,2) [2025-04-01 19:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813040', 'tblTempUsageDetail_20' ) start [2025-04-01 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813040', 'tblTempUsageDetail_20' ) end [2025-04-01 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:41:23] Production.INFO: ==15024== Releasing lock... [2025-04-01 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:41:23] Production.INFO: 49 MB #Memory Used# [2025-04-01 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:42:05 [end_date_ymd] => 2025-04-01 19:42:05 [RateCDR] => 1 ) [2025-04-01 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-01 16:42:05' and `end` < '2025-04-01 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-01 19:42:18] Production.INFO: count ==2787 [2025-04-01 19:42:19] Production.ERROR: pbx CDR StartTime 2025-04-01 16:42:05 - End Time 2025-04-01 19:42:05 [2025-04-01 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813044', 'tblTempUsageDetail_20' ) start [2025-04-01 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813044', 'tblTempUsageDetail_20' ) end [2025-04-01 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813044', 'tblTempVendorCDR_20' ) start [2025-04-01 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813044', 'tblTempVendorCDR_20' ) end [2025-04-01 19:42:19] Production.INFO: ProcessCDR(1,14813044,1,1,2) [2025-04-01 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813044', 'tblTempUsageDetail_20' ) start [2025-04-01 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813044', 'tblTempUsageDetail_20' ) end [2025-04-01 19:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:42:24] Production.INFO: ==15099== Releasing lock... [2025-04-01 19:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:42:24] Production.INFO: 49 MB #Memory Used# [2025-04-01 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:43:05 [end_date_ymd] => 2025-04-01 19:43:05 [RateCDR] => 1 ) [2025-04-01 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-01 16:43:05' and `end` < '2025-04-01 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-01 19:43:18] Production.INFO: count ==2764 [2025-04-01 19:43:19] Production.ERROR: pbx CDR StartTime 2025-04-01 16:43:05 - End Time 2025-04-01 19:43:05 [2025-04-01 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813050', 'tblTempUsageDetail_20' ) start [2025-04-01 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813050', 'tblTempUsageDetail_20' ) end [2025-04-01 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813050', 'tblTempVendorCDR_20' ) start [2025-04-01 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813050', 'tblTempVendorCDR_20' ) end [2025-04-01 19:43:19] Production.INFO: ProcessCDR(1,14813050,1,1,2) [2025-04-01 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813050', 'tblTempUsageDetail_20' ) start [2025-04-01 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813050', 'tblTempUsageDetail_20' ) end [2025-04-01 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:43:23] Production.INFO: ==15173== Releasing lock... [2025-04-01 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:43:23] Production.INFO: 48.75 MB #Memory Used# [2025-04-01 19:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:44:06 [end_date_ymd] => 2025-04-01 19:44:06 [RateCDR] => 1 ) [2025-04-01 19: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-01 16:44:06' and `end` < '2025-04-01 19: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-01 19:44:19] Production.INFO: count ==2760 [2025-04-01 19:44:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:44:06 - End Time 2025-04-01 19:44:06 [2025-04-01 19:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813055', 'tblTempUsageDetail_20' ) start [2025-04-01 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813055', 'tblTempUsageDetail_20' ) end [2025-04-01 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813055', 'tblTempVendorCDR_20' ) start [2025-04-01 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813055', 'tblTempVendorCDR_20' ) end [2025-04-01 19:44:20] Production.INFO: ProcessCDR(1,14813055,1,1,2) [2025-04-01 19:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813055', 'tblTempUsageDetail_20' ) start [2025-04-01 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813055', 'tblTempUsageDetail_20' ) end [2025-04-01 19:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:44:23] Production.INFO: ==15245== Releasing lock... [2025-04-01 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:44:23] Production.INFO: 48.75 MB #Memory Used# [2025-04-01 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:45:05 [end_date_ymd] => 2025-04-01 19:45:05 [RateCDR] => 1 ) [2025-04-01 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-01 16:45:05' and `end` < '2025-04-01 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-01 19:45:18] Production.INFO: count ==2751 [2025-04-01 19:45:19] Production.ERROR: pbx CDR StartTime 2025-04-01 16:45:05 - End Time 2025-04-01 19:45:05 [2025-04-01 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813060', 'tblTempUsageDetail_20' ) start [2025-04-01 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813060', 'tblTempUsageDetail_20' ) end [2025-04-01 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813060', 'tblTempVendorCDR_20' ) start [2025-04-01 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813060', 'tblTempVendorCDR_20' ) end [2025-04-01 19:45:19] Production.INFO: ProcessCDR(1,14813060,1,1,2) [2025-04-01 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813060', 'tblTempUsageDetail_20' ) start [2025-04-01 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813060', 'tblTempUsageDetail_20' ) end [2025-04-01 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:45:24] Production.INFO: ==15317== Releasing lock... [2025-04-01 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:45:24] Production.INFO: 48.75 MB #Memory Used# [2025-04-01 19:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:46:06 [end_date_ymd] => 2025-04-01 19:46:06 [RateCDR] => 1 ) [2025-04-01 19: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-01 16:46:06' and `end` < '2025-04-01 19: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-01 19:46:19] Production.INFO: count ==2743 [2025-04-01 19:46:19] Production.ERROR: pbx CDR StartTime 2025-04-01 16:46:06 - End Time 2025-04-01 19:46:06 [2025-04-01 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813065', 'tblTempUsageDetail_20' ) start [2025-04-01 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813065', 'tblTempUsageDetail_20' ) end [2025-04-01 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813065', 'tblTempVendorCDR_20' ) start [2025-04-01 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813065', 'tblTempVendorCDR_20' ) end [2025-04-01 19:46:19] Production.INFO: ProcessCDR(1,14813065,1,1,2) [2025-04-01 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813065', 'tblTempUsageDetail_20' ) start [2025-04-01 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813065', 'tblTempUsageDetail_20' ) end [2025-04-01 19:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:46:25] Production.INFO: ==15388== Releasing lock... [2025-04-01 19:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:46:25] Production.INFO: 48.75 MB #Memory Used# [2025-04-01 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:47:05 [end_date_ymd] => 2025-04-01 19:47:05 [RateCDR] => 1 ) [2025-04-01 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-01 16:47:05' and `end` < '2025-04-01 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-01 19:47:18] Production.INFO: count ==2744 [2025-04-01 19:47:19] Production.ERROR: pbx CDR StartTime 2025-04-01 16:47:05 - End Time 2025-04-01 19:47:05 [2025-04-01 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813070', 'tblTempUsageDetail_20' ) start [2025-04-01 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813070', 'tblTempUsageDetail_20' ) end [2025-04-01 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813070', 'tblTempVendorCDR_20' ) start [2025-04-01 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813070', 'tblTempVendorCDR_20' ) end [2025-04-01 19:47:19] Production.INFO: ProcessCDR(1,14813070,1,1,2) [2025-04-01 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813070', 'tblTempUsageDetail_20' ) start [2025-04-01 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813070', 'tblTempUsageDetail_20' ) end [2025-04-01 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:47:22] Production.INFO: ==15457== Releasing lock... [2025-04-01 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:47:22] Production.INFO: 48.75 MB #Memory Used# [2025-04-01 19:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:48:06 [end_date_ymd] => 2025-04-01 19:48:06 [RateCDR] => 1 ) [2025-04-01 19: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-01 16:48:06' and `end` < '2025-04-01 19: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-01 19:48:19] Production.INFO: count ==2740 [2025-04-01 19:48:19] Production.ERROR: pbx CDR StartTime 2025-04-01 16:48:06 - End Time 2025-04-01 19:48:06 [2025-04-01 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813075', 'tblTempUsageDetail_20' ) start [2025-04-01 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813075', 'tblTempUsageDetail_20' ) end [2025-04-01 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813075', 'tblTempVendorCDR_20' ) start [2025-04-01 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813075', 'tblTempVendorCDR_20' ) end [2025-04-01 19:48:20] Production.INFO: ProcessCDR(1,14813075,1,1,2) [2025-04-01 19:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813075', 'tblTempUsageDetail_20' ) start [2025-04-01 19:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813075', 'tblTempUsageDetail_20' ) end [2025-04-01 19:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:48:25] Production.INFO: ==15531== Releasing lock... [2025-04-01 19:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:48:25] Production.INFO: 48.5 MB #Memory Used# [2025-04-01 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:49:05 [end_date_ymd] => 2025-04-01 19:49:05 [RateCDR] => 1 ) [2025-04-01 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-01 16:49:05' and `end` < '2025-04-01 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-01 19:49:18] Production.INFO: count ==2735 [2025-04-01 19:49:19] Production.ERROR: pbx CDR StartTime 2025-04-01 16:49:05 - End Time 2025-04-01 19:49:05 [2025-04-01 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813080', 'tblTempUsageDetail_20' ) start [2025-04-01 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813080', 'tblTempUsageDetail_20' ) end [2025-04-01 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813080', 'tblTempVendorCDR_20' ) start [2025-04-01 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813080', 'tblTempVendorCDR_20' ) end [2025-04-01 19:49:19] Production.INFO: ProcessCDR(1,14813080,1,1,2) [2025-04-01 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813080', 'tblTempUsageDetail_20' ) start [2025-04-01 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813080', 'tblTempUsageDetail_20' ) end [2025-04-01 19:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:49:23] Production.INFO: ==15608== Releasing lock... [2025-04-01 19:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:49:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-01 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:50:06 [end_date_ymd] => 2025-04-01 19:50:06 [RateCDR] => 1 ) [2025-04-01 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 16:50:06' and `end` < '2025-04-01 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 19:50:20] Production.INFO: count ==2733 [2025-04-01 19:50:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:50:06 - End Time 2025-04-01 19:50:06 [2025-04-01 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813086', 'tblTempUsageDetail_20' ) start [2025-04-01 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813086', 'tblTempUsageDetail_20' ) end [2025-04-01 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813086', 'tblTempVendorCDR_20' ) start [2025-04-01 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813086', 'tblTempVendorCDR_20' ) end [2025-04-01 19:50:21] Production.INFO: ProcessCDR(1,14813086,1,1,2) [2025-04-01 19:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813086', 'tblTempUsageDetail_20' ) start [2025-04-01 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813086', 'tblTempUsageDetail_20' ) end [2025-04-01 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:50:24] Production.INFO: ==15685== Releasing lock... [2025-04-01 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:50:24] Production.INFO: 48.75 MB #Memory Used# [2025-04-01 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:51:05 [end_date_ymd] => 2025-04-01 19:51:05 [RateCDR] => 1 ) [2025-04-01 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-01 16:51:05' and `end` < '2025-04-01 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-01 19:51:18] Production.INFO: count ==2742 [2025-04-01 19:51:19] Production.ERROR: pbx CDR StartTime 2025-04-01 16:51:05 - End Time 2025-04-01 19:51:05 [2025-04-01 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813091', 'tblTempUsageDetail_20' ) start [2025-04-01 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813091', 'tblTempUsageDetail_20' ) end [2025-04-01 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813091', 'tblTempVendorCDR_20' ) start [2025-04-01 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813091', 'tblTempVendorCDR_20' ) end [2025-04-01 19:51:19] Production.INFO: ProcessCDR(1,14813091,1,1,2) [2025-04-01 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813091', 'tblTempUsageDetail_20' ) start [2025-04-01 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813091', 'tblTempUsageDetail_20' ) end [2025-04-01 19:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:51:24] Production.INFO: ==15756== Releasing lock... [2025-04-01 19:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:51:24] Production.INFO: 48.75 MB #Memory Used# [2025-04-01 19:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:52:06 [end_date_ymd] => 2025-04-01 19:52:06 [RateCDR] => 1 ) [2025-04-01 19: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-01 16:52:06' and `end` < '2025-04-01 19: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-01 19:52:19] Production.INFO: count ==2733 [2025-04-01 19:52:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:52:06 - End Time 2025-04-01 19:52:06 [2025-04-01 19:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813096', 'tblTempUsageDetail_20' ) start [2025-04-01 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813096', 'tblTempUsageDetail_20' ) end [2025-04-01 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813096', 'tblTempVendorCDR_20' ) start [2025-04-01 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813096', 'tblTempVendorCDR_20' ) end [2025-04-01 19:52:20] Production.INFO: ProcessCDR(1,14813096,1,1,2) [2025-04-01 19:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813096', 'tblTempUsageDetail_20' ) start [2025-04-01 19:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813096', 'tblTempUsageDetail_20' ) end [2025-04-01 19:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:52:25] Production.INFO: ==15826== Releasing lock... [2025-04-01 19:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:52:25] Production.INFO: 48.75 MB #Memory Used# [2025-04-01 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:53:05 [end_date_ymd] => 2025-04-01 19:53:05 [RateCDR] => 1 ) [2025-04-01 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-01 16:53:05' and `end` < '2025-04-01 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-01 19:53:18] Production.INFO: count ==2720 [2025-04-01 19:53:19] Production.ERROR: pbx CDR StartTime 2025-04-01 16:53:05 - End Time 2025-04-01 19:53:05 [2025-04-01 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813101', 'tblTempUsageDetail_20' ) start [2025-04-01 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813101', 'tblTempUsageDetail_20' ) end [2025-04-01 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813101', 'tblTempVendorCDR_20' ) start [2025-04-01 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813101', 'tblTempVendorCDR_20' ) end [2025-04-01 19:53:19] Production.INFO: ProcessCDR(1,14813101,1,1,2) [2025-04-01 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813101', 'tblTempUsageDetail_20' ) start [2025-04-01 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813101', 'tblTempUsageDetail_20' ) end [2025-04-01 19:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:53:23] Production.INFO: ==15900== Releasing lock... [2025-04-01 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:53:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-01 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:54:05 [end_date_ymd] => 2025-04-01 19:54:05 [RateCDR] => 1 ) [2025-04-01 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-01 16:54:05' and `end` < '2025-04-01 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-01 19:54:18] Production.INFO: count ==2712 [2025-04-01 19:54:19] Production.ERROR: pbx CDR StartTime 2025-04-01 16:54:05 - End Time 2025-04-01 19:54:05 [2025-04-01 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813106', 'tblTempUsageDetail_20' ) start [2025-04-01 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813106', 'tblTempUsageDetail_20' ) end [2025-04-01 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813106', 'tblTempVendorCDR_20' ) start [2025-04-01 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813106', 'tblTempVendorCDR_20' ) end [2025-04-01 19:54:19] Production.INFO: ProcessCDR(1,14813106,1,1,2) [2025-04-01 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813106', 'tblTempUsageDetail_20' ) start [2025-04-01 19:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813106', 'tblTempUsageDetail_20' ) end [2025-04-01 19:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:54:24] Production.INFO: ==16012== Releasing lock... [2025-04-01 19:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:54:24] Production.INFO: 48.5 MB #Memory Used# [2025-04-01 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:55:05 [end_date_ymd] => 2025-04-01 19:55:05 [RateCDR] => 1 ) [2025-04-01 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-01 16:55:05' and `end` < '2025-04-01 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-01 19:55:18] Production.INFO: count ==2705 [2025-04-01 19:55:19] Production.ERROR: pbx CDR StartTime 2025-04-01 16:55:05 - End Time 2025-04-01 19:55:05 [2025-04-01 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813111', 'tblTempUsageDetail_20' ) start [2025-04-01 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813111', 'tblTempUsageDetail_20' ) end [2025-04-01 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813111', 'tblTempVendorCDR_20' ) start [2025-04-01 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813111', 'tblTempVendorCDR_20' ) end [2025-04-01 19:55:19] Production.INFO: ProcessCDR(1,14813111,1,1,2) [2025-04-01 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813111', 'tblTempUsageDetail_20' ) start [2025-04-01 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813111', 'tblTempUsageDetail_20' ) end [2025-04-01 19:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:55:24] Production.INFO: ==16084== Releasing lock... [2025-04-01 19:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:55:24] Production.INFO: 48.5 MB #Memory Used# [2025-04-01 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:56:05 [end_date_ymd] => 2025-04-01 19:56:05 [RateCDR] => 1 ) [2025-04-01 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-01 16:56:05' and `end` < '2025-04-01 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-01 19:56:18] Production.INFO: count ==2708 [2025-04-01 19:56:19] Production.ERROR: pbx CDR StartTime 2025-04-01 16:56:05 - End Time 2025-04-01 19:56:05 [2025-04-01 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813116', 'tblTempUsageDetail_20' ) start [2025-04-01 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813116', 'tblTempUsageDetail_20' ) end [2025-04-01 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813116', 'tblTempVendorCDR_20' ) start [2025-04-01 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813116', 'tblTempVendorCDR_20' ) end [2025-04-01 19:56:19] Production.INFO: ProcessCDR(1,14813116,1,1,2) [2025-04-01 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813116', 'tblTempUsageDetail_20' ) start [2025-04-01 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813116', 'tblTempUsageDetail_20' ) end [2025-04-01 19:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:56:24] Production.INFO: ==16156== Releasing lock... [2025-04-01 19:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:56:24] Production.INFO: 48.25 MB #Memory Used# [2025-04-01 19:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:57:06 [end_date_ymd] => 2025-04-01 19:57:06 [RateCDR] => 1 ) [2025-04-01 19:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 16:57:06' and `end` < '2025-04-01 19:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 19:57:19] Production.INFO: count ==2710 [2025-04-01 19:57:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:57:06 - End Time 2025-04-01 19:57:06 [2025-04-01 19:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813121', 'tblTempUsageDetail_20' ) start [2025-04-01 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813121', 'tblTempUsageDetail_20' ) end [2025-04-01 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813121', 'tblTempVendorCDR_20' ) start [2025-04-01 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813121', 'tblTempVendorCDR_20' ) end [2025-04-01 19:57:20] Production.INFO: ProcessCDR(1,14813121,1,1,2) [2025-04-01 19:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813121', 'tblTempUsageDetail_20' ) start [2025-04-01 19:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813121', 'tblTempUsageDetail_20' ) end [2025-04-01 19:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:57:25] Production.INFO: ==16229== Releasing lock... [2025-04-01 19:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:57:25] Production.INFO: 48.5 MB #Memory Used# [2025-04-01 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:58:05 [end_date_ymd] => 2025-04-01 19:58:05 [RateCDR] => 1 ) [2025-04-01 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-01 16:58:05' and `end` < '2025-04-01 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-01 19:58:19] Production.INFO: count ==2726 [2025-04-01 19:58:19] Production.ERROR: pbx CDR StartTime 2025-04-01 16:58:05 - End Time 2025-04-01 19:58:05 [2025-04-01 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813126', 'tblTempUsageDetail_20' ) start [2025-04-01 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813126', 'tblTempUsageDetail_20' ) end [2025-04-01 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813126', 'tblTempVendorCDR_20' ) start [2025-04-01 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813126', 'tblTempVendorCDR_20' ) end [2025-04-01 19:58:19] Production.INFO: ProcessCDR(1,14813126,1,1,2) [2025-04-01 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813126', 'tblTempUsageDetail_20' ) start [2025-04-01 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813126', 'tblTempUsageDetail_20' ) end [2025-04-01 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:58:23] Production.INFO: ==16299== Releasing lock... [2025-04-01 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:58:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-01 19:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 16:59:06 [end_date_ymd] => 2025-04-01 19:59:06 [RateCDR] => 1 ) [2025-04-01 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-01 16:59:06' and `end` < '2025-04-01 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-01 19:59:19] Production.INFO: count ==2719 [2025-04-01 19:59:20] Production.ERROR: pbx CDR StartTime 2025-04-01 16:59:06 - End Time 2025-04-01 19:59:06 [2025-04-01 19:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813131', 'tblTempUsageDetail_20' ) start [2025-04-01 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813131', 'tblTempUsageDetail_20' ) end [2025-04-01 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813131', 'tblTempVendorCDR_20' ) start [2025-04-01 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813131', 'tblTempVendorCDR_20' ) end [2025-04-01 19:59:20] Production.INFO: ProcessCDR(1,14813131,1,1,2) [2025-04-01 19:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813131', 'tblTempUsageDetail_20' ) start [2025-04-01 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813131', 'tblTempUsageDetail_20' ) end [2025-04-01 19:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 19:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 19:59:23] Production.INFO: ==16369== Releasing lock... [2025-04-01 19:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 19:59:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-01 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:00:06 [end_date_ymd] => 2025-04-01 20:00:06 [RateCDR] => 1 ) [2025-04-01 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-01 17:00:06' and `end` < '2025-04-01 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-01 20:00:20] Production.INFO: count ==2710 [2025-04-01 20:00:21] Production.ERROR: pbx CDR StartTime 2025-04-01 17:00:06 - End Time 2025-04-01 20:00:06 [2025-04-01 20:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813137', 'tblTempUsageDetail_20' ) start [2025-04-01 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813137', 'tblTempUsageDetail_20' ) end [2025-04-01 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813137', 'tblTempVendorCDR_20' ) start [2025-04-01 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813137', 'tblTempVendorCDR_20' ) end [2025-04-01 20:00:21] Production.INFO: ProcessCDR(1,14813137,1,1,2) [2025-04-01 20:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813137', 'tblTempUsageDetail_20' ) start [2025-04-01 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813137', 'tblTempUsageDetail_20' ) end [2025-04-01 20:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:00:25] Production.INFO: ==16442== Releasing lock... [2025-04-01 20:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:00:25] Production.INFO: 48.5 MB #Memory Used# [2025-04-01 20:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:01:06 [end_date_ymd] => 2025-04-01 20:01:06 [RateCDR] => 1 ) [2025-04-01 20: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-01 17:01:06' and `end` < '2025-04-01 20: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-01 20:01:19] Production.INFO: count ==2609 [2025-04-01 20:01:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:01:06 - End Time 2025-04-01 20:01:06 [2025-04-01 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813142', 'tblTempUsageDetail_20' ) start [2025-04-01 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813142', 'tblTempUsageDetail_20' ) end [2025-04-01 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813142', 'tblTempVendorCDR_20' ) start [2025-04-01 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813142', 'tblTempVendorCDR_20' ) end [2025-04-01 20:01:20] Production.INFO: ProcessCDR(1,14813142,1,1,2) [2025-04-01 20:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813142', 'tblTempUsageDetail_20' ) start [2025-04-01 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813142', 'tblTempUsageDetail_20' ) end [2025-04-01 20:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:01:23] Production.INFO: ==16567== Releasing lock... [2025-04-01 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:01:23] Production.INFO: 47.75 MB #Memory Used# [2025-04-01 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:02:05 [end_date_ymd] => 2025-04-01 20:02:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:02:05' and `end` < '2025-04-01 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-01 20:02:18] Production.INFO: count ==2607 [2025-04-01 20:02:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:02:05 - End Time 2025-04-01 20:02:05 [2025-04-01 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813147', 'tblTempUsageDetail_20' ) start [2025-04-01 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813147', 'tblTempUsageDetail_20' ) end [2025-04-01 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813147', 'tblTempVendorCDR_20' ) start [2025-04-01 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813147', 'tblTempVendorCDR_20' ) end [2025-04-01 20:02:19] Production.INFO: ProcessCDR(1,14813147,1,1,2) [2025-04-01 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813147', 'tblTempUsageDetail_20' ) start [2025-04-01 20:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813147', 'tblTempUsageDetail_20' ) end [2025-04-01 20:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:02:25] Production.INFO: ==16643== Releasing lock... [2025-04-01 20:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:02:25] Production.INFO: 47.5 MB #Memory Used# [2025-04-01 20:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:03:06 [end_date_ymd] => 2025-04-01 20:03:06 [RateCDR] => 1 ) [2025-04-01 20: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-01 17:03:06' and `end` < '2025-04-01 20: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-01 20:03:19] Production.INFO: count ==2609 [2025-04-01 20:03:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:03:06 - End Time 2025-04-01 20:03:06 [2025-04-01 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813152', 'tblTempUsageDetail_20' ) start [2025-04-01 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813152', 'tblTempUsageDetail_20' ) end [2025-04-01 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813152', 'tblTempVendorCDR_20' ) start [2025-04-01 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813152', 'tblTempVendorCDR_20' ) end [2025-04-01 20:03:20] Production.INFO: ProcessCDR(1,14813152,1,1,2) [2025-04-01 20:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813152', 'tblTempUsageDetail_20' ) start [2025-04-01 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813152', 'tblTempUsageDetail_20' ) end [2025-04-01 20:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:03:24] Production.INFO: ==16716== Releasing lock... [2025-04-01 20:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:03:24] Production.INFO: 47.75 MB #Memory Used# [2025-04-01 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:04:05 [end_date_ymd] => 2025-04-01 20:04:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:04:05' and `end` < '2025-04-01 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-01 20:04:18] Production.INFO: count ==2605 [2025-04-01 20:04:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:04:05 - End Time 2025-04-01 20:04:05 [2025-04-01 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813157', 'tblTempUsageDetail_20' ) start [2025-04-01 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813157', 'tblTempUsageDetail_20' ) end [2025-04-01 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813157', 'tblTempVendorCDR_20' ) start [2025-04-01 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813157', 'tblTempVendorCDR_20' ) end [2025-04-01 20:04:19] Production.INFO: ProcessCDR(1,14813157,1,1,2) [2025-04-01 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813157', 'tblTempUsageDetail_20' ) start [2025-04-01 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813157', 'tblTempUsageDetail_20' ) end [2025-04-01 20:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:04:24] Production.INFO: ==16794== Releasing lock... [2025-04-01 20:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:04:24] Production.INFO: 47.5 MB #Memory Used# [2025-04-01 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:05:05 [end_date_ymd] => 2025-04-01 20:05:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:05:05' and `end` < '2025-04-01 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-01 20:05:18] Production.INFO: count ==2594 [2025-04-01 20:05:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:05:05 - End Time 2025-04-01 20:05:05 [2025-04-01 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813162', 'tblTempUsageDetail_20' ) start [2025-04-01 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813162', 'tblTempUsageDetail_20' ) end [2025-04-01 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813162', 'tblTempVendorCDR_20' ) start [2025-04-01 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813162', 'tblTempVendorCDR_20' ) end [2025-04-01 20:05:19] Production.INFO: ProcessCDR(1,14813162,1,1,2) [2025-04-01 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813162', 'tblTempUsageDetail_20' ) start [2025-04-01 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813162', 'tblTempUsageDetail_20' ) end [2025-04-01 20:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:05:23] Production.INFO: ==16865== Releasing lock... [2025-04-01 20:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:05:23] Production.INFO: 47.5 MB #Memory Used# [2025-04-01 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:06:05 [end_date_ymd] => 2025-04-01 20:06:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:06:05' and `end` < '2025-04-01 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-01 20:06:18] Production.INFO: count ==2594 [2025-04-01 20:06:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:06:05 - End Time 2025-04-01 20:06:05 [2025-04-01 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813167', 'tblTempUsageDetail_20' ) start [2025-04-01 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813167', 'tblTempUsageDetail_20' ) end [2025-04-01 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813167', 'tblTempVendorCDR_20' ) start [2025-04-01 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813167', 'tblTempVendorCDR_20' ) end [2025-04-01 20:06:19] Production.INFO: ProcessCDR(1,14813167,1,1,2) [2025-04-01 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813167', 'tblTempUsageDetail_20' ) start [2025-04-01 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813167', 'tblTempUsageDetail_20' ) end [2025-04-01 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:06:22] Production.INFO: ==16934== Releasing lock... [2025-04-01 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:06:22] Production.INFO: 47.5 MB #Memory Used# [2025-04-01 20:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:07:06 [end_date_ymd] => 2025-04-01 20:07:06 [RateCDR] => 1 ) [2025-04-01 20: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-01 17:07:06' and `end` < '2025-04-01 20: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-01 20:07:19] Production.INFO: count ==2570 [2025-04-01 20:07:20] Production.ERROR: pbx CDR StartTime 2025-04-01 17:07:06 - End Time 2025-04-01 20:07:06 [2025-04-01 20:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813172', 'tblTempUsageDetail_20' ) start [2025-04-01 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813172', 'tblTempUsageDetail_20' ) end [2025-04-01 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813172', 'tblTempVendorCDR_20' ) start [2025-04-01 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813172', 'tblTempVendorCDR_20' ) end [2025-04-01 20:07:20] Production.INFO: ProcessCDR(1,14813172,1,1,2) [2025-04-01 20:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813172', 'tblTempUsageDetail_20' ) start [2025-04-01 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813172', 'tblTempUsageDetail_20' ) end [2025-04-01 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:07:23] Production.INFO: ==17007== Releasing lock... [2025-04-01 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:07:23] Production.INFO: 47.25 MB #Memory Used# [2025-04-01 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:08:05 [end_date_ymd] => 2025-04-01 20:08:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:08:05' and `end` < '2025-04-01 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-01 20:08:18] Production.INFO: count ==2574 [2025-04-01 20:08:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:08:05 - End Time 2025-04-01 20:08:05 [2025-04-01 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813177', 'tblTempUsageDetail_20' ) start [2025-04-01 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813177', 'tblTempUsageDetail_20' ) end [2025-04-01 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813177', 'tblTempVendorCDR_20' ) start [2025-04-01 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813177', 'tblTempVendorCDR_20' ) end [2025-04-01 20:08:19] Production.INFO: ProcessCDR(1,14813177,1,1,2) [2025-04-01 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813177', 'tblTempUsageDetail_20' ) start [2025-04-01 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813177', 'tblTempUsageDetail_20' ) end [2025-04-01 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:08:23] Production.INFO: ==17080== Releasing lock... [2025-04-01 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:08:23] Production.INFO: 47.25 MB #Memory Used# [2025-04-01 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:09:05 [end_date_ymd] => 2025-04-01 20:09:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:09:05' and `end` < '2025-04-01 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-01 20:09:18] Production.INFO: count ==2574 [2025-04-01 20:09:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:09:05 - End Time 2025-04-01 20:09:05 [2025-04-01 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813182', 'tblTempUsageDetail_20' ) start [2025-04-01 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813182', 'tblTempUsageDetail_20' ) end [2025-04-01 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813182', 'tblTempVendorCDR_20' ) start [2025-04-01 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813182', 'tblTempVendorCDR_20' ) end [2025-04-01 20:09:19] Production.INFO: ProcessCDR(1,14813182,1,1,2) [2025-04-01 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813182', 'tblTempUsageDetail_20' ) start [2025-04-01 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813182', 'tblTempUsageDetail_20' ) end [2025-04-01 20:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:09:24] Production.INFO: ==17151== Releasing lock... [2025-04-01 20:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:09:24] Production.INFO: 47.25 MB #Memory Used# [2025-04-01 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:10:06 [end_date_ymd] => 2025-04-01 20:10:06 [RateCDR] => 1 ) [2025-04-01 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 17:10:06' and `end` < '2025-04-01 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 20:10:19] Production.INFO: count ==2578 [2025-04-01 20:10:20] Production.ERROR: pbx CDR StartTime 2025-04-01 17:10:06 - End Time 2025-04-01 20:10:06 [2025-04-01 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813188', 'tblTempUsageDetail_20' ) start [2025-04-01 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813188', 'tblTempUsageDetail_20' ) end [2025-04-01 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813188', 'tblTempVendorCDR_20' ) start [2025-04-01 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813188', 'tblTempVendorCDR_20' ) end [2025-04-01 20:10:20] Production.INFO: ProcessCDR(1,14813188,1,1,2) [2025-04-01 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813188', 'tblTempUsageDetail_20' ) start [2025-04-01 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813188', 'tblTempUsageDetail_20' ) end [2025-04-01 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:10:23] Production.INFO: ==17264== Releasing lock... [2025-04-01 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:10:23] Production.INFO: 47.5 MB #Memory Used# [2025-04-01 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:11:05 [end_date_ymd] => 2025-04-01 20:11:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:11:05' and `end` < '2025-04-01 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-01 20:11:18] Production.INFO: count ==2523 [2025-04-01 20:11:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:11:05 - End Time 2025-04-01 20:11:05 [2025-04-01 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813193', 'tblTempUsageDetail_20' ) start [2025-04-01 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813193', 'tblTempUsageDetail_20' ) end [2025-04-01 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813193', 'tblTempVendorCDR_20' ) start [2025-04-01 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813193', 'tblTempVendorCDR_20' ) end [2025-04-01 20:11:19] Production.INFO: ProcessCDR(1,14813193,1,1,2) [2025-04-01 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813193', 'tblTempUsageDetail_20' ) start [2025-04-01 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813193', 'tblTempUsageDetail_20' ) end [2025-04-01 20:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:11:23] Production.INFO: ==17337== Releasing lock... [2025-04-01 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:11:23] Production.INFO: 47 MB #Memory Used# [2025-04-01 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:12:06 [end_date_ymd] => 2025-04-01 20:12:06 [RateCDR] => 1 ) [2025-04-01 20:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 17:12:06' and `end` < '2025-04-01 20:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 20:12:19] Production.INFO: count ==2522 [2025-04-01 20:12:20] Production.ERROR: pbx CDR StartTime 2025-04-01 17:12:06 - End Time 2025-04-01 20:12:06 [2025-04-01 20:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813198', 'tblTempUsageDetail_20' ) start [2025-04-01 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813198', 'tblTempUsageDetail_20' ) end [2025-04-01 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813198', 'tblTempVendorCDR_20' ) start [2025-04-01 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813198', 'tblTempVendorCDR_20' ) end [2025-04-01 20:12:20] Production.INFO: ProcessCDR(1,14813198,1,1,2) [2025-04-01 20:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813198', 'tblTempUsageDetail_20' ) start [2025-04-01 20:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813198', 'tblTempUsageDetail_20' ) end [2025-04-01 20:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:12:25] Production.INFO: ==17409== Releasing lock... [2025-04-01 20:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:12:25] Production.INFO: 47 MB #Memory Used# [2025-04-01 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:13:05 [end_date_ymd] => 2025-04-01 20:13:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:13:05' and `end` < '2025-04-01 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-01 20:13:18] Production.INFO: count ==2499 [2025-04-01 20:13:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:13:05 - End Time 2025-04-01 20:13:05 [2025-04-01 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813203', 'tblTempUsageDetail_20' ) start [2025-04-01 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813203', 'tblTempUsageDetail_20' ) end [2025-04-01 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813203', 'tblTempVendorCDR_20' ) start [2025-04-01 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813203', 'tblTempVendorCDR_20' ) end [2025-04-01 20:13:19] Production.INFO: ProcessCDR(1,14813203,1,1,2) [2025-04-01 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813203', 'tblTempUsageDetail_20' ) start [2025-04-01 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813203', 'tblTempUsageDetail_20' ) end [2025-04-01 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:13:22] Production.INFO: ==17478== Releasing lock... [2025-04-01 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:13:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-01 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:14:05 [end_date_ymd] => 2025-04-01 20:14:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:14:05' and `end` < '2025-04-01 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-01 20:14:17] Production.INFO: count ==2463 [2025-04-01 20:14:18] Production.ERROR: pbx CDR StartTime 2025-04-01 17:14:05 - End Time 2025-04-01 20:14:05 [2025-04-01 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813208', 'tblTempUsageDetail_20' ) start [2025-04-01 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813208', 'tblTempUsageDetail_20' ) end [2025-04-01 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813208', 'tblTempVendorCDR_20' ) start [2025-04-01 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813208', 'tblTempVendorCDR_20' ) end [2025-04-01 20:14:18] Production.INFO: ProcessCDR(1,14813208,1,1,2) [2025-04-01 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813208', 'tblTempUsageDetail_20' ) start [2025-04-01 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813208', 'tblTempUsageDetail_20' ) end [2025-04-01 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:14:22] Production.INFO: ==17555== Releasing lock... [2025-04-01 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:14:22] Production.INFO: 46.5 MB #Memory Used# [2025-04-01 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:15:05 [end_date_ymd] => 2025-04-01 20:15:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:15:05' and `end` < '2025-04-01 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-01 20:15:18] Production.INFO: count ==2465 [2025-04-01 20:15:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:15:05 - End Time 2025-04-01 20:15:05 [2025-04-01 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813213', 'tblTempUsageDetail_20' ) start [2025-04-01 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813213', 'tblTempUsageDetail_20' ) end [2025-04-01 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813213', 'tblTempVendorCDR_20' ) start [2025-04-01 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813213', 'tblTempVendorCDR_20' ) end [2025-04-01 20:15:19] Production.INFO: ProcessCDR(1,14813213,1,1,2) [2025-04-01 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813213', 'tblTempUsageDetail_20' ) start [2025-04-01 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813213', 'tblTempUsageDetail_20' ) end [2025-04-01 20:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:15:23] Production.INFO: ==17629== Releasing lock... [2025-04-01 20:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:15:23] Production.INFO: 46.5 MB #Memory Used# [2025-04-01 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:16:05 [end_date_ymd] => 2025-04-01 20:16:05 [RateCDR] => 1 ) [2025-04-01 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 17:16:05' and `end` < '2025-04-01 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 20:16:18] Production.INFO: count ==2456 [2025-04-01 20:16:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:16:05 - End Time 2025-04-01 20:16:05 [2025-04-01 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813218', 'tblTempUsageDetail_20' ) start [2025-04-01 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813218', 'tblTempUsageDetail_20' ) end [2025-04-01 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813218', 'tblTempVendorCDR_20' ) start [2025-04-01 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813218', 'tblTempVendorCDR_20' ) end [2025-04-01 20:16:19] Production.INFO: ProcessCDR(1,14813218,1,1,2) [2025-04-01 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813218', 'tblTempUsageDetail_20' ) start [2025-04-01 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813218', 'tblTempUsageDetail_20' ) end [2025-04-01 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:16:23] Production.INFO: ==17700== Releasing lock... [2025-04-01 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:16:23] Production.INFO: 46.5 MB #Memory Used# [2025-04-01 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:17:05 [end_date_ymd] => 2025-04-01 20:17:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:17:05' and `end` < '2025-04-01 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-01 20:17:18] Production.INFO: count ==2447 [2025-04-01 20:17:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:17:05 - End Time 2025-04-01 20:17:05 [2025-04-01 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813223', 'tblTempUsageDetail_20' ) start [2025-04-01 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813223', 'tblTempUsageDetail_20' ) end [2025-04-01 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813223', 'tblTempVendorCDR_20' ) start [2025-04-01 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813223', 'tblTempVendorCDR_20' ) end [2025-04-01 20:17:19] Production.INFO: ProcessCDR(1,14813223,1,1,2) [2025-04-01 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813223', 'tblTempUsageDetail_20' ) start [2025-04-01 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813223', 'tblTempUsageDetail_20' ) end [2025-04-01 20:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:17:23] Production.INFO: ==17772== Releasing lock... [2025-04-01 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:17:23] Production.INFO: 46.5 MB #Memory Used# [2025-04-01 20:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:18:05 [end_date_ymd] => 2025-04-01 20:18:05 [RateCDR] => 1 ) [2025-04-01 20: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-01 17:18:05' and `end` < '2025-04-01 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-01 20:18:18] Production.INFO: count ==2447 [2025-04-01 20:18:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:18:05 - End Time 2025-04-01 20:18:05 [2025-04-01 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813228', 'tblTempUsageDetail_20' ) start [2025-04-01 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813228', 'tblTempUsageDetail_20' ) end [2025-04-01 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813228', 'tblTempVendorCDR_20' ) start [2025-04-01 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813228', 'tblTempVendorCDR_20' ) end [2025-04-01 20:18:19] Production.INFO: ProcessCDR(1,14813228,1,1,2) [2025-04-01 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813228', 'tblTempUsageDetail_20' ) start [2025-04-01 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813228', 'tblTempUsageDetail_20' ) end [2025-04-01 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:18:23] Production.INFO: ==17847== Releasing lock... [2025-04-01 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:18:23] Production.INFO: 46.5 MB #Memory Used# [2025-04-01 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:19:05 [end_date_ymd] => 2025-04-01 20:19:05 [RateCDR] => 1 ) [2025-04-01 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 17:19:05' and `end` < '2025-04-01 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 20:19:18] Production.INFO: count ==2452 [2025-04-01 20:19:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:19:05 - End Time 2025-04-01 20:19:05 [2025-04-01 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813233', 'tblTempUsageDetail_20' ) start [2025-04-01 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813233', 'tblTempUsageDetail_20' ) end [2025-04-01 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813233', 'tblTempVendorCDR_20' ) start [2025-04-01 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813233', 'tblTempVendorCDR_20' ) end [2025-04-01 20:19:19] Production.INFO: ProcessCDR(1,14813233,1,1,2) [2025-04-01 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813233', 'tblTempUsageDetail_20' ) start [2025-04-01 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813233', 'tblTempUsageDetail_20' ) end [2025-04-01 20:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:19:24] Production.INFO: ==17918== Releasing lock... [2025-04-01 20:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:19:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-01 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:20:06 [end_date_ymd] => 2025-04-01 20:20:06 [RateCDR] => 1 ) [2025-04-01 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 17:20:06' and `end` < '2025-04-01 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 20:20:19] Production.INFO: count ==2470 [2025-04-01 20:20:20] Production.ERROR: pbx CDR StartTime 2025-04-01 17:20:06 - End Time 2025-04-01 20:20:06 [2025-04-01 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813239', 'tblTempUsageDetail_20' ) start [2025-04-01 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813239', 'tblTempUsageDetail_20' ) end [2025-04-01 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813239', 'tblTempVendorCDR_20' ) start [2025-04-01 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813239', 'tblTempVendorCDR_20' ) end [2025-04-01 20:20:20] Production.INFO: ProcessCDR(1,14813239,1,1,2) [2025-04-01 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813239', 'tblTempUsageDetail_20' ) start [2025-04-01 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813239', 'tblTempUsageDetail_20' ) end [2025-04-01 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:20:24] Production.INFO: ==17992== Releasing lock... [2025-04-01 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:20:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-01 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:21:05 [end_date_ymd] => 2025-04-01 20:21:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:21:05' and `end` < '2025-04-01 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-01 20:21:18] Production.INFO: count ==2455 [2025-04-01 20:21:18] Production.ERROR: pbx CDR StartTime 2025-04-01 17:21:05 - End Time 2025-04-01 20:21:05 [2025-04-01 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813244', 'tblTempUsageDetail_20' ) start [2025-04-01 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813244', 'tblTempUsageDetail_20' ) end [2025-04-01 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813244', 'tblTempVendorCDR_20' ) start [2025-04-01 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813244', 'tblTempVendorCDR_20' ) end [2025-04-01 20:21:18] Production.INFO: ProcessCDR(1,14813244,1,1,2) [2025-04-01 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813244', 'tblTempUsageDetail_20' ) start [2025-04-01 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813244', 'tblTempUsageDetail_20' ) end [2025-04-01 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:21:22] Production.INFO: ==18071== Releasing lock... [2025-04-01 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:21:22] Production.INFO: 46.5 MB #Memory Used# [2025-04-01 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:22:05 [end_date_ymd] => 2025-04-01 20:22:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:22:05' and `end` < '2025-04-01 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-01 20:22:18] Production.INFO: count ==2456 [2025-04-01 20:22:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:22:05 - End Time 2025-04-01 20:22:05 [2025-04-01 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813249', 'tblTempUsageDetail_20' ) start [2025-04-01 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813249', 'tblTempUsageDetail_20' ) end [2025-04-01 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813249', 'tblTempVendorCDR_20' ) start [2025-04-01 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813249', 'tblTempVendorCDR_20' ) end [2025-04-01 20:22:19] Production.INFO: ProcessCDR(1,14813249,1,1,2) [2025-04-01 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813249', 'tblTempUsageDetail_20' ) start [2025-04-01 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813249', 'tblTempUsageDetail_20' ) end [2025-04-01 20:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:22:23] Production.INFO: ==18141== Releasing lock... [2025-04-01 20:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:22:23] Production.INFO: 46.5 MB #Memory Used# [2025-04-01 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:23:05 [end_date_ymd] => 2025-04-01 20:23:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:23:05' and `end` < '2025-04-01 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-01 20:23:18] Production.INFO: count ==2468 [2025-04-01 20:23:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:23:05 - End Time 2025-04-01 20:23:05 [2025-04-01 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813254', 'tblTempUsageDetail_20' ) start [2025-04-01 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813254', 'tblTempUsageDetail_20' ) end [2025-04-01 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813254', 'tblTempVendorCDR_20' ) start [2025-04-01 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813254', 'tblTempVendorCDR_20' ) end [2025-04-01 20:23:19] Production.INFO: ProcessCDR(1,14813254,1,1,2) [2025-04-01 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813254', 'tblTempUsageDetail_20' ) start [2025-04-01 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813254', 'tblTempUsageDetail_20' ) end [2025-04-01 20:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:23:24] Production.INFO: ==18220== Releasing lock... [2025-04-01 20:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:23:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-01 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:24:06 [end_date_ymd] => 2025-04-01 20:24:06 [RateCDR] => 1 ) [2025-04-01 20:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 17:24:06' and `end` < '2025-04-01 20:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 20:24:19] Production.INFO: count ==2490 [2025-04-01 20:24:20] Production.ERROR: pbx CDR StartTime 2025-04-01 17:24:06 - End Time 2025-04-01 20:24:06 [2025-04-01 20:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813259', 'tblTempUsageDetail_20' ) start [2025-04-01 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813259', 'tblTempUsageDetail_20' ) end [2025-04-01 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813259', 'tblTempVendorCDR_20' ) start [2025-04-01 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813259', 'tblTempVendorCDR_20' ) end [2025-04-01 20:24:20] Production.INFO: ProcessCDR(1,14813259,1,1,2) [2025-04-01 20:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813259', 'tblTempUsageDetail_20' ) start [2025-04-01 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813259', 'tblTempUsageDetail_20' ) end [2025-04-01 20:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:24:24] Production.INFO: ==18291== Releasing lock... [2025-04-01 20:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:24:24] Production.INFO: 47 MB #Memory Used# [2025-04-01 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:25:05 [end_date_ymd] => 2025-04-01 20:25:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:25:05' and `end` < '2025-04-01 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-01 20:25:18] Production.INFO: count ==2495 [2025-04-01 20:25:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:25:05 - End Time 2025-04-01 20:25:05 [2025-04-01 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813264', 'tblTempUsageDetail_20' ) start [2025-04-01 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813264', 'tblTempUsageDetail_20' ) end [2025-04-01 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813264', 'tblTempVendorCDR_20' ) start [2025-04-01 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813264', 'tblTempVendorCDR_20' ) end [2025-04-01 20:25:19] Production.INFO: ProcessCDR(1,14813264,1,1,2) [2025-04-01 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813264', 'tblTempUsageDetail_20' ) start [2025-04-01 20:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813264', 'tblTempUsageDetail_20' ) end [2025-04-01 20:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:25:24] Production.INFO: ==18401== Releasing lock... [2025-04-01 20:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:25:24] Production.INFO: 46.75 MB #Memory Used# [2025-04-01 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:26:05 [end_date_ymd] => 2025-04-01 20:26:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:26:05' and `end` < '2025-04-01 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-01 20:26:18] Production.INFO: count ==2499 [2025-04-01 20:26:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:26:05 - End Time 2025-04-01 20:26:05 [2025-04-01 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813269', 'tblTempUsageDetail_20' ) start [2025-04-01 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813269', 'tblTempUsageDetail_20' ) end [2025-04-01 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813269', 'tblTempVendorCDR_20' ) start [2025-04-01 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813269', 'tblTempVendorCDR_20' ) end [2025-04-01 20:26:19] Production.INFO: ProcessCDR(1,14813269,1,1,2) [2025-04-01 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813269', 'tblTempUsageDetail_20' ) start [2025-04-01 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813269', 'tblTempUsageDetail_20' ) end [2025-04-01 20:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:26:24] Production.INFO: ==18475== Releasing lock... [2025-04-01 20:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:26:24] Production.INFO: 46.75 MB #Memory Used# [2025-04-01 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:27:05 [end_date_ymd] => 2025-04-01 20:27:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:27:05' and `end` < '2025-04-01 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-01 20:27:18] Production.INFO: count ==2497 [2025-04-01 20:27:18] Production.ERROR: pbx CDR StartTime 2025-04-01 17:27:05 - End Time 2025-04-01 20:27:05 [2025-04-01 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813274', 'tblTempUsageDetail_20' ) start [2025-04-01 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813274', 'tblTempUsageDetail_20' ) end [2025-04-01 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813274', 'tblTempVendorCDR_20' ) start [2025-04-01 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813274', 'tblTempVendorCDR_20' ) end [2025-04-01 20:27:18] Production.INFO: ProcessCDR(1,14813274,1,1,2) [2025-04-01 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813274', 'tblTempUsageDetail_20' ) start [2025-04-01 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813274', 'tblTempUsageDetail_20' ) end [2025-04-01 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:27:22] Production.INFO: ==18546== Releasing lock... [2025-04-01 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:27:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-01 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:28:05 [end_date_ymd] => 2025-04-01 20:28:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:28:05' and `end` < '2025-04-01 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-01 20:28:18] Production.INFO: count ==2497 [2025-04-01 20:28:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:28:05 - End Time 2025-04-01 20:28:05 [2025-04-01 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813279', 'tblTempUsageDetail_20' ) start [2025-04-01 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813279', 'tblTempUsageDetail_20' ) end [2025-04-01 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813279', 'tblTempVendorCDR_20' ) start [2025-04-01 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813279', 'tblTempVendorCDR_20' ) end [2025-04-01 20:28:19] Production.INFO: ProcessCDR(1,14813279,1,1,2) [2025-04-01 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813279', 'tblTempUsageDetail_20' ) start [2025-04-01 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813279', 'tblTempUsageDetail_20' ) end [2025-04-01 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:28:23] Production.INFO: ==18616== Releasing lock... [2025-04-01 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:28:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-01 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:29:05 [end_date_ymd] => 2025-04-01 20:29:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:29:05' and `end` < '2025-04-01 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-01 20:29:18] Production.INFO: count ==2470 [2025-04-01 20:29:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:29:05 - End Time 2025-04-01 20:29:05 [2025-04-01 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813284', 'tblTempUsageDetail_20' ) start [2025-04-01 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813284', 'tblTempUsageDetail_20' ) end [2025-04-01 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813284', 'tblTempVendorCDR_20' ) start [2025-04-01 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813284', 'tblTempVendorCDR_20' ) end [2025-04-01 20:29:19] Production.INFO: ProcessCDR(1,14813284,1,1,2) [2025-04-01 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813284', 'tblTempUsageDetail_20' ) start [2025-04-01 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813284', 'tblTempUsageDetail_20' ) end [2025-04-01 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:29:22] Production.INFO: ==18686== Releasing lock... [2025-04-01 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:29:22] Production.INFO: 46.5 MB #Memory Used# [2025-04-01 20:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:30:07 [end_date_ymd] => 2025-04-01 20:30:07 [RateCDR] => 1 ) [2025-04-01 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-01 17:30:07' and `end` < '2025-04-01 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-01 20:30:20] Production.INFO: count ==2459 [2025-04-01 20:30:21] Production.ERROR: pbx CDR StartTime 2025-04-01 17:30:07 - End Time 2025-04-01 20:30:07 [2025-04-01 20:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813290', 'tblTempUsageDetail_20' ) start [2025-04-01 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813290', 'tblTempUsageDetail_20' ) end [2025-04-01 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813290', 'tblTempVendorCDR_20' ) start [2025-04-01 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813290', 'tblTempVendorCDR_20' ) end [2025-04-01 20:30:21] Production.INFO: ProcessCDR(1,14813290,1,1,2) [2025-04-01 20:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813290', 'tblTempUsageDetail_20' ) start [2025-04-01 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813290', 'tblTempUsageDetail_20' ) end [2025-04-01 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:30:24] Production.INFO: ==18762== Releasing lock... [2025-04-01 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:30:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-01 20:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:31:06 [end_date_ymd] => 2025-04-01 20:31:06 [RateCDR] => 1 ) [2025-04-01 20: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-01 17:31:06' and `end` < '2025-04-01 20: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-01 20:31:19] Production.INFO: count ==2386 [2025-04-01 20:31:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:31:06 - End Time 2025-04-01 20:31:06 [2025-04-01 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813295', 'tblTempUsageDetail_20' ) start [2025-04-01 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813295', 'tblTempUsageDetail_20' ) end [2025-04-01 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813295', 'tblTempVendorCDR_20' ) start [2025-04-01 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813295', 'tblTempVendorCDR_20' ) end [2025-04-01 20:31:20] Production.INFO: ProcessCDR(1,14813295,1,1,2) [2025-04-01 20:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813295', 'tblTempUsageDetail_20' ) start [2025-04-01 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813295', 'tblTempUsageDetail_20' ) end [2025-04-01 20:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:31:23] Production.INFO: ==18834== Releasing lock... [2025-04-01 20:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:31:23] Production.INFO: 46 MB #Memory Used# [2025-04-01 20:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:32:06 [end_date_ymd] => 2025-04-01 20:32:06 [RateCDR] => 1 ) [2025-04-01 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-01 17:32:06' and `end` < '2025-04-01 20: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-01 20:32:19] Production.INFO: count ==2387 [2025-04-01 20:32:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:32:06 - End Time 2025-04-01 20:32:06 [2025-04-01 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813300', 'tblTempUsageDetail_20' ) start [2025-04-01 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813300', 'tblTempUsageDetail_20' ) end [2025-04-01 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813300', 'tblTempVendorCDR_20' ) start [2025-04-01 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813300', 'tblTempVendorCDR_20' ) end [2025-04-01 20:32:19] Production.INFO: ProcessCDR(1,14813300,1,1,2) [2025-04-01 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813300', 'tblTempUsageDetail_20' ) start [2025-04-01 20:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813300', 'tblTempUsageDetail_20' ) end [2025-04-01 20:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:32:25] Production.INFO: ==18907== Releasing lock... [2025-04-01 20:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:32:25] Production.INFO: 46 MB #Memory Used# [2025-04-01 20:33:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:33:07 [end_date_ymd] => 2025-04-01 20:33:07 [RateCDR] => 1 ) [2025-04-01 20: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-01 17:33:07' and `end` < '2025-04-01 20: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-01 20:33:19] Production.INFO: count ==2379 [2025-04-01 20:33:20] Production.ERROR: pbx CDR StartTime 2025-04-01 17:33:07 - End Time 2025-04-01 20:33:07 [2025-04-01 20:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813305', 'tblTempUsageDetail_20' ) start [2025-04-01 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813305', 'tblTempUsageDetail_20' ) end [2025-04-01 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813305', 'tblTempVendorCDR_20' ) start [2025-04-01 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813305', 'tblTempVendorCDR_20' ) end [2025-04-01 20:33:20] Production.INFO: ProcessCDR(1,14813305,1,1,2) [2025-04-01 20:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813305', 'tblTempUsageDetail_20' ) start [2025-04-01 20:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813305', 'tblTempUsageDetail_20' ) end [2025-04-01 20:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:33:25] Production.INFO: ==18979== Releasing lock... [2025-04-01 20:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:33:25] Production.INFO: 46 MB #Memory Used# [2025-04-01 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:34:05 [end_date_ymd] => 2025-04-01 20:34:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:34:05' and `end` < '2025-04-01 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-01 20:34:18] Production.INFO: count ==2373 [2025-04-01 20:34:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:34:05 - End Time 2025-04-01 20:34:05 [2025-04-01 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813310', 'tblTempUsageDetail_20' ) start [2025-04-01 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813310', 'tblTempUsageDetail_20' ) end [2025-04-01 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813310', 'tblTempVendorCDR_20' ) start [2025-04-01 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813310', 'tblTempVendorCDR_20' ) end [2025-04-01 20:34:19] Production.INFO: ProcessCDR(1,14813310,1,1,2) [2025-04-01 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813310', 'tblTempUsageDetail_20' ) start [2025-04-01 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813310', 'tblTempUsageDetail_20' ) end [2025-04-01 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:34:23] Production.INFO: ==19051== Releasing lock... [2025-04-01 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:34:23] Production.INFO: 46 MB #Memory Used# [2025-04-01 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:35:05 [end_date_ymd] => 2025-04-01 20:35:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:35:05' and `end` < '2025-04-01 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-01 20:35:18] Production.INFO: count ==2367 [2025-04-01 20:35:18] Production.ERROR: pbx CDR StartTime 2025-04-01 17:35:05 - End Time 2025-04-01 20:35:05 [2025-04-01 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813315', 'tblTempUsageDetail_20' ) start [2025-04-01 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813315', 'tblTempUsageDetail_20' ) end [2025-04-01 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813315', 'tblTempVendorCDR_20' ) start [2025-04-01 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813315', 'tblTempVendorCDR_20' ) end [2025-04-01 20:35:18] Production.INFO: ProcessCDR(1,14813315,1,1,2) [2025-04-01 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813315', 'tblTempUsageDetail_20' ) start [2025-04-01 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813315', 'tblTempUsageDetail_20' ) end [2025-04-01 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:35:22] Production.INFO: ==19128== Releasing lock... [2025-04-01 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:35:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-01 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:36:05 [end_date_ymd] => 2025-04-01 20:36:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:36:05' and `end` < '2025-04-01 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-01 20:36:18] Production.INFO: count ==2355 [2025-04-01 20:36:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:36:05 - End Time 2025-04-01 20:36:05 [2025-04-01 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813320', 'tblTempUsageDetail_20' ) start [2025-04-01 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813320', 'tblTempUsageDetail_20' ) end [2025-04-01 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813320', 'tblTempVendorCDR_20' ) start [2025-04-01 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813320', 'tblTempVendorCDR_20' ) end [2025-04-01 20:36:19] Production.INFO: ProcessCDR(1,14813320,1,1,2) [2025-04-01 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813320', 'tblTempUsageDetail_20' ) start [2025-04-01 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813320', 'tblTempUsageDetail_20' ) end [2025-04-01 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:36:22] Production.INFO: ==19202== Releasing lock... [2025-04-01 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:36:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-01 20:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:37:06 [end_date_ymd] => 2025-04-01 20:37:06 [RateCDR] => 1 ) [2025-04-01 20: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-01 17:37:06' and `end` < '2025-04-01 20: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-01 20:37:19] Production.INFO: count ==2354 [2025-04-01 20:37:20] Production.ERROR: pbx CDR StartTime 2025-04-01 17:37:06 - End Time 2025-04-01 20:37:06 [2025-04-01 20:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813325', 'tblTempUsageDetail_20' ) start [2025-04-01 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813325', 'tblTempUsageDetail_20' ) end [2025-04-01 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813325', 'tblTempVendorCDR_20' ) start [2025-04-01 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813325', 'tblTempVendorCDR_20' ) end [2025-04-01 20:37:20] Production.INFO: ProcessCDR(1,14813325,1,1,2) [2025-04-01 20:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813325', 'tblTempUsageDetail_20' ) start [2025-04-01 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813325', 'tblTempUsageDetail_20' ) end [2025-04-01 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:37:23] Production.INFO: ==19272== Releasing lock... [2025-04-01 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:37:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-01 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:38:05 [end_date_ymd] => 2025-04-01 20:38:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:38:05' and `end` < '2025-04-01 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-01 20:38:18] Production.INFO: count ==2332 [2025-04-01 20:38:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:38:05 - End Time 2025-04-01 20:38:05 [2025-04-01 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813330', 'tblTempUsageDetail_20' ) start [2025-04-01 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813330', 'tblTempUsageDetail_20' ) end [2025-04-01 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813330', 'tblTempVendorCDR_20' ) start [2025-04-01 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813330', 'tblTempVendorCDR_20' ) end [2025-04-01 20:38:19] Production.INFO: ProcessCDR(1,14813330,1,1,2) [2025-04-01 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813330', 'tblTempUsageDetail_20' ) start [2025-04-01 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813330', 'tblTempUsageDetail_20' ) end [2025-04-01 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:38:22] Production.INFO: ==19344== Releasing lock... [2025-04-01 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:38:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-01 20:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:39:06 [end_date_ymd] => 2025-04-01 20:39:06 [RateCDR] => 1 ) [2025-04-01 20: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-01 17:39:06' and `end` < '2025-04-01 20: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-01 20:39:18] Production.INFO: count ==2325 [2025-04-01 20:39:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:39:06 - End Time 2025-04-01 20:39:06 [2025-04-01 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813335', 'tblTempUsageDetail_20' ) start [2025-04-01 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813335', 'tblTempUsageDetail_20' ) end [2025-04-01 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813335', 'tblTempVendorCDR_20' ) start [2025-04-01 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813335', 'tblTempVendorCDR_20' ) end [2025-04-01 20:39:19] Production.INFO: ProcessCDR(1,14813335,1,1,2) [2025-04-01 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813335', 'tblTempUsageDetail_20' ) start [2025-04-01 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813335', 'tblTempUsageDetail_20' ) end [2025-04-01 20:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:39:24] Production.INFO: ==19415== Releasing lock... [2025-04-01 20:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:39:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-01 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:40:06 [end_date_ymd] => 2025-04-01 20:40:06 [RateCDR] => 1 ) [2025-04-01 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 17:40:06' and `end` < '2025-04-01 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 20:40:19] Production.INFO: count ==2314 [2025-04-01 20:40:20] Production.ERROR: pbx CDR StartTime 2025-04-01 17:40:06 - End Time 2025-04-01 20:40:06 [2025-04-01 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813341', 'tblTempUsageDetail_20' ) start [2025-04-01 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813341', 'tblTempUsageDetail_20' ) end [2025-04-01 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813341', 'tblTempVendorCDR_20' ) start [2025-04-01 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813341', 'tblTempVendorCDR_20' ) end [2025-04-01 20:40:20] Production.INFO: ProcessCDR(1,14813341,1,1,2) [2025-04-01 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813341', 'tblTempUsageDetail_20' ) start [2025-04-01 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813341', 'tblTempUsageDetail_20' ) end [2025-04-01 20:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:40:24] Production.INFO: ==19489== Releasing lock... [2025-04-01 20:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:40:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-01 20:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:41:06 [end_date_ymd] => 2025-04-01 20:41:06 [RateCDR] => 1 ) [2025-04-01 20:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 17:41:06' and `end` < '2025-04-01 20:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 20:41:18] Production.INFO: count ==2268 [2025-04-01 20:41:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:41:06 - End Time 2025-04-01 20:41:06 [2025-04-01 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813346', 'tblTempUsageDetail_20' ) start [2025-04-01 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813346', 'tblTempUsageDetail_20' ) end [2025-04-01 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813346', 'tblTempVendorCDR_20' ) start [2025-04-01 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813346', 'tblTempVendorCDR_20' ) end [2025-04-01 20:41:19] Production.INFO: ProcessCDR(1,14813346,1,1,2) [2025-04-01 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813346', 'tblTempUsageDetail_20' ) start [2025-04-01 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813346', 'tblTempUsageDetail_20' ) end [2025-04-01 20:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:41:23] Production.INFO: ==19607== Releasing lock... [2025-04-01 20:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:41:23] Production.INFO: 45 MB #Memory Used# [2025-04-01 20:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:42:06 [end_date_ymd] => 2025-04-01 20:42:06 [RateCDR] => 1 ) [2025-04-01 20: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-01 17:42:06' and `end` < '2025-04-01 20: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-01 20:42:19] Production.INFO: count ==2260 [2025-04-01 20:42:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:42:06 - End Time 2025-04-01 20:42:06 [2025-04-01 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813351', 'tblTempUsageDetail_20' ) start [2025-04-01 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813351', 'tblTempUsageDetail_20' ) end [2025-04-01 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813351', 'tblTempVendorCDR_20' ) start [2025-04-01 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813351', 'tblTempVendorCDR_20' ) end [2025-04-01 20:42:19] Production.INFO: ProcessCDR(1,14813351,1,1,2) [2025-04-01 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813351', 'tblTempUsageDetail_20' ) start [2025-04-01 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813351', 'tblTempUsageDetail_20' ) end [2025-04-01 20:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:42:23] Production.INFO: ==19677== Releasing lock... [2025-04-01 20:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:42:23] Production.INFO: 45 MB #Memory Used# [2025-04-01 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:43:05 [end_date_ymd] => 2025-04-01 20:43:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:43:05' and `end` < '2025-04-01 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-01 20:43:18] Production.INFO: count ==2260 [2025-04-01 20:43:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:43:05 - End Time 2025-04-01 20:43:05 [2025-04-01 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813356', 'tblTempUsageDetail_20' ) start [2025-04-01 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813356', 'tblTempUsageDetail_20' ) end [2025-04-01 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813356', 'tblTempVendorCDR_20' ) start [2025-04-01 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813356', 'tblTempVendorCDR_20' ) end [2025-04-01 20:43:19] Production.INFO: ProcessCDR(1,14813356,1,1,2) [2025-04-01 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813356', 'tblTempUsageDetail_20' ) start [2025-04-01 20:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813356', 'tblTempUsageDetail_20' ) end [2025-04-01 20:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:43:24] Production.INFO: ==19749== Releasing lock... [2025-04-01 20:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:43:24] Production.INFO: 45 MB #Memory Used# [2025-04-01 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:44:05 [end_date_ymd] => 2025-04-01 20:44:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:44:05' and `end` < '2025-04-01 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-01 20:44:18] Production.INFO: count ==2250 [2025-04-01 20:44:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:44:05 - End Time 2025-04-01 20:44:05 [2025-04-01 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813361', 'tblTempUsageDetail_20' ) start [2025-04-01 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813361', 'tblTempUsageDetail_20' ) end [2025-04-01 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813361', 'tblTempVendorCDR_20' ) start [2025-04-01 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813361', 'tblTempVendorCDR_20' ) end [2025-04-01 20:44:19] Production.INFO: ProcessCDR(1,14813361,1,1,2) [2025-04-01 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813361', 'tblTempUsageDetail_20' ) start [2025-04-01 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813361', 'tblTempUsageDetail_20' ) end [2025-04-01 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:44:23] Production.INFO: ==19821== Releasing lock... [2025-04-01 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:44:23] Production.INFO: 45 MB #Memory Used# [2025-04-01 20:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:45:06 [end_date_ymd] => 2025-04-01 20:45:06 [RateCDR] => 1 ) [2025-04-01 20:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 17:45:06' and `end` < '2025-04-01 20:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 20:45:19] Production.INFO: count ==2247 [2025-04-01 20:45:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:45:06 - End Time 2025-04-01 20:45:06 [2025-04-01 20:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813366', 'tblTempUsageDetail_20' ) start [2025-04-01 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813366', 'tblTempUsageDetail_20' ) end [2025-04-01 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813366', 'tblTempVendorCDR_20' ) start [2025-04-01 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813366', 'tblTempVendorCDR_20' ) end [2025-04-01 20:45:20] Production.INFO: ProcessCDR(1,14813366,1,1,2) [2025-04-01 20:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813366', 'tblTempUsageDetail_20' ) start [2025-04-01 20:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813366', 'tblTempUsageDetail_20' ) end [2025-04-01 20:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:45:25] Production.INFO: ==19893== Releasing lock... [2025-04-01 20:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:45:25] Production.INFO: 45 MB #Memory Used# [2025-04-01 20:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:46:06 [end_date_ymd] => 2025-04-01 20:46:06 [RateCDR] => 1 ) [2025-04-01 20: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-01 17:46:06' and `end` < '2025-04-01 20: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-01 20:46:18] Production.INFO: count ==2244 [2025-04-01 20:46:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:46:06 - End Time 2025-04-01 20:46:06 [2025-04-01 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813371', 'tblTempUsageDetail_20' ) start [2025-04-01 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813371', 'tblTempUsageDetail_20' ) end [2025-04-01 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813371', 'tblTempVendorCDR_20' ) start [2025-04-01 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813371', 'tblTempVendorCDR_20' ) end [2025-04-01 20:46:19] Production.INFO: ProcessCDR(1,14813371,1,1,2) [2025-04-01 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813371', 'tblTempUsageDetail_20' ) start [2025-04-01 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813371', 'tblTempUsageDetail_20' ) end [2025-04-01 20:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:46:23] Production.INFO: ==19972== Releasing lock... [2025-04-01 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:46:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-01 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:47:05 [end_date_ymd] => 2025-04-01 20:47:05 [RateCDR] => 1 ) [2025-04-01 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 17:47:05' and `end` < '2025-04-01 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 20:47:18] Production.INFO: count ==2222 [2025-04-01 20:47:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:47:05 - End Time 2025-04-01 20:47:05 [2025-04-01 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813376', 'tblTempUsageDetail_20' ) start [2025-04-01 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813376', 'tblTempUsageDetail_20' ) end [2025-04-01 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813376', 'tblTempVendorCDR_20' ) start [2025-04-01 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813376', 'tblTempVendorCDR_20' ) end [2025-04-01 20:47:19] Production.INFO: ProcessCDR(1,14813376,1,1,2) [2025-04-01 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813376', 'tblTempUsageDetail_20' ) start [2025-04-01 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813376', 'tblTempUsageDetail_20' ) end [2025-04-01 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:47:22] Production.INFO: ==20044== Releasing lock... [2025-04-01 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:47:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-01 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:48:05 [end_date_ymd] => 2025-04-01 20:48:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:48:05' and `end` < '2025-04-01 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-01 20:48:18] Production.INFO: count ==2219 [2025-04-01 20:48:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:48:05 - End Time 2025-04-01 20:48:05 [2025-04-01 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813381', 'tblTempUsageDetail_20' ) start [2025-04-01 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813381', 'tblTempUsageDetail_20' ) end [2025-04-01 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813381', 'tblTempVendorCDR_20' ) start [2025-04-01 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813381', 'tblTempVendorCDR_20' ) end [2025-04-01 20:48:19] Production.INFO: ProcessCDR(1,14813381,1,1,2) [2025-04-01 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813381', 'tblTempUsageDetail_20' ) start [2025-04-01 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813381', 'tblTempUsageDetail_20' ) end [2025-04-01 20:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:48:23] Production.INFO: ==20115== Releasing lock... [2025-04-01 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:48:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-01 20:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:49:06 [end_date_ymd] => 2025-04-01 20:49:06 [RateCDR] => 1 ) [2025-04-01 20: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-01 17:49:06' and `end` < '2025-04-01 20: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-01 20:49:19] Production.INFO: count ==2210 [2025-04-01 20:49:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:49:06 - End Time 2025-04-01 20:49:06 [2025-04-01 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813386', 'tblTempUsageDetail_20' ) start [2025-04-01 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813386', 'tblTempUsageDetail_20' ) end [2025-04-01 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813386', 'tblTempVendorCDR_20' ) start [2025-04-01 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813386', 'tblTempVendorCDR_20' ) end [2025-04-01 20:49:19] Production.INFO: ProcessCDR(1,14813386,1,1,2) [2025-04-01 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813386', 'tblTempUsageDetail_20' ) start [2025-04-01 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813386', 'tblTempUsageDetail_20' ) end [2025-04-01 20:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:49:23] Production.INFO: ==20187== Releasing lock... [2025-04-01 20:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:49:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-01 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:50:06 [end_date_ymd] => 2025-04-01 20:50:06 [RateCDR] => 1 ) [2025-04-01 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-01 17:50:06' and `end` < '2025-04-01 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-01 20:50:19] Production.INFO: count ==2195 [2025-04-01 20:50:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:50:06 - End Time 2025-04-01 20:50:06 [2025-04-01 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813392', 'tblTempUsageDetail_20' ) start [2025-04-01 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813392', 'tblTempUsageDetail_20' ) end [2025-04-01 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813392', 'tblTempVendorCDR_20' ) start [2025-04-01 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813392', 'tblTempVendorCDR_20' ) end [2025-04-01 20:50:20] Production.INFO: ProcessCDR(1,14813392,1,1,2) [2025-04-01 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813392', 'tblTempUsageDetail_20' ) start [2025-04-01 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813392', 'tblTempUsageDetail_20' ) end [2025-04-01 20:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:50:25] Production.INFO: ==20258== Releasing lock... [2025-04-01 20:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:50:25] Production.INFO: 44.75 MB #Memory Used# [2025-04-01 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:51:05 [end_date_ymd] => 2025-04-01 20:51:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:51:05' and `end` < '2025-04-01 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-01 20:51:18] Production.INFO: count ==2136 [2025-04-01 20:51:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:51:05 - End Time 2025-04-01 20:51:05 [2025-04-01 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813397', 'tblTempUsageDetail_20' ) start [2025-04-01 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813397', 'tblTempUsageDetail_20' ) end [2025-04-01 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813397', 'tblTempVendorCDR_20' ) start [2025-04-01 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813397', 'tblTempVendorCDR_20' ) end [2025-04-01 20:51:19] Production.INFO: ProcessCDR(1,14813397,1,1,2) [2025-04-01 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813397', 'tblTempUsageDetail_20' ) start [2025-04-01 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813397', 'tblTempUsageDetail_20' ) end [2025-04-01 20:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:51:23] Production.INFO: ==20332== Releasing lock... [2025-04-01 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:51:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-01 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:52:05 [end_date_ymd] => 2025-04-01 20:52:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:52:05' and `end` < '2025-04-01 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-01 20:52:18] Production.INFO: count ==2132 [2025-04-01 20:52:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:52:05 - End Time 2025-04-01 20:52:05 [2025-04-01 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813402', 'tblTempUsageDetail_20' ) start [2025-04-01 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813402', 'tblTempUsageDetail_20' ) end [2025-04-01 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813402', 'tblTempVendorCDR_20' ) start [2025-04-01 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813402', 'tblTempVendorCDR_20' ) end [2025-04-01 20:52:19] Production.INFO: ProcessCDR(1,14813402,1,1,2) [2025-04-01 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813402', 'tblTempUsageDetail_20' ) start [2025-04-01 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813402', 'tblTempUsageDetail_20' ) end [2025-04-01 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:52:22] Production.INFO: ==20403== Releasing lock... [2025-04-01 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:52:22] Production.INFO: 44 MB #Memory Used# [2025-04-01 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:53:05 [end_date_ymd] => 2025-04-01 20:53:05 [RateCDR] => 1 ) [2025-04-01 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 17:53:05' and `end` < '2025-04-01 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 20:53:18] Production.INFO: count ==2143 [2025-04-01 20:53:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:53:05 - End Time 2025-04-01 20:53:05 [2025-04-01 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813407', 'tblTempUsageDetail_20' ) start [2025-04-01 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813407', 'tblTempUsageDetail_20' ) end [2025-04-01 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813407', 'tblTempVendorCDR_20' ) start [2025-04-01 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813407', 'tblTempVendorCDR_20' ) end [2025-04-01 20:53:19] Production.INFO: ProcessCDR(1,14813407,1,1,2) [2025-04-01 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813407', 'tblTempUsageDetail_20' ) start [2025-04-01 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813407', 'tblTempUsageDetail_20' ) end [2025-04-01 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:53:22] Production.INFO: ==20475== Releasing lock... [2025-04-01 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:53:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-01 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:54:05 [end_date_ymd] => 2025-04-01 20:54:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:54:05' and `end` < '2025-04-01 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-01 20:54:18] Production.INFO: count ==2152 [2025-04-01 20:54:18] Production.ERROR: pbx CDR StartTime 2025-04-01 17:54:05 - End Time 2025-04-01 20:54:05 [2025-04-01 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813412', 'tblTempUsageDetail_20' ) start [2025-04-01 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813412', 'tblTempUsageDetail_20' ) end [2025-04-01 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813412', 'tblTempVendorCDR_20' ) start [2025-04-01 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813412', 'tblTempVendorCDR_20' ) end [2025-04-01 20:54:19] Production.INFO: ProcessCDR(1,14813412,1,1,2) [2025-04-01 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813412', 'tblTempUsageDetail_20' ) start [2025-04-01 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813412', 'tblTempUsageDetail_20' ) end [2025-04-01 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:54:22] Production.INFO: ==20544== Releasing lock... [2025-04-01 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:54:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-01 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:55:05 [end_date_ymd] => 2025-04-01 20:55:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:55:05' and `end` < '2025-04-01 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-01 20:55:18] Production.INFO: count ==2146 [2025-04-01 20:55:18] Production.ERROR: pbx CDR StartTime 2025-04-01 17:55:05 - End Time 2025-04-01 20:55:05 [2025-04-01 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813417', 'tblTempUsageDetail_20' ) start [2025-04-01 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813417', 'tblTempUsageDetail_20' ) end [2025-04-01 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813417', 'tblTempVendorCDR_20' ) start [2025-04-01 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813417', 'tblTempVendorCDR_20' ) end [2025-04-01 20:55:19] Production.INFO: ProcessCDR(1,14813417,1,1,2) [2025-04-01 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813417', 'tblTempUsageDetail_20' ) start [2025-04-01 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813417', 'tblTempUsageDetail_20' ) end [2025-04-01 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:55:22] Production.INFO: ==20614== Releasing lock... [2025-04-01 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:55:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-01 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:56:05 [end_date_ymd] => 2025-04-01 20:56:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:56:05' and `end` < '2025-04-01 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-01 20:56:18] Production.INFO: count ==2132 [2025-04-01 20:56:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:56:05 - End Time 2025-04-01 20:56:05 [2025-04-01 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813422', 'tblTempUsageDetail_20' ) start [2025-04-01 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813422', 'tblTempUsageDetail_20' ) end [2025-04-01 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813422', 'tblTempVendorCDR_20' ) start [2025-04-01 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813422', 'tblTempVendorCDR_20' ) end [2025-04-01 20:56:19] Production.INFO: ProcessCDR(1,14813422,1,1,2) [2025-04-01 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813422', 'tblTempUsageDetail_20' ) start [2025-04-01 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813422', 'tblTempUsageDetail_20' ) end [2025-04-01 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:56:22] Production.INFO: ==20725== Releasing lock... [2025-04-01 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:56:22] Production.INFO: 44 MB #Memory Used# [2025-04-01 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:57:05 [end_date_ymd] => 2025-04-01 20:57:05 [RateCDR] => 1 ) [2025-04-01 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 17:57:05' and `end` < '2025-04-01 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 20:57:18] Production.INFO: count ==2141 [2025-04-01 20:57:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:57:05 - End Time 2025-04-01 20:57:05 [2025-04-01 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813427', 'tblTempUsageDetail_20' ) start [2025-04-01 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813427', 'tblTempUsageDetail_20' ) end [2025-04-01 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813427', 'tblTempVendorCDR_20' ) start [2025-04-01 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813427', 'tblTempVendorCDR_20' ) end [2025-04-01 20:57:19] Production.INFO: ProcessCDR(1,14813427,1,1,2) [2025-04-01 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813427', 'tblTempUsageDetail_20' ) start [2025-04-01 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813427', 'tblTempUsageDetail_20' ) end [2025-04-01 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:57:22] Production.INFO: ==20805== Releasing lock... [2025-04-01 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:57:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-01 20:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:58:06 [end_date_ymd] => 2025-04-01 20:58:06 [RateCDR] => 1 ) [2025-04-01 20: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-01 17:58:06' and `end` < '2025-04-01 20: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-01 20:58:19] Production.INFO: count ==2152 [2025-04-01 20:58:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:58:06 - End Time 2025-04-01 20:58:06 [2025-04-01 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813432', 'tblTempUsageDetail_20' ) start [2025-04-01 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813432', 'tblTempUsageDetail_20' ) end [2025-04-01 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813432', 'tblTempVendorCDR_20' ) start [2025-04-01 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813432', 'tblTempVendorCDR_20' ) end [2025-04-01 20:58:19] Production.INFO: ProcessCDR(1,14813432,1,1,2) [2025-04-01 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813432', 'tblTempUsageDetail_20' ) start [2025-04-01 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813432', 'tblTempUsageDetail_20' ) end [2025-04-01 20:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:58:23] Production.INFO: ==20876== Releasing lock... [2025-04-01 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:58:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-01 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 17:59:05 [end_date_ymd] => 2025-04-01 20:59:05 [RateCDR] => 1 ) [2025-04-01 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-01 17:59:05' and `end` < '2025-04-01 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-01 20:59:18] Production.INFO: count ==2153 [2025-04-01 20:59:19] Production.ERROR: pbx CDR StartTime 2025-04-01 17:59:05 - End Time 2025-04-01 20:59:05 [2025-04-01 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813437', 'tblTempUsageDetail_20' ) start [2025-04-01 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813437', 'tblTempUsageDetail_20' ) end [2025-04-01 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813437', 'tblTempVendorCDR_20' ) start [2025-04-01 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813437', 'tblTempVendorCDR_20' ) end [2025-04-01 20:59:19] Production.INFO: ProcessCDR(1,14813437,1,1,2) [2025-04-01 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 20:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813437', 'tblTempUsageDetail_20' ) start [2025-04-01 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813437', 'tblTempUsageDetail_20' ) end [2025-04-01 20:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 20:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 20:59:24] Production.INFO: ==20947== Releasing lock... [2025-04-01 20:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 20:59:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-01 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:00:06 [end_date_ymd] => 2025-04-01 21:00:06 [RateCDR] => 1 ) [2025-04-01 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-01 18:00:06' and `end` < '2025-04-01 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-01 21:00:19] Production.INFO: count ==2145 [2025-04-01 21:00:20] Production.ERROR: pbx CDR StartTime 2025-04-01 18:00:06 - End Time 2025-04-01 21:00:06 [2025-04-01 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813443', 'tblTempUsageDetail_20' ) start [2025-04-01 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813443', 'tblTempUsageDetail_20' ) end [2025-04-01 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813443', 'tblTempVendorCDR_20' ) start [2025-04-01 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813443', 'tblTempVendorCDR_20' ) end [2025-04-01 21:00:20] Production.INFO: ProcessCDR(1,14813443,1,1,2) [2025-04-01 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813443', 'tblTempUsageDetail_20' ) start [2025-04-01 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813443', 'tblTempUsageDetail_20' ) end [2025-04-01 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:00:23] Production.INFO: ==21028== Releasing lock... [2025-04-01 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:00:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-01 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:01:05 [end_date_ymd] => 2025-04-01 21:01:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:01:05' and `end` < '2025-04-01 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-01 21:01:18] Production.INFO: count ==2103 [2025-04-01 21:01:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:01:05 - End Time 2025-04-01 21:01:05 [2025-04-01 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813448', 'tblTempUsageDetail_20' ) start [2025-04-01 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813448', 'tblTempUsageDetail_20' ) end [2025-04-01 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813448', 'tblTempVendorCDR_20' ) start [2025-04-01 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813448', 'tblTempVendorCDR_20' ) end [2025-04-01 21:01:19] Production.INFO: ProcessCDR(1,14813448,1,1,2) [2025-04-01 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813448', 'tblTempUsageDetail_20' ) start [2025-04-01 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813448', 'tblTempUsageDetail_20' ) end [2025-04-01 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:01:22] Production.INFO: ==21115== Releasing lock... [2025-04-01 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:01:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-01 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:02:06 [end_date_ymd] => 2025-04-01 21:02:06 [RateCDR] => 1 ) [2025-04-01 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-01 18:02:06' and `end` < '2025-04-01 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-01 21:02:19] Production.INFO: count ==2106 [2025-04-01 21:02:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:02:06 - End Time 2025-04-01 21:02:06 [2025-04-01 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813453', 'tblTempUsageDetail_20' ) start [2025-04-01 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813453', 'tblTempUsageDetail_20' ) end [2025-04-01 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813453', 'tblTempVendorCDR_20' ) start [2025-04-01 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813453', 'tblTempVendorCDR_20' ) end [2025-04-01 21:02:19] Production.INFO: ProcessCDR(1,14813453,1,1,2) [2025-04-01 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813453', 'tblTempUsageDetail_20' ) start [2025-04-01 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813453', 'tblTempUsageDetail_20' ) end [2025-04-01 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:02:23] Production.INFO: ==21187== Releasing lock... [2025-04-01 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:02:23] Production.INFO: 44 MB #Memory Used# [2025-04-01 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:03:05 [end_date_ymd] => 2025-04-01 21:03:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:03:05' and `end` < '2025-04-01 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-01 21:03:18] Production.INFO: count ==2107 [2025-04-01 21:03:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:03:05 - End Time 2025-04-01 21:03:05 [2025-04-01 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813458', 'tblTempUsageDetail_20' ) start [2025-04-01 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813458', 'tblTempUsageDetail_20' ) end [2025-04-01 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813458', 'tblTempVendorCDR_20' ) start [2025-04-01 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813458', 'tblTempVendorCDR_20' ) end [2025-04-01 21:03:19] Production.INFO: ProcessCDR(1,14813458,1,1,2) [2025-04-01 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813458', 'tblTempUsageDetail_20' ) start [2025-04-01 21:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813458', 'tblTempUsageDetail_20' ) end [2025-04-01 21:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:03:24] Production.INFO: ==21256== Releasing lock... [2025-04-01 21:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:03:24] Production.INFO: 44 MB #Memory Used# [2025-04-01 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:04:06 [end_date_ymd] => 2025-04-01 21:04:06 [RateCDR] => 1 ) [2025-04-01 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-01 18:04:06' and `end` < '2025-04-01 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-01 21:04:18] Production.INFO: count ==2089 [2025-04-01 21:04:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:04:06 - End Time 2025-04-01 21:04:06 [2025-04-01 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813463', 'tblTempUsageDetail_20' ) start [2025-04-01 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813463', 'tblTempUsageDetail_20' ) end [2025-04-01 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813463', 'tblTempVendorCDR_20' ) start [2025-04-01 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813463', 'tblTempVendorCDR_20' ) end [2025-04-01 21:04:19] Production.INFO: ProcessCDR(1,14813463,1,1,2) [2025-04-01 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813463', 'tblTempUsageDetail_20' ) start [2025-04-01 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813463', 'tblTempUsageDetail_20' ) end [2025-04-01 21:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:04:23] Production.INFO: ==21328== Releasing lock... [2025-04-01 21:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:04:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-01 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:05:05 [end_date_ymd] => 2025-04-01 21:05:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:05:05' and `end` < '2025-04-01 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-01 21:05:18] Production.INFO: count ==2084 [2025-04-01 21:05:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:05:05 - End Time 2025-04-01 21:05:05 [2025-04-01 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813468', 'tblTempUsageDetail_20' ) start [2025-04-01 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813468', 'tblTempUsageDetail_20' ) end [2025-04-01 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813468', 'tblTempVendorCDR_20' ) start [2025-04-01 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813468', 'tblTempVendorCDR_20' ) end [2025-04-01 21:05:19] Production.INFO: ProcessCDR(1,14813468,1,1,2) [2025-04-01 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813468', 'tblTempUsageDetail_20' ) start [2025-04-01 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813468', 'tblTempUsageDetail_20' ) end [2025-04-01 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:05:22] Production.INFO: ==21400== Releasing lock... [2025-04-01 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:05:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-01 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:06:05 [end_date_ymd] => 2025-04-01 21:06:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:06:05' and `end` < '2025-04-01 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-01 21:06:18] Production.INFO: count ==2094 [2025-04-01 21:06:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:06:05 - End Time 2025-04-01 21:06:05 [2025-04-01 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813473', 'tblTempUsageDetail_20' ) start [2025-04-01 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813473', 'tblTempUsageDetail_20' ) end [2025-04-01 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813473', 'tblTempVendorCDR_20' ) start [2025-04-01 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813473', 'tblTempVendorCDR_20' ) end [2025-04-01 21:06:19] Production.INFO: ProcessCDR(1,14813473,1,1,2) [2025-04-01 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813473', 'tblTempUsageDetail_20' ) start [2025-04-01 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813473', 'tblTempUsageDetail_20' ) end [2025-04-01 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:06:23] Production.INFO: ==21471== Releasing lock... [2025-04-01 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:06:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-01 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:07:05 [end_date_ymd] => 2025-04-01 21:07:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:07:05' and `end` < '2025-04-01 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-01 21:07:18] Production.INFO: count ==2098 [2025-04-01 21:07:18] Production.ERROR: pbx CDR StartTime 2025-04-01 18:07:05 - End Time 2025-04-01 21:07:05 [2025-04-01 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813478', 'tblTempUsageDetail_20' ) start [2025-04-01 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813478', 'tblTempUsageDetail_20' ) end [2025-04-01 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813478', 'tblTempVendorCDR_20' ) start [2025-04-01 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813478', 'tblTempVendorCDR_20' ) end [2025-04-01 21:07:18] Production.INFO: ProcessCDR(1,14813478,1,1,2) [2025-04-01 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813478', 'tblTempUsageDetail_20' ) start [2025-04-01 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813478', 'tblTempUsageDetail_20' ) end [2025-04-01 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:07:22] Production.INFO: ==21545== Releasing lock... [2025-04-01 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:07:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-01 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:08:05 [end_date_ymd] => 2025-04-01 21:08:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:08:05' and `end` < '2025-04-01 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-01 21:08:18] Production.INFO: count ==2094 [2025-04-01 21:08:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:08:05 - End Time 2025-04-01 21:08:05 [2025-04-01 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813483', 'tblTempUsageDetail_20' ) start [2025-04-01 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813483', 'tblTempUsageDetail_20' ) end [2025-04-01 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813483', 'tblTempVendorCDR_20' ) start [2025-04-01 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813483', 'tblTempVendorCDR_20' ) end [2025-04-01 21:08:19] Production.INFO: ProcessCDR(1,14813483,1,1,2) [2025-04-01 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813483', 'tblTempUsageDetail_20' ) start [2025-04-01 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813483', 'tblTempUsageDetail_20' ) end [2025-04-01 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:08:22] Production.INFO: ==21617== Releasing lock... [2025-04-01 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:08:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-01 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:09:05 [end_date_ymd] => 2025-04-01 21:09:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:09:05' and `end` < '2025-04-01 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-01 21:09:18] Production.INFO: count ==2089 [2025-04-01 21:09:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:09:05 - End Time 2025-04-01 21:09:05 [2025-04-01 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813488', 'tblTempUsageDetail_20' ) start [2025-04-01 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813488', 'tblTempUsageDetail_20' ) end [2025-04-01 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813488', 'tblTempVendorCDR_20' ) start [2025-04-01 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813488', 'tblTempVendorCDR_20' ) end [2025-04-01 21:09:19] Production.INFO: ProcessCDR(1,14813488,1,1,2) [2025-04-01 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813488', 'tblTempUsageDetail_20' ) start [2025-04-01 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813488', 'tblTempUsageDetail_20' ) end [2025-04-01 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:09:22] Production.INFO: ==21688== Releasing lock... [2025-04-01 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:09:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-01 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:10:06 [end_date_ymd] => 2025-04-01 21:10:06 [RateCDR] => 1 ) [2025-04-01 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 18:10:06' and `end` < '2025-04-01 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 21:10:19] Production.INFO: count ==2101 [2025-04-01 21:10:20] Production.ERROR: pbx CDR StartTime 2025-04-01 18:10:06 - End Time 2025-04-01 21:10:06 [2025-04-01 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813494', 'tblTempUsageDetail_20' ) start [2025-04-01 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813494', 'tblTempUsageDetail_20' ) end [2025-04-01 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813494', 'tblTempVendorCDR_20' ) start [2025-04-01 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813494', 'tblTempVendorCDR_20' ) end [2025-04-01 21:10:20] Production.INFO: ProcessCDR(1,14813494,1,1,2) [2025-04-01 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813494', 'tblTempUsageDetail_20' ) start [2025-04-01 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813494', 'tblTempUsageDetail_20' ) end [2025-04-01 21:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:10:24] Production.INFO: ==21760== Releasing lock... [2025-04-01 21:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:10:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-01 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:11:05 [end_date_ymd] => 2025-04-01 21:11:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:11:05' and `end` < '2025-04-01 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-01 21:11:18] Production.INFO: count ==2091 [2025-04-01 21:11:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:11:05 - End Time 2025-04-01 21:11:05 [2025-04-01 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813499', 'tblTempUsageDetail_20' ) start [2025-04-01 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813499', 'tblTempUsageDetail_20' ) end [2025-04-01 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813499', 'tblTempVendorCDR_20' ) start [2025-04-01 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813499', 'tblTempVendorCDR_20' ) end [2025-04-01 21:11:19] Production.INFO: ProcessCDR(1,14813499,1,1,2) [2025-04-01 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813499', 'tblTempUsageDetail_20' ) start [2025-04-01 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813499', 'tblTempUsageDetail_20' ) end [2025-04-01 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:11:22] Production.INFO: ==21833== Releasing lock... [2025-04-01 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:11:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-01 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:12:05 [end_date_ymd] => 2025-04-01 21:12:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:12:05' and `end` < '2025-04-01 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-01 21:12:18] Production.INFO: count ==2099 [2025-04-01 21:12:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:12:05 - End Time 2025-04-01 21:12:05 [2025-04-01 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813504', 'tblTempUsageDetail_20' ) start [2025-04-01 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813504', 'tblTempUsageDetail_20' ) end [2025-04-01 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813504', 'tblTempVendorCDR_20' ) start [2025-04-01 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813504', 'tblTempVendorCDR_20' ) end [2025-04-01 21:12:19] Production.INFO: ProcessCDR(1,14813504,1,1,2) [2025-04-01 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813504', 'tblTempUsageDetail_20' ) start [2025-04-01 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813504', 'tblTempUsageDetail_20' ) end [2025-04-01 21:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:12:24] Production.INFO: ==21944== Releasing lock... [2025-04-01 21:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:12:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-01 21:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:13:06 [end_date_ymd] => 2025-04-01 21:13:06 [RateCDR] => 1 ) [2025-04-01 21:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 18:13:06' and `end` < '2025-04-01 21:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 21:13:18] Production.INFO: count ==2101 [2025-04-01 21:13:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:13:06 - End Time 2025-04-01 21:13:06 [2025-04-01 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813509', 'tblTempUsageDetail_20' ) start [2025-04-01 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813509', 'tblTempUsageDetail_20' ) end [2025-04-01 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813509', 'tblTempVendorCDR_20' ) start [2025-04-01 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813509', 'tblTempVendorCDR_20' ) end [2025-04-01 21:13:19] Production.INFO: ProcessCDR(1,14813509,1,1,2) [2025-04-01 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813509', 'tblTempUsageDetail_20' ) start [2025-04-01 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813509', 'tblTempUsageDetail_20' ) end [2025-04-01 21:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:13:23] Production.INFO: ==22015== Releasing lock... [2025-04-01 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:13:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-01 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:14:06 [end_date_ymd] => 2025-04-01 21:14:06 [RateCDR] => 1 ) [2025-04-01 21:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 18:14:06' and `end` < '2025-04-01 21:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 21:14:19] Production.INFO: count ==2101 [2025-04-01 21:14:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:14:06 - End Time 2025-04-01 21:14:06 [2025-04-01 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813514', 'tblTempUsageDetail_20' ) start [2025-04-01 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813514', 'tblTempUsageDetail_20' ) end [2025-04-01 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813514', 'tblTempVendorCDR_20' ) start [2025-04-01 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813514', 'tblTempVendorCDR_20' ) end [2025-04-01 21:14:19] Production.INFO: ProcessCDR(1,14813514,1,1,2) [2025-04-01 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813514', 'tblTempUsageDetail_20' ) start [2025-04-01 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813514', 'tblTempUsageDetail_20' ) end [2025-04-01 21:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:14:23] Production.INFO: ==22089== Releasing lock... [2025-04-01 21:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:14:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-01 21:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:15:06 [end_date_ymd] => 2025-04-01 21:15:06 [RateCDR] => 1 ) [2025-04-01 21: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-01 18:15:06' and `end` < '2025-04-01 21: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-01 21:15:19] Production.INFO: count ==2093 [2025-04-01 21:15:20] Production.ERROR: pbx CDR StartTime 2025-04-01 18:15:06 - End Time 2025-04-01 21:15:06 [2025-04-01 21:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813519', 'tblTempUsageDetail_20' ) start [2025-04-01 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813519', 'tblTempUsageDetail_20' ) end [2025-04-01 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813519', 'tblTempVendorCDR_20' ) start [2025-04-01 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813519', 'tblTempVendorCDR_20' ) end [2025-04-01 21:15:20] Production.INFO: ProcessCDR(1,14813519,1,1,2) [2025-04-01 21:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813519', 'tblTempUsageDetail_20' ) start [2025-04-01 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813519', 'tblTempUsageDetail_20' ) end [2025-04-01 21:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:15:23] Production.INFO: ==22162== Releasing lock... [2025-04-01 21:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:15:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-01 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:16:05 [end_date_ymd] => 2025-04-01 21:16:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:16:05' and `end` < '2025-04-01 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-01 21:16:18] Production.INFO: count ==2097 [2025-04-01 21:16:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:16:05 - End Time 2025-04-01 21:16:05 [2025-04-01 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813524', 'tblTempUsageDetail_20' ) start [2025-04-01 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813524', 'tblTempUsageDetail_20' ) end [2025-04-01 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813524', 'tblTempVendorCDR_20' ) start [2025-04-01 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813524', 'tblTempVendorCDR_20' ) end [2025-04-01 21:16:19] Production.INFO: ProcessCDR(1,14813524,1,1,2) [2025-04-01 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813524', 'tblTempUsageDetail_20' ) start [2025-04-01 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813524', 'tblTempUsageDetail_20' ) end [2025-04-01 21:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:16:24] Production.INFO: ==22232== Releasing lock... [2025-04-01 21:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:16:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-01 21:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:17:06 [end_date_ymd] => 2025-04-01 21:17:06 [RateCDR] => 1 ) [2025-04-01 21:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 18:17:06' and `end` < '2025-04-01 21:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 21:17:19] Production.INFO: count ==2090 [2025-04-01 21:17:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:17:06 - End Time 2025-04-01 21:17:06 [2025-04-01 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813529', 'tblTempUsageDetail_20' ) start [2025-04-01 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813529', 'tblTempUsageDetail_20' ) end [2025-04-01 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813529', 'tblTempVendorCDR_20' ) start [2025-04-01 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813529', 'tblTempVendorCDR_20' ) end [2025-04-01 21:17:19] Production.INFO: ProcessCDR(1,14813529,1,1,2) [2025-04-01 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813529', 'tblTempUsageDetail_20' ) start [2025-04-01 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813529', 'tblTempUsageDetail_20' ) end [2025-04-01 21:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:17:24] Production.INFO: ==22303== Releasing lock... [2025-04-01 21:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:17:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-01 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:18:05 [end_date_ymd] => 2025-04-01 21:18:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:18:05' and `end` < '2025-04-01 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-01 21:18:18] Production.INFO: count ==2085 [2025-04-01 21:18:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:18:05 - End Time 2025-04-01 21:18:05 [2025-04-01 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813534', 'tblTempUsageDetail_20' ) start [2025-04-01 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813534', 'tblTempUsageDetail_20' ) end [2025-04-01 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813534', 'tblTempVendorCDR_20' ) start [2025-04-01 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813534', 'tblTempVendorCDR_20' ) end [2025-04-01 21:18:19] Production.INFO: ProcessCDR(1,14813534,1,1,2) [2025-04-01 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813534', 'tblTempUsageDetail_20' ) start [2025-04-01 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813534', 'tblTempUsageDetail_20' ) end [2025-04-01 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:18:22] Production.INFO: ==22388== Releasing lock... [2025-04-01 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:18:22] Production.INFO: 44 MB #Memory Used# [2025-04-01 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:19:05 [end_date_ymd] => 2025-04-01 21:19:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:19:05' and `end` < '2025-04-01 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-01 21:19:18] Production.INFO: count ==2083 [2025-04-01 21:19:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:19:05 - End Time 2025-04-01 21:19:05 [2025-04-01 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813539', 'tblTempUsageDetail_20' ) start [2025-04-01 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813539', 'tblTempUsageDetail_20' ) end [2025-04-01 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813539', 'tblTempVendorCDR_20' ) start [2025-04-01 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813539', 'tblTempVendorCDR_20' ) end [2025-04-01 21:19:19] Production.INFO: ProcessCDR(1,14813539,1,1,2) [2025-04-01 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813539', 'tblTempUsageDetail_20' ) start [2025-04-01 21:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813539', 'tblTempUsageDetail_20' ) end [2025-04-01 21:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:19:24] Production.INFO: ==22464== Releasing lock... [2025-04-01 21:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:19:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-01 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:20:06 [end_date_ymd] => 2025-04-01 21:20:06 [RateCDR] => 1 ) [2025-04-01 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 18:20:06' and `end` < '2025-04-01 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 21:20:19] Production.INFO: count ==2080 [2025-04-01 21:20:20] Production.ERROR: pbx CDR StartTime 2025-04-01 18:20:06 - End Time 2025-04-01 21:20:06 [2025-04-01 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813544', 'tblTempUsageDetail_20' ) start [2025-04-01 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813544', 'tblTempUsageDetail_20' ) end [2025-04-01 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813544', 'tblTempVendorCDR_20' ) start [2025-04-01 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813544', 'tblTempVendorCDR_20' ) end [2025-04-01 21:20:20] Production.INFO: ProcessCDR(1,14813544,1,1,2) [2025-04-01 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813544', 'tblTempUsageDetail_20' ) start [2025-04-01 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813544', 'tblTempUsageDetail_20' ) end [2025-04-01 21:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:20:24] Production.INFO: ==22536== Releasing lock... [2025-04-01 21:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:20:24] Production.INFO: 44 MB #Memory Used# [2025-04-01 21:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:21:06 [end_date_ymd] => 2025-04-01 21:21:06 [RateCDR] => 1 ) [2025-04-01 21:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 18:21:06' and `end` < '2025-04-01 21:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 21:21:19] Production.INFO: count ==2012 [2025-04-01 21:21:20] Production.ERROR: pbx CDR StartTime 2025-04-01 18:21:06 - End Time 2025-04-01 21:21:06 [2025-04-01 21:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813550', 'tblTempUsageDetail_20' ) start [2025-04-01 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813550', 'tblTempUsageDetail_20' ) end [2025-04-01 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813550', 'tblTempVendorCDR_20' ) start [2025-04-01 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813550', 'tblTempVendorCDR_20' ) end [2025-04-01 21:21:20] Production.INFO: ProcessCDR(1,14813550,1,1,2) [2025-04-01 21:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813550', 'tblTempUsageDetail_20' ) start [2025-04-01 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813550', 'tblTempUsageDetail_20' ) end [2025-04-01 21:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:21:23] Production.INFO: ==22608== Releasing lock... [2025-04-01 21:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:21:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-01 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:22:05 [end_date_ymd] => 2025-04-01 21:22:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:22:05' and `end` < '2025-04-01 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-01 21:22:18] Production.INFO: count ==2004 [2025-04-01 21:22:18] Production.ERROR: pbx CDR StartTime 2025-04-01 18:22:05 - End Time 2025-04-01 21:22:05 [2025-04-01 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813555', 'tblTempUsageDetail_20' ) start [2025-04-01 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813555', 'tblTempUsageDetail_20' ) end [2025-04-01 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813555', 'tblTempVendorCDR_20' ) start [2025-04-01 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813555', 'tblTempVendorCDR_20' ) end [2025-04-01 21:22:19] Production.INFO: ProcessCDR(1,14813555,1,1,2) [2025-04-01 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813555', 'tblTempUsageDetail_20' ) start [2025-04-01 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813555', 'tblTempUsageDetail_20' ) end [2025-04-01 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:22:22] Production.INFO: ==22680== Releasing lock... [2025-04-01 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:22:22] Production.INFO: 43 MB #Memory Used# [2025-04-01 21:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:23:06 [end_date_ymd] => 2025-04-01 21:23:06 [RateCDR] => 1 ) [2025-04-01 21:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 18:23:06' and `end` < '2025-04-01 21:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 21:23:18] Production.INFO: count ==1991 [2025-04-01 21:23:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:23:06 - End Time 2025-04-01 21:23:06 [2025-04-01 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813560', 'tblTempUsageDetail_20' ) start [2025-04-01 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813560', 'tblTempUsageDetail_20' ) end [2025-04-01 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813560', 'tblTempVendorCDR_20' ) start [2025-04-01 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813560', 'tblTempVendorCDR_20' ) end [2025-04-01 21:23:19] Production.INFO: ProcessCDR(1,14813560,1,1,2) [2025-04-01 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813560', 'tblTempUsageDetail_20' ) start [2025-04-01 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813560', 'tblTempUsageDetail_20' ) end [2025-04-01 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:23:22] Production.INFO: ==22751== Releasing lock... [2025-04-01 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:23:22] Production.INFO: 43 MB #Memory Used# [2025-04-01 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:24:05 [end_date_ymd] => 2025-04-01 21:24:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:24:05' and `end` < '2025-04-01 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-01 21:24:18] Production.INFO: count ==1986 [2025-04-01 21:24:18] Production.ERROR: pbx CDR StartTime 2025-04-01 18:24:05 - End Time 2025-04-01 21:24:05 [2025-04-01 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813565', 'tblTempUsageDetail_20' ) start [2025-04-01 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813565', 'tblTempUsageDetail_20' ) end [2025-04-01 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813565', 'tblTempVendorCDR_20' ) start [2025-04-01 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813565', 'tblTempVendorCDR_20' ) end [2025-04-01 21:24:18] Production.INFO: ProcessCDR(1,14813565,1,1,2) [2025-04-01 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813565', 'tblTempUsageDetail_20' ) start [2025-04-01 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813565', 'tblTempUsageDetail_20' ) end [2025-04-01 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:24:22] Production.INFO: ==22824== Releasing lock... [2025-04-01 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:24:22] Production.INFO: 43 MB #Memory Used# [2025-04-01 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:25:05 [end_date_ymd] => 2025-04-01 21:25:05 [RateCDR] => 1 ) [2025-04-01 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 18:25:05' and `end` < '2025-04-01 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 21:25:18] Production.INFO: count ==1984 [2025-04-01 21:25:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:25:05 - End Time 2025-04-01 21:25:05 [2025-04-01 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813570', 'tblTempUsageDetail_20' ) start [2025-04-01 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813570', 'tblTempUsageDetail_20' ) end [2025-04-01 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813570', 'tblTempVendorCDR_20' ) start [2025-04-01 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813570', 'tblTempVendorCDR_20' ) end [2025-04-01 21:25:19] Production.INFO: ProcessCDR(1,14813570,1,1,2) [2025-04-01 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813570', 'tblTempUsageDetail_20' ) start [2025-04-01 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813570', 'tblTempUsageDetail_20' ) end [2025-04-01 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:25:22] Production.INFO: ==22896== Releasing lock... [2025-04-01 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:25:22] Production.INFO: 43 MB #Memory Used# [2025-04-01 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:26:05 [end_date_ymd] => 2025-04-01 21:26:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:26:05' and `end` < '2025-04-01 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-01 21:26:17] Production.INFO: count ==1974 [2025-04-01 21:26:18] Production.ERROR: pbx CDR StartTime 2025-04-01 18:26:05 - End Time 2025-04-01 21:26:05 [2025-04-01 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813575', 'tblTempUsageDetail_20' ) start [2025-04-01 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813575', 'tblTempUsageDetail_20' ) end [2025-04-01 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813575', 'tblTempVendorCDR_20' ) start [2025-04-01 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813575', 'tblTempVendorCDR_20' ) end [2025-04-01 21:26:18] Production.INFO: ProcessCDR(1,14813575,1,1,2) [2025-04-01 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813575', 'tblTempUsageDetail_20' ) start [2025-04-01 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813575', 'tblTempUsageDetail_20' ) end [2025-04-01 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:26:21] Production.INFO: ==22967== Releasing lock... [2025-04-01 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:26:21] Production.INFO: 42.75 MB #Memory Used# [2025-04-01 21:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:27:06 [end_date_ymd] => 2025-04-01 21:27:06 [RateCDR] => 1 ) [2025-04-01 21: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-01 18:27:06' and `end` < '2025-04-01 21: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-01 21:27:18] Production.INFO: count ==1967 [2025-04-01 21:27:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:27:06 - End Time 2025-04-01 21:27:06 [2025-04-01 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813580', 'tblTempUsageDetail_20' ) start [2025-04-01 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813580', 'tblTempUsageDetail_20' ) end [2025-04-01 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813580', 'tblTempVendorCDR_20' ) start [2025-04-01 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813580', 'tblTempVendorCDR_20' ) end [2025-04-01 21:27:19] Production.INFO: ProcessCDR(1,14813580,1,1,2) [2025-04-01 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813580', 'tblTempUsageDetail_20' ) start [2025-04-01 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813580', 'tblTempUsageDetail_20' ) end [2025-04-01 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:27:22] Production.INFO: ==23077== Releasing lock... [2025-04-01 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:27:22] Production.INFO: 43 MB #Memory Used# [2025-04-01 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:28:05 [end_date_ymd] => 2025-04-01 21:28:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:28:05' and `end` < '2025-04-01 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-01 21:28:18] Production.INFO: count ==1967 [2025-04-01 21:28:18] Production.ERROR: pbx CDR StartTime 2025-04-01 18:28:05 - End Time 2025-04-01 21:28:05 [2025-04-01 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813585', 'tblTempUsageDetail_20' ) start [2025-04-01 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813585', 'tblTempUsageDetail_20' ) end [2025-04-01 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813585', 'tblTempVendorCDR_20' ) start [2025-04-01 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813585', 'tblTempVendorCDR_20' ) end [2025-04-01 21:28:18] Production.INFO: ProcessCDR(1,14813585,1,1,2) [2025-04-01 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813585', 'tblTempUsageDetail_20' ) start [2025-04-01 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813585', 'tblTempUsageDetail_20' ) end [2025-04-01 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:28:22] Production.INFO: ==23151== Releasing lock... [2025-04-01 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:28:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-01 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:29:05 [end_date_ymd] => 2025-04-01 21:29:05 [RateCDR] => 1 ) [2025-04-01 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 18:29:05' and `end` < '2025-04-01 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 21:29:18] Production.INFO: count ==1973 [2025-04-01 21:29:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:29:05 - End Time 2025-04-01 21:29:05 [2025-04-01 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813590', 'tblTempUsageDetail_20' ) start [2025-04-01 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813590', 'tblTempUsageDetail_20' ) end [2025-04-01 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813590', 'tblTempVendorCDR_20' ) start [2025-04-01 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813590', 'tblTempVendorCDR_20' ) end [2025-04-01 21:29:19] Production.INFO: ProcessCDR(1,14813590,1,1,2) [2025-04-01 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813590', 'tblTempUsageDetail_20' ) start [2025-04-01 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813590', 'tblTempUsageDetail_20' ) end [2025-04-01 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:29:23] Production.INFO: ==23224== Releasing lock... [2025-04-01 21:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:29:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-01 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:30:06 [end_date_ymd] => 2025-04-01 21:30:06 [RateCDR] => 1 ) [2025-04-01 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-01 18:30:06' and `end` < '2025-04-01 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-01 21:30:19] Production.INFO: count ==1975 [2025-04-01 21:30:20] Production.ERROR: pbx CDR StartTime 2025-04-01 18:30:06 - End Time 2025-04-01 21:30:06 [2025-04-01 21:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813595', 'tblTempUsageDetail_20' ) start [2025-04-01 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813595', 'tblTempUsageDetail_20' ) end [2025-04-01 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813595', 'tblTempVendorCDR_20' ) start [2025-04-01 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813595', 'tblTempVendorCDR_20' ) end [2025-04-01 21:30:20] Production.INFO: ProcessCDR(1,14813595,1,1,2) [2025-04-01 21:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813595', 'tblTempUsageDetail_20' ) start [2025-04-01 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813595', 'tblTempUsageDetail_20' ) end [2025-04-01 21:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:30:24] Production.INFO: ==23297== Releasing lock... [2025-04-01 21:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:30:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-01 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:31:05 [end_date_ymd] => 2025-04-01 21:31:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:31:05' and `end` < '2025-04-01 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-01 21:31:18] Production.INFO: count ==1948 [2025-04-01 21:31:18] Production.ERROR: pbx CDR StartTime 2025-04-01 18:31:05 - End Time 2025-04-01 21:31:05 [2025-04-01 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813601', 'tblTempUsageDetail_20' ) start [2025-04-01 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813601', 'tblTempUsageDetail_20' ) end [2025-04-01 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813601', 'tblTempVendorCDR_20' ) start [2025-04-01 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813601', 'tblTempVendorCDR_20' ) end [2025-04-01 21:31:19] Production.INFO: ProcessCDR(1,14813601,1,1,2) [2025-04-01 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813601', 'tblTempUsageDetail_20' ) start [2025-04-01 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813601', 'tblTempUsageDetail_20' ) end [2025-04-01 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:31:22] Production.INFO: ==23373== Releasing lock... [2025-04-01 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:31:22] Production.INFO: 43 MB #Memory Used# [2025-04-01 21:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:32:06 [end_date_ymd] => 2025-04-01 21:32:06 [RateCDR] => 1 ) [2025-04-01 21:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 18:32:06' and `end` < '2025-04-01 21:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 21:32:19] Production.INFO: count ==1947 [2025-04-01 21:32:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:32:06 - End Time 2025-04-01 21:32:06 [2025-04-01 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813606', 'tblTempUsageDetail_20' ) start [2025-04-01 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813606', 'tblTempUsageDetail_20' ) end [2025-04-01 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813606', 'tblTempVendorCDR_20' ) start [2025-04-01 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813606', 'tblTempVendorCDR_20' ) end [2025-04-01 21:32:19] Production.INFO: ProcessCDR(1,14813606,1,1,2) [2025-04-01 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813606', 'tblTempUsageDetail_20' ) start [2025-04-01 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813606', 'tblTempUsageDetail_20' ) end [2025-04-01 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:32:23] Production.INFO: ==23445== Releasing lock... [2025-04-01 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:32:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-01 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:33:05 [end_date_ymd] => 2025-04-01 21:33:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:33:05' and `end` < '2025-04-01 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-01 21:33:18] Production.INFO: count ==1934 [2025-04-01 21:33:18] Production.ERROR: pbx CDR StartTime 2025-04-01 18:33:05 - End Time 2025-04-01 21:33:05 [2025-04-01 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813611', 'tblTempUsageDetail_20' ) start [2025-04-01 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813611', 'tblTempUsageDetail_20' ) end [2025-04-01 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813611', 'tblTempVendorCDR_20' ) start [2025-04-01 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813611', 'tblTempVendorCDR_20' ) end [2025-04-01 21:33:19] Production.INFO: ProcessCDR(1,14813611,1,1,2) [2025-04-01 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813611', 'tblTempUsageDetail_20' ) start [2025-04-01 21:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813611', 'tblTempUsageDetail_20' ) end [2025-04-01 21:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:33:24] Production.INFO: ==23516== Releasing lock... [2025-04-01 21:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:33:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-01 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:34:05 [end_date_ymd] => 2025-04-01 21:34:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:34:05' and `end` < '2025-04-01 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-01 21:34:18] Production.INFO: count ==1932 [2025-04-01 21:34:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:34:05 - End Time 2025-04-01 21:34:05 [2025-04-01 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813616', 'tblTempUsageDetail_20' ) start [2025-04-01 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813616', 'tblTempUsageDetail_20' ) end [2025-04-01 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813616', 'tblTempVendorCDR_20' ) start [2025-04-01 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813616', 'tblTempVendorCDR_20' ) end [2025-04-01 21:34:19] Production.INFO: ProcessCDR(1,14813616,1,1,2) [2025-04-01 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813616', 'tblTempUsageDetail_20' ) start [2025-04-01 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813616', 'tblTempUsageDetail_20' ) end [2025-04-01 21:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:34:23] Production.INFO: ==23589== Releasing lock... [2025-04-01 21:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:34:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-01 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:35:05 [end_date_ymd] => 2025-04-01 21:35:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:35:05' and `end` < '2025-04-01 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-01 21:35:18] Production.INFO: count ==1932 [2025-04-01 21:35:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:35:05 - End Time 2025-04-01 21:35:05 [2025-04-01 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813621', 'tblTempUsageDetail_20' ) start [2025-04-01 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813621', 'tblTempUsageDetail_20' ) end [2025-04-01 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813621', 'tblTempVendorCDR_20' ) start [2025-04-01 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813621', 'tblTempVendorCDR_20' ) end [2025-04-01 21:35:19] Production.INFO: ProcessCDR(1,14813621,1,1,2) [2025-04-01 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813621', 'tblTempUsageDetail_20' ) start [2025-04-01 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813621', 'tblTempUsageDetail_20' ) end [2025-04-01 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:35:22] Production.INFO: ==23659== Releasing lock... [2025-04-01 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:35:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-01 21:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:36:06 [end_date_ymd] => 2025-04-01 21:36:06 [RateCDR] => 1 ) [2025-04-01 21: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-01 18:36:06' and `end` < '2025-04-01 21: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-01 21:36:19] Production.INFO: count ==1923 [2025-04-01 21:36:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:36:06 - End Time 2025-04-01 21:36:06 [2025-04-01 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813626', 'tblTempUsageDetail_20' ) start [2025-04-01 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813626', 'tblTempUsageDetail_20' ) end [2025-04-01 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813626', 'tblTempVendorCDR_20' ) start [2025-04-01 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813626', 'tblTempVendorCDR_20' ) end [2025-04-01 21:36:19] Production.INFO: ProcessCDR(1,14813626,1,1,2) [2025-04-01 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813626', 'tblTempUsageDetail_20' ) start [2025-04-01 21:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813626', 'tblTempUsageDetail_20' ) end [2025-04-01 21:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:36:25] Production.INFO: ==23730== Releasing lock... [2025-04-01 21:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:36:25] Production.INFO: 42.75 MB #Memory Used# [2025-04-01 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:37:05 [end_date_ymd] => 2025-04-01 21:37:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:37:05' and `end` < '2025-04-01 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-01 21:37:18] Production.INFO: count ==1917 [2025-04-01 21:37:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:37:05 - End Time 2025-04-01 21:37:05 [2025-04-01 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813631', 'tblTempUsageDetail_20' ) start [2025-04-01 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813631', 'tblTempUsageDetail_20' ) end [2025-04-01 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813631', 'tblTempVendorCDR_20' ) start [2025-04-01 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813631', 'tblTempVendorCDR_20' ) end [2025-04-01 21:37:19] Production.INFO: ProcessCDR(1,14813631,1,1,2) [2025-04-01 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813631', 'tblTempUsageDetail_20' ) start [2025-04-01 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813631', 'tblTempUsageDetail_20' ) end [2025-04-01 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:37:22] Production.INFO: ==23803== Releasing lock... [2025-04-01 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:37:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-01 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:38:05 [end_date_ymd] => 2025-04-01 21:38:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:38:05' and `end` < '2025-04-01 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-01 21:38:18] Production.INFO: count ==1915 [2025-04-01 21:38:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:38:05 - End Time 2025-04-01 21:38:05 [2025-04-01 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813636', 'tblTempUsageDetail_20' ) start [2025-04-01 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813636', 'tblTempUsageDetail_20' ) end [2025-04-01 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813636', 'tblTempVendorCDR_20' ) start [2025-04-01 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813636', 'tblTempVendorCDR_20' ) end [2025-04-01 21:38:19] Production.INFO: ProcessCDR(1,14813636,1,1,2) [2025-04-01 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813636', 'tblTempUsageDetail_20' ) start [2025-04-01 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813636', 'tblTempUsageDetail_20' ) end [2025-04-01 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:38:22] Production.INFO: ==23876== Releasing lock... [2025-04-01 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:38:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-01 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:39:05 [end_date_ymd] => 2025-04-01 21:39:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:39:05' and `end` < '2025-04-01 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-01 21:39:18] Production.INFO: count ==1913 [2025-04-01 21:39:18] Production.ERROR: pbx CDR StartTime 2025-04-01 18:39:05 - End Time 2025-04-01 21:39:05 [2025-04-01 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813641', 'tblTempUsageDetail_20' ) start [2025-04-01 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813641', 'tblTempUsageDetail_20' ) end [2025-04-01 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813641', 'tblTempVendorCDR_20' ) start [2025-04-01 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813641', 'tblTempVendorCDR_20' ) end [2025-04-01 21:39:18] Production.INFO: ProcessCDR(1,14813641,1,1,2) [2025-04-01 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813641', 'tblTempUsageDetail_20' ) start [2025-04-01 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813641', 'tblTempUsageDetail_20' ) end [2025-04-01 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:39:22] Production.INFO: ==23950== Releasing lock... [2025-04-01 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:39:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-01 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:40:06 [end_date_ymd] => 2025-04-01 21:40:06 [RateCDR] => 1 ) [2025-04-01 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-01 18:40:06' and `end` < '2025-04-01 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-01 21:40:19] Production.INFO: count ==1904 [2025-04-01 21:40:20] Production.ERROR: pbx CDR StartTime 2025-04-01 18:40:06 - End Time 2025-04-01 21:40:06 [2025-04-01 21:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813647', 'tblTempUsageDetail_20' ) start [2025-04-01 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813647', 'tblTempUsageDetail_20' ) end [2025-04-01 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813647', 'tblTempVendorCDR_20' ) start [2025-04-01 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813647', 'tblTempVendorCDR_20' ) end [2025-04-01 21:40:20] Production.INFO: ProcessCDR(1,14813647,1,1,2) [2025-04-01 21:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813647', 'tblTempUsageDetail_20' ) start [2025-04-01 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813647', 'tblTempUsageDetail_20' ) end [2025-04-01 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:40:23] Production.INFO: ==24023== Releasing lock... [2025-04-01 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:40:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-01 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:41:05 [end_date_ymd] => 2025-04-01 21:41:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:41:05' and `end` < '2025-04-01 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-01 21:41:17] Production.INFO: count ==1831 [2025-04-01 21:41:18] Production.ERROR: pbx CDR StartTime 2025-04-01 18:41:05 - End Time 2025-04-01 21:41:05 [2025-04-01 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813652', 'tblTempUsageDetail_20' ) start [2025-04-01 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813652', 'tblTempUsageDetail_20' ) end [2025-04-01 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813652', 'tblTempVendorCDR_20' ) start [2025-04-01 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813652', 'tblTempVendorCDR_20' ) end [2025-04-01 21:41:18] Production.INFO: ProcessCDR(1,14813652,1,1,2) [2025-04-01 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813652', 'tblTempUsageDetail_20' ) start [2025-04-01 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813652', 'tblTempUsageDetail_20' ) end [2025-04-01 21:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:41:23] Production.INFO: ==24095== Releasing lock... [2025-04-01 21:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:41:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-01 21:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:42:06 [end_date_ymd] => 2025-04-01 21:42:06 [RateCDR] => 1 ) [2025-04-01 21: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-01 18:42:06' and `end` < '2025-04-01 21: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-01 21:42:18] Production.INFO: count ==1810 [2025-04-01 21:42:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:42:06 - End Time 2025-04-01 21:42:06 [2025-04-01 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813657', 'tblTempUsageDetail_20' ) start [2025-04-01 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813657', 'tblTempUsageDetail_20' ) end [2025-04-01 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813657', 'tblTempVendorCDR_20' ) start [2025-04-01 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813657', 'tblTempVendorCDR_20' ) end [2025-04-01 21:42:19] Production.INFO: ProcessCDR(1,14813657,1,1,2) [2025-04-01 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813657', 'tblTempUsageDetail_20' ) start [2025-04-01 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813657', 'tblTempUsageDetail_20' ) end [2025-04-01 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:42:22] Production.INFO: ==24205== Releasing lock... [2025-04-01 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:42:22] Production.INFO: 42 MB #Memory Used# [2025-04-01 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:43:05 [end_date_ymd] => 2025-04-01 21:43:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:43:05' and `end` < '2025-04-01 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-01 21:43:18] Production.INFO: count ==1807 [2025-04-01 21:43:18] Production.ERROR: pbx CDR StartTime 2025-04-01 18:43:05 - End Time 2025-04-01 21:43:05 [2025-04-01 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813662', 'tblTempUsageDetail_20' ) start [2025-04-01 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813662', 'tblTempUsageDetail_20' ) end [2025-04-01 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813662', 'tblTempVendorCDR_20' ) start [2025-04-01 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813662', 'tblTempVendorCDR_20' ) end [2025-04-01 21:43:18] Production.INFO: ProcessCDR(1,14813662,1,1,2) [2025-04-01 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813662', 'tblTempUsageDetail_20' ) start [2025-04-01 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813662', 'tblTempUsageDetail_20' ) end [2025-04-01 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:43:23] Production.INFO: ==24280== Releasing lock... [2025-04-01 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:43:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-01 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:44:05 [end_date_ymd] => 2025-04-01 21:44:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:44:05' and `end` < '2025-04-01 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-01 21:44:18] Production.INFO: count ==1806 [2025-04-01 21:44:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:44:05 - End Time 2025-04-01 21:44:05 [2025-04-01 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813667', 'tblTempUsageDetail_20' ) start [2025-04-01 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813667', 'tblTempUsageDetail_20' ) end [2025-04-01 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813667', 'tblTempVendorCDR_20' ) start [2025-04-01 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813667', 'tblTempVendorCDR_20' ) end [2025-04-01 21:44:19] Production.INFO: ProcessCDR(1,14813667,1,1,2) [2025-04-01 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813667', 'tblTempUsageDetail_20' ) start [2025-04-01 21:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813667', 'tblTempUsageDetail_20' ) end [2025-04-01 21:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:44:24] Production.INFO: ==24351== Releasing lock... [2025-04-01 21:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:44:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-01 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:45:05 [end_date_ymd] => 2025-04-01 21:45:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:45:05' and `end` < '2025-04-01 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-01 21:45:17] Production.INFO: count ==1802 [2025-04-01 21:45:18] Production.ERROR: pbx CDR StartTime 2025-04-01 18:45:05 - End Time 2025-04-01 21:45:05 [2025-04-01 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813672', 'tblTempUsageDetail_20' ) start [2025-04-01 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813672', 'tblTempUsageDetail_20' ) end [2025-04-01 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813672', 'tblTempVendorCDR_20' ) start [2025-04-01 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813672', 'tblTempVendorCDR_20' ) end [2025-04-01 21:45:18] Production.INFO: ProcessCDR(1,14813672,1,1,2) [2025-04-01 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813672', 'tblTempUsageDetail_20' ) start [2025-04-01 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813672', 'tblTempUsageDetail_20' ) end [2025-04-01 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:45:22] Production.INFO: ==24423== Releasing lock... [2025-04-01 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:45:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-01 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:46:05 [end_date_ymd] => 2025-04-01 21:46:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:46:05' and `end` < '2025-04-01 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-01 21:46:18] Production.INFO: count ==1800 [2025-04-01 21:46:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:46:05 - End Time 2025-04-01 21:46:05 [2025-04-01 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813677', 'tblTempUsageDetail_20' ) start [2025-04-01 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813677', 'tblTempUsageDetail_20' ) end [2025-04-01 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813677', 'tblTempVendorCDR_20' ) start [2025-04-01 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813677', 'tblTempVendorCDR_20' ) end [2025-04-01 21:46:19] Production.INFO: ProcessCDR(1,14813677,1,1,2) [2025-04-01 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813677', 'tblTempUsageDetail_20' ) start [2025-04-01 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813677', 'tblTempUsageDetail_20' ) end [2025-04-01 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:46:22] Production.INFO: ==24494== Releasing lock... [2025-04-01 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:46:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-01 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:47:05 [end_date_ymd] => 2025-04-01 21:47:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:47:05' and `end` < '2025-04-01 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-01 21:47:18] Production.INFO: count ==1798 [2025-04-01 21:47:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:47:05 - End Time 2025-04-01 21:47:05 [2025-04-01 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813682', 'tblTempUsageDetail_20' ) start [2025-04-01 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813682', 'tblTempUsageDetail_20' ) end [2025-04-01 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813682', 'tblTempVendorCDR_20' ) start [2025-04-01 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813682', 'tblTempVendorCDR_20' ) end [2025-04-01 21:47:19] Production.INFO: ProcessCDR(1,14813682,1,1,2) [2025-04-01 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813682', 'tblTempUsageDetail_20' ) start [2025-04-01 21:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813682', 'tblTempUsageDetail_20' ) end [2025-04-01 21:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:47:24] Production.INFO: ==24566== Releasing lock... [2025-04-01 21:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:47:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-01 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:48:05 [end_date_ymd] => 2025-04-01 21:48:05 [RateCDR] => 1 ) [2025-04-01 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 18:48:05' and `end` < '2025-04-01 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 21:48:18] Production.INFO: count ==1792 [2025-04-01 21:48:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:48:05 - End Time 2025-04-01 21:48:05 [2025-04-01 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813687', 'tblTempUsageDetail_20' ) start [2025-04-01 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813687', 'tblTempUsageDetail_20' ) end [2025-04-01 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813687', 'tblTempVendorCDR_20' ) start [2025-04-01 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813687', 'tblTempVendorCDR_20' ) end [2025-04-01 21:48:19] Production.INFO: ProcessCDR(1,14813687,1,1,2) [2025-04-01 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813687', 'tblTempUsageDetail_20' ) start [2025-04-01 21:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813687', 'tblTempUsageDetail_20' ) end [2025-04-01 21:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:48:24] Production.INFO: ==24640== Releasing lock... [2025-04-01 21:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:48:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-01 21:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:49:06 [end_date_ymd] => 2025-04-01 21:49:06 [RateCDR] => 1 ) [2025-04-01 21: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-01 18:49:06' and `end` < '2025-04-01 21: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-01 21:49:19] Production.INFO: count ==1788 [2025-04-01 21:49:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:49:06 - End Time 2025-04-01 21:49:06 [2025-04-01 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813692', 'tblTempUsageDetail_20' ) start [2025-04-01 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813692', 'tblTempUsageDetail_20' ) end [2025-04-01 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813692', 'tblTempVendorCDR_20' ) start [2025-04-01 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813692', 'tblTempVendorCDR_20' ) end [2025-04-01 21:49:19] Production.INFO: ProcessCDR(1,14813692,1,1,2) [2025-04-01 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813692', 'tblTempUsageDetail_20' ) start [2025-04-01 21:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813692', 'tblTempUsageDetail_20' ) end [2025-04-01 21:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:49:24] Production.INFO: ==24712== Releasing lock... [2025-04-01 21:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:49:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-01 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:50:06 [end_date_ymd] => 2025-04-01 21:50:06 [RateCDR] => 1 ) [2025-04-01 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 18:50:06' and `end` < '2025-04-01 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 21:50:19] Production.INFO: count ==1804 [2025-04-01 21:50:20] Production.ERROR: pbx CDR StartTime 2025-04-01 18:50:06 - End Time 2025-04-01 21:50:06 [2025-04-01 21:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813698', 'tblTempUsageDetail_20' ) start [2025-04-01 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813698', 'tblTempUsageDetail_20' ) end [2025-04-01 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813698', 'tblTempVendorCDR_20' ) start [2025-04-01 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813698', 'tblTempVendorCDR_20' ) end [2025-04-01 21:50:20] Production.INFO: ProcessCDR(1,14813698,1,1,2) [2025-04-01 21:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813698', 'tblTempUsageDetail_20' ) start [2025-04-01 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813698', 'tblTempUsageDetail_20' ) end [2025-04-01 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:50:23] Production.INFO: ==24785== Releasing lock... [2025-04-01 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:50:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-01 21:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:51:06 [end_date_ymd] => 2025-04-01 21:51:06 [RateCDR] => 1 ) [2025-04-01 21: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-01 18:51:06' and `end` < '2025-04-01 21: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-01 21:51:18] Production.INFO: count ==1774 [2025-04-01 21:51:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:51:06 - End Time 2025-04-01 21:51:06 [2025-04-01 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813703', 'tblTempUsageDetail_20' ) start [2025-04-01 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813703', 'tblTempUsageDetail_20' ) end [2025-04-01 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813703', 'tblTempVendorCDR_20' ) start [2025-04-01 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813703', 'tblTempVendorCDR_20' ) end [2025-04-01 21:51:19] Production.INFO: ProcessCDR(1,14813703,1,1,2) [2025-04-01 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813703', 'tblTempUsageDetail_20' ) start [2025-04-01 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813703', 'tblTempUsageDetail_20' ) end [2025-04-01 21:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:51:23] Production.INFO: ==24859== Releasing lock... [2025-04-01 21:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:51:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-01 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:52:05 [end_date_ymd] => 2025-04-01 21:52:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:52:05' and `end` < '2025-04-01 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-01 21:52:18] Production.INFO: count ==1767 [2025-04-01 21:52:18] Production.ERROR: pbx CDR StartTime 2025-04-01 18:52:05 - End Time 2025-04-01 21:52:05 [2025-04-01 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813708', 'tblTempUsageDetail_20' ) start [2025-04-01 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813708', 'tblTempUsageDetail_20' ) end [2025-04-01 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813708', 'tblTempVendorCDR_20' ) start [2025-04-01 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813708', 'tblTempVendorCDR_20' ) end [2025-04-01 21:52:18] Production.INFO: ProcessCDR(1,14813708,1,1,2) [2025-04-01 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813708', 'tblTempUsageDetail_20' ) start [2025-04-01 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813708', 'tblTempUsageDetail_20' ) end [2025-04-01 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:52:22] Production.INFO: ==24934== Releasing lock... [2025-04-01 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:52:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-01 21:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:53:06 [end_date_ymd] => 2025-04-01 21:53:06 [RateCDR] => 1 ) [2025-04-01 21: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-01 18:53:06' and `end` < '2025-04-01 21: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-01 21:53:19] Production.INFO: count ==1763 [2025-04-01 21:53:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:53:06 - End Time 2025-04-01 21:53:06 [2025-04-01 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813713', 'tblTempUsageDetail_20' ) start [2025-04-01 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813713', 'tblTempUsageDetail_20' ) end [2025-04-01 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813713', 'tblTempVendorCDR_20' ) start [2025-04-01 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813713', 'tblTempVendorCDR_20' ) end [2025-04-01 21:53:19] Production.INFO: ProcessCDR(1,14813713,1,1,2) [2025-04-01 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813713', 'tblTempUsageDetail_20' ) start [2025-04-01 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813713', 'tblTempUsageDetail_20' ) end [2025-04-01 21:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:53:23] Production.INFO: ==25006== Releasing lock... [2025-04-01 21:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:53:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-01 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:54:05 [end_date_ymd] => 2025-04-01 21:54:05 [RateCDR] => 1 ) [2025-04-01 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 18:54:05' and `end` < '2025-04-01 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 21:54:18] Production.INFO: count ==1758 [2025-04-01 21:54:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:54:05 - End Time 2025-04-01 21:54:05 [2025-04-01 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813718', 'tblTempUsageDetail_20' ) start [2025-04-01 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813718', 'tblTempUsageDetail_20' ) end [2025-04-01 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813718', 'tblTempVendorCDR_20' ) start [2025-04-01 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813718', 'tblTempVendorCDR_20' ) end [2025-04-01 21:54:19] Production.INFO: ProcessCDR(1,14813718,1,1,2) [2025-04-01 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813718', 'tblTempUsageDetail_20' ) start [2025-04-01 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813718', 'tblTempUsageDetail_20' ) end [2025-04-01 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:54:22] Production.INFO: ==25076== Releasing lock... [2025-04-01 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:54:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-01 21:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:55:06 [end_date_ymd] => 2025-04-01 21:55:06 [RateCDR] => 1 ) [2025-04-01 21: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-01 18:55:06' and `end` < '2025-04-01 21: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-01 21:55:19] Production.INFO: count ==1743 [2025-04-01 21:55:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:55:06 - End Time 2025-04-01 21:55:06 [2025-04-01 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813723', 'tblTempUsageDetail_20' ) start [2025-04-01 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813723', 'tblTempUsageDetail_20' ) end [2025-04-01 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813723', 'tblTempVendorCDR_20' ) start [2025-04-01 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813723', 'tblTempVendorCDR_20' ) end [2025-04-01 21:55:19] Production.INFO: ProcessCDR(1,14813723,1,1,2) [2025-04-01 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813723', 'tblTempUsageDetail_20' ) start [2025-04-01 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813723', 'tblTempUsageDetail_20' ) end [2025-04-01 21:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:55:23] Production.INFO: ==25146== Releasing lock... [2025-04-01 21:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:55:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-01 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:56:06 [end_date_ymd] => 2025-04-01 21:56:06 [RateCDR] => 1 ) [2025-04-01 21:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 18:56:06' and `end` < '2025-04-01 21:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 21:56:19] Production.INFO: count ==1742 [2025-04-01 21:56:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:56:06 - End Time 2025-04-01 21:56:06 [2025-04-01 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813728', 'tblTempUsageDetail_20' ) start [2025-04-01 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813728', 'tblTempUsageDetail_20' ) end [2025-04-01 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813728', 'tblTempVendorCDR_20' ) start [2025-04-01 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813728', 'tblTempVendorCDR_20' ) end [2025-04-01 21:56:19] Production.INFO: ProcessCDR(1,14813728,1,1,2) [2025-04-01 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813728', 'tblTempUsageDetail_20' ) start [2025-04-01 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813728', 'tblTempUsageDetail_20' ) end [2025-04-01 21:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:56:23] Production.INFO: ==25220== Releasing lock... [2025-04-01 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:56:23] Production.INFO: 41 MB #Memory Used# [2025-04-01 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:57:05 [end_date_ymd] => 2025-04-01 21:57:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:57:05' and `end` < '2025-04-01 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-01 21:57:18] Production.INFO: count ==1740 [2025-04-01 21:57:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:57:05 - End Time 2025-04-01 21:57:05 [2025-04-01 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813733', 'tblTempUsageDetail_20' ) start [2025-04-01 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813733', 'tblTempUsageDetail_20' ) end [2025-04-01 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813733', 'tblTempVendorCDR_20' ) start [2025-04-01 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813733', 'tblTempVendorCDR_20' ) end [2025-04-01 21:57:19] Production.INFO: ProcessCDR(1,14813733,1,1,2) [2025-04-01 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813733', 'tblTempUsageDetail_20' ) start [2025-04-01 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813733', 'tblTempUsageDetail_20' ) end [2025-04-01 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:57:22] Production.INFO: ==25296== Releasing lock... [2025-04-01 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:57:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-01 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:58:05 [end_date_ymd] => 2025-04-01 21:58:05 [RateCDR] => 1 ) [2025-04-01 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-01 18:58:05' and `end` < '2025-04-01 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-01 21:58:18] Production.INFO: count ==1731 [2025-04-01 21:58:18] Production.ERROR: pbx CDR StartTime 2025-04-01 18:58:05 - End Time 2025-04-01 21:58:05 [2025-04-01 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813738', 'tblTempUsageDetail_20' ) start [2025-04-01 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813738', 'tblTempUsageDetail_20' ) end [2025-04-01 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813738', 'tblTempVendorCDR_20' ) start [2025-04-01 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813738', 'tblTempVendorCDR_20' ) end [2025-04-01 21:58:18] Production.INFO: ProcessCDR(1,14813738,1,1,2) [2025-04-01 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813738', 'tblTempUsageDetail_20' ) start [2025-04-01 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813738', 'tblTempUsageDetail_20' ) end [2025-04-01 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:58:22] Production.INFO: ==25409== Releasing lock... [2025-04-01 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:58:22] Production.INFO: 41 MB #Memory Used# [2025-04-01 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 18:59:05 [end_date_ymd] => 2025-04-01 21:59:05 [RateCDR] => 1 ) [2025-04-01 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 18:59:05' and `end` < '2025-04-01 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 21:59:18] Production.INFO: count ==1731 [2025-04-01 21:59:19] Production.ERROR: pbx CDR StartTime 2025-04-01 18:59:05 - End Time 2025-04-01 21:59:05 [2025-04-01 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813743', 'tblTempUsageDetail_20' ) start [2025-04-01 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813743', 'tblTempUsageDetail_20' ) end [2025-04-01 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813743', 'tblTempVendorCDR_20' ) start [2025-04-01 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813743', 'tblTempVendorCDR_20' ) end [2025-04-01 21:59:19] Production.INFO: ProcessCDR(1,14813743,1,1,2) [2025-04-01 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813743', 'tblTempUsageDetail_20' ) start [2025-04-01 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813743', 'tblTempUsageDetail_20' ) end [2025-04-01 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 21:59:22] Production.INFO: ==25479== Releasing lock... [2025-04-01 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 21:59:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-01 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:00:06 [end_date_ymd] => 2025-04-01 22:00:06 [RateCDR] => 1 ) [2025-04-01 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-01 19:00:06' and `end` < '2025-04-01 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-01 22:00:19] Production.INFO: count ==1739 [2025-04-01 22:00:20] Production.ERROR: pbx CDR StartTime 2025-04-01 19:00:06 - End Time 2025-04-01 22:00:06 [2025-04-01 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813749', 'tblTempUsageDetail_20' ) start [2025-04-01 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813749', 'tblTempUsageDetail_20' ) end [2025-04-01 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813749', 'tblTempVendorCDR_20' ) start [2025-04-01 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813749', 'tblTempVendorCDR_20' ) end [2025-04-01 22:00:20] Production.INFO: ProcessCDR(1,14813749,1,1,2) [2025-04-01 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813749', 'tblTempUsageDetail_20' ) start [2025-04-01 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813749', 'tblTempUsageDetail_20' ) end [2025-04-01 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:00:23] Production.INFO: ==25554== Releasing lock... [2025-04-01 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:00:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-01 22:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:01:06 [end_date_ymd] => 2025-04-01 22:01:06 [RateCDR] => 1 ) [2025-04-01 22:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 19:01:06' and `end` < '2025-04-01 22:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 22:01:18] Production.INFO: count ==1695 [2025-04-01 22:01:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:01:06 - End Time 2025-04-01 22:01:06 [2025-04-01 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813754', 'tblTempUsageDetail_20' ) start [2025-04-01 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813754', 'tblTempUsageDetail_20' ) end [2025-04-01 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813754', 'tblTempVendorCDR_20' ) start [2025-04-01 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813754', 'tblTempVendorCDR_20' ) end [2025-04-01 22:01:19] Production.INFO: ProcessCDR(1,14813754,1,1,2) [2025-04-01 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813754', 'tblTempUsageDetail_20' ) start [2025-04-01 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813754', 'tblTempUsageDetail_20' ) end [2025-04-01 22:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:01:23] Production.INFO: ==25638== Releasing lock... [2025-04-01 22:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:01:23] Production.INFO: 41 MB #Memory Used# [2025-04-01 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:02:06 [end_date_ymd] => 2025-04-01 22:02:06 [RateCDR] => 1 ) [2025-04-01 22: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-01 19:02:06' and `end` < '2025-04-01 22: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-01 22:02:19] Production.INFO: count ==1685 [2025-04-01 22:02:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:02:06 - End Time 2025-04-01 22:02:06 [2025-04-01 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813759', 'tblTempUsageDetail_20' ) start [2025-04-01 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813759', 'tblTempUsageDetail_20' ) end [2025-04-01 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813759', 'tblTempVendorCDR_20' ) start [2025-04-01 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813759', 'tblTempVendorCDR_20' ) end [2025-04-01 22:02:19] Production.INFO: ProcessCDR(1,14813759,1,1,2) [2025-04-01 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813759', 'tblTempUsageDetail_20' ) start [2025-04-01 22:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813759', 'tblTempUsageDetail_20' ) end [2025-04-01 22:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:02:24] Production.INFO: ==25710== Releasing lock... [2025-04-01 22:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:02:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-01 22:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:03:06 [end_date_ymd] => 2025-04-01 22:03:06 [RateCDR] => 1 ) [2025-04-01 22: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-01 19:03:06' and `end` < '2025-04-01 22: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-01 22:03:18] Production.INFO: count ==1680 [2025-04-01 22:03:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:03:06 - End Time 2025-04-01 22:03:06 [2025-04-01 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813764', 'tblTempUsageDetail_20' ) start [2025-04-01 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813764', 'tblTempUsageDetail_20' ) end [2025-04-01 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813764', 'tblTempVendorCDR_20' ) start [2025-04-01 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813764', 'tblTempVendorCDR_20' ) end [2025-04-01 22:03:19] Production.INFO: ProcessCDR(1,14813764,1,1,2) [2025-04-01 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813764', 'tblTempUsageDetail_20' ) start [2025-04-01 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813764', 'tblTempUsageDetail_20' ) end [2025-04-01 22:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:03:23] Production.INFO: ==25781== Releasing lock... [2025-04-01 22:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:03:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-01 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:04:05 [end_date_ymd] => 2025-04-01 22:04:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:04:05' and `end` < '2025-04-01 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-01 22:04:18] Production.INFO: count ==1688 [2025-04-01 22:04:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:04:05 - End Time 2025-04-01 22:04:05 [2025-04-01 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813769', 'tblTempUsageDetail_20' ) start [2025-04-01 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813769', 'tblTempUsageDetail_20' ) end [2025-04-01 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813769', 'tblTempVendorCDR_20' ) start [2025-04-01 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813769', 'tblTempVendorCDR_20' ) end [2025-04-01 22:04:19] Production.INFO: ProcessCDR(1,14813769,1,1,2) [2025-04-01 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813769', 'tblTempUsageDetail_20' ) start [2025-04-01 22:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813769', 'tblTempUsageDetail_20' ) end [2025-04-01 22:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:04:24] Production.INFO: ==25852== Releasing lock... [2025-04-01 22:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:04:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-01 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:05:05 [end_date_ymd] => 2025-04-01 22:05:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:05:05' and `end` < '2025-04-01 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-01 22:05:18] Production.INFO: count ==1698 [2025-04-01 22:05:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:05:05 - End Time 2025-04-01 22:05:05 [2025-04-01 22:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813774', 'tblTempUsageDetail_20' ) start [2025-04-01 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813774', 'tblTempUsageDetail_20' ) end [2025-04-01 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813774', 'tblTempVendorCDR_20' ) start [2025-04-01 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813774', 'tblTempVendorCDR_20' ) end [2025-04-01 22:05:19] Production.INFO: ProcessCDR(1,14813774,1,1,2) [2025-04-01 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813774', 'tblTempUsageDetail_20' ) start [2025-04-01 22:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813774', 'tblTempUsageDetail_20' ) end [2025-04-01 22:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:05:24] Production.INFO: ==25925== Releasing lock... [2025-04-01 22:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:05:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-01 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:06:05 [end_date_ymd] => 2025-04-01 22:06:05 [RateCDR] => 1 ) [2025-04-01 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 19:06:05' and `end` < '2025-04-01 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 22:06:18] Production.INFO: count ==1712 [2025-04-01 22:06:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:06:05 - End Time 2025-04-01 22:06:05 [2025-04-01 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813779', 'tblTempUsageDetail_20' ) start [2025-04-01 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813779', 'tblTempUsageDetail_20' ) end [2025-04-01 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813779', 'tblTempVendorCDR_20' ) start [2025-04-01 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813779', 'tblTempVendorCDR_20' ) end [2025-04-01 22:06:19] Production.INFO: ProcessCDR(1,14813779,1,1,2) [2025-04-01 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813779', 'tblTempUsageDetail_20' ) start [2025-04-01 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813779', 'tblTempUsageDetail_20' ) end [2025-04-01 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:06:22] Production.INFO: ==25995== Releasing lock... [2025-04-01 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:06:22] Production.INFO: 41 MB #Memory Used# [2025-04-01 22:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:07:06 [end_date_ymd] => 2025-04-01 22:07:06 [RateCDR] => 1 ) [2025-04-01 22: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-01 19:07:06' and `end` < '2025-04-01 22: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-01 22:07:19] Production.INFO: count ==1699 [2025-04-01 22:07:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:07:06 - End Time 2025-04-01 22:07:06 [2025-04-01 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813784', 'tblTempUsageDetail_20' ) start [2025-04-01 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813784', 'tblTempUsageDetail_20' ) end [2025-04-01 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813784', 'tblTempVendorCDR_20' ) start [2025-04-01 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813784', 'tblTempVendorCDR_20' ) end [2025-04-01 22:07:19] Production.INFO: ProcessCDR(1,14813784,1,1,2) [2025-04-01 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813784', 'tblTempUsageDetail_20' ) start [2025-04-01 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813784', 'tblTempUsageDetail_20' ) end [2025-04-01 22:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:07:23] Production.INFO: ==26066== Releasing lock... [2025-04-01 22:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:07:23] Production.INFO: 41 MB #Memory Used# [2025-04-01 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:08:05 [end_date_ymd] => 2025-04-01 22:08:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:08:05' and `end` < '2025-04-01 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-01 22:08:18] Production.INFO: count ==1693 [2025-04-01 22:08:18] Production.ERROR: pbx CDR StartTime 2025-04-01 19:08:05 - End Time 2025-04-01 22:08:05 [2025-04-01 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813789', 'tblTempUsageDetail_20' ) start [2025-04-01 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813789', 'tblTempUsageDetail_20' ) end [2025-04-01 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813789', 'tblTempVendorCDR_20' ) start [2025-04-01 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813789', 'tblTempVendorCDR_20' ) end [2025-04-01 22:08:18] Production.INFO: ProcessCDR(1,14813789,1,1,2) [2025-04-01 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813789', 'tblTempUsageDetail_20' ) start [2025-04-01 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813789', 'tblTempUsageDetail_20' ) end [2025-04-01 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:08:22] Production.INFO: ==26138== Releasing lock... [2025-04-01 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:08:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-01 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:09:05 [end_date_ymd] => 2025-04-01 22:09:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:09:05' and `end` < '2025-04-01 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-01 22:09:18] Production.INFO: count ==1687 [2025-04-01 22:09:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:09:05 - End Time 2025-04-01 22:09:05 [2025-04-01 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813794', 'tblTempUsageDetail_20' ) start [2025-04-01 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813794', 'tblTempUsageDetail_20' ) end [2025-04-01 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813794', 'tblTempVendorCDR_20' ) start [2025-04-01 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813794', 'tblTempVendorCDR_20' ) end [2025-04-01 22:09:19] Production.INFO: ProcessCDR(1,14813794,1,1,2) [2025-04-01 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813794', 'tblTempUsageDetail_20' ) start [2025-04-01 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813794', 'tblTempUsageDetail_20' ) end [2025-04-01 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:09:22] Production.INFO: ==26211== Releasing lock... [2025-04-01 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:09:22] Production.INFO: 41 MB #Memory Used# [2025-04-01 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:10:05 [end_date_ymd] => 2025-04-01 22:10:05 [RateCDR] => 1 ) [2025-04-01 22:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 19:10:05' and `end` < '2025-04-01 22:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 22:10:18] Production.INFO: count ==1681 [2025-04-01 22:10:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:10:05 - End Time 2025-04-01 22:10:05 [2025-04-01 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813800', 'tblTempUsageDetail_20' ) start [2025-04-01 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813800', 'tblTempUsageDetail_20' ) end [2025-04-01 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813800', 'tblTempVendorCDR_20' ) start [2025-04-01 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813800', 'tblTempVendorCDR_20' ) end [2025-04-01 22:10:19] Production.INFO: ProcessCDR(1,14813800,1,1,2) [2025-04-01 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813800', 'tblTempUsageDetail_20' ) start [2025-04-01 22:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813800', 'tblTempUsageDetail_20' ) end [2025-04-01 22:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:10:24] Production.INFO: ==26284== Releasing lock... [2025-04-01 22:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:10:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-01 22:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:11:06 [end_date_ymd] => 2025-04-01 22:11:06 [RateCDR] => 1 ) [2025-04-01 22: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-01 19:11:06' and `end` < '2025-04-01 22: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-01 22:11:18] Production.INFO: count ==1647 [2025-04-01 22:11:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:11:06 - End Time 2025-04-01 22:11:06 [2025-04-01 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813805', 'tblTempUsageDetail_20' ) start [2025-04-01 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813805', 'tblTempUsageDetail_20' ) end [2025-04-01 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813805', 'tblTempVendorCDR_20' ) start [2025-04-01 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813805', 'tblTempVendorCDR_20' ) end [2025-04-01 22:11:19] Production.INFO: ProcessCDR(1,14813805,1,1,2) [2025-04-01 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813805', 'tblTempUsageDetail_20' ) start [2025-04-01 22:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813805', 'tblTempUsageDetail_20' ) end [2025-04-01 22:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:11:24] Production.INFO: ==26360== Releasing lock... [2025-04-01 22:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:11:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-01 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:12:05 [end_date_ymd] => 2025-04-01 22:12:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:12:05' and `end` < '2025-04-01 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-01 22:12:18] Production.INFO: count ==1642 [2025-04-01 22:12:18] Production.ERROR: pbx CDR StartTime 2025-04-01 19:12:05 - End Time 2025-04-01 22:12:05 [2025-04-01 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813810', 'tblTempUsageDetail_20' ) start [2025-04-01 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813810', 'tblTempUsageDetail_20' ) end [2025-04-01 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813810', 'tblTempVendorCDR_20' ) start [2025-04-01 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813810', 'tblTempVendorCDR_20' ) end [2025-04-01 22:12:18] Production.INFO: ProcessCDR(1,14813810,1,1,2) [2025-04-01 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813810', 'tblTempUsageDetail_20' ) start [2025-04-01 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813810', 'tblTempUsageDetail_20' ) end [2025-04-01 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:12:22] Production.INFO: ==26438== Releasing lock... [2025-04-01 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:12:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-01 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:13:05 [end_date_ymd] => 2025-04-01 22:13:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:13:05' and `end` < '2025-04-01 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-01 22:13:18] Production.INFO: count ==1643 [2025-04-01 22:13:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:13:05 - End Time 2025-04-01 22:13:05 [2025-04-01 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813815', 'tblTempUsageDetail_20' ) start [2025-04-01 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813815', 'tblTempUsageDetail_20' ) end [2025-04-01 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813815', 'tblTempVendorCDR_20' ) start [2025-04-01 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813815', 'tblTempVendorCDR_20' ) end [2025-04-01 22:13:19] Production.INFO: ProcessCDR(1,14813815,1,1,2) [2025-04-01 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813815', 'tblTempUsageDetail_20' ) start [2025-04-01 22:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813815', 'tblTempUsageDetail_20' ) end [2025-04-01 22:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:13:24] Production.INFO: ==26550== Releasing lock... [2025-04-01 22:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:13:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-01 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:14:05 [end_date_ymd] => 2025-04-01 22:14:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:14:05' and `end` < '2025-04-01 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-01 22:14:18] Production.INFO: count ==1640 [2025-04-01 22:14:18] Production.ERROR: pbx CDR StartTime 2025-04-01 19:14:05 - End Time 2025-04-01 22:14:05 [2025-04-01 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813820', 'tblTempUsageDetail_20' ) start [2025-04-01 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813820', 'tblTempUsageDetail_20' ) end [2025-04-01 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813820', 'tblTempVendorCDR_20' ) start [2025-04-01 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813820', 'tblTempVendorCDR_20' ) end [2025-04-01 22:14:19] Production.INFO: ProcessCDR(1,14813820,1,1,2) [2025-04-01 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813820', 'tblTempUsageDetail_20' ) start [2025-04-01 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813820', 'tblTempUsageDetail_20' ) end [2025-04-01 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:14:22] Production.INFO: ==26623== Releasing lock... [2025-04-01 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:14:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-01 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:15:05 [end_date_ymd] => 2025-04-01 22:15:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:15:05' and `end` < '2025-04-01 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-01 22:15:18] Production.INFO: count ==1639 [2025-04-01 22:15:18] Production.ERROR: pbx CDR StartTime 2025-04-01 19:15:05 - End Time 2025-04-01 22:15:05 [2025-04-01 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813825', 'tblTempUsageDetail_20' ) start [2025-04-01 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813825', 'tblTempUsageDetail_20' ) end [2025-04-01 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813825', 'tblTempVendorCDR_20' ) start [2025-04-01 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813825', 'tblTempVendorCDR_20' ) end [2025-04-01 22:15:18] Production.INFO: ProcessCDR(1,14813825,1,1,2) [2025-04-01 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813825', 'tblTempUsageDetail_20' ) start [2025-04-01 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813825', 'tblTempUsageDetail_20' ) end [2025-04-01 22:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:15:23] Production.INFO: ==26699== Releasing lock... [2025-04-01 22:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:15:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-01 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:16:05 [end_date_ymd] => 2025-04-01 22:16:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:16:05' and `end` < '2025-04-01 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-01 22:16:17] Production.INFO: count ==1619 [2025-04-01 22:16:18] Production.ERROR: pbx CDR StartTime 2025-04-01 19:16:05 - End Time 2025-04-01 22:16:05 [2025-04-01 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813830', 'tblTempUsageDetail_20' ) start [2025-04-01 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813830', 'tblTempUsageDetail_20' ) end [2025-04-01 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813830', 'tblTempVendorCDR_20' ) start [2025-04-01 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813830', 'tblTempVendorCDR_20' ) end [2025-04-01 22:16:18] Production.INFO: ProcessCDR(1,14813830,1,1,2) [2025-04-01 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813830', 'tblTempUsageDetail_20' ) start [2025-04-01 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813830', 'tblTempUsageDetail_20' ) end [2025-04-01 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:16:22] Production.INFO: ==26778== Releasing lock... [2025-04-01 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:16:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-01 22:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:17:06 [end_date_ymd] => 2025-04-01 22:17:06 [RateCDR] => 1 ) [2025-04-01 22:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 19:17:06' and `end` < '2025-04-01 22:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 22:17:18] Production.INFO: count ==1612 [2025-04-01 22:17:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:17:06 - End Time 2025-04-01 22:17:06 [2025-04-01 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813835', 'tblTempUsageDetail_20' ) start [2025-04-01 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813835', 'tblTempUsageDetail_20' ) end [2025-04-01 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813835', 'tblTempVendorCDR_20' ) start [2025-04-01 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813835', 'tblTempVendorCDR_20' ) end [2025-04-01 22:17:19] Production.INFO: ProcessCDR(1,14813835,1,1,2) [2025-04-01 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813835', 'tblTempUsageDetail_20' ) start [2025-04-01 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813835', 'tblTempUsageDetail_20' ) end [2025-04-01 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:17:23] Production.INFO: ==26862== Releasing lock... [2025-04-01 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:17:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-01 22:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:18:06 [end_date_ymd] => 2025-04-01 22:18:06 [RateCDR] => 1 ) [2025-04-01 22: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-01 19:18:06' and `end` < '2025-04-01 22: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-01 22:18:19] Production.INFO: count ==1598 [2025-04-01 22:18:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:18:06 - End Time 2025-04-01 22:18:06 [2025-04-01 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813840', 'tblTempUsageDetail_20' ) start [2025-04-01 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813840', 'tblTempUsageDetail_20' ) end [2025-04-01 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813840', 'tblTempVendorCDR_20' ) start [2025-04-01 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813840', 'tblTempVendorCDR_20' ) end [2025-04-01 22:18:19] Production.INFO: ProcessCDR(1,14813840,1,1,2) [2025-04-01 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813840', 'tblTempUsageDetail_20' ) start [2025-04-01 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813840', 'tblTempUsageDetail_20' ) end [2025-04-01 22:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:18:23] Production.INFO: ==26934== Releasing lock... [2025-04-01 22:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:18:23] Production.INFO: 40 MB #Memory Used# [2025-04-01 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:19:05 [end_date_ymd] => 2025-04-01 22:19:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:19:05' and `end` < '2025-04-01 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-01 22:19:18] Production.INFO: count ==1586 [2025-04-01 22:19:18] Production.ERROR: pbx CDR StartTime 2025-04-01 19:19:05 - End Time 2025-04-01 22:19:05 [2025-04-01 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813845', 'tblTempUsageDetail_20' ) start [2025-04-01 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813845', 'tblTempUsageDetail_20' ) end [2025-04-01 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813845', 'tblTempVendorCDR_20' ) start [2025-04-01 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813845', 'tblTempVendorCDR_20' ) end [2025-04-01 22:19:18] Production.INFO: ProcessCDR(1,14813845,1,1,2) [2025-04-01 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813845', 'tblTempUsageDetail_20' ) start [2025-04-01 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813845', 'tblTempUsageDetail_20' ) end [2025-04-01 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:19:22] Production.INFO: ==27010== Releasing lock... [2025-04-01 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:19:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-01 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:20:06 [end_date_ymd] => 2025-04-01 22:20:06 [RateCDR] => 1 ) [2025-04-01 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-01 19:20:06' and `end` < '2025-04-01 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-01 22:20:19] Production.INFO: count ==1568 [2025-04-01 22:20:20] Production.ERROR: pbx CDR StartTime 2025-04-01 19:20:06 - End Time 2025-04-01 22:20:06 [2025-04-01 22:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813851', 'tblTempUsageDetail_20' ) start [2025-04-01 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813851', 'tblTempUsageDetail_20' ) end [2025-04-01 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813851', 'tblTempVendorCDR_20' ) start [2025-04-01 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813851', 'tblTempVendorCDR_20' ) end [2025-04-01 22:20:20] Production.INFO: ProcessCDR(1,14813851,1,1,2) [2025-04-01 22:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813851', 'tblTempUsageDetail_20' ) start [2025-04-01 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813851', 'tblTempUsageDetail_20' ) end [2025-04-01 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:20:23] Production.INFO: ==27088== Releasing lock... [2025-04-01 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:20:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-01 22:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:21:06 [end_date_ymd] => 2025-04-01 22:21:06 [RateCDR] => 1 ) [2025-04-01 22:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 19:21:06' and `end` < '2025-04-01 22:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 22:21:18] Production.INFO: count ==1523 [2025-04-01 22:21:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:21:06 - End Time 2025-04-01 22:21:06 [2025-04-01 22:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813856', 'tblTempUsageDetail_20' ) start [2025-04-01 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813856', 'tblTempUsageDetail_20' ) end [2025-04-01 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813856', 'tblTempVendorCDR_20' ) start [2025-04-01 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813856', 'tblTempVendorCDR_20' ) end [2025-04-01 22:21:19] Production.INFO: ProcessCDR(1,14813856,1,1,2) [2025-04-01 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813856', 'tblTempUsageDetail_20' ) start [2025-04-01 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813856', 'tblTempUsageDetail_20' ) end [2025-04-01 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:21:22] Production.INFO: ==27164== Releasing lock... [2025-04-01 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:21:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-01 22:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:22:06 [end_date_ymd] => 2025-04-01 22:22:06 [RateCDR] => 1 ) [2025-04-01 22: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-01 19:22:06' and `end` < '2025-04-01 22: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-01 22:22:19] Production.INFO: count ==1536 [2025-04-01 22:22:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:22:06 - End Time 2025-04-01 22:22:06 [2025-04-01 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813861', 'tblTempUsageDetail_20' ) start [2025-04-01 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813861', 'tblTempUsageDetail_20' ) end [2025-04-01 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813861', 'tblTempVendorCDR_20' ) start [2025-04-01 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813861', 'tblTempVendorCDR_20' ) end [2025-04-01 22:22:19] Production.INFO: ProcessCDR(1,14813861,1,1,2) [2025-04-01 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813861', 'tblTempUsageDetail_20' ) start [2025-04-01 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813861', 'tblTempUsageDetail_20' ) end [2025-04-01 22:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:22:23] Production.INFO: ==27240== Releasing lock... [2025-04-01 22:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:22:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-01 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:23:05 [end_date_ymd] => 2025-04-01 22:23:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:23:05' and `end` < '2025-04-01 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-01 22:23:18] Production.INFO: count ==1531 [2025-04-01 22:23:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:23:05 - End Time 2025-04-01 22:23:05 [2025-04-01 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813866', 'tblTempUsageDetail_20' ) start [2025-04-01 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813866', 'tblTempUsageDetail_20' ) end [2025-04-01 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813866', 'tblTempVendorCDR_20' ) start [2025-04-01 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813866', 'tblTempVendorCDR_20' ) end [2025-04-01 22:23:19] Production.INFO: ProcessCDR(1,14813866,1,1,2) [2025-04-01 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813866', 'tblTempUsageDetail_20' ) start [2025-04-01 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813866', 'tblTempUsageDetail_20' ) end [2025-04-01 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:23:22] Production.INFO: ==27314== Releasing lock... [2025-04-01 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:23:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-01 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:24:06 [end_date_ymd] => 2025-04-01 22:24:06 [RateCDR] => 1 ) [2025-04-01 22: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-01 19:24:06' and `end` < '2025-04-01 22: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-01 22:24:18] Production.INFO: count ==1530 [2025-04-01 22:24:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:24:06 - End Time 2025-04-01 22:24:06 [2025-04-01 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813871', 'tblTempUsageDetail_20' ) start [2025-04-01 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813871', 'tblTempUsageDetail_20' ) end [2025-04-01 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813871', 'tblTempVendorCDR_20' ) start [2025-04-01 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813871', 'tblTempVendorCDR_20' ) end [2025-04-01 22:24:19] Production.INFO: ProcessCDR(1,14813871,1,1,2) [2025-04-01 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813871', 'tblTempUsageDetail_20' ) start [2025-04-01 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813871', 'tblTempUsageDetail_20' ) end [2025-04-01 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:24:22] Production.INFO: ==27390== Releasing lock... [2025-04-01 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:24:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-01 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:25:05 [end_date_ymd] => 2025-04-01 22:25:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:25:05' and `end` < '2025-04-01 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-01 22:25:18] Production.INFO: count ==1538 [2025-04-01 22:25:18] Production.ERROR: pbx CDR StartTime 2025-04-01 19:25:05 - End Time 2025-04-01 22:25:05 [2025-04-01 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813876', 'tblTempUsageDetail_20' ) start [2025-04-01 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813876', 'tblTempUsageDetail_20' ) end [2025-04-01 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813876', 'tblTempVendorCDR_20' ) start [2025-04-01 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813876', 'tblTempVendorCDR_20' ) end [2025-04-01 22:25:18] Production.INFO: ProcessCDR(1,14813876,1,1,2) [2025-04-01 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813876', 'tblTempUsageDetail_20' ) start [2025-04-01 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813876', 'tblTempUsageDetail_20' ) end [2025-04-01 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:25:22] Production.INFO: ==27463== Releasing lock... [2025-04-01 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:25:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-01 22:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:26:06 [end_date_ymd] => 2025-04-01 22:26:06 [RateCDR] => 1 ) [2025-04-01 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-01 19:26:06' and `end` < '2025-04-01 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-01 22:26:18] Production.INFO: count ==1537 [2025-04-01 22:26:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:26:06 - End Time 2025-04-01 22:26:06 [2025-04-01 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813881', 'tblTempUsageDetail_20' ) start [2025-04-01 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813881', 'tblTempUsageDetail_20' ) end [2025-04-01 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813881', 'tblTempVendorCDR_20' ) start [2025-04-01 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813881', 'tblTempVendorCDR_20' ) end [2025-04-01 22:26:19] Production.INFO: ProcessCDR(1,14813881,1,1,2) [2025-04-01 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813881', 'tblTempUsageDetail_20' ) start [2025-04-01 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813881', 'tblTempUsageDetail_20' ) end [2025-04-01 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:26:22] Production.INFO: ==27541== Releasing lock... [2025-04-01 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:26:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-01 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:27:05 [end_date_ymd] => 2025-04-01 22:27:05 [RateCDR] => 1 ) [2025-04-01 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 19:27:05' and `end` < '2025-04-01 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 22:27:17] Production.INFO: count ==1537 [2025-04-01 22:27:18] Production.ERROR: pbx CDR StartTime 2025-04-01 19:27:05 - End Time 2025-04-01 22:27:05 [2025-04-01 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813886', 'tblTempUsageDetail_20' ) start [2025-04-01 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813886', 'tblTempUsageDetail_20' ) end [2025-04-01 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813886', 'tblTempVendorCDR_20' ) start [2025-04-01 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813886', 'tblTempVendorCDR_20' ) end [2025-04-01 22:27:18] Production.INFO: ProcessCDR(1,14813886,1,1,2) [2025-04-01 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813886', 'tblTempUsageDetail_20' ) start [2025-04-01 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813886', 'tblTempUsageDetail_20' ) end [2025-04-01 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:27:21] Production.INFO: ==27611== Releasing lock... [2025-04-01 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:27:21] Production.INFO: 39.5 MB #Memory Used# [2025-04-01 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:28:05 [end_date_ymd] => 2025-04-01 22:28:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:28:05' and `end` < '2025-04-01 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-01 22:28:18] Production.INFO: count ==1529 [2025-04-01 22:28:18] Production.ERROR: pbx CDR StartTime 2025-04-01 19:28:05 - End Time 2025-04-01 22:28:05 [2025-04-01 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813891', 'tblTempUsageDetail_20' ) start [2025-04-01 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813891', 'tblTempUsageDetail_20' ) end [2025-04-01 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813891', 'tblTempVendorCDR_20' ) start [2025-04-01 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813891', 'tblTempVendorCDR_20' ) end [2025-04-01 22:28:18] Production.INFO: ProcessCDR(1,14813891,1,1,2) [2025-04-01 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813891', 'tblTempUsageDetail_20' ) start [2025-04-01 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813891', 'tblTempUsageDetail_20' ) end [2025-04-01 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:28:22] Production.INFO: ==27689== Releasing lock... [2025-04-01 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:28:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-01 22:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:29:06 [end_date_ymd] => 2025-04-01 22:29:06 [RateCDR] => 1 ) [2025-04-01 22:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 19:29:06' and `end` < '2025-04-01 22:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 22:29:19] Production.INFO: count ==1521 [2025-04-01 22:29:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:29:06 - End Time 2025-04-01 22:29:06 [2025-04-01 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813896', 'tblTempUsageDetail_20' ) start [2025-04-01 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813896', 'tblTempUsageDetail_20' ) end [2025-04-01 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813896', 'tblTempVendorCDR_20' ) start [2025-04-01 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813896', 'tblTempVendorCDR_20' ) end [2025-04-01 22:29:19] Production.INFO: ProcessCDR(1,14813896,1,1,2) [2025-04-01 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813896', 'tblTempUsageDetail_20' ) start [2025-04-01 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813896', 'tblTempUsageDetail_20' ) end [2025-04-01 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:29:22] Production.INFO: ==27806== Releasing lock... [2025-04-01 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:29:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-01 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:30:06 [end_date_ymd] => 2025-04-01 22:30:06 [RateCDR] => 1 ) [2025-04-01 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-01 19:30:06' and `end` < '2025-04-01 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-01 22:30:18] Production.INFO: count ==1514 [2025-04-01 22:30:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:30:06 - End Time 2025-04-01 22:30:06 [2025-04-01 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813901', 'tblTempUsageDetail_20' ) start [2025-04-01 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813901', 'tblTempUsageDetail_20' ) end [2025-04-01 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813901', 'tblTempVendorCDR_20' ) start [2025-04-01 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813901', 'tblTempVendorCDR_20' ) end [2025-04-01 22:30:19] Production.INFO: ProcessCDR(1,14813901,1,1,2) [2025-04-01 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813901', 'tblTempUsageDetail_20' ) start [2025-04-01 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813901', 'tblTempUsageDetail_20' ) end [2025-04-01 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:30:23] Production.INFO: ==27883== Releasing lock... [2025-04-01 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:30:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-01 22:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:31:06 [end_date_ymd] => 2025-04-01 22:31:06 [RateCDR] => 1 ) [2025-04-01 22:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 19:31:06' and `end` < '2025-04-01 22:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 22:31:18] Production.INFO: count ==1442 [2025-04-01 22:31:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:31:06 - End Time 2025-04-01 22:31:06 [2025-04-01 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813907', 'tblTempUsageDetail_20' ) start [2025-04-01 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813907', 'tblTempUsageDetail_20' ) end [2025-04-01 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813907', 'tblTempVendorCDR_20' ) start [2025-04-01 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813907', 'tblTempVendorCDR_20' ) end [2025-04-01 22:31:19] Production.INFO: ProcessCDR(1,14813907,1,1,2) [2025-04-01 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813907', 'tblTempUsageDetail_20' ) start [2025-04-01 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813907', 'tblTempUsageDetail_20' ) end [2025-04-01 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:31:22] Production.INFO: ==27960== Releasing lock... [2025-04-01 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:31:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-01 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:32:05 [end_date_ymd] => 2025-04-01 22:32:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:32:05' and `end` < '2025-04-01 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-01 22:32:18] Production.INFO: count ==1438 [2025-04-01 22:32:18] Production.ERROR: pbx CDR StartTime 2025-04-01 19:32:05 - End Time 2025-04-01 22:32:05 [2025-04-01 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813912', 'tblTempUsageDetail_20' ) start [2025-04-01 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813912', 'tblTempUsageDetail_20' ) end [2025-04-01 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813912', 'tblTempVendorCDR_20' ) start [2025-04-01 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813912', 'tblTempVendorCDR_20' ) end [2025-04-01 22:32:18] Production.INFO: ProcessCDR(1,14813912,1,1,2) [2025-04-01 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813912', 'tblTempUsageDetail_20' ) start [2025-04-01 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813912', 'tblTempUsageDetail_20' ) end [2025-04-01 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:32:22] Production.INFO: ==28037== Releasing lock... [2025-04-01 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:32:22] Production.INFO: 39 MB #Memory Used# [2025-04-01 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:33:05 [end_date_ymd] => 2025-04-01 22:33:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:33:05' and `end` < '2025-04-01 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-01 22:33:18] Production.INFO: count ==1438 [2025-04-01 22:33:18] Production.ERROR: pbx CDR StartTime 2025-04-01 19:33:05 - End Time 2025-04-01 22:33:05 [2025-04-01 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813917', 'tblTempUsageDetail_20' ) start [2025-04-01 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813917', 'tblTempUsageDetail_20' ) end [2025-04-01 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813917', 'tblTempVendorCDR_20' ) start [2025-04-01 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813917', 'tblTempVendorCDR_20' ) end [2025-04-01 22:33:19] Production.INFO: ProcessCDR(1,14813917,1,1,2) [2025-04-01 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813917', 'tblTempUsageDetail_20' ) start [2025-04-01 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813917', 'tblTempUsageDetail_20' ) end [2025-04-01 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:33:22] Production.INFO: ==28111== Releasing lock... [2025-04-01 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:33:22] Production.INFO: 39 MB #Memory Used# [2025-04-01 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:34:05 [end_date_ymd] => 2025-04-01 22:34:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:34:05' and `end` < '2025-04-01 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-01 22:34:18] Production.INFO: count ==1424 [2025-04-01 22:34:18] Production.ERROR: pbx CDR StartTime 2025-04-01 19:34:05 - End Time 2025-04-01 22:34:05 [2025-04-01 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813922', 'tblTempUsageDetail_20' ) start [2025-04-01 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813922', 'tblTempUsageDetail_20' ) end [2025-04-01 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813922', 'tblTempVendorCDR_20' ) start [2025-04-01 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813922', 'tblTempVendorCDR_20' ) end [2025-04-01 22:34:18] Production.INFO: ProcessCDR(1,14813922,1,1,2) [2025-04-01 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813922', 'tblTempUsageDetail_20' ) start [2025-04-01 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813922', 'tblTempUsageDetail_20' ) end [2025-04-01 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:34:22] Production.INFO: ==28189== Releasing lock... [2025-04-01 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:34:22] Production.INFO: 39 MB #Memory Used# [2025-04-01 22:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:35:06 [end_date_ymd] => 2025-04-01 22:35:06 [RateCDR] => 1 ) [2025-04-01 22: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-01 19:35:06' and `end` < '2025-04-01 22: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-01 22:35:19] Production.INFO: count ==1425 [2025-04-01 22:35:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:35:06 - End Time 2025-04-01 22:35:06 [2025-04-01 22:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813927', 'tblTempUsageDetail_20' ) start [2025-04-01 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813927', 'tblTempUsageDetail_20' ) end [2025-04-01 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813927', 'tblTempVendorCDR_20' ) start [2025-04-01 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813927', 'tblTempVendorCDR_20' ) end [2025-04-01 22:35:19] Production.INFO: ProcessCDR(1,14813927,1,1,2) [2025-04-01 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813927', 'tblTempUsageDetail_20' ) start [2025-04-01 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813927', 'tblTempUsageDetail_20' ) end [2025-04-01 22:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:35:23] Production.INFO: ==28265== Releasing lock... [2025-04-01 22:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:35:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-01 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:36:05 [end_date_ymd] => 2025-04-01 22:36:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:36:05' and `end` < '2025-04-01 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-01 22:36:18] Production.INFO: count ==1423 [2025-04-01 22:36:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:36:05 - End Time 2025-04-01 22:36:05 [2025-04-01 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813932', 'tblTempUsageDetail_20' ) start [2025-04-01 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813932', 'tblTempUsageDetail_20' ) end [2025-04-01 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813932', 'tblTempVendorCDR_20' ) start [2025-04-01 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813932', 'tblTempVendorCDR_20' ) end [2025-04-01 22:36:19] Production.INFO: ProcessCDR(1,14813932,1,1,2) [2025-04-01 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813932', 'tblTempUsageDetail_20' ) start [2025-04-01 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813932', 'tblTempUsageDetail_20' ) end [2025-04-01 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:36:22] Production.INFO: ==28339== Releasing lock... [2025-04-01 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:36:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-01 22:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:37:06 [end_date_ymd] => 2025-04-01 22:37:06 [RateCDR] => 1 ) [2025-04-01 22:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 19:37:06' and `end` < '2025-04-01 22:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 22:37:19] Production.INFO: count ==1411 [2025-04-01 22:37:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:37:06 - End Time 2025-04-01 22:37:06 [2025-04-01 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813937', 'tblTempUsageDetail_20' ) start [2025-04-01 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813937', 'tblTempUsageDetail_20' ) end [2025-04-01 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813937', 'tblTempVendorCDR_20' ) start [2025-04-01 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813937', 'tblTempVendorCDR_20' ) end [2025-04-01 22:37:19] Production.INFO: ProcessCDR(1,14813937,1,1,2) [2025-04-01 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813937', 'tblTempUsageDetail_20' ) start [2025-04-01 22:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813937', 'tblTempUsageDetail_20' ) end [2025-04-01 22:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:37:23] Production.INFO: ==28421== Releasing lock... [2025-04-01 22:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:37:23] Production.INFO: 39 MB #Memory Used# [2025-04-01 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:38:05 [end_date_ymd] => 2025-04-01 22:38:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:38:05' and `end` < '2025-04-01 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-01 22:38:18] Production.INFO: count ==1403 [2025-04-01 22:38:18] Production.ERROR: pbx CDR StartTime 2025-04-01 19:38:05 - End Time 2025-04-01 22:38:05 [2025-04-01 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813942', 'tblTempUsageDetail_20' ) start [2025-04-01 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813942', 'tblTempUsageDetail_20' ) end [2025-04-01 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813942', 'tblTempVendorCDR_20' ) start [2025-04-01 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813942', 'tblTempVendorCDR_20' ) end [2025-04-01 22:38:18] Production.INFO: ProcessCDR(1,14813942,1,1,2) [2025-04-01 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813942', 'tblTempUsageDetail_20' ) start [2025-04-01 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813942', 'tblTempUsageDetail_20' ) end [2025-04-01 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:38:21] Production.INFO: ==28508== Releasing lock... [2025-04-01 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:38:21] Production.INFO: 38.75 MB #Memory Used# [2025-04-01 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:39:05 [end_date_ymd] => 2025-04-01 22:39:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:39:05' and `end` < '2025-04-01 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-01 22:39:18] Production.INFO: count ==1403 [2025-04-01 22:39:18] Production.ERROR: pbx CDR StartTime 2025-04-01 19:39:05 - End Time 2025-04-01 22:39:05 [2025-04-01 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813947', 'tblTempUsageDetail_20' ) start [2025-04-01 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813947', 'tblTempUsageDetail_20' ) end [2025-04-01 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813947', 'tblTempVendorCDR_20' ) start [2025-04-01 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813947', 'tblTempVendorCDR_20' ) end [2025-04-01 22:39:18] Production.INFO: ProcessCDR(1,14813947,1,1,2) [2025-04-01 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813947', 'tblTempUsageDetail_20' ) start [2025-04-01 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813947', 'tblTempUsageDetail_20' ) end [2025-04-01 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:39:22] Production.INFO: ==28582== Releasing lock... [2025-04-01 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:39:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-01 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:40:05 [end_date_ymd] => 2025-04-01 22:40:05 [RateCDR] => 1 ) [2025-04-01 22:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 19:40:05' and `end` < '2025-04-01 22:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 22:40:18] Production.INFO: count ==1401 [2025-04-01 22:40:18] Production.ERROR: pbx CDR StartTime 2025-04-01 19:40:05 - End Time 2025-04-01 22:40:05 [2025-04-01 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813952', 'tblTempUsageDetail_20' ) start [2025-04-01 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813952', 'tblTempUsageDetail_20' ) end [2025-04-01 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813952', 'tblTempVendorCDR_20' ) start [2025-04-01 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813952', 'tblTempVendorCDR_20' ) end [2025-04-01 22:40:18] Production.INFO: ProcessCDR(1,14813952,1,1,2) [2025-04-01 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813952', 'tblTempUsageDetail_20' ) start [2025-04-01 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813952', 'tblTempUsageDetail_20' ) end [2025-04-01 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:40:22] Production.INFO: ==28663== Releasing lock... [2025-04-01 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:40:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-01 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:41:05 [end_date_ymd] => 2025-04-01 22:41:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:41:05' and `end` < '2025-04-01 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-01 22:41:18] Production.INFO: count ==1404 [2025-04-01 22:41:18] Production.ERROR: pbx CDR StartTime 2025-04-01 19:41:05 - End Time 2025-04-01 22:41:05 [2025-04-01 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813958', 'tblTempUsageDetail_20' ) start [2025-04-01 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813958', 'tblTempUsageDetail_20' ) end [2025-04-01 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813958', 'tblTempVendorCDR_20' ) start [2025-04-01 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813958', 'tblTempVendorCDR_20' ) end [2025-04-01 22:41:19] Production.INFO: ProcessCDR(1,14813958,1,1,2) [2025-04-01 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813958', 'tblTempUsageDetail_20' ) start [2025-04-01 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813958', 'tblTempUsageDetail_20' ) end [2025-04-01 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:41:22] Production.INFO: ==28743== Releasing lock... [2025-04-01 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:41:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-01 22:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:42:06 [end_date_ymd] => 2025-04-01 22:42:06 [RateCDR] => 1 ) [2025-04-01 22: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-01 19:42:06' and `end` < '2025-04-01 22: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-01 22:42:19] Production.INFO: count ==1403 [2025-04-01 22:42:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:42:06 - End Time 2025-04-01 22:42:06 [2025-04-01 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813963', 'tblTempUsageDetail_20' ) start [2025-04-01 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813963', 'tblTempUsageDetail_20' ) end [2025-04-01 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813963', 'tblTempVendorCDR_20' ) start [2025-04-01 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813963', 'tblTempVendorCDR_20' ) end [2025-04-01 22:42:19] Production.INFO: ProcessCDR(1,14813963,1,1,2) [2025-04-01 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813963', 'tblTempUsageDetail_20' ) start [2025-04-01 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813963', 'tblTempUsageDetail_20' ) end [2025-04-01 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:42:22] Production.INFO: ==28817== Releasing lock... [2025-04-01 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:42:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-01 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:43:05 [end_date_ymd] => 2025-04-01 22:43:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:43:05' and `end` < '2025-04-01 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-01 22:43:18] Production.INFO: count ==1403 [2025-04-01 22:43:18] Production.ERROR: pbx CDR StartTime 2025-04-01 19:43:05 - End Time 2025-04-01 22:43:05 [2025-04-01 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813968', 'tblTempUsageDetail_20' ) start [2025-04-01 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813968', 'tblTempUsageDetail_20' ) end [2025-04-01 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813968', 'tblTempVendorCDR_20' ) start [2025-04-01 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813968', 'tblTempVendorCDR_20' ) end [2025-04-01 22:43:18] Production.INFO: ProcessCDR(1,14813968,1,1,2) [2025-04-01 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813968', 'tblTempUsageDetail_20' ) start [2025-04-01 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813968', 'tblTempUsageDetail_20' ) end [2025-04-01 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:43:22] Production.INFO: ==28894== Releasing lock... [2025-04-01 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:43:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-01 22:44:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:44:07 [end_date_ymd] => 2025-04-01 22:44:07 [RateCDR] => 1 ) [2025-04-01 22:44: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-01 19:44:07' and `end` < '2025-04-01 22:44: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-01 22:44:19] Production.INFO: count ==1411 [2025-04-01 22:44:20] Production.ERROR: pbx CDR StartTime 2025-04-01 19:44:07 - End Time 2025-04-01 22:44:07 [2025-04-01 22:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813973', 'tblTempUsageDetail_20' ) start [2025-04-01 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813973', 'tblTempUsageDetail_20' ) end [2025-04-01 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813973', 'tblTempVendorCDR_20' ) start [2025-04-01 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813973', 'tblTempVendorCDR_20' ) end [2025-04-01 22:44:20] Production.INFO: ProcessCDR(1,14813973,1,1,2) [2025-04-01 22:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813973', 'tblTempUsageDetail_20' ) start [2025-04-01 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813973', 'tblTempUsageDetail_20' ) end [2025-04-01 22:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:44:23] Production.INFO: ==29008== Releasing lock... [2025-04-01 22:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:44:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-01 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:45:05 [end_date_ymd] => 2025-04-01 22:45:05 [RateCDR] => 1 ) [2025-04-01 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 19:45:05' and `end` < '2025-04-01 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 22:45:18] Production.INFO: count ==1408 [2025-04-01 22:45:18] Production.ERROR: pbx CDR StartTime 2025-04-01 19:45:05 - End Time 2025-04-01 22:45:05 [2025-04-01 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813978', 'tblTempUsageDetail_20' ) start [2025-04-01 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813978', 'tblTempUsageDetail_20' ) end [2025-04-01 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813978', 'tblTempVendorCDR_20' ) start [2025-04-01 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813978', 'tblTempVendorCDR_20' ) end [2025-04-01 22:45:18] Production.INFO: ProcessCDR(1,14813978,1,1,2) [2025-04-01 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813978', 'tblTempUsageDetail_20' ) start [2025-04-01 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813978', 'tblTempUsageDetail_20' ) end [2025-04-01 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:45:22] Production.INFO: ==29086== Releasing lock... [2025-04-01 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:45:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-01 22:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:46:06 [end_date_ymd] => 2025-04-01 22:46:06 [RateCDR] => 1 ) [2025-04-01 22: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-01 19:46:06' and `end` < '2025-04-01 22: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-01 22:46:19] Production.INFO: count ==1394 [2025-04-01 22:46:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:46:06 - End Time 2025-04-01 22:46:06 [2025-04-01 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813983', 'tblTempUsageDetail_20' ) start [2025-04-01 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813983', 'tblTempUsageDetail_20' ) end [2025-04-01 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813983', 'tblTempVendorCDR_20' ) start [2025-04-01 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813983', 'tblTempVendorCDR_20' ) end [2025-04-01 22:46:19] Production.INFO: ProcessCDR(1,14813983,1,1,2) [2025-04-01 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813983', 'tblTempUsageDetail_20' ) start [2025-04-01 22:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813983', 'tblTempUsageDetail_20' ) end [2025-04-01 22:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:46:24] Production.INFO: ==29169== Releasing lock... [2025-04-01 22:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:46:24] Production.INFO: 39 MB #Memory Used# [2025-04-01 22:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:47:06 [end_date_ymd] => 2025-04-01 22:47:06 [RateCDR] => 1 ) [2025-04-01 22: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-01 19:47:06' and `end` < '2025-04-01 22: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-01 22:47:19] Production.INFO: count ==1381 [2025-04-01 22:47:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:47:06 - End Time 2025-04-01 22:47:06 [2025-04-01 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813988', 'tblTempUsageDetail_20' ) start [2025-04-01 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813988', 'tblTempUsageDetail_20' ) end [2025-04-01 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813988', 'tblTempVendorCDR_20' ) start [2025-04-01 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813988', 'tblTempVendorCDR_20' ) end [2025-04-01 22:47:19] Production.INFO: ProcessCDR(1,14813988,1,1,2) [2025-04-01 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813988', 'tblTempUsageDetail_20' ) start [2025-04-01 22:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813988', 'tblTempUsageDetail_20' ) end [2025-04-01 22:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:47:24] Production.INFO: ==29255== Releasing lock... [2025-04-01 22:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:47:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-01 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:48:06 [end_date_ymd] => 2025-04-01 22:48:06 [RateCDR] => 1 ) [2025-04-01 22: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-01 19:48:06' and `end` < '2025-04-01 22: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-01 22:48:19] Production.INFO: count ==1379 [2025-04-01 22:48:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:48:06 - End Time 2025-04-01 22:48:06 [2025-04-01 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813993', 'tblTempUsageDetail_20' ) start [2025-04-01 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813993', 'tblTempUsageDetail_20' ) end [2025-04-01 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813993', 'tblTempVendorCDR_20' ) start [2025-04-01 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813993', 'tblTempVendorCDR_20' ) end [2025-04-01 22:48:19] Production.INFO: ProcessCDR(1,14813993,1,1,2) [2025-04-01 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813993', 'tblTempUsageDetail_20' ) start [2025-04-01 22:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813993', 'tblTempUsageDetail_20' ) end [2025-04-01 22:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:48:24] Production.INFO: ==29332== Releasing lock... [2025-04-01 22:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:48:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-01 22:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:49:06 [end_date_ymd] => 2025-04-01 22:49:06 [RateCDR] => 1 ) [2025-04-01 22: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-01 19:49:06' and `end` < '2025-04-01 22: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-01 22:49:18] Production.INFO: count ==1383 [2025-04-01 22:49:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:49:06 - End Time 2025-04-01 22:49:06 [2025-04-01 22:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813998', 'tblTempUsageDetail_20' ) start [2025-04-01 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14813998', 'tblTempUsageDetail_20' ) end [2025-04-01 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813998', 'tblTempVendorCDR_20' ) start [2025-04-01 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14813998', 'tblTempVendorCDR_20' ) end [2025-04-01 22:49:19] Production.INFO: ProcessCDR(1,14813998,1,1,2) [2025-04-01 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14813998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14813998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14813998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14813998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813998', 'tblTempUsageDetail_20' ) start [2025-04-01 22:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14813998', 'tblTempUsageDetail_20' ) end [2025-04-01 22:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:49:24] Production.INFO: ==29412== Releasing lock... [2025-04-01 22:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:49:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-01 22:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:50:06 [end_date_ymd] => 2025-04-01 22:50:06 [RateCDR] => 1 ) [2025-04-01 22: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-01 19:50:06' and `end` < '2025-04-01 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-01 22:50:19] Production.INFO: count ==1386 [2025-04-01 22:50:20] Production.ERROR: pbx CDR StartTime 2025-04-01 19:50:06 - End Time 2025-04-01 22:50:06 [2025-04-01 22:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814004', 'tblTempUsageDetail_20' ) start [2025-04-01 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814004', 'tblTempUsageDetail_20' ) end [2025-04-01 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814004', 'tblTempVendorCDR_20' ) start [2025-04-01 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814004', 'tblTempVendorCDR_20' ) end [2025-04-01 22:50:20] Production.INFO: ProcessCDR(1,14814004,1,1,2) [2025-04-01 22:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814004', 'tblTempUsageDetail_20' ) start [2025-04-01 22:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814004', 'tblTempUsageDetail_20' ) end [2025-04-01 22:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:50:25] Production.INFO: ==29499== Releasing lock... [2025-04-01 22:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:50:25] Production.INFO: 38.75 MB #Memory Used# [2025-04-01 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:51:05 [end_date_ymd] => 2025-04-01 22:51:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:51:05' and `end` < '2025-04-01 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-01 22:51:18] Production.INFO: count ==1307 [2025-04-01 22:51:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:51:05 - End Time 2025-04-01 22:51:05 [2025-04-01 22:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814009', 'tblTempUsageDetail_20' ) start [2025-04-01 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814009', 'tblTempUsageDetail_20' ) end [2025-04-01 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814009', 'tblTempVendorCDR_20' ) start [2025-04-01 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814009', 'tblTempVendorCDR_20' ) end [2025-04-01 22:51:19] Production.INFO: ProcessCDR(1,14814009,1,1,2) [2025-04-01 22:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814009', 'tblTempUsageDetail_20' ) start [2025-04-01 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814009', 'tblTempUsageDetail_20' ) end [2025-04-01 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:51:22] Production.INFO: ==29578== Releasing lock... [2025-04-01 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:51:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-01 22:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:52:06 [end_date_ymd] => 2025-04-01 22:52:06 [RateCDR] => 1 ) [2025-04-01 22: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-01 19:52:06' and `end` < '2025-04-01 22: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-01 22:52:18] Production.INFO: count ==1304 [2025-04-01 22:52:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:52:06 - End Time 2025-04-01 22:52:06 [2025-04-01 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814014', 'tblTempUsageDetail_20' ) start [2025-04-01 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814014', 'tblTempUsageDetail_20' ) end [2025-04-01 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814014', 'tblTempVendorCDR_20' ) start [2025-04-01 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814014', 'tblTempVendorCDR_20' ) end [2025-04-01 22:52:19] Production.INFO: ProcessCDR(1,14814014,1,1,2) [2025-04-01 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814014', 'tblTempUsageDetail_20' ) start [2025-04-01 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814014', 'tblTempUsageDetail_20' ) end [2025-04-01 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:52:22] Production.INFO: ==29660== Releasing lock... [2025-04-01 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:52:22] Production.INFO: 38 MB #Memory Used# [2025-04-01 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:53:05 [end_date_ymd] => 2025-04-01 22:53:05 [RateCDR] => 1 ) [2025-04-01 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 19:53:05' and `end` < '2025-04-01 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 22:53:18] Production.INFO: count ==1305 [2025-04-01 22:53:18] Production.ERROR: pbx CDR StartTime 2025-04-01 19:53:05 - End Time 2025-04-01 22:53:05 [2025-04-01 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814019', 'tblTempUsageDetail_20' ) start [2025-04-01 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814019', 'tblTempUsageDetail_20' ) end [2025-04-01 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814019', 'tblTempVendorCDR_20' ) start [2025-04-01 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814019', 'tblTempVendorCDR_20' ) end [2025-04-01 22:53:18] Production.INFO: ProcessCDR(1,14814019,1,1,2) [2025-04-01 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814019', 'tblTempUsageDetail_20' ) start [2025-04-01 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814019', 'tblTempUsageDetail_20' ) end [2025-04-01 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:53:22] Production.INFO: ==29745== Releasing lock... [2025-04-01 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:53:22] Production.INFO: 38 MB #Memory Used# [2025-04-01 22:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:54:06 [end_date_ymd] => 2025-04-01 22:54:06 [RateCDR] => 1 ) [2025-04-01 22: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-01 19:54:06' and `end` < '2025-04-01 22: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-01 22:54:19] Production.INFO: count ==1303 [2025-04-01 22:54:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:54:06 - End Time 2025-04-01 22:54:06 [2025-04-01 22:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814024', 'tblTempUsageDetail_20' ) start [2025-04-01 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814024', 'tblTempUsageDetail_20' ) end [2025-04-01 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814024', 'tblTempVendorCDR_20' ) start [2025-04-01 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814024', 'tblTempVendorCDR_20' ) end [2025-04-01 22:54:19] Production.INFO: ProcessCDR(1,14814024,1,1,2) [2025-04-01 22:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814024', 'tblTempUsageDetail_20' ) start [2025-04-01 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814024', 'tblTempUsageDetail_20' ) end [2025-04-01 22:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:54:23] Production.INFO: ==29832== Releasing lock... [2025-04-01 22:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:54:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-01 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:55:05 [end_date_ymd] => 2025-04-01 22:55:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:55:05' and `end` < '2025-04-01 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-01 22:55:18] Production.INFO: count ==1299 [2025-04-01 22:55:18] Production.ERROR: pbx CDR StartTime 2025-04-01 19:55:05 - End Time 2025-04-01 22:55:05 [2025-04-01 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814029', 'tblTempUsageDetail_20' ) start [2025-04-01 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814029', 'tblTempUsageDetail_20' ) end [2025-04-01 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814029', 'tblTempVendorCDR_20' ) start [2025-04-01 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814029', 'tblTempVendorCDR_20' ) end [2025-04-01 22:55:18] Production.INFO: ProcessCDR(1,14814029,1,1,2) [2025-04-01 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814029', 'tblTempUsageDetail_20' ) start [2025-04-01 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814029', 'tblTempUsageDetail_20' ) end [2025-04-01 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:55:22] Production.INFO: ==29912== Releasing lock... [2025-04-01 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:55:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-01 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:56:05 [end_date_ymd] => 2025-04-01 22:56:05 [RateCDR] => 1 ) [2025-04-01 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 19:56:05' and `end` < '2025-04-01 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 22:56:18] Production.INFO: count ==1294 [2025-04-01 22:56:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:56:05 - End Time 2025-04-01 22:56:05 [2025-04-01 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814034', 'tblTempUsageDetail_20' ) start [2025-04-01 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814034', 'tblTempUsageDetail_20' ) end [2025-04-01 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814034', 'tblTempVendorCDR_20' ) start [2025-04-01 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814034', 'tblTempVendorCDR_20' ) end [2025-04-01 22:56:19] Production.INFO: ProcessCDR(1,14814034,1,1,2) [2025-04-01 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814034', 'tblTempUsageDetail_20' ) start [2025-04-01 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814034', 'tblTempUsageDetail_20' ) end [2025-04-01 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:56:22] Production.INFO: ==30000== Releasing lock... [2025-04-01 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:56:22] Production.INFO: 38 MB #Memory Used# [2025-04-01 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:57:05 [end_date_ymd] => 2025-04-01 22:57:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:57:05' and `end` < '2025-04-01 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-01 22:57:18] Production.INFO: count ==1269 [2025-04-01 22:57:18] Production.ERROR: pbx CDR StartTime 2025-04-01 19:57:05 - End Time 2025-04-01 22:57:05 [2025-04-01 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814039', 'tblTempUsageDetail_20' ) start [2025-04-01 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814039', 'tblTempUsageDetail_20' ) end [2025-04-01 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814039', 'tblTempVendorCDR_20' ) start [2025-04-01 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814039', 'tblTempVendorCDR_20' ) end [2025-04-01 22:57:18] Production.INFO: ProcessCDR(1,14814039,1,1,2) [2025-04-01 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814039', 'tblTempUsageDetail_20' ) start [2025-04-01 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814039', 'tblTempUsageDetail_20' ) end [2025-04-01 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:57:21] Production.INFO: ==30081== Releasing lock... [2025-04-01 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:57:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-01 22:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:58:06 [end_date_ymd] => 2025-04-01 22:58:06 [RateCDR] => 1 ) [2025-04-01 22:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 19:58:06' and `end` < '2025-04-01 22:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 22:58:19] Production.INFO: count ==1254 [2025-04-01 22:58:19] Production.ERROR: pbx CDR StartTime 2025-04-01 19:58:06 - End Time 2025-04-01 22:58:06 [2025-04-01 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814044', 'tblTempUsageDetail_20' ) start [2025-04-01 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814044', 'tblTempUsageDetail_20' ) end [2025-04-01 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814044', 'tblTempVendorCDR_20' ) start [2025-04-01 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814044', 'tblTempVendorCDR_20' ) end [2025-04-01 22:58:19] Production.INFO: ProcessCDR(1,14814044,1,1,2) [2025-04-01 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814044', 'tblTempUsageDetail_20' ) start [2025-04-01 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814044', 'tblTempUsageDetail_20' ) end [2025-04-01 22:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:58:23] Production.INFO: ==30183== Releasing lock... [2025-04-01 22:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:58:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-01 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 19:59:05 [end_date_ymd] => 2025-04-01 22:59:05 [RateCDR] => 1 ) [2025-04-01 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-01 19:59:05' and `end` < '2025-04-01 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-01 22:59:18] Production.INFO: count ==1263 [2025-04-01 22:59:18] Production.ERROR: pbx CDR StartTime 2025-04-01 19:59:05 - End Time 2025-04-01 22:59:05 [2025-04-01 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814049', 'tblTempUsageDetail_20' ) start [2025-04-01 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814049', 'tblTempUsageDetail_20' ) end [2025-04-01 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814049', 'tblTempVendorCDR_20' ) start [2025-04-01 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814049', 'tblTempVendorCDR_20' ) end [2025-04-01 22:59:18] Production.INFO: ProcessCDR(1,14814049,1,1,2) [2025-04-01 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814049', 'tblTempUsageDetail_20' ) start [2025-04-01 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814049', 'tblTempUsageDetail_20' ) end [2025-04-01 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 22:59:22] Production.INFO: ==30288== Releasing lock... [2025-04-01 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 22:59:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-01 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:00:06 [end_date_ymd] => 2025-04-01 23:00:06 [RateCDR] => 1 ) [2025-04-01 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-01 20:00:06' and `end` < '2025-04-01 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-01 23:00:19] Production.INFO: count ==1258 [2025-04-01 23:00:20] Production.ERROR: pbx CDR StartTime 2025-04-01 20:00:06 - End Time 2025-04-01 23:00:06 [2025-04-01 23:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814055', 'tblTempUsageDetail_20' ) start [2025-04-01 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814055', 'tblTempUsageDetail_20' ) end [2025-04-01 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814055', 'tblTempVendorCDR_20' ) start [2025-04-01 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814055', 'tblTempVendorCDR_20' ) end [2025-04-01 23:00:20] Production.INFO: ProcessCDR(1,14814055,1,1,2) [2025-04-01 23:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814055', 'tblTempUsageDetail_20' ) start [2025-04-01 23:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814055', 'tblTempUsageDetail_20' ) end [2025-04-01 23:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:00:24] Production.INFO: ==30448== Releasing lock... [2025-04-01 23:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:00:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-01 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:01:05 [end_date_ymd] => 2025-04-01 23:01:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:01:05' and `end` < '2025-04-01 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-01 23:01:18] Production.INFO: count ==1253 [2025-04-01 23:01:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:01:05 - End Time 2025-04-01 23:01:05 [2025-04-01 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814060', 'tblTempUsageDetail_20' ) start [2025-04-01 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814060', 'tblTempUsageDetail_20' ) end [2025-04-01 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814060', 'tblTempVendorCDR_20' ) start [2025-04-01 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814060', 'tblTempVendorCDR_20' ) end [2025-04-01 23:01:18] Production.INFO: ProcessCDR(1,14814060,1,1,2) [2025-04-01 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814060', 'tblTempUsageDetail_20' ) start [2025-04-01 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814060', 'tblTempUsageDetail_20' ) end [2025-04-01 23:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:01:23] Production.INFO: ==30543== Releasing lock... [2025-04-01 23:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:01:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-01 23:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:02:06 [end_date_ymd] => 2025-04-01 23:02:06 [RateCDR] => 1 ) [2025-04-01 23: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-01 20:02:06' and `end` < '2025-04-01 23: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-01 23:02:18] Production.INFO: count ==1261 [2025-04-01 23:02:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:02:06 - End Time 2025-04-01 23:02:06 [2025-04-01 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814065', 'tblTempUsageDetail_20' ) start [2025-04-01 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814065', 'tblTempUsageDetail_20' ) end [2025-04-01 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814065', 'tblTempVendorCDR_20' ) start [2025-04-01 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814065', 'tblTempVendorCDR_20' ) end [2025-04-01 23:02:19] Production.INFO: ProcessCDR(1,14814065,1,1,2) [2025-04-01 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814065', 'tblTempUsageDetail_20' ) start [2025-04-01 23:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814065', 'tblTempUsageDetail_20' ) end [2025-04-01 23:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:02:24] Production.INFO: ==30700== Releasing lock... [2025-04-01 23:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:02:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-01 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:03:05 [end_date_ymd] => 2025-04-01 23:03:05 [RateCDR] => 1 ) [2025-04-01 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 20:03:05' and `end` < '2025-04-01 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 23:03:18] Production.INFO: count ==1248 [2025-04-01 23:03:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:03:05 - End Time 2025-04-01 23:03:05 [2025-04-01 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814070', 'tblTempUsageDetail_20' ) start [2025-04-01 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814070', 'tblTempUsageDetail_20' ) end [2025-04-01 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814070', 'tblTempVendorCDR_20' ) start [2025-04-01 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814070', 'tblTempVendorCDR_20' ) end [2025-04-01 23:03:18] Production.INFO: ProcessCDR(1,14814070,1,1,2) [2025-04-01 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814070', 'tblTempUsageDetail_20' ) start [2025-04-01 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814070', 'tblTempUsageDetail_20' ) end [2025-04-01 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:03:22] Production.INFO: ==30782== Releasing lock... [2025-04-01 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:03:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-01 23:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:04:06 [end_date_ymd] => 2025-04-01 23:04:06 [RateCDR] => 1 ) [2025-04-01 23: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-01 20:04:06' and `end` < '2025-04-01 23: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-01 23:04:18] Production.INFO: count ==1246 [2025-04-01 23:04:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:04:06 - End Time 2025-04-01 23:04:06 [2025-04-01 23:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814075', 'tblTempUsageDetail_20' ) start [2025-04-01 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814075', 'tblTempUsageDetail_20' ) end [2025-04-01 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814075', 'tblTempVendorCDR_20' ) start [2025-04-01 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814075', 'tblTempVendorCDR_20' ) end [2025-04-01 23:04:19] Production.INFO: ProcessCDR(1,14814075,1,1,2) [2025-04-01 23:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814075', 'tblTempUsageDetail_20' ) start [2025-04-01 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814075', 'tblTempUsageDetail_20' ) end [2025-04-01 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:04:22] Production.INFO: ==30866== Releasing lock... [2025-04-01 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:04:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-01 23:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:05:06 [end_date_ymd] => 2025-04-01 23:05:06 [RateCDR] => 1 ) [2025-04-01 23:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 20:05:06' and `end` < '2025-04-01 23: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-01 23:05:18] Production.INFO: count ==1246 [2025-04-01 23:05:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:05:06 - End Time 2025-04-01 23:05:06 [2025-04-01 23:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814080', 'tblTempUsageDetail_20' ) start [2025-04-01 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814080', 'tblTempUsageDetail_20' ) end [2025-04-01 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814080', 'tblTempVendorCDR_20' ) start [2025-04-01 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814080', 'tblTempVendorCDR_20' ) end [2025-04-01 23:05:19] Production.INFO: ProcessCDR(1,14814080,1,1,2) [2025-04-01 23:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814080', 'tblTempUsageDetail_20' ) start [2025-04-01 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814080', 'tblTempUsageDetail_20' ) end [2025-04-01 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:05:22] Production.INFO: ==31034== Releasing lock... [2025-04-01 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:05:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-01 23:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:06:06 [end_date_ymd] => 2025-04-01 23:06:06 [RateCDR] => 1 ) [2025-04-01 23:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 20:06:06' and `end` < '2025-04-01 23:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 23:06:18] Production.INFO: count ==1241 [2025-04-01 23:06:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:06:06 - End Time 2025-04-01 23:06:06 [2025-04-01 23:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814085', 'tblTempUsageDetail_20' ) start [2025-04-01 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814085', 'tblTempUsageDetail_20' ) end [2025-04-01 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814085', 'tblTempVendorCDR_20' ) start [2025-04-01 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814085', 'tblTempVendorCDR_20' ) end [2025-04-01 23:06:19] Production.INFO: ProcessCDR(1,14814085,1,1,2) [2025-04-01 23:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814085', 'tblTempUsageDetail_20' ) start [2025-04-01 23:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814085', 'tblTempUsageDetail_20' ) end [2025-04-01 23:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:06:24] Production.INFO: ==31119== Releasing lock... [2025-04-01 23:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:06:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:07:05 [end_date_ymd] => 2025-04-01 23:07:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:07:05' and `end` < '2025-04-01 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-01 23:07:18] Production.INFO: count ==1238 [2025-04-01 23:07:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:07:05 - End Time 2025-04-01 23:07:05 [2025-04-01 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814090', 'tblTempUsageDetail_20' ) start [2025-04-01 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814090', 'tblTempUsageDetail_20' ) end [2025-04-01 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814090', 'tblTempVendorCDR_20' ) start [2025-04-01 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814090', 'tblTempVendorCDR_20' ) end [2025-04-01 23:07:18] Production.INFO: ProcessCDR(1,14814090,1,1,2) [2025-04-01 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814090', 'tblTempUsageDetail_20' ) start [2025-04-01 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814090', 'tblTempUsageDetail_20' ) end [2025-04-01 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:07:22] Production.INFO: ==31208== Releasing lock... [2025-04-01 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:07:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:08:05 [end_date_ymd] => 2025-04-01 23:08:05 [RateCDR] => 1 ) [2025-04-01 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 20:08:05' and `end` < '2025-04-01 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 23:08:18] Production.INFO: count ==1224 [2025-04-01 23:08:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:08:05 - End Time 2025-04-01 23:08:05 [2025-04-01 23:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814095', 'tblTempUsageDetail_20' ) start [2025-04-01 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814095', 'tblTempUsageDetail_20' ) end [2025-04-01 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814095', 'tblTempVendorCDR_20' ) start [2025-04-01 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814095', 'tblTempVendorCDR_20' ) end [2025-04-01 23:08:19] Production.INFO: ProcessCDR(1,14814095,1,1,2) [2025-04-01 23:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814095', 'tblTempUsageDetail_20' ) start [2025-04-01 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814095', 'tblTempUsageDetail_20' ) end [2025-04-01 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:08:22] Production.INFO: ==31379== Releasing lock... [2025-04-01 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:08:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 23:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:09:06 [end_date_ymd] => 2025-04-01 23:09:06 [RateCDR] => 1 ) [2025-04-01 23: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-01 20:09:06' and `end` < '2025-04-01 23: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-01 23:09:18] Production.INFO: count ==1221 [2025-04-01 23:09:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:09:06 - End Time 2025-04-01 23:09:06 [2025-04-01 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814100', 'tblTempUsageDetail_20' ) start [2025-04-01 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814100', 'tblTempUsageDetail_20' ) end [2025-04-01 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814100', 'tblTempVendorCDR_20' ) start [2025-04-01 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814100', 'tblTempVendorCDR_20' ) end [2025-04-01 23:09:19] Production.INFO: ProcessCDR(1,14814100,1,1,2) [2025-04-01 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814100', 'tblTempUsageDetail_20' ) start [2025-04-01 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814100', 'tblTempUsageDetail_20' ) end [2025-04-01 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:09:22] Production.INFO: ==31464== Releasing lock... [2025-04-01 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:09:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-01 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:10:06 [end_date_ymd] => 2025-04-01 23:10:06 [RateCDR] => 1 ) [2025-04-01 23:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 20:10:06' and `end` < '2025-04-01 23:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 23:10:19] Production.INFO: count ==1208 [2025-04-01 23:10:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:10:06 - End Time 2025-04-01 23:10:06 [2025-04-01 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814106', 'tblTempUsageDetail_20' ) start [2025-04-01 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814106', 'tblTempUsageDetail_20' ) end [2025-04-01 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814106', 'tblTempVendorCDR_20' ) start [2025-04-01 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814106', 'tblTempVendorCDR_20' ) end [2025-04-01 23:10:19] Production.INFO: ProcessCDR(1,14814106,1,1,2) [2025-04-01 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814106', 'tblTempUsageDetail_20' ) start [2025-04-01 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814106', 'tblTempUsageDetail_20' ) end [2025-04-01 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:10:22] Production.INFO: ==31552== Releasing lock... [2025-04-01 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:10:22] Production.INFO: 37 MB #Memory Used# [2025-04-01 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:11:05 [end_date_ymd] => 2025-04-01 23:11:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:11:05' and `end` < '2025-04-01 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-01 23:11:18] Production.INFO: count ==1171 [2025-04-01 23:11:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:11:05 - End Time 2025-04-01 23:11:05 [2025-04-01 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814111', 'tblTempUsageDetail_20' ) start [2025-04-01 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814111', 'tblTempUsageDetail_20' ) end [2025-04-01 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814111', 'tblTempVendorCDR_20' ) start [2025-04-01 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814111', 'tblTempVendorCDR_20' ) end [2025-04-01 23:11:18] Production.INFO: ProcessCDR(1,14814111,1,1,2) [2025-04-01 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814111', 'tblTempUsageDetail_20' ) start [2025-04-01 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814111', 'tblTempUsageDetail_20' ) end [2025-04-01 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:11:22] Production.INFO: ==31643== Releasing lock... [2025-04-01 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:11:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 23:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:12:06 [end_date_ymd] => 2025-04-01 23:12:06 [RateCDR] => 1 ) [2025-04-01 23: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-01 20:12:06' and `end` < '2025-04-01 23: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-01 23:12:18] Production.INFO: count ==1160 [2025-04-01 23:12:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:12:06 - End Time 2025-04-01 23:12:06 [2025-04-01 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814116', 'tblTempUsageDetail_20' ) start [2025-04-01 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814116', 'tblTempUsageDetail_20' ) end [2025-04-01 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814116', 'tblTempVendorCDR_20' ) start [2025-04-01 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814116', 'tblTempVendorCDR_20' ) end [2025-04-01 23:12:19] Production.INFO: ProcessCDR(1,14814116,1,1,2) [2025-04-01 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814116', 'tblTempUsageDetail_20' ) start [2025-04-01 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814116', 'tblTempUsageDetail_20' ) end [2025-04-01 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:12:22] Production.INFO: ==31807== Releasing lock... [2025-04-01 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:12:22] Production.INFO: 37 MB #Memory Used# [2025-04-01 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:13:05 [end_date_ymd] => 2025-04-01 23:13:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:13:05' and `end` < '2025-04-01 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-01 23:13:18] Production.INFO: count ==1159 [2025-04-01 23:13:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:13:05 - End Time 2025-04-01 23:13:05 [2025-04-01 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814121', 'tblTempUsageDetail_20' ) start [2025-04-01 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814121', 'tblTempUsageDetail_20' ) end [2025-04-01 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814121', 'tblTempVendorCDR_20' ) start [2025-04-01 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814121', 'tblTempVendorCDR_20' ) end [2025-04-01 23:13:18] Production.INFO: ProcessCDR(1,14814121,1,1,2) [2025-04-01 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814121', 'tblTempUsageDetail_20' ) start [2025-04-01 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814121', 'tblTempUsageDetail_20' ) end [2025-04-01 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:13:22] Production.INFO: ==31893== Releasing lock... [2025-04-01 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:13:22] Production.INFO: 37 MB #Memory Used# [2025-04-01 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:14:05 [end_date_ymd] => 2025-04-01 23:14:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:14:05' and `end` < '2025-04-01 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-01 23:14:18] Production.INFO: count ==1151 [2025-04-01 23:14:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:14:05 - End Time 2025-04-01 23:14:05 [2025-04-01 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814126', 'tblTempUsageDetail_20' ) start [2025-04-01 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814126', 'tblTempUsageDetail_20' ) end [2025-04-01 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814126', 'tblTempVendorCDR_20' ) start [2025-04-01 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814126', 'tblTempVendorCDR_20' ) end [2025-04-01 23:14:19] Production.INFO: ProcessCDR(1,14814126,1,1,2) [2025-04-01 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814126', 'tblTempUsageDetail_20' ) start [2025-04-01 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814126', 'tblTempUsageDetail_20' ) end [2025-04-01 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:14:22] Production.INFO: ==31971== Releasing lock... [2025-04-01 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:14:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-01 23:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:15:06 [end_date_ymd] => 2025-04-01 23:15:06 [RateCDR] => 1 ) [2025-04-01 23: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-01 20:15:06' and `end` < '2025-04-01 23: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-01 23:15:18] Production.INFO: count ==1143 [2025-04-01 23:15:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:15:06 - End Time 2025-04-01 23:15:06 [2025-04-01 23:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814131', 'tblTempUsageDetail_20' ) start [2025-04-01 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814131', 'tblTempUsageDetail_20' ) end [2025-04-01 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814131', 'tblTempVendorCDR_20' ) start [2025-04-01 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814131', 'tblTempVendorCDR_20' ) end [2025-04-01 23:15:19] Production.INFO: ProcessCDR(1,14814131,1,1,2) [2025-04-01 23:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814131', 'tblTempUsageDetail_20' ) start [2025-04-01 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814131', 'tblTempUsageDetail_20' ) end [2025-04-01 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:15:22] Production.INFO: ==32180== Releasing lock... [2025-04-01 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:15:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 23:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:16:06 [end_date_ymd] => 2025-04-01 23:16:06 [RateCDR] => 1 ) [2025-04-01 23:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 20:16:06' and `end` < '2025-04-01 23:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 23:16:18] Production.INFO: count ==1143 [2025-04-01 23:16:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:16:06 - End Time 2025-04-01 23:16:06 [2025-04-01 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814136', 'tblTempUsageDetail_20' ) start [2025-04-01 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814136', 'tblTempUsageDetail_20' ) end [2025-04-01 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814136', 'tblTempVendorCDR_20' ) start [2025-04-01 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814136', 'tblTempVendorCDR_20' ) end [2025-04-01 23:16:19] Production.INFO: ProcessCDR(1,14814136,1,1,2) [2025-04-01 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814136', 'tblTempUsageDetail_20' ) start [2025-04-01 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814136', 'tblTempUsageDetail_20' ) end [2025-04-01 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:16:22] Production.INFO: ==32267== Releasing lock... [2025-04-01 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:16:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 23:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:17:06 [end_date_ymd] => 2025-04-01 23:17:06 [RateCDR] => 1 ) [2025-04-01 23:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 20:17:06' and `end` < '2025-04-01 23:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 23:17:19] Production.INFO: count ==1142 [2025-04-01 23:17:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:17:06 - End Time 2025-04-01 23:17:06 [2025-04-01 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814141', 'tblTempUsageDetail_20' ) start [2025-04-01 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814141', 'tblTempUsageDetail_20' ) end [2025-04-01 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814141', 'tblTempVendorCDR_20' ) start [2025-04-01 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814141', 'tblTempVendorCDR_20' ) end [2025-04-01 23:17:19] Production.INFO: ProcessCDR(1,14814141,1,1,2) [2025-04-01 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814141', 'tblTempUsageDetail_20' ) start [2025-04-01 23:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814141', 'tblTempUsageDetail_20' ) end [2025-04-01 23:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:17:24] Production.INFO: ==32358== Releasing lock... [2025-04-01 23:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:17:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-01 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:18:05 [end_date_ymd] => 2025-04-01 23:18:05 [RateCDR] => 1 ) [2025-04-01 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 20:18:05' and `end` < '2025-04-01 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 23:18:18] Production.INFO: count ==1142 [2025-04-01 23:18:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:18:05 - End Time 2025-04-01 23:18:05 [2025-04-01 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814146', 'tblTempUsageDetail_20' ) start [2025-04-01 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814146', 'tblTempUsageDetail_20' ) end [2025-04-01 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814146', 'tblTempVendorCDR_20' ) start [2025-04-01 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814146', 'tblTempVendorCDR_20' ) end [2025-04-01 23:18:18] Production.INFO: ProcessCDR(1,14814146,1,1,2) [2025-04-01 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814146', 'tblTempUsageDetail_20' ) start [2025-04-01 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814146', 'tblTempUsageDetail_20' ) end [2025-04-01 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:18:22] Production.INFO: ==32439== Releasing lock... [2025-04-01 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:18:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-01 23:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:19:06 [end_date_ymd] => 2025-04-01 23:19:06 [RateCDR] => 1 ) [2025-04-01 23: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-01 20:19:06' and `end` < '2025-04-01 23: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-01 23:19:19] Production.INFO: count ==1133 [2025-04-01 23:19:20] Production.ERROR: pbx CDR StartTime 2025-04-01 20:19:06 - End Time 2025-04-01 23:19:06 [2025-04-01 23:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814151', 'tblTempUsageDetail_20' ) start [2025-04-01 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814151', 'tblTempUsageDetail_20' ) end [2025-04-01 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814151', 'tblTempVendorCDR_20' ) start [2025-04-01 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814151', 'tblTempVendorCDR_20' ) end [2025-04-01 23:19:20] Production.INFO: ProcessCDR(1,14814151,1,1,2) [2025-04-01 23:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814151', 'tblTempUsageDetail_20' ) start [2025-04-01 23:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814151', 'tblTempUsageDetail_20' ) end [2025-04-01 23:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:19:24] Production.INFO: ==32524== Releasing lock... [2025-04-01 23:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:19:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:20:06 [end_date_ymd] => 2025-04-01 23:20:06 [RateCDR] => 1 ) [2025-04-01 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-01 20:20:06' and `end` < '2025-04-01 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-01 23:20:19] Production.INFO: count ==1122 [2025-04-01 23:20:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:20:06 - End Time 2025-04-01 23:20:06 [2025-04-01 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814156', 'tblTempUsageDetail_20' ) start [2025-04-01 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814156', 'tblTempUsageDetail_20' ) end [2025-04-01 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814156', 'tblTempVendorCDR_20' ) start [2025-04-01 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814156', 'tblTempVendorCDR_20' ) end [2025-04-01 23:20:19] Production.INFO: ProcessCDR(1,14814156,1,1,2) [2025-04-01 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814156', 'tblTempUsageDetail_20' ) start [2025-04-01 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814156', 'tblTempUsageDetail_20' ) end [2025-04-01 23:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:20:23] Production.INFO: ==32608== Releasing lock... [2025-04-01 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:20:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 23:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:21:06 [end_date_ymd] => 2025-04-01 23:21:06 [RateCDR] => 1 ) [2025-04-01 23:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 20:21:06' and `end` < '2025-04-01 23:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 23:21:19] Production.INFO: count ==1103 [2025-04-01 23:21:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:21:06 - End Time 2025-04-01 23:21:06 [2025-04-01 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814162', 'tblTempUsageDetail_20' ) start [2025-04-01 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814162', 'tblTempUsageDetail_20' ) end [2025-04-01 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814162', 'tblTempVendorCDR_20' ) start [2025-04-01 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814162', 'tblTempVendorCDR_20' ) end [2025-04-01 23:21:19] Production.INFO: ProcessCDR(1,14814162,1,1,2) [2025-04-01 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814162', 'tblTempUsageDetail_20' ) start [2025-04-01 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814162', 'tblTempUsageDetail_20' ) end [2025-04-01 23:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:21:23] Production.INFO: ==32691== Releasing lock... [2025-04-01 23:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:21:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:22:05 [end_date_ymd] => 2025-04-01 23:22:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:22:05' and `end` < '2025-04-01 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-01 23:22:18] Production.INFO: count ==1099 [2025-04-01 23:22:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:22:05 - End Time 2025-04-01 23:22:05 [2025-04-01 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814167', 'tblTempUsageDetail_20' ) start [2025-04-01 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814167', 'tblTempUsageDetail_20' ) end [2025-04-01 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814167', 'tblTempVendorCDR_20' ) start [2025-04-01 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814167', 'tblTempVendorCDR_20' ) end [2025-04-01 23:22:18] Production.INFO: ProcessCDR(1,14814167,1,1,2) [2025-04-01 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814167', 'tblTempUsageDetail_20' ) start [2025-04-01 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814167', 'tblTempUsageDetail_20' ) end [2025-04-01 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:22:22] Production.INFO: ==322== Releasing lock... [2025-04-01 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:22:22] Production.INFO: 37 MB #Memory Used# [2025-04-01 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:23:05 [end_date_ymd] => 2025-04-01 23:23:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:23:05' and `end` < '2025-04-01 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-01 23:23:18] Production.INFO: count ==1093 [2025-04-01 23:23:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:23:05 - End Time 2025-04-01 23:23:05 [2025-04-01 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814172', 'tblTempUsageDetail_20' ) start [2025-04-01 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814172', 'tblTempUsageDetail_20' ) end [2025-04-01 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814172', 'tblTempVendorCDR_20' ) start [2025-04-01 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814172', 'tblTempVendorCDR_20' ) end [2025-04-01 23:23:18] Production.INFO: ProcessCDR(1,14814172,1,1,2) [2025-04-01 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814172', 'tblTempUsageDetail_20' ) start [2025-04-01 23:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814172', 'tblTempUsageDetail_20' ) end [2025-04-01 23:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:23:24] Production.INFO: ==417== Releasing lock... [2025-04-01 23:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:23:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-01 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:24:05 [end_date_ymd] => 2025-04-01 23:24:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:24:05' and `end` < '2025-04-01 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-01 23:24:18] Production.INFO: count ==1076 [2025-04-01 23:24:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:24:05 - End Time 2025-04-01 23:24:05 [2025-04-01 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814177', 'tblTempUsageDetail_20' ) start [2025-04-01 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814177', 'tblTempUsageDetail_20' ) end [2025-04-01 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814177', 'tblTempVendorCDR_20' ) start [2025-04-01 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814177', 'tblTempVendorCDR_20' ) end [2025-04-01 23:24:18] Production.INFO: ProcessCDR(1,14814177,1,1,2) [2025-04-01 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814177', 'tblTempUsageDetail_20' ) start [2025-04-01 23:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814177', 'tblTempUsageDetail_20' ) end [2025-04-01 23:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:24:23] Production.INFO: ==508== Releasing lock... [2025-04-01 23:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:24:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-01 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:25:06 [end_date_ymd] => 2025-04-01 23:25:06 [RateCDR] => 1 ) [2025-04-01 23: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-01 20:25:06' and `end` < '2025-04-01 23: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-01 23:25:18] Production.INFO: count ==1069 [2025-04-01 23:25:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:25:06 - End Time 2025-04-01 23:25:06 [2025-04-01 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814182', 'tblTempUsageDetail_20' ) start [2025-04-01 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814182', 'tblTempUsageDetail_20' ) end [2025-04-01 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814182', 'tblTempVendorCDR_20' ) start [2025-04-01 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814182', 'tblTempVendorCDR_20' ) end [2025-04-01 23:25:19] Production.INFO: ProcessCDR(1,14814182,1,1,2) [2025-04-01 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814182', 'tblTempUsageDetail_20' ) start [2025-04-01 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814182', 'tblTempUsageDetail_20' ) end [2025-04-01 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:25:22] Production.INFO: ==596== Releasing lock... [2025-04-01 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:25:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-01 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:26:05 [end_date_ymd] => 2025-04-01 23:26:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:26:05' and `end` < '2025-04-01 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-01 23:26:18] Production.INFO: count ==1064 [2025-04-01 23:26:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:26:05 - End Time 2025-04-01 23:26:05 [2025-04-01 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814187', 'tblTempUsageDetail_20' ) start [2025-04-01 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814187', 'tblTempUsageDetail_20' ) end [2025-04-01 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814187', 'tblTempVendorCDR_20' ) start [2025-04-01 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814187', 'tblTempVendorCDR_20' ) end [2025-04-01 23:26:18] Production.INFO: ProcessCDR(1,14814187,1,1,2) [2025-04-01 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814187', 'tblTempUsageDetail_20' ) start [2025-04-01 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814187', 'tblTempUsageDetail_20' ) end [2025-04-01 23:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:26:23] Production.INFO: ==710== Releasing lock... [2025-04-01 23:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:26:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-01 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:27:05 [end_date_ymd] => 2025-04-01 23:27:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:27:05' and `end` < '2025-04-01 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-01 23:27:18] Production.INFO: count ==1056 [2025-04-01 23:27:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:27:05 - End Time 2025-04-01 23:27:05 [2025-04-01 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814192', 'tblTempUsageDetail_20' ) start [2025-04-01 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814192', 'tblTempUsageDetail_20' ) end [2025-04-01 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814192', 'tblTempVendorCDR_20' ) start [2025-04-01 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814192', 'tblTempVendorCDR_20' ) end [2025-04-01 23:27:18] Production.INFO: ProcessCDR(1,14814192,1,1,2) [2025-04-01 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814192', 'tblTempUsageDetail_20' ) start [2025-04-01 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814192', 'tblTempUsageDetail_20' ) end [2025-04-01 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:27:21] Production.INFO: ==796== Releasing lock... [2025-04-01 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:27:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-01 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:28:05 [end_date_ymd] => 2025-04-01 23:28:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:28:05' and `end` < '2025-04-01 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-01 23:28:18] Production.INFO: count ==1065 [2025-04-01 23:28:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:28:05 - End Time 2025-04-01 23:28:05 [2025-04-01 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814197', 'tblTempUsageDetail_20' ) start [2025-04-01 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814197', 'tblTempUsageDetail_20' ) end [2025-04-01 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814197', 'tblTempVendorCDR_20' ) start [2025-04-01 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814197', 'tblTempVendorCDR_20' ) end [2025-04-01 23:28:18] Production.INFO: ProcessCDR(1,14814197,1,1,2) [2025-04-01 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814197', 'tblTempUsageDetail_20' ) start [2025-04-01 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814197', 'tblTempUsageDetail_20' ) end [2025-04-01 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:28:22] Production.INFO: ==873== Releasing lock... [2025-04-01 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:28:22] Production.INFO: 37 MB #Memory Used# [2025-04-01 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:29:05 [end_date_ymd] => 2025-04-01 23:29:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:29:05' and `end` < '2025-04-01 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-01 23:29:18] Production.INFO: count ==1065 [2025-04-01 23:29:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:29:05 - End Time 2025-04-01 23:29:05 [2025-04-01 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814202', 'tblTempUsageDetail_20' ) start [2025-04-01 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814202', 'tblTempUsageDetail_20' ) end [2025-04-01 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814202', 'tblTempVendorCDR_20' ) start [2025-04-01 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814202', 'tblTempVendorCDR_20' ) end [2025-04-01 23:29:18] Production.INFO: ProcessCDR(1,14814202,1,1,2) [2025-04-01 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814202', 'tblTempUsageDetail_20' ) start [2025-04-01 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814202', 'tblTempUsageDetail_20' ) end [2025-04-01 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:29:22] Production.INFO: ==956== Releasing lock... [2025-04-01 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:29:22] Production.INFO: 37 MB #Memory Used# [2025-04-01 23:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:30:07 [end_date_ymd] => 2025-04-01 23:30:07 [RateCDR] => 1 ) [2025-04-01 23: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-01 20:30:07' and `end` < '2025-04-01 23: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-01 23:30:19] Production.INFO: count ==1065 [2025-04-01 23:30:20] Production.ERROR: pbx CDR StartTime 2025-04-01 20:30:07 - End Time 2025-04-01 23:30:07 [2025-04-01 23:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814207', 'tblTempUsageDetail_20' ) start [2025-04-01 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814207', 'tblTempUsageDetail_20' ) end [2025-04-01 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814207', 'tblTempVendorCDR_20' ) start [2025-04-01 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814207', 'tblTempVendorCDR_20' ) end [2025-04-01 23:30:20] Production.INFO: ProcessCDR(1,14814207,1,1,2) [2025-04-01 23:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814207', 'tblTempUsageDetail_20' ) start [2025-04-01 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814207', 'tblTempUsageDetail_20' ) end [2025-04-01 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:30:23] Production.INFO: ==1051== Releasing lock... [2025-04-01 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:30:23] Production.INFO: 37 MB #Memory Used# [2025-04-01 23:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:31:06 [end_date_ymd] => 2025-04-01 23:31:06 [RateCDR] => 1 ) [2025-04-01 23: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-01 20:31:06' and `end` < '2025-04-01 23: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-01 23:31:19] Production.INFO: count ==1049 [2025-04-01 23:31:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:31:06 - End Time 2025-04-01 23:31:06 [2025-04-01 23:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814213', 'tblTempUsageDetail_20' ) start [2025-04-01 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814213', 'tblTempUsageDetail_20' ) end [2025-04-01 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814213', 'tblTempVendorCDR_20' ) start [2025-04-01 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814213', 'tblTempVendorCDR_20' ) end [2025-04-01 23:31:19] Production.INFO: ProcessCDR(1,14814213,1,1,2) [2025-04-01 23:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814213', 'tblTempUsageDetail_20' ) start [2025-04-01 23:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814213', 'tblTempUsageDetail_20' ) end [2025-04-01 23:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:31:23] Production.INFO: ==1172== Releasing lock... [2025-04-01 23:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:31:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:32:05 [end_date_ymd] => 2025-04-01 23:32:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:32:05' and `end` < '2025-04-01 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-01 23:32:18] Production.INFO: count ==1047 [2025-04-01 23:32:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:32:05 - End Time 2025-04-01 23:32:05 [2025-04-01 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814218', 'tblTempUsageDetail_20' ) start [2025-04-01 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814218', 'tblTempUsageDetail_20' ) end [2025-04-01 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814218', 'tblTempVendorCDR_20' ) start [2025-04-01 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814218', 'tblTempVendorCDR_20' ) end [2025-04-01 23:32:18] Production.INFO: ProcessCDR(1,14814218,1,1,2) [2025-04-01 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814218', 'tblTempUsageDetail_20' ) start [2025-04-01 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814218', 'tblTempUsageDetail_20' ) end [2025-04-01 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:32:22] Production.INFO: ==1262== Releasing lock... [2025-04-01 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:32:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:33:05 [end_date_ymd] => 2025-04-01 23:33:05 [RateCDR] => 1 ) [2025-04-01 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 20:33:05' and `end` < '2025-04-01 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 23:33:18] Production.INFO: count ==1050 [2025-04-01 23:33:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:33:05 - End Time 2025-04-01 23:33:05 [2025-04-01 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814223', 'tblTempUsageDetail_20' ) start [2025-04-01 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814223', 'tblTempUsageDetail_20' ) end [2025-04-01 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814223', 'tblTempVendorCDR_20' ) start [2025-04-01 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814223', 'tblTempVendorCDR_20' ) end [2025-04-01 23:33:18] Production.INFO: ProcessCDR(1,14814223,1,1,2) [2025-04-01 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814223', 'tblTempUsageDetail_20' ) start [2025-04-01 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814223', 'tblTempUsageDetail_20' ) end [2025-04-01 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:33:22] Production.INFO: ==1343== Releasing lock... [2025-04-01 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:33:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-01 23:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:34:06 [end_date_ymd] => 2025-04-01 23:34:06 [RateCDR] => 1 ) [2025-04-01 23: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-01 20:34:06' and `end` < '2025-04-01 23: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-01 23:34:19] Production.INFO: count ==1047 [2025-04-01 23:34:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:34:06 - End Time 2025-04-01 23:34:06 [2025-04-01 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814228', 'tblTempUsageDetail_20' ) start [2025-04-01 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814228', 'tblTempUsageDetail_20' ) end [2025-04-01 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814228', 'tblTempVendorCDR_20' ) start [2025-04-01 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814228', 'tblTempVendorCDR_20' ) end [2025-04-01 23:34:19] Production.INFO: ProcessCDR(1,14814228,1,1,2) [2025-04-01 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814228', 'tblTempUsageDetail_20' ) start [2025-04-01 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814228', 'tblTempUsageDetail_20' ) end [2025-04-01 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:34:22] Production.INFO: ==1422== Releasing lock... [2025-04-01 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:34:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-01 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:35:05 [end_date_ymd] => 2025-04-01 23:35:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:35:05' and `end` < '2025-04-01 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-01 23:35:17] Production.INFO: count ==1047 [2025-04-01 23:35:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:35:05 - End Time 2025-04-01 23:35:05 [2025-04-01 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814233', 'tblTempUsageDetail_20' ) start [2025-04-01 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814233', 'tblTempUsageDetail_20' ) end [2025-04-01 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814233', 'tblTempVendorCDR_20' ) start [2025-04-01 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814233', 'tblTempVendorCDR_20' ) end [2025-04-01 23:35:18] Production.INFO: ProcessCDR(1,14814233,1,1,2) [2025-04-01 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814233', 'tblTempUsageDetail_20' ) start [2025-04-01 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814233', 'tblTempUsageDetail_20' ) end [2025-04-01 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:35:21] Production.INFO: ==1520== Releasing lock... [2025-04-01 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:35:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-01 23:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:36:06 [end_date_ymd] => 2025-04-01 23:36:06 [RateCDR] => 1 ) [2025-04-01 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-01 20:36:06' and `end` < '2025-04-01 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-01 23:36:19] Production.INFO: count ==1048 [2025-04-01 23:36:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:36:06 - End Time 2025-04-01 23:36:06 [2025-04-01 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814238', 'tblTempUsageDetail_20' ) start [2025-04-01 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814238', 'tblTempUsageDetail_20' ) end [2025-04-01 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814238', 'tblTempVendorCDR_20' ) start [2025-04-01 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814238', 'tblTempVendorCDR_20' ) end [2025-04-01 23:36:19] Production.INFO: ProcessCDR(1,14814238,1,1,2) [2025-04-01 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814238', 'tblTempUsageDetail_20' ) start [2025-04-01 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814238', 'tblTempUsageDetail_20' ) end [2025-04-01 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:36:22] Production.INFO: ==1617== Releasing lock... [2025-04-01 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:36:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-01 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:37:05 [end_date_ymd] => 2025-04-01 23:37:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:37:05' and `end` < '2025-04-01 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-01 23:37:18] Production.INFO: count ==1051 [2025-04-01 23:37:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:37:05 - End Time 2025-04-01 23:37:05 [2025-04-01 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814243', 'tblTempUsageDetail_20' ) start [2025-04-01 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814243', 'tblTempUsageDetail_20' ) end [2025-04-01 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814243', 'tblTempVendorCDR_20' ) start [2025-04-01 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814243', 'tblTempVendorCDR_20' ) end [2025-04-01 23:37:18] Production.INFO: ProcessCDR(1,14814243,1,1,2) [2025-04-01 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814243', 'tblTempUsageDetail_20' ) start [2025-04-01 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814243', 'tblTempUsageDetail_20' ) end [2025-04-01 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:37:22] Production.INFO: ==1696== Releasing lock... [2025-04-01 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:37:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:38:06 [end_date_ymd] => 2025-04-01 23:38:06 [RateCDR] => 1 ) [2025-04-01 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-01 20:38:06' and `end` < '2025-04-01 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-01 23:38:19] Production.INFO: count ==1050 [2025-04-01 23:38:20] Production.ERROR: pbx CDR StartTime 2025-04-01 20:38:06 - End Time 2025-04-01 23:38:06 [2025-04-01 23:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814248', 'tblTempUsageDetail_20' ) start [2025-04-01 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814248', 'tblTempUsageDetail_20' ) end [2025-04-01 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814248', 'tblTempVendorCDR_20' ) start [2025-04-01 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814248', 'tblTempVendorCDR_20' ) end [2025-04-01 23:38:20] Production.INFO: ProcessCDR(1,14814248,1,1,2) [2025-04-01 23:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814248', 'tblTempUsageDetail_20' ) start [2025-04-01 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814248', 'tblTempUsageDetail_20' ) end [2025-04-01 23:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:38:23] Production.INFO: ==1781== Releasing lock... [2025-04-01 23:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:38:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:39:05 [end_date_ymd] => 2025-04-01 23:39:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:39:05' and `end` < '2025-04-01 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-01 23:39:18] Production.INFO: count ==1051 [2025-04-01 23:39:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:39:05 - End Time 2025-04-01 23:39:05 [2025-04-01 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814253', 'tblTempUsageDetail_20' ) start [2025-04-01 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814253', 'tblTempUsageDetail_20' ) end [2025-04-01 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814253', 'tblTempVendorCDR_20' ) start [2025-04-01 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814253', 'tblTempVendorCDR_20' ) end [2025-04-01 23:39:19] Production.INFO: ProcessCDR(1,14814253,1,1,2) [2025-04-01 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814253', 'tblTempUsageDetail_20' ) start [2025-04-01 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814253', 'tblTempUsageDetail_20' ) end [2025-04-01 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:39:22] Production.INFO: ==1860== Releasing lock... [2025-04-01 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:39:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:40:06 [end_date_ymd] => 2025-04-01 23:40:06 [RateCDR] => 1 ) [2025-04-01 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-01 20:40:06' and `end` < '2025-04-01 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-01 23:40:19] Production.INFO: count ==1049 [2025-04-01 23:40:20] Production.ERROR: pbx CDR StartTime 2025-04-01 20:40:06 - End Time 2025-04-01 23:40:06 [2025-04-01 23:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814259', 'tblTempUsageDetail_20' ) start [2025-04-01 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814259', 'tblTempUsageDetail_20' ) end [2025-04-01 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814259', 'tblTempVendorCDR_20' ) start [2025-04-01 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814259', 'tblTempVendorCDR_20' ) end [2025-04-01 23:40:20] Production.INFO: ProcessCDR(1,14814259,1,1,2) [2025-04-01 23:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814259', 'tblTempUsageDetail_20' ) start [2025-04-01 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814259', 'tblTempUsageDetail_20' ) end [2025-04-01 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:40:23] Production.INFO: ==1942== Releasing lock... [2025-04-01 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:40:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-01 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:41:05 [end_date_ymd] => 2025-04-01 23:41:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:41:05' and `end` < '2025-04-01 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-01 23:41:18] Production.INFO: count ==1047 [2025-04-01 23:41:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:41:05 - End Time 2025-04-01 23:41:05 [2025-04-01 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814264', 'tblTempUsageDetail_20' ) start [2025-04-01 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814264', 'tblTempUsageDetail_20' ) end [2025-04-01 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814264', 'tblTempVendorCDR_20' ) start [2025-04-01 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814264', 'tblTempVendorCDR_20' ) end [2025-04-01 23:41:19] Production.INFO: ProcessCDR(1,14814264,1,1,2) [2025-04-01 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814264', 'tblTempUsageDetail_20' ) start [2025-04-01 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814264', 'tblTempUsageDetail_20' ) end [2025-04-01 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:41:22] Production.INFO: ==2026== Releasing lock... [2025-04-01 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:41:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-01 23:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:42:06 [end_date_ymd] => 2025-04-01 23:42:06 [RateCDR] => 1 ) [2025-04-01 23:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 20:42:06' and `end` < '2025-04-01 23:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 23:42:19] Production.INFO: count ==1048 [2025-04-01 23:42:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:42:06 - End Time 2025-04-01 23:42:06 [2025-04-01 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814269', 'tblTempUsageDetail_20' ) start [2025-04-01 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814269', 'tblTempUsageDetail_20' ) end [2025-04-01 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814269', 'tblTempVendorCDR_20' ) start [2025-04-01 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814269', 'tblTempVendorCDR_20' ) end [2025-04-01 23:42:19] Production.INFO: ProcessCDR(1,14814269,1,1,2) [2025-04-01 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814269', 'tblTempUsageDetail_20' ) start [2025-04-01 23:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814269', 'tblTempUsageDetail_20' ) end [2025-04-01 23:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:42:25] Production.INFO: ==2099== Releasing lock... [2025-04-01 23:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:42:25] Production.INFO: 36.5 MB #Memory Used# [2025-04-01 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:43:05 [end_date_ymd] => 2025-04-01 23:43:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:43:05' and `end` < '2025-04-01 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-01 23:43:18] Production.INFO: count ==1047 [2025-04-01 23:43:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:43:05 - End Time 2025-04-01 23:43:05 [2025-04-01 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814274', 'tblTempUsageDetail_20' ) start [2025-04-01 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814274', 'tblTempUsageDetail_20' ) end [2025-04-01 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814274', 'tblTempVendorCDR_20' ) start [2025-04-01 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814274', 'tblTempVendorCDR_20' ) end [2025-04-01 23:43:18] Production.INFO: ProcessCDR(1,14814274,1,1,2) [2025-04-01 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814274', 'tblTempUsageDetail_20' ) start [2025-04-01 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814274', 'tblTempUsageDetail_20' ) end [2025-04-01 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:43:22] Production.INFO: ==2178== Releasing lock... [2025-04-01 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:43:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-01 23:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:44:06 [end_date_ymd] => 2025-04-01 23:44:06 [RateCDR] => 1 ) [2025-04-01 23: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-01 20:44:06' and `end` < '2025-04-01 23: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-01 23:44:19] Production.INFO: count ==1045 [2025-04-01 23:44:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:44:06 - End Time 2025-04-01 23:44:06 [2025-04-01 23:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814279', 'tblTempUsageDetail_20' ) start [2025-04-01 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814279', 'tblTempUsageDetail_20' ) end [2025-04-01 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814279', 'tblTempVendorCDR_20' ) start [2025-04-01 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814279', 'tblTempVendorCDR_20' ) end [2025-04-01 23:44:19] Production.INFO: ProcessCDR(1,14814279,1,1,2) [2025-04-01 23:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814279', 'tblTempUsageDetail_20' ) start [2025-04-01 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814279', 'tblTempUsageDetail_20' ) end [2025-04-01 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:44:22] Production.INFO: ==2260== Releasing lock... [2025-04-01 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:44:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-01 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:45:05 [end_date_ymd] => 2025-04-01 23:45:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:45:05' and `end` < '2025-04-01 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-01 23:45:18] Production.INFO: count ==1043 [2025-04-01 23:45:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:45:05 - End Time 2025-04-01 23:45:05 [2025-04-01 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814284', 'tblTempUsageDetail_20' ) start [2025-04-01 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814284', 'tblTempUsageDetail_20' ) end [2025-04-01 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814284', 'tblTempVendorCDR_20' ) start [2025-04-01 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814284', 'tblTempVendorCDR_20' ) end [2025-04-01 23:45:18] Production.INFO: ProcessCDR(1,14814284,1,1,2) [2025-04-01 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814284', 'tblTempUsageDetail_20' ) start [2025-04-01 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814284', 'tblTempUsageDetail_20' ) end [2025-04-01 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:45:22] Production.INFO: ==2333== Releasing lock... [2025-04-01 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:45:22] Production.INFO: 36 MB #Memory Used# [2025-04-01 23:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:46:06 [end_date_ymd] => 2025-04-01 23:46:06 [RateCDR] => 1 ) [2025-04-01 23:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 20:46:06' and `end` < '2025-04-01 23:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 23:46:18] Production.INFO: count ==1044 [2025-04-01 23:46:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:46:06 - End Time 2025-04-01 23:46:06 [2025-04-01 23:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814289', 'tblTempUsageDetail_20' ) start [2025-04-01 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814289', 'tblTempUsageDetail_20' ) end [2025-04-01 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814289', 'tblTempVendorCDR_20' ) start [2025-04-01 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814289', 'tblTempVendorCDR_20' ) end [2025-04-01 23:46:19] Production.INFO: ProcessCDR(1,14814289,1,1,2) [2025-04-01 23:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814289', 'tblTempUsageDetail_20' ) start [2025-04-01 23:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814289', 'tblTempUsageDetail_20' ) end [2025-04-01 23:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:46:24] Production.INFO: ==2451== Releasing lock... [2025-04-01 23:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:46:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-01 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:47:05 [end_date_ymd] => 2025-04-01 23:47:05 [RateCDR] => 1 ) [2025-04-01 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 20:47:05' and `end` < '2025-04-01 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 23:47:18] Production.INFO: count ==1043 [2025-04-01 23:47:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:47:05 - End Time 2025-04-01 23:47:05 [2025-04-01 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814294', 'tblTempUsageDetail_20' ) start [2025-04-01 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814294', 'tblTempUsageDetail_20' ) end [2025-04-01 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814294', 'tblTempVendorCDR_20' ) start [2025-04-01 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814294', 'tblTempVendorCDR_20' ) end [2025-04-01 23:47:18] Production.INFO: ProcessCDR(1,14814294,1,1,2) [2025-04-01 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814294', 'tblTempUsageDetail_20' ) start [2025-04-01 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814294', 'tblTempUsageDetail_20' ) end [2025-04-01 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:47:22] Production.INFO: ==2527== Releasing lock... [2025-04-01 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:47:22] Production.INFO: 36 MB #Memory Used# [2025-04-01 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:48:05 [end_date_ymd] => 2025-04-01 23:48:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:48:05' and `end` < '2025-04-01 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-01 23:48:18] Production.INFO: count ==1046 [2025-04-01 23:48:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:48:05 - End Time 2025-04-01 23:48:05 [2025-04-01 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814299', 'tblTempUsageDetail_20' ) start [2025-04-01 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814299', 'tblTempUsageDetail_20' ) end [2025-04-01 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814299', 'tblTempVendorCDR_20' ) start [2025-04-01 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814299', 'tblTempVendorCDR_20' ) end [2025-04-01 23:48:18] Production.INFO: ProcessCDR(1,14814299,1,1,2) [2025-04-01 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814299', 'tblTempUsageDetail_20' ) start [2025-04-01 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814299', 'tblTempUsageDetail_20' ) end [2025-04-01 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:48:22] Production.INFO: ==2603== Releasing lock... [2025-04-01 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:48:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-01 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:49:05 [end_date_ymd] => 2025-04-01 23:49:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:49:05' and `end` < '2025-04-01 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-01 23:49:18] Production.INFO: count ==1043 [2025-04-01 23:49:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:49:05 - End Time 2025-04-01 23:49:05 [2025-04-01 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814304', 'tblTempUsageDetail_20' ) start [2025-04-01 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814304', 'tblTempUsageDetail_20' ) end [2025-04-01 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814304', 'tblTempVendorCDR_20' ) start [2025-04-01 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814304', 'tblTempVendorCDR_20' ) end [2025-04-01 23:49:18] Production.INFO: ProcessCDR(1,14814304,1,1,2) [2025-04-01 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814304', 'tblTempUsageDetail_20' ) start [2025-04-01 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814304', 'tblTempUsageDetail_20' ) end [2025-04-01 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:49:22] Production.INFO: ==2680== Releasing lock... [2025-04-01 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:49:22] Production.INFO: 36 MB #Memory Used# [2025-04-01 23:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:50:07 [end_date_ymd] => 2025-04-01 23:50:07 [RateCDR] => 1 ) [2025-04-01 23: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-01 20:50:07' and `end` < '2025-04-01 23: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-01 23:50:20] Production.INFO: count ==1035 [2025-04-01 23:50:20] Production.ERROR: pbx CDR StartTime 2025-04-01 20:50:07 - End Time 2025-04-01 23:50:07 [2025-04-01 23:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814309', 'tblTempUsageDetail_20' ) start [2025-04-01 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814309', 'tblTempUsageDetail_20' ) end [2025-04-01 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814309', 'tblTempVendorCDR_20' ) start [2025-04-01 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814309', 'tblTempVendorCDR_20' ) end [2025-04-01 23:50:20] Production.INFO: ProcessCDR(1,14814309,1,1,2) [2025-04-01 23:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814309', 'tblTempUsageDetail_20' ) start [2025-04-01 23:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814309', 'tblTempUsageDetail_20' ) end [2025-04-01 23:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:50:24] Production.INFO: ==2762== Releasing lock... [2025-04-01 23:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:50:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-01 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:51:05 [end_date_ymd] => 2025-04-01 23:51:05 [RateCDR] => 1 ) [2025-04-01 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 20:51:05' and `end` < '2025-04-01 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 23:51:18] Production.INFO: count ==1004 [2025-04-01 23:51:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:51:05 - End Time 2025-04-01 23:51:05 [2025-04-01 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814315', 'tblTempUsageDetail_20' ) start [2025-04-01 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814315', 'tblTempUsageDetail_20' ) end [2025-04-01 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814315', 'tblTempVendorCDR_20' ) start [2025-04-01 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814315', 'tblTempVendorCDR_20' ) end [2025-04-01 23:51:18] Production.INFO: ProcessCDR(1,14814315,1,1,2) [2025-04-01 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814315', 'tblTempUsageDetail_20' ) start [2025-04-01 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814315', 'tblTempUsageDetail_20' ) end [2025-04-01 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:51:22] Production.INFO: ==2844== Releasing lock... [2025-04-01 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:51:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-01 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:52:05 [end_date_ymd] => 2025-04-01 23:52:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:52:05' and `end` < '2025-04-01 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-01 23:52:18] Production.INFO: count ==1005 [2025-04-01 23:52:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:52:05 - End Time 2025-04-01 23:52:05 [2025-04-01 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814320', 'tblTempUsageDetail_20' ) start [2025-04-01 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814320', 'tblTempUsageDetail_20' ) end [2025-04-01 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814320', 'tblTempVendorCDR_20' ) start [2025-04-01 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814320', 'tblTempVendorCDR_20' ) end [2025-04-01 23:52:18] Production.INFO: ProcessCDR(1,14814320,1,1,2) [2025-04-01 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814320', 'tblTempUsageDetail_20' ) start [2025-04-01 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814320', 'tblTempUsageDetail_20' ) end [2025-04-01 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:52:22] Production.INFO: ==2923== Releasing lock... [2025-04-01 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:52:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-01 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:53:05 [end_date_ymd] => 2025-04-01 23:53:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:53:05' and `end` < '2025-04-01 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-01 23:53:18] Production.INFO: count ==994 [2025-04-01 23:53:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:53:05 - End Time 2025-04-01 23:53:05 [2025-04-01 23:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814325', 'tblTempUsageDetail_20' ) start [2025-04-01 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814325', 'tblTempUsageDetail_20' ) end [2025-04-01 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814325', 'tblTempVendorCDR_20' ) start [2025-04-01 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814325', 'tblTempVendorCDR_20' ) end [2025-04-01 23:53:19] Production.INFO: ProcessCDR(1,14814325,1,1,2) [2025-04-01 23:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814325', 'tblTempUsageDetail_20' ) start [2025-04-01 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814325', 'tblTempUsageDetail_20' ) end [2025-04-01 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:53:22] Production.INFO: ==2998== Releasing lock... [2025-04-01 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:53:22] Production.INFO: 36 MB #Memory Used# [2025-04-01 23:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:54:06 [end_date_ymd] => 2025-04-01 23:54:06 [RateCDR] => 1 ) [2025-04-01 23:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 20:54:06' and `end` < '2025-04-01 23:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 23:54:19] Production.INFO: count ==986 [2025-04-01 23:54:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:54:06 - End Time 2025-04-01 23:54:06 [2025-04-01 23:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814330', 'tblTempUsageDetail_20' ) start [2025-04-01 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814330', 'tblTempUsageDetail_20' ) end [2025-04-01 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814330', 'tblTempVendorCDR_20' ) start [2025-04-01 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814330', 'tblTempVendorCDR_20' ) end [2025-04-01 23:54:19] Production.INFO: ProcessCDR(1,14814330,1,1,2) [2025-04-01 23:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814330', 'tblTempUsageDetail_20' ) start [2025-04-01 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814330', 'tblTempUsageDetail_20' ) end [2025-04-01 23:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:54:23] Production.INFO: ==3081== Releasing lock... [2025-04-01 23:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:54:23] Production.INFO: 36 MB #Memory Used# [2025-04-01 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:55:05 [end_date_ymd] => 2025-04-01 23:55:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:55:05' and `end` < '2025-04-01 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-01 23:55:18] Production.INFO: count ==981 [2025-04-01 23:55:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:55:05 - End Time 2025-04-01 23:55:05 [2025-04-01 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814335', 'tblTempUsageDetail_20' ) start [2025-04-01 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814335', 'tblTempUsageDetail_20' ) end [2025-04-01 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814335', 'tblTempVendorCDR_20' ) start [2025-04-01 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814335', 'tblTempVendorCDR_20' ) end [2025-04-01 23:55:18] Production.INFO: ProcessCDR(1,14814335,1,1,2) [2025-04-01 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814335', 'tblTempUsageDetail_20' ) start [2025-04-01 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814335', 'tblTempUsageDetail_20' ) end [2025-04-01 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:55:22] Production.INFO: ==3159== Releasing lock... [2025-04-01 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:55:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-01 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:56:05 [end_date_ymd] => 2025-04-01 23:56:05 [RateCDR] => 1 ) [2025-04-01 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 20:56:05' and `end` < '2025-04-01 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-01 23:56:18] Production.INFO: count ==985 [2025-04-01 23:56:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:56:05 - End Time 2025-04-01 23:56:05 [2025-04-01 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814340', 'tblTempUsageDetail_20' ) start [2025-04-01 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814340', 'tblTempUsageDetail_20' ) end [2025-04-01 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814340', 'tblTempVendorCDR_20' ) start [2025-04-01 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814340', 'tblTempVendorCDR_20' ) end [2025-04-01 23:56:18] Production.INFO: ProcessCDR(1,14814340,1,1,2) [2025-04-01 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814340', 'tblTempUsageDetail_20' ) start [2025-04-01 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814340', 'tblTempUsageDetail_20' ) end [2025-04-01 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:56:22] Production.INFO: ==3236== Releasing lock... [2025-04-01 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:56:22] Production.INFO: 36 MB #Memory Used# [2025-04-01 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:57:05 [end_date_ymd] => 2025-04-01 23:57:05 [RateCDR] => 1 ) [2025-04-01 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-01 20:57:05' and `end` < '2025-04-01 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-01 23:57:18] Production.INFO: count ==979 [2025-04-01 23:57:18] Production.ERROR: pbx CDR StartTime 2025-04-01 20:57:05 - End Time 2025-04-01 23:57:05 [2025-04-01 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814345', 'tblTempUsageDetail_20' ) start [2025-04-01 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814345', 'tblTempUsageDetail_20' ) end [2025-04-01 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814345', 'tblTempVendorCDR_20' ) start [2025-04-01 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814345', 'tblTempVendorCDR_20' ) end [2025-04-01 23:57:18] Production.INFO: ProcessCDR(1,14814345,1,1,2) [2025-04-01 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814345', 'tblTempUsageDetail_20' ) start [2025-04-01 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814345', 'tblTempUsageDetail_20' ) end [2025-04-01 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:57:22] Production.INFO: ==3316== Releasing lock... [2025-04-01 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:57:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-01 23:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:58:06 [end_date_ymd] => 2025-04-01 23:58:06 [RateCDR] => 1 ) [2025-04-01 23: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-01 20:58:06' and `end` < '2025-04-01 23: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-01 23:58:19] Production.INFO: count ==981 [2025-04-01 23:58:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:58:06 - End Time 2025-04-01 23:58:06 [2025-04-01 23:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814350', 'tblTempUsageDetail_20' ) start [2025-04-01 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814350', 'tblTempUsageDetail_20' ) end [2025-04-01 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814350', 'tblTempVendorCDR_20' ) start [2025-04-01 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814350', 'tblTempVendorCDR_20' ) end [2025-04-01 23:58:19] Production.INFO: ProcessCDR(1,14814350,1,1,2) [2025-04-01 23:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814350', 'tblTempUsageDetail_20' ) start [2025-04-01 23:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814350', 'tblTempUsageDetail_20' ) end [2025-04-01 23:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:58:24] Production.INFO: ==3389== Releasing lock... [2025-04-01 23:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:58:24] Production.INFO: 36 MB #Memory Used# [2025-04-01 23:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 20:59:06 [end_date_ymd] => 2025-04-01 23:59:06 [RateCDR] => 1 ) [2025-04-01 23: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-01 20:59:06' and `end` < '2025-04-01 23: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-01 23:59:18] Production.INFO: count ==972 [2025-04-01 23:59:19] Production.ERROR: pbx CDR StartTime 2025-04-01 20:59:06 - End Time 2025-04-01 23:59:06 [2025-04-01 23:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-01 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814355', 'tblTempUsageDetail_20' ) start [2025-04-01 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814355', 'tblTempUsageDetail_20' ) end [2025-04-01 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814355', 'tblTempVendorCDR_20' ) start [2025-04-01 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814355', 'tblTempVendorCDR_20' ) end [2025-04-01 23:59:19] Production.INFO: ProcessCDR(1,14814355,1,1,2) [2025-04-01 23:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-01 23:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-01 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814355', 'tblTempUsageDetail_20' ) start [2025-04-01 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814355', 'tblTempUsageDetail_20' ) end [2025-04-01 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-01 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-01 23:59:22] Production.INFO: ==3468== Releasing lock... [2025-04-01 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-01 23:59:22] Production.INFO: 35.75 MB #Memory Used#